/* ═══════════════════════════════════════════════════════════════════════
   Noir Atelier — черна визия за парфюми
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --font: "Manrope", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --c-mint:     #c6a15b;
  --c-lime:     #e8d7a8;
  --c-emerald:  #c6a15b;
  --c-emerald-2:#a6843f;
  --c-leaf:     #d4bc86;
  --c-aqua:     #c6a15b;
  --c-amber:    #e8d7a8;
  --c-coral:    #e11d48;
  --c-teal:     #e8d7a8;
  --c-lilac:    #c6a15b;

  --c-bg:        #070708;
  --c-surface:   #121214;
  --c-surface-2: #1a1a1e;
  --c-surface-3: #222228;
  --glow-brand:  rgba(198, 161, 91, 0.45);

  --c-text:      #f4efe6;
  --c-text-soft: #d9d0c3;
  --c-muted:     #9a9186;
  --c-muted-2:   #6f675e;

  --c-accent:      #c6a15b;
  --c-accent-soft: rgba(198, 161, 91, 0.16);
  --c-link:        #e8d7a8;
  --c-link-hover:  #f7edd4;
  --c-success:     #c6a15b;
  --c-warn:        #e0b15a;
  --c-danger:      #f43f5e;

  --c-border:        rgba(243, 234, 215, 0.10);
  --c-border-strong: rgba(243, 234, 215, 0.22);
  --c-divider:       rgba(243, 234, 215, 0.08);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:   16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 8px 24px -16px rgba(0, 0, 0, 0.8);
  --shadow:    0 16px 40px -24px rgba(0, 0, 0, 0.85);
  --shadow-md: 0 22px 50px -24px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 30px 70px -28px rgba(0, 0, 0, 0.95);
  --shadow-hover: var(--shadow-md);

  --header-h: 4.75rem;
  --container: 1180px;

  --grad-primary:   linear-gradient(135deg, #f3ead7 0%, #c6a15b 48%, #8c6a32 100%);
  --grad-secondary: linear-gradient(135deg, #2a2622 0%, #1a1816 100%);
  --grad-mint:      linear-gradient(135deg, #e8d7a8 0%, #c6a15b 100%);
  --grad-amber:     linear-gradient(135deg, #f3ead7 0%, #a6843f 100%);
  --grad-lilac:     linear-gradient(135deg, #3a342c 0%, #c6a15b 100%);
  --grad-hero-text: linear-gradient(120deg, #f7edd4 0%, #c6a15b 55%, #f3ead7 100%);
  --grad-logo:      linear-gradient(120deg, #f7edd4 0%, #c6a15b 70%);
  --grad-promo:     linear-gradient(90deg, #0c0c0e 0%, #16130f 50%, #0c0c0e 100%);
  --promo-text:     #e8d7a8;
  --promo-strong:   #f7edd4;
  --btn-hover-glow: rgba(198, 161, 91, .55);

  --glow-1: rgba(198, 161, 91, 0.16);
  --glow-2: rgba(243, 234, 215, 0.06);
  --glow-3: rgba(140, 106, 50, 0.18);
  --glow-4: rgba(198, 161, 91, 0.08);

  color-scheme: dark;
  font-size: clamp(15px, 1.05vw + 13px, 17px);
}

html[data-theme="spring"] {
  --c-emerald: #e8b4b8;
  --c-emerald-2: #c48990;
  --c-accent: #e8b4b8;
  --c-link: #f6e7ea;
  --c-teal: #f6e7ea;
  --grad-primary: linear-gradient(135deg, #f6e7ea 0%, #e8b4b8 50%, #a86a72 100%);
  --grad-logo: linear-gradient(120deg, #f6e7ea 0%, #e8b4b8 70%);
  --glow-1: rgba(232, 180, 184, 0.18);
  --btn-hover-glow: rgba(232, 180, 184, .5);
}
html[data-theme="summer"] {
  --c-bg: #07080c;
  --c-emerald: #9eb4c8;
  --c-accent: #9eb4c8;
  --c-link: #e7eef4;
  --c-teal: #d5e2ec;
  --grad-primary: linear-gradient(135deg, #e7eef4 0%, #9eb4c8 48%, #5d7388 100%);
  --grad-logo: linear-gradient(120deg, #e7eef4 0%, #9eb4c8 70%);
  --glow-1: rgba(158, 180, 200, 0.16);
  --btn-hover-glow: rgba(158, 180, 200, .5);
}
html[data-theme="autumn"] {
  --c-bg: #100c08;
  --c-emerald: #d4a574;
  --c-accent: #d4a574;
  --c-link: #f3e6d4;
  --c-teal: #f3e6d4;
  --grad-primary: linear-gradient(135deg, #f3e6d4 0%, #d4a574 50%, #8a5a32 100%);
  --grad-logo: linear-gradient(120deg, #f3e6d4 0%, #d4a574 70%);
  --glow-1: rgba(212, 165, 116, 0.18);
  --btn-hover-glow: rgba(212, 165, 116, .5);
}
html[data-theme="winter"] {
  --c-bg: #05060a;
  --c-emerald: #b7c0cc;
  --c-accent: #b7c0cc;
  --c-link: #e8edf2;
  --c-teal: #e8edf2;
  --grad-primary: linear-gradient(135deg, #e8edf2 0%, #b7c0cc 48%, #6d7784 100%);
  --grad-logo: linear-gradient(120deg, #e8edf2 0%, #b7c0cc 70%);
  --glow-1: rgba(183, 192, 204, 0.16);
  --btn-hover-glow: rgba(183, 192, 204, .45);
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  color: var(--c-text);
  background-color: var(--c-bg);
  /* По-фин фон — само soft glow blobs, без detailed pattern. */
  background-image:
    radial-gradient(900px 600px at 100% -20%, var(--glow-1), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, var(--glow-2), transparent 60%),
    radial-gradient(700px 500px at 50% 0%, var(--glow-3), transparent 55%),
    radial-gradient(700px 500px at 90% 100%, var(--glow-4), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-link); transition: color .15s ease; }
a:hover { color: var(--c-link-hover); }

::selection { background: var(--c-accent-soft); color: var(--c-text); }

/* Focus ring — accessible, модерен */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-text); color: #fff; padding: .55rem 1rem; z-index: 999;
  border-radius: 0 0 .75rem 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* ═══════════ PROMO STRIP (тънка лента над header-а) ═══════════ */
.promo-strip {
  position: relative;
  background: var(--grad-promo);
  color: var(--promo-text);
  font-size: 0.84rem;
  font-weight: 600;
  overflow: hidden;
  z-index: 99;
}
.promo-strip::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(198, 161, 91, 0.22) 28%,
    rgba(232, 215, 168, 0.12) 55%,
    rgba(198, 161, 91, 0.16) 78%,
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.promo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  flex-wrap: wrap;
  position: relative;
  text-align: center;
}
.promo-strip strong { color: var(--promo-strong); font-weight: 800; }
.promo-sep { opacity: .45; }
@media (max-width: 640px) {
  .promo-strip { font-size: 0.78rem; }
  .promo-strip-inner { gap: 0.55rem; padding: 0.5rem 0.85rem; }
  .promo-sep { display: none; }
}

/* ═══════════ HEADER ═══════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 8, 0.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 0 rgba(198,161,91,.18) inset;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "logo  search  search"
    "nav   nav     cart";
  align-items: center;
  gap: 0.5rem 0.85rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}
.logo          { grid-area: logo;   }
.header-search { grid-area: search; justify-self: stretch; }
.header-cart   { grid-area: cart;   justify-self: end; }
.main-nav      { grid-area: nav;    }
.nav-toggle    { grid-area: search; justify-self: end; display: none; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--c-text);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: min(100%, 18rem);
}
.logo-img { height: 2.6rem; width: auto; max-width: 10rem; object-fit: contain; }
.logo-text {
  background: var(--grad-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo:has(.logo-img) .logo-text { font-size: 1.05rem; font-weight: 700; }
.logo-only .logo-img { height: 3rem; max-width: 12rem; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-start;
}
.main-nav a {
  position: relative;
  color: var(--c-text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0;
  transition: color .15s ease, background-color .15s ease, transform .15s ease;
}
.main-nav a:hover {
  color: var(--c-link);
  background: var(--c-accent-soft);
}
a.cart-link {
  background: #14161c;
  color: #f7f4ee;
  border: 1px solid rgba(198, 161, 91, 0.55);
  box-shadow: 0 10px 26px -12px rgba(198, 161, 91, 0.9);
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .2s ease;
}
a.cart-link:hover {
  color: #fff;
  background: #1c2433;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -12px rgba(232, 196, 120, 0.95);
}
.cart-icon { font-size: 1rem; line-height: 1; }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-accent);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  animation: pop .35s cubic-bezier(.4, 1.4, .5, 1);
}
@keyframes pop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* ═══════════ HEADER SEARCH ═══════════ */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: 0;
  padding: 0.25rem 0.25rem 0.25rem 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-search:focus-within {
  border-color: var(--c-emerald);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.22);
  background: var(--c-surface);
}
.header-search-icon {
  display: inline-flex;
  align-items: center;
  color: var(--c-muted);
  pointer-events: none;
  flex-shrink: 0;
}
.header-search:focus-within .header-search-icon { color: var(--c-emerald-2); }
.header-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--c-text);
  min-width: 0;
}
.header-search input::placeholder { color: var(--c-muted); }
.header-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.header-search-btn {
  border: 0;
  background: #14161c;
  color: #f7f4ee;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(198, 161, 91, 0.55);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 10px 26px -12px rgba(198, 161, 91, 0.9);
  flex-shrink: 0;
}
.header-search-btn:hover { background: #1c2433; color: #fff; transform: translateY(-1px); }

.search-suggestions {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0; right: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 110;
  max-height: 70vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: dropdownIn .2s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.search-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
}
.search-list li { margin: 0; }
.search-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--c-text);
  transition: background-color .12s ease;
}
.search-list a:hover,
.search-list li.is-active a { background: var(--c-surface-3); }
.search-thumb {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(160deg, #1a1814 0%, #121214 100%);
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  border: 1px solid var(--c-border);
}
.search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-thumb-fallback { font-size: 1.5rem; }
.search-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}
.search-name {
  font-weight: 700;
  color: var(--c-text);
  font-size: 0.94rem;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.search-name mark {
  background: rgba(252, 211, 77, 0.5);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}
.search-price {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--c-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.badge-sale-mini {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-empty {
  padding: 1.4rem 1.2rem;
  text-align: center;
  color: var(--c-muted);
  font-size: 0.95rem;
}
.search-all {
  display: block;
  text-align: center;
  padding: 0.85rem;
  text-decoration: none;
  color: var(--c-accent);
  font-weight: 800;
  font-size: 0.92rem;
  border-top: 1px solid var(--c-divider);
  background: var(--c-surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: background-color .15s ease;
}
.search-all:hover { background: var(--c-surface-3); color: var(--c-accent); }

.nav-toggle {
  display: none;
  background: var(--c-text);
  border: 0;
  border-radius: 0;
  padding: 0.5rem 0.8rem;
  font-size: 1.15rem;
  cursor: pointer;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo    cart"
      "search  search"
      "nav     nav";
  }
  .nav-toggle { display: none; }
  .header-search { max-width: 100%; }
}
@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "logo    cart    toggle"
      "search  search  search"
      "nav     nav     nav";
    gap: 0.5rem;
  }
  .nav-toggle {
    display: block;
    grid-area: toggle;
    justify-self: end;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 0 0.4rem;
    gap: 0.2rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0.9rem; border-radius: 0; }
  .logo { max-width: calc(100% - 3.5rem); }
  .header-search-btn-text { display: none; }
  .header-search-btn { padding: 0.55rem 0.75rem; }
  .header-search-btn::before { content: "→"; font-size: 1rem; line-height: 1; font-weight: 800; }
  .header-cart { padding: 0.5rem 0.85rem; }
  .header-cart .cart-label { display: none; }
}
@media (max-width: 420px) {
  .header-cart { padding: 0.5rem 0.75rem; }
}

/* ═══════════ MAIN ═══════════ */
.main-content { flex: 1; padding: 1.6rem 1rem 3rem; }

/* ═══════════ PAGINATION ═══════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
  font-size: 0.95rem;
}
.pagination .pag-numbers {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}
.pagination .pag-num,
.pagination .pag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0;
  text-decoration: none;
  color: var(--c-text-soft);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.pagination a.pag-num:hover,
.pagination a.pag-link:hover {
  background: var(--c-surface-2);
  color: var(--c-text);
  border-color: var(--c-border-strong);
  transform: translateY(-1px);
}
.pagination .pag-num.is-active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px -6px var(--glow-brand);
}
.pagination .is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.pagination .pag-gap {
  display: inline-flex;
  align-items: center;
  padding: 0 0.35rem;
  color: var(--c-muted);
}
@media (max-width: 560px) {
  .pagination { gap: 0.35rem; font-size: 0.88rem; }
  .pagination .pag-num,
  .pagination .pag-link { min-width: 2rem; height: 2rem; padding: 0 0.6rem; }
  .pag-prev, .pag-next { flex-basis: 100%; justify-content: center; }
}

/* ═══════════ Breadcrumbs ═══════════ */
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--c-muted);
}
.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.45rem;
  color: var(--c-muted-2);
}
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs [aria-current] { color: var(--c-text); font-weight: 700; }

/* ═══════════ Hero — глейми, анимиран, с плаващи декорации ═══════════ */
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 4rem 1.5rem 4.25rem;
  border-radius: var(--radius-xl);
  background: #050506;
  border: 1px solid rgba(198, 161, 91, 0.35);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  overflow: hidden;
}
/* Suave shimmer слой над hero - бавна анимация на conic gradient */
.hero::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    rgba(94, 234, 212, 0) 0deg,
    rgba(94, 234, 212, 0.18) 60deg,
    rgba(196, 181, 253, 0.18) 180deg,
    rgba(253, 164, 175, 0.18) 300deg,
    rgba(94, 234, 212, 0) 360deg
  );
  animation: heroSpin 22s linear infinite;
  pointer-events: none;
}
@keyframes heroSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Плаващи декорации — звездички и облачета */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-decor span {
  position: absolute;
  font-size: 1.65rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.10));
  animation: float 7s ease-in-out infinite;
  opacity: .85;
}
.hero-decor span:nth-child(1) { top: 14%; left: 8%;  animation-delay: 0s;   }
.hero-decor span:nth-child(2) { top: 22%; right: 10%; animation-delay: 1.5s; font-size: 1.9rem; }
.hero-decor span:nth-child(3) { bottom: 20%; left: 14%; animation-delay: 0.8s; font-size: 1.4rem; }
.hero-decor span:nth-child(4) { bottom: 16%; right: 18%; animation-delay: 2.2s; }
.hero-decor span:nth-child(5) { top: 50%; left: 4%; animation-delay: 1.1s; font-size: 1.2rem; }
.hero-decor span:nth-child(6) { top: 60%; right: 6%; animation-delay: 1.8s; font-size: 1.3rem; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-14px) rotate(10deg); }
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 5.8vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  background: linear-gradient(120deg, #0f172a 0%, #16a34a 35%, #15803d 65%, #0d9488 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroGradient 8s ease-in-out infinite;
}
@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero p {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--c-text-soft);
  font-weight: 500;
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* ═══════════ TRUST BADGES (под hero) ═══════════ */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: -1.25rem 0 2.5rem;
  position: relative;
  z-index: 2;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  background: #121214;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.trust-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.trust-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 12px;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ecfccb, #d9f99d);
}
.trust-badge:nth-child(2) .trust-badge-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.trust-badge:nth-child(3) .trust-badge-icon { background: linear-gradient(135deg, #ccfbf1, #99f6e4); }
.trust-badge:nth-child(4) .trust-badge-icon { background: linear-gradient(135deg, #dcfce7, #86efac); }
.trust-badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.trust-badge-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.trust-badge-sub {
  font-size: 0.78rem;
  color: var(--c-muted);
  font-weight: 600;
}

/* ═══════════ SEARCH HERO (на /search.php) ═══════════ */
.search-hero {
  position: relative;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 0;
  margin-bottom: 1rem;
  background: #050506;
  border: 1px solid rgba(198, 161, 91, 0.35);
  color: #f4efe6;
  overflow: hidden;
  box-shadow: none;
}
.search-hero::before { content: none; }
.search-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.search-hero h1 {
  font-size: 1.45rem;
  margin: 0 0 0.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: none;
  color: #f4efe6;
}
.search-hero .lead {
  font-size: 0.88rem;
  margin: 0 auto 0.55rem !important;
  color: #9a9186 !important;
  font-weight: 500;
}
.search-hero-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #000;
  padding: 0;
  border-radius: 0;
  border: 1px solid rgba(198, 161, 91, 0.35);
  box-shadow: none;
  max-width: 520px;
  margin: 0 auto;
}
.search-hero-icon {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--c-muted);
  flex-shrink: 0;
}
.search-hero-form input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.45rem 0.75rem;
  background: transparent;
  color: #f4efe6;
  min-width: 0;
}
.search-hero-form .btn {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
  line-height: 1.2;
  box-shadow: none;
}

.search-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: var(--grad-secondary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  margin-left: 0.4rem;
}

/* ═══════════ Категория плочки ═══════════ */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.25rem;
}
.cat-tile {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.7rem 0.6rem 1.55rem;
  text-align: center;
  text-decoration: none;
  color: var(--c-text);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .2s;
}
.cat-tile::after {
  content: "";
  position: absolute;
  bottom: -32px; right: -32px;
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(198,161,91,.28), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  transition: transform .35s ease;
}
.cat-tile > * { position: relative; z-index: 1; }
.cat-tile:nth-child(2n)::after { background: radial-gradient(circle, rgba(232,215,168,.18), transparent 70%); }
.cat-tile:nth-child(3n)::after { background: radial-gradient(circle, rgba(198,161,91,.22), transparent 70%); }
.cat-tile:nth-child(4n)::after { background: radial-gradient(circle, rgba(212,165,116,.24), transparent 70%); }
.cat-tile:nth-child(5n)::after { background: radial-gradient(circle, rgba(183,192,204,.18), transparent 70%); }
.cat-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.cat-tile:hover::after { transform: scale(1.4); }
.cat-em { font-size: 2.55rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.10)); }

/* ═══════════ Грид с продукти ═══════════ */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .2s;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-img {
  aspect-ratio: 3/4;
  background: #050506;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.65rem;
  box-sizing: border-box;
}
.badge-sale {
  position: absolute; top: 10px; left: 10px;
  background: var(--grad-primary);
  color: #fff; font-size: .72rem; font-weight: 800;
  padding: 0.25rem 0.65rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 0 4px 12px -2px var(--glow-brand);
}
.card-body { padding: 1.05rem 1.15rem 1.15rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.card-body h2 { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.4; color: var(--c-text); }
.price-row { margin-top: auto; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.price-old { text-decoration: line-through; color: var(--c-muted); font-size: 0.88rem; }
.price-new {
  font-weight: 800;
  color: var(--c-teal);
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

/* ═══════════ Section title ═══════════ */
.section-title {
  position: relative;
  margin: 2.25rem 0 1.15rem;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--c-text);
}
.section-title::before {
  content: "";
  width: 0.45rem;
  height: 1.4rem;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--c-aqua), var(--c-mint), var(--c-lilac));
  box-shadow: 0 4px 12px -2px rgba(56,189,248,.5);
}
.section-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 60px;
  margin-left: 0.2rem;
  background: linear-gradient(90deg, var(--c-accent), transparent);
  border-radius: 2px;
}

/* ═══════════ Buttons ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  background: #14161c;
  color: #f7f4ee;
  border: 1px solid rgba(198, 161, 91, 0.55);
  box-shadow: 0 10px 26px -12px rgba(198, 161, 91, 0.9), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  background: #1c2433;
  color: #fff;
  border-color: rgba(232, 196, 120, 0.8);
  box-shadow: 0 16px 32px -12px rgba(232, 196, 120, 0.95), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn:active { transform: translateY(0); }

.btn-secondary {
  background: #14161c;
  color: #f7f4ee;
  box-shadow: 0 10px 26px -12px rgba(198, 161, 91, 0.9), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-secondary:hover {
  background: #1c2433;
  color: #fff;
  box-shadow: 0 16px 32px -12px rgba(232, 196, 120, 0.95), inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn-ghost {
  background: #101114;
  color: #f7f4ee;
  border: 1px solid rgba(198, 161, 91, 0.4);
  box-shadow: 0 8px 20px -14px rgba(198, 161, 91, 0.75);
}
.btn-ghost:hover {
  background: #1c2433;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(232, 196, 120, 0.85);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.72rem; }
.btn-lg { padding: 0.95rem 1.85rem; font-size: 0.92rem; }

/* ═══════════ Forms ═══════════ */
form.stacked label, .stacked label {
  display: block;
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--c-text);
  font-size: 0.92rem;
}
form.stacked input, form.stacked select, form.stacked textarea,
.stacked input, .stacked select, .stacked textarea {
  width: 100%;
  max-width: 480px;
  padding: 0.7rem 0.85rem;
  margin-top: 0.3rem;
  border-radius: 0;
  border: 1px solid var(--c-border-strong);
  font-family: inherit;
  font-size: 1rem;
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
form.stacked input:hover, form.stacked select:hover, form.stacked textarea:hover,
.stacked input:hover, .stacked select:hover, .stacked textarea:hover {
  border-color: var(--c-muted);
}
form.stacked input:focus, form.stacked select:focus, form.stacked textarea:focus,
.stacked input:focus, .stacked select:focus, .stacked textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent);
  background: var(--c-surface);
}
.stacked label.check {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-weight: 600;
  margin-top: 0.85rem;
}
.stacked label.check input { width: auto; margin: 0; }

fieldset.invoice-fields {
  border: 1px dashed var(--c-border-strong);
  padding: 0.85rem 1.1rem 1.4rem;
  border-radius: 0;
  margin-top: 1.1rem;
  background: var(--c-surface-2);
}
fieldset.invoice-fields legend {
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0 0.4rem;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .row-2 { grid-template-columns: 1fr; }
}

/* ═══════════ Tables ═══════════ */
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}
table.data th, table.data td {
  padding: 0.8rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--c-divider);
}
table.data tbody tr:last-child th,
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background-color .15s ease; }
table.data tbody tr:hover { background: var(--c-surface-2); }
table.data th {
  background: var(--c-surface-3);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}
table.data .num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

.qty-input { width: 4.5rem; }

/* ═══════════ Flash ═══════════ */
.flash {
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
  font-weight: 600;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-xs);
}
.flash-error   { background: #2a1216; color: #fecdd3; border-color: #7f1d2d; }
.flash-success { background: #14120e; color: #e8d7a8; border-color: rgba(198, 161, 91, 0.45); }
.flash-info    { background: #121418; color: #d5e2ec; border-color: rgba(183, 192, 204, 0.35); }

/* ═══════════ Product detail ═══════════ */
.product-detail .product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}
@media (max-width: 800px) { .product-detail .product-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.product-img-wrap img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
}
.product-gallery { display: flex; flex-direction: column; gap: 0.85rem; }
.product-gallery-main img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 3 / 4; object-fit: contain; object-position: center;
  padding: 0.75rem; box-sizing: border-box;
  border-radius: var(--radius-lg);
  background: #050506;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  transition: opacity .2s ease;
}
.product-gallery-thumbs {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.product-gallery-thumb {
  flex: 0 0 auto;
  width: 72px; height: 96px;
  padding: 0; margin: 0;
  border: 2px solid var(--c-border);
  border-radius: 0;
  background: var(--c-surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.product-gallery-thumb img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #050506;
}
.product-gallery-thumb:hover { transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.product-gallery-thumb.is-active {
  border-color: var(--c-accent, #6366f1);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, .15);
}
.product-gallery-thumb:focus-visible {
  outline: 2px solid var(--c-accent, #6366f1);
  outline-offset: 2px;
}
.img-field { margin: 0 0 .5rem; }
.img-field img { display: block; margin-bottom: .35rem; }
.product-desc { margin: 0.85rem 0 1.4rem; white-space: pre-wrap; color: var(--c-text-soft); line-height: 1.7; }
.stock-row { font-size: 0.95rem; color: var(--c-muted); }
.add-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 1.25rem 1.4rem;
  border-radius: 0;
  box-shadow: var(--shadow-sm);
}
.product-detail a { color: var(--c-link); font-weight: 700; }

/* ── Product share buttons ── */
.product-share {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1.1rem; padding-top: 0.85rem;
  border-top: 1px dashed rgba(0,0,0,.08);
}
.product-share-label {
  font-size: 0.8rem; color: var(--c-muted); font-weight: 600; letter-spacing: .02em;
}
.product-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 0;
  color: #fff; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.product-share-btn svg { width: 18px; height: 18px; }
.product-share-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
  filter: brightness(1.08);
}
.product-share-btn:active { transform: scale(.96); }
.share-fb {
  background: linear-gradient(135deg, #4facfe 0%, #1877F2 100%);
  border: none; cursor: pointer; font: inherit;
}
.share-ig {
  background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  border: none; cursor: pointer; font: inherit;
}
.share-toast {
  font-size: 0.78rem; font-weight: 600; color: #16a34a;
  background: #14120e; border: 1px solid rgba(198, 161, 91, 0.45); color: #e8d7a8;
  padding: 0.3rem 0.7rem; border-radius: 8px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none; white-space: nowrap;
}
.share-toast.is-visible {
  opacity: 1; transform: translateY(0);
}

/* ═══════════ Profile ═══════════ */
.profile-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem;
}
@media (max-width: 760px) { .profile-grid { grid-template-columns: 1fr; } }
.card-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.addr-list {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.addr-list li {
  display: flex; gap: 1rem; justify-content: space-between; align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface-2);
}
.addr-add summary {
  cursor: pointer; padding: 0.65rem 0;
  font-weight: 700; color: var(--c-accent);
}
.badge {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px;
  background: #121214; color: #e8d7a8; font-size: 0.75rem; font-weight: 700; border: 1px solid rgba(198, 161, 91, 0.35);
  letter-spacing: 0.02em;
}

/* ═══════════ Lead / помощни ═══════════ */
.lead {
  font-size: 1.08rem;
  color: var(--c-text-soft);
  margin: 0 0 1.5rem;
  font-weight: 500;
  line-height: 1.65;
  max-width: 60ch;
}
.muted { color: var(--c-muted); font-size: 0.92rem; }

/* ═══════════ Empty state ═══════════ */
.empty-state {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: #121214;
  border: 1px dashed rgba(198, 161, 91, 0.35);
  border-radius: var(--radius-lg);
  margin-top: 0.5rem;
}
.empty-state-lg { padding: 3.25rem 1.5rem; }
.empty-state-icon { font-size: 3rem; margin-bottom: 0.6rem; opacity: .85; }
.empty-state p { margin: 0.3rem 0; }
.empty-state .muted { font-size: 0.92rem; color: var(--c-muted); }

/* ═══════════ Contact page ═══════════ */
.contact-hero {
  position: relative;
  border-radius: 0;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  background: #050506;
  border: 1px solid rgba(198, 161, 91, 0.35);
  color: #f4efe6;
  text-align: center;
  overflow: hidden;
  box-shadow: none;
}
.contact-hero::before { content: none; }
.contact-hero-bg { display: none; }
.contact-hero-inner { position: relative; z-index: 1; }
.contact-hero h1 {
  font-size: 1.45rem;
  margin: 0 0 0.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: none;
  color: #f4efe6;
}
.contact-hero p {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #9a9186;
  opacity: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.contact-card h2 {
  margin: 0 0 1.2rem;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.015em;
}
.contact-card.map-wrap { padding: 0; overflow: hidden; }
.contact-card.map-wrap .empty-state { margin: 1.5rem; }
.map-wrap iframe { display: block; width: 100%; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--c-divider);
}
.contact-row:last-of-type { border-bottom: 0; }
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 14px;
  font-size: 1.15rem;
  flex-shrink: 0;
  font-weight: 700;
}
.contact-link {
  color: var(--c-link);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color .15s ease;
}
.contact-link:hover { border-bottom-color: var(--c-link); }

.social-row {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--c-divider);
}
.social-pill {
  display: inline-block;
  padding: 0.5rem 1.05rem;
  border-radius: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: #fff;
  transition: transform .15s ease, box-shadow .2s ease;
}
.social-pill:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 8px 18px -4px rgba(0,0,0,.25); }
.social-fb { background: linear-gradient(135deg, #1877f2, #4267b2); }
.social-ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.social-tt { background: linear-gradient(135deg, #25f4ee, #000, #fe2c55); }

/* ═══════════ Footer ═══════════ */
.site-footer {
  position: relative;
  background: #050506;
  color: #cbd5e1;
  margin-top: auto;
  padding: 2.75rem 0 1.25rem;
  font-size: 0.93rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, #c6a15b, transparent);
}
.site-footer h3 {
  color: #fff; margin: 0 0 0.7rem;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.site-footer p { margin: 0.4rem 0; }
.site-footer a { color: #cbd5e1; text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.footer-bottom {
  border-top: 1px solid rgba(243,234,215,.12);
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ═══════════ Legal pages ═══════════ */
.legal-hero {
  position: relative;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 0;
  margin-bottom: 1.25rem;
  color: #f4efe6;
  overflow: hidden;
  background: #050506;
  border: 1px solid rgba(198, 161, 91, 0.35);
  box-shadow: none;
}
.legal-hero-icon {
  font-size: 1.05rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  filter: none;
}
.legal-hero h1 {
  margin: 0 0 0.2rem;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: none;
  color: #f4efe6;
}
.legal-hero-sub {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #9a9186;
  opacity: 1;
}
.legal-hero::before { content: none; }

.legal-hero-terms,
.legal-hero-privacy,
.legal-hero-shipping,
.legal-hero-about,
.legal-hero-404 { background: #050506; }

article.legal {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem 2.5rem;
  max-width: 920px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
article.legal h1, article.legal h2 { line-height: 1.3; }
article.legal h2 {
  margin: 1.85rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.015em;
  padding-left: 0.9rem;
  border-left: 4px solid var(--c-accent);
}
article.legal h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
}
article.legal p, article.legal li { color: var(--c-text-soft); }
article.legal ul { padding-left: 1.4rem; }
article.legal li { margin: 0.35rem 0; }
article.legal code {
  background: var(--c-surface-3);
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  font-size: .92em;
  color: var(--c-text);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
article.legal a { color: var(--c-link); font-weight: 600; }
.legal-updated {
  margin-top: 1.85rem; padding-top: 1.1rem;
  border-top: 1px dashed var(--c-divider);
  color: var(--c-muted-2); font-size: 0.92rem; text-align: right;
}

@media (max-width: 640px) {
  article.legal { padding: 1.5rem 1.3rem; border-radius: var(--radius); }
}

/* ─── Доставка и плащане grid ─── */
.ship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 0.5rem 0 1rem;
}
.ship-card {
  background: linear-gradient(160deg, var(--c-surface) 0%, var(--c-surface-2) 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.55rem;
  box-shadow: var(--shadow-xs);
}
.ship-card h3 { margin: 0.65rem 0 0.7rem; font-size: 1.1rem; }
.ship-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 16px;
  font-size: 1.35rem;
}
.ship-card p { margin: 0.4rem 0; }
.ship-price {
  font-weight: 800;
  color: var(--c-teal);
  font-size: 1.12rem;
}
.pay-list { list-style: none; padding: 0; margin: 0; }
.pay-list li {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--c-divider);
  color: var(--c-text-soft);
  font-size: 0.95rem;
}
.pay-list li:last-child { border-bottom: 0; }
.pay-pill {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.pay-cod  { background: linear-gradient(135deg, #f59e0b, #b45309); }
.pay-bank { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.pay-epay { background: linear-gradient(135deg, #6366f1, #4338ca); }

/* ═══════════ Smooth fade-in за грид-овете ═══════════ */
.grid-products > .card,
.cat-tiles > .cat-tile {
  animation: fadeUp .5s ease both;
}
.grid-products > .card:nth-child(2)  { animation-delay: .04s; }
.grid-products > .card:nth-child(3)  { animation-delay: .08s; }
.grid-products > .card:nth-child(4)  { animation-delay: .12s; }
.grid-products > .card:nth-child(5)  { animation-delay: .16s; }
.grid-products > .card:nth-child(6)  { animation-delay: .20s; }
.grid-products > .card:nth-child(7)  { animation-delay: .24s; }
.grid-products > .card:nth-child(8)  { animation-delay: .28s; }
.cat-tiles > .cat-tile:nth-child(2) { animation-delay: .04s; }
.cat-tiles > .cat-tile:nth-child(3) { animation-delay: .08s; }
.cat-tiles > .cat-tile:nth-child(4) { animation-delay: .12s; }
.cat-tiles > .cat-tile:nth-child(5) { animation-delay: .16s; }
.cat-tiles > .cat-tile:nth-child(6) { animation-delay: .20s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════
   PREMIUM POLISH — допълнителни „wow" детайли v2
   ═══════════════════════════════════════════════════════════════════════ */

/* ---- Hero v2 — фин noise overlay за премиум усещане ---- */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .55;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---- Glow halo на големите бутони при hover ---- */
.btn-lg {
  position: relative;
  isolation: isolate;
}
.btn-lg::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: inherit;
  background: var(--grad-primary);
  filter: blur(14px);
  opacity: 0;
  transition: opacity .35s ease;
}
.btn-secondary.btn-lg::before { background: var(--grad-secondary); }
.btn-lg:hover::before { opacity: .55; }

/* ---- Stats / brand row — анимирана маркизна лента под trust badges ---- */
.brand-strip {
  margin: 2rem 0 2.5rem;
  padding: 1rem 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.brand-strip::before, .brand-strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.brand-strip::before { left: 0; background: linear-gradient(90deg, #0f172a, transparent); }
.brand-strip::after  { right: 0; background: linear-gradient(-90deg, #0f172a, transparent); }
.brand-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  animation: brandScroll 28s linear infinite;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.brand-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 .25rem;
  color: rgba(255,255,255,.85);
}
.brand-track span em {
  font-style: normal;
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
@keyframes brandScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brand-strip:hover .brand-track { animation-play-state: paused; }

/* ---- Newsletter / call-out лента ---- */
.newsletter-band {
  margin: 2rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: 0;
  background: #050506;
  border: 1px solid rgba(198, 161, 91, 0.35);
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1.25rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter-band::before { content: none; }
.newsletter-band h3 {
  margin: 0 0 0.15rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: none;
  color: #f4efe6;
  animation: none;
}
.newsletter-band p {
  margin: 0;
  color: #9a9186;
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 38rem;
}
.newsletter-form {
  display: flex;
  gap: 0;
  align-items: stretch;
  flex-wrap: nowrap;
}
.newsletter-form input {
  padding: 0.45rem 0.75rem;
  border-radius: 0;
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-right: 0;
  background: #000;
  color: #f4efe6;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  min-width: 14rem;
  box-shadow: none;
  transition: border-color .2s;
}
.newsletter-form input::placeholder { color: #6f675e; }
.newsletter-form .btn {
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
  line-height: 1.2;
  box-shadow: none;
}
.newsletter-form .btn-lg::before { content: none; }
.newsletter-form input:focus-visible {
  outline: 0;
  border-color: #c6a15b;
  box-shadow: inset 0 -1px 0 #c6a15b;
}
@media (max-width: 720px) {
  .newsletter-band {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0.85rem 0.9rem;
  }
  .newsletter-form { justify-content: center; }
  .newsletter-form input { min-width: 0; flex: 1 1 10rem; }
}

/* ---- Scroll-to-top floating button ---- */
.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: var(--grad-primary);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(22,163,74,.12);
  opacity: 0;
  transform: translateY(20px) scale(.8);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  z-index: 80;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top:hover {
  box-shadow: var(--shadow-lg), 0 0 0 10px rgba(22,163,74,.16);
  transform: translateY(-3px) scale(1.05);
}
.scroll-top:focus-visible {
  outline: 0;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(22,163,74,.12), 0 0 0 12px rgba(94,234,212,.28);
}

/* ---- Section title — добавяме спаркъл преди текста ---- */
.section-title { position: relative; }
.section-title.has-sparkle::before {
  content: none;
  animation: none;
}
@keyframes sparklePulse {
  0%, 100% { transform: scale(1) rotate(0); opacity: .9; }
  50%      { transform: scale(1.2) rotate(20deg); opacity: 1; }
}

/* ---- Картинките в продукт-картите — фин zoom при hover ---- */
.card .product-thumb,
.grid-products .card a > img,
.grid-products .card .thumb {
  overflow: hidden;
}
.grid-products .card img,
.grid-products .card .thumb img {
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}
.grid-products .card:hover img {
  transform: scale(1.06);
}

/* ---- Trust badges — премиум шифт + цветни акценти на иконите ---- */
.trust-badge {
  position: relative;
  overflow: hidden;
}
.trust-badge::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad-primary);
  z-index: -1;
  opacity: 0;
  transition: opacity .25s ease;
  filter: blur(12px);
}
.trust-badge:hover::after { opacity: .25; }
.trust-badge:nth-child(2):hover::after { background: var(--grad-mint); }
.trust-badge:nth-child(3):hover::after { background: var(--grad-secondary); }
.trust-badge:nth-child(4):hover::after { background: var(--grad-lilac); }

/* ---- Hero bottom — soft scallop разделител ---- */
.hero-wave {
  display: block;
  margin: -2.5rem 0 2rem;
  width: 100%;
  height: 36px;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════════════════ */
body.admin-body {
  background: var(--c-surface-3);
  background-image: none;
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.admin-side {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #cbd5e1;
  padding: 1.1rem 0.8rem;
  display: flex;
  flex-direction: column;
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #1e293b;
}
.admin-brand a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 0.55rem 0.8rem 1.3rem;
  border-bottom: 1px solid #1e293b;
}
.admin-brand strong { display: block; font-size: 1.08rem; letter-spacing: -0.01em; }
.admin-brand span { display: block; font-size: 0.75rem; color: #94a3b8; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.15rem; }
.admin-nav { display: flex; flex-direction: column; gap: 0.18rem; padding-top: 0.85rem; }
.admin-nav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.6rem 0.85rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.93rem;
  transition: background-color .15s ease, color .15s ease;
}
.admin-nav a:hover { background: #1e293b; color: #fff; }
.admin-nav a.active {
  background: linear-gradient(135deg, #e8d7a8, #a6843f);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(34,197,94,.55);
}

/* ─── Размери в product card (малки pill-ове под цена) ─── */
.card-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.55rem;
  align-items: center;
  font-size: 0.78rem;
}
.card-sizes-label {
  color: var(--c-muted, #64748b);
  font-weight: 600;
  margin-right: 0.1rem;
}
.card-size-pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  background: var(--c-accent-soft, #dcfce7);
  color: var(--c-emerald-2, #16a34a);
  font-weight: 700;
  border: 1px solid rgba(22, 163, 74, 0.18);
}
.card-size-pill.is-out {
  opacity: 0.4;
  text-decoration: line-through;
  background: #121214;
  color: #9a9186;
  border-color: #e2e8f0;
}

/* ─── Size picker (chip-ове за размери на обувки/дрехи) ─── */
.size-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.2rem 0 0.4rem;
}
.size-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.55rem 0.85rem;
  border: 2px solid var(--c-border-strong, #cbd5e1);
  border-radius: 0;
  background: var(--c-surface);
  color: var(--c-text, #0f172a);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: all .15s ease;
}
.size-chip input { position: absolute; opacity: 0; pointer-events: none; }
.size-chip:hover:not(.is-out) {
  border-color: var(--c-emerald, #22c55e);
  background: var(--c-accent-soft, #dcfce7);
  transform: translateY(-1px);
}
.size-chip:has(input:checked) {
  border-color: var(--c-emerald-2, #16a34a);
  background: linear-gradient(135deg, #4ade80, #16a34a);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(22, 163, 74, .55);
}
.size-chip.is-out {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #121214;
  color: #9a9186;
}
.size-help {
  color: var(--c-muted, #64748b);
  font-size: 0.86rem;
  margin: 0.2rem 0 0.6rem;
}

/* „Поръчки“ — винаги откроен с топъл amber/коралов акцент,
   за да привлича внимание към най-важния таб в админа */
.admin-nav a.nav-orders {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(234, 88, 12, .55), inset 0 1px 0 rgba(255,255,255,.18);
  position: relative;
}
.admin-nav a.nav-orders:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(234, 88, 12, .65), inset 0 1px 0 rgba(255,255,255,.25);
}
.admin-nav a.nav-orders.active {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #dc2626 100%);
  box-shadow: 0 6px 18px -4px rgba(220, 38, 38, .55), inset 0 1px 0 rgba(255,255,255,.25);
}
.admin-nav hr { border: 0; border-top: 1px solid #1e293b; margin: 0.6rem 0; }
.admin-user { margin-top: auto; font-size: 0.78rem; color: #64748b; padding: 0.6rem 0.85rem; }
.admin-user a { color: #e2e8f0; text-decoration: none; }
.admin-user a:hover { color: #fff; text-decoration: underline; }

.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 0.85rem 1.4rem;
  display: flex; align-items: center; gap: 0.85rem;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-xs);
}
.admin-page-title { margin: 0; font-size: 1.18rem; font-weight: 800; letter-spacing: -0.015em; }
.side-toggle {
  display: none; background: #0f172a; color: #fff;
  border: 0; padding: 0.5rem 0.8rem; border-radius: 0;
  cursor: pointer; font-size: 1.1rem;
}

.admin-wrap { padding: 1.4rem 1.6rem 3rem; max-width: 1320px; }
.admin-form { max-width: 720px; }

@media (max-width: 900px) {
  body.admin-body { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed; top: 0; left: 0; height: 100vh; width: 248px; z-index: 200;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,.25);
  }
  .admin-side.open { transform: translateX(0); }
  .side-toggle { display: inline-block; }
}

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.kpi {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-label {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--c-muted); font-weight: 700;
}
.kpi-value {
  font-size: 1.7rem; font-weight: 800; margin-top: 0.3rem;
  color: var(--c-text); letter-spacing: -0.02em;
}
.kpi.warn { border-color: rgba(198, 161, 91, 0.55); background: #1a160e; color: #f4efe6; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-grid h2 { font-size: 1.1rem; margin: 0 0 0.7rem; }

/* Tabs */
.tabs {
  display: flex; gap: 0.25rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tabs a {
  padding: 0.7rem 1.05rem;
  text-decoration: none;
  color: var(--c-muted);
  font-weight: 700;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.tabs a:hover { color: var(--c-text); }
.tabs a.active { color: var(--c-accent); border-bottom-color: var(--c-accent); }

/* Theme picker (admin appearance) */
.theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}
.theme-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  border: 2px solid var(--c-border);
  border-radius: 0;
  background: var(--c-surface);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.theme-card:hover {
  border-color: var(--c-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.theme-card.is-active,
.theme-card:has(input:checked) {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-swatches {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}
.theme-swatches i {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.theme-card strong { font-size: 0.98rem; color: var(--c-text); }
.theme-desc { font-size: 0.8rem; color: var(--c-muted); line-height: 1.35; }

/* Filter bar */
.filter-bar {
  display: flex; gap: 0.55rem; flex-wrap: wrap;
  margin-bottom: 1.4rem; align-items: center;
  padding: 0.85rem 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 0;
  box-shadow: var(--shadow-xs);
}
.filter-bar input, .filter-bar select {
  padding: 0.55rem 0.75rem;
  border-radius: 0;
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.filter-bar input:focus, .filter-bar select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent);
}
.filter-bar input[type="search"] { min-width: 240px; flex: 1; max-width: 360px; }

/* Status pills */
.status {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-new        { background: #12141c; color: #d5e2ec; border: 1px solid rgba(183, 192, 204, 0.28); }
.status-processing { background: #1a160e; color: #e8d7a8; border: 1px solid rgba(198, 161, 91, 0.4); }
.status-shipped    { background: #121418; color: #d5e2ec; border: 1px solid rgba(183, 192, 204, 0.28); }
.status-completed  { background: #14120e; color: #e8d7a8; border: 1px solid rgba(198, 161, 91, 0.4); }
.status-cancelled  { background: #2a1216; color: #fecdd3; border: 1px solid #7f1d2d; }

.actions-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.4rem; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }

/* Admin login */
body.admin-login {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #8b5cf6 100%);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background-image: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #8b5cf6 100%);
  position: relative;
}
body.admin-login::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.18), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.12), transparent 35%);
  pointer-events: none;
}
.login-card {
  position: relative;
  background: var(--c-surface);
  padding: 2.25rem;
  border-radius: 0;
  border: 1px solid rgba(198, 161, 91, 0.35);
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .35);
  max-width: 420px;
  width: 90%;
}
.login-card h1 { margin: 0 0 1.1rem; letter-spacing: -0.02em; }

/* ───────────── Admin extras: куриери / офиси / maintenance ───────────── */
.btn-mini {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.82rem;
  background: #121214;
  color: #f4efe6;
  border-radius: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  margin-left: 0.2rem;
  transition: background 0.15s;
}
.btn-mini:hover { background: #1a1a1e; color: #f4efe6; }
.btn-danger {
  background: #3a151c;
  color: #ffe4e8;
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 10px 26px -12px rgba(244, 63, 94, 0.7);
}
.btn-danger:hover { background: #4c1a24; color: #fff; }
.row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  align-items: center;
  white-space: nowrap;
}
.row-actions form { display: inline-flex; margin: 0; }
.row-actions .btn-mini { margin-left: 0; }
table.data td.actions-cell {
  width: 1%;
  white-space: nowrap;
  padding-right: 0.7rem;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border-radius: 0;
  border: 1px solid #cbd5e1;
  background: #121214;
  color: #f4efe6;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: #1a1a1e; color: #e8d7a8; }
.link-btn {
  background: transparent;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
}
.link-btn:hover { color: #991b1b; }

/* Delivery tabs в checkout */
.delivery-tab {
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.delivery-tab:hover { transform: translateY(-1px); }
.delivery-tab input[type="radio"] { accent-color: #0f172a; }

#office-select option { padding: 0.3rem 0.5rem; }
#office-select optgroup { font-weight: 700; color: #f4efe6; padding-top: 0.3rem; }
#office-filter {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  font-size: 0.95rem;
}

/* Office view tabs (Map / List) */
.office-view-btn {
  background: #121214;
  color: #f4efe6;
  border: 1px solid rgba(243, 234, 215, 0.22);
  padding: 0.45rem 0.9rem;
  border-radius: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: #f4efe6;
  transition: all 0.15s;
}
.office-view-btn:hover { background: #1a1a1e; color: #f4efe6; }
.office-view-btn.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* Leaflet popup match site styling */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
}
.leaflet-popup-content {
  margin: 12px 14px;
  font-family: inherit;
}
.select-this-office:hover {
  background: #1e293b !important;
}

/* Noir atelier extras */
h1, h2, h3, .section-title, .logo-text, .legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.logo-text { letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.55rem; }
.card-stock {
  margin: 0.15rem 0 0;
  color: var(--c-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.free-ship-note { color: var(--c-accent); font-weight: 700; }
.stock-row { letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.86rem; color: var(--c-muted); }
.stock-row strong { color: var(--c-accent); font-weight: 700; }
.site-header { border-bottom-color: rgba(198,161,91,.22); }
.promo-strip { border-bottom: 1px solid rgba(198,161,91,.35); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }
.btn,
.btn-secondary,
.btn-ghost,
.header-search-btn,
a.cart-link,
.btn-mini,
.icon-btn,
.office-view-btn,
.nav-toggle,
.side-toggle {
  background: #14161c;
  color: #f7f4ee;
  border: 1px solid rgba(198, 161, 91, 0.55);
  box-shadow: 0 10px 26px -12px rgba(198, 161, 91, 0.9), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.header-search-btn:hover,
a.cart-link:hover,
.btn-mini:hover,
.icon-btn:hover,
.office-view-btn:hover,
.nav-toggle:hover,
.side-toggle:hover {
  background: #1c2433;
  color: #fff;
  border-color: rgba(232, 196, 120, 0.8);
  box-shadow: 0 16px 32px -12px rgba(232, 196, 120, 0.95), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-danger,
.btn-danger:hover {
  color: #ffe4e8;
  background: #3a151c;
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 10px 26px -12px rgba(244, 63, 94, 0.7), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-danger:hover {
  background: #4c1a24;
  border-color: rgba(251, 113, 133, 0.7);
  box-shadow: 0 16px 32px -12px rgba(244, 63, 94, 0.85), inset 0 1px 0 rgba(255,255,255,0.12);
}
.cart-badge { background: #1a140c; color: var(--c-accent); }
body.admin-body { background: #0c0c0e; color: #f4efe6; }
.admin-topbar { background: #121214; color: #f4efe6; border-bottom-color: rgba(243,234,215,.1); }
.admin-page-title { color: #f4efe6; }
.kpi { background: #16161a; }
.admin-nav a.active { color: #1a140c; }
.admin-wrap .flash-error { background: #3a151c !important; color: #fecdd3 !important; }

/* Правоъгълни бутони, форми и полета — фронтенд и админ */
button,
.btn,
.btn-mini,
.icon-btn,
.nav-toggle,
.side-toggle,
.header-search,
.header-search-btn,
.search-hero-form,
.newsletter-form,
.newsletter-form input,
.add-form,
.filter-bar,
.login-card,
fieldset,
.delivery-tab,
.office-view-btn,
.product-share-btn,
.product-gallery-thumb,
.size-chip,
.pagination .pag-num,
.pagination .pag-link,
.social-pill,
a.cart-link,
.main-nav a,
.admin-nav a,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
select,
textarea {
  border-radius: 0 !important;
}

.delivery-tab {
  border: 1px solid rgba(243, 234, 215, 0.22);
  padding: 1rem;
  cursor: pointer;
  background: #121214;
  color: #f4efe6;
}
.delivery-tab:has(input:checked) {
  border-color: #c6a15b;
  box-shadow: inset 3px 0 0 #c6a15b;
}
.delivery-tab strong { letter-spacing: 0.04em; }

#office-map { border-radius: 0; }
.leaflet-popup-content-wrapper,
.leaflet-popup-tip { border-radius: 0; }

form.stacked input,
form.stacked select,
form.stacked textarea,
.stacked input,
.stacked select,
.stacked textarea,
.filter-bar input,
.filter-bar select,
#office-filter,
.newsletter-form input {
  background: #0e0e10;
  border-color: rgba(198, 161, 91, 0.28);
}
form.stacked input:focus,
form.stacked select:focus,
form.stacked textarea:focus,
.stacked input:focus,
.stacked select:focus,
.stacked textarea:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.newsletter-form input:focus,
.newsletter-form input:focus-visible,
.header-search:focus-within {
  border-color: #c6a15b;
  box-shadow: inset 0 -1px 0 #c6a15b;
}

.newsletter-band {
  background: #050506;
  padding: 0.85rem 1.1rem;
}
.newsletter-form input {
  background: #000;
  color: #f4efe6;
  padding: 0.45rem 0.75rem;
  min-height: 0;
}

.trust-badge-icon,
.trust-badge:nth-child(2) .trust-badge-icon,
.trust-badge:nth-child(3) .trust-badge-icon,
.trust-badge:nth-child(4) .trust-badge-icon {
  background: #1a160e;
  color: #e8d7a8;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #f4efe6;
  caret-color: #f4efe6;
  box-shadow: 0 0 0 1000px #0e0e10 inset;
  transition: background-color 9999s ease-out;
}

.leaflet-container,
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #121214;
  color: #f4efe6;
}
.leaflet-popup-content-wrapper { border: 1px solid rgba(198, 161, 91, 0.35); }

/* Админ — бутоните на една линия и с еднаква височина */
body.admin-body,
body.admin-body .btn,
body.admin-body .btn-mini,
body.admin-body .icon-btn,
body.admin-body .filter-bar input,
body.admin-body .filter-bar select,
body.admin-body .actions-row select {
  box-sizing: border-box;
}
body.admin-body .admin-nav {
  gap: 0.08rem;
  padding-top: 0.35rem;
}
body.admin-body .admin-brand a { padding: 0.35rem 0.75rem 0.7rem; }
body.admin-body .admin-nav a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding: 0.32rem 0.75rem;
  font-size: 0.86rem;
  line-height: 1.25;
}
body.admin-body .admin-nav hr { margin: 0.35rem 0; }
body.admin-body .admin-user { padding: 0.4rem 0.75rem; }
body.admin-body .admin-nav a.nav-orders,
body.admin-body .admin-nav a.nav-orders:hover,
body.admin-body .admin-nav a.active {
  transform: none;
}
body.admin-body .actions-row,
body.admin-body .filter-bar,
body.admin-body .actions-row > div,
body.admin-body .row-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
}
body.admin-body .actions-row { margin-bottom: 1rem; }
body.admin-body .actions-row > .filter-bar {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.admin-body .filter-bar { margin-bottom: 1rem; }
body.admin-body .actions-row > .filter-bar { margin-bottom: 0; }
body.admin-body .btn,
body.admin-body .btn-secondary,
body.admin-body .btn-ghost,
body.admin-body .btn-mini,
body.admin-body .filter-bar input,
body.admin-body .filter-bar select,
body.admin-body .actions-row select {
  height: 2.6rem;
  min-height: 2.6rem;
  margin: 0;
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}
body.admin-body .filter-bar input,
body.admin-body .filter-bar select,
body.admin-body .actions-row select {
  justify-content: flex-start;
}
body.admin-body .filter-bar input[type="search"] {
  min-width: 0;
  flex: 1 1 10rem;
  max-width: none;
}
body.admin-body .icon-btn {
  width: 2.6rem;
  height: 2.6rem;
  min-height: 2.6rem;
  padding: 0;
  margin: 0;
}
body.admin-body table.data td { vertical-align: middle; }
body.admin-body table.data td .btn { min-width: 8.2rem; }
@media (max-width: 900px) {
  body.admin-body .actions-row,
  body.admin-body .filter-bar { flex-wrap: wrap; }
}

/* Начална — вход и категории без символи */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: -1.6rem calc(50% - 50vw) 3.2rem;
  padding: 5.4rem 1.5rem 4.8rem;
  text-align: center;
  background: #050506 url("../img/hero-hand.jpg") 32% center / cover no-repeat;
  border-bottom: 1px solid rgba(198, 161, 91, 0.35);
}
.home-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% center;
  pointer-events: none;
}
.home-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.42), rgba(5, 5, 6, 0.28) 42%, rgba(5, 5, 6, 0.58));
  pointer-events: none;
}
.home-hero > :not(.home-hero-video):not(.home-hero-shade) {
  position: relative;
  z-index: 2;
}
.home-kicker {
  margin: 0 0 0.85rem;
  color: #e8d7a8;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.home-hero h1 {
  margin: 0;
  color: #f7f4ee;
  font-size: clamp(3.4rem, 10vw, 7.2rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.75);
}
.home-lead {
  margin: 1.15rem auto 0;
  max-width: 28rem;
  color: #cfc6b8;
  font-size: 1.05rem;
  font-weight: 500;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}
.home-hero .btn { margin-top: 1.7rem; }
@media (prefers-reduced-motion: reduce) {
  .home-hero-video { display: none; }
}

.section-title {
  margin: 2.4rem 0 1.2rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.section-title::before,
.section-title.has-sparkle::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  margin-right: 0.15rem;
  border-radius: 0;
  background: #c6a15b;
  box-shadow: none;
  animation: none;
}
.section-title::after { content: none; }

.cat-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0.5rem;
  border-top: 1px solid rgba(198, 161, 91, 0.35);
}
.cat-tile {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(198, 161, 91, 0.35);
  border-right: 1px solid rgba(198, 161, 91, 0.28);
  border-radius: 0;
  box-shadow: none;
  padding: 1.7rem 1.1rem 1.45rem;
  text-align: left;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 7.5rem;
}
.cat-tile:nth-child(3n) { border-right: 0; }
.cat-tile::after { content: none; }
.cat-name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}
.cat-tile:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(198, 161, 91, 0.35);
  color: #e8d7a8;
}
.cart-icon { display: inline-flex; }
.cart-icon svg { display: block; }

@media (max-width: 720px) {
  .home-hero { padding: 3.6rem 1.15rem 3.2rem; }
  .cat-tiles { grid-template-columns: 1fr; }
  .cat-tile,
  .cat-tile:nth-child(3n) { border-right: 0; min-height: 0; }
}
