/* ============================================================
   P84 Racing Gear Shop — Hero
   Vanilla CSS · desktop-first · premium light UI
   ============================================================ */

:root {
  /* brand palette (from logo) */
  --violet-deep: #2c0f52;
  --violet:      #5b2a9e;
  --purple:      #8a3fd6;
  --magenta:     #e5269b;
  --pink:        #ff52b8;
  --gold:        #ffc83d;

  --ink:        #1d0f33;
  --ink-soft:   #6a5b82;

  /* themeable full-page surface (overridden per data-theme) */
  --bg-top:    #ffffff;
  --bg-bot:    #f1ecf9;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1480px;
}

/* per-product full background tints */
body[data-theme="white"]  { --bg-top: #ffffff; --bg-bot: #efe8f8; }
body[data-theme="pink"]   { --bg-top: #ede5ff; --bg-bot: #c8b0f0; }
body[data-theme="violet"] { --bg-top: #f4eeff; --bg-bot: #ddccf8; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg-bot);
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background-color .9s var(--ease);
  -webkit-font-smoothing: antialiased;
}

/* fine grain to kill the flat-AI look */
.grain {
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===================== HEADER ===================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  /* respect the iOS notch / status-bar safe area at the top */
  padding: 0 clamp(20px, 3vw, 48px);
  padding-top: env(safe-area-inset-top, 0px);
  pointer-events: none;
  transition: padding 0.45s var(--ease);
}

.header--scrolled { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }

.header__card {
  pointer-events: auto;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 0 10px;
  border-radius: 0px;
  position: relative;
  isolation: isolate;
  transition:
    padding 0.45s var(--ease),
    border-radius 0.45s var(--ease);
}

/* glass pill effect lives on ::before so backdrop-filter never makes
   header__card a containing-block for its position:fixed children (.nav) */
.header__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 6px 28px rgba(44, 15, 82, .10),
    0 1px 6px rgba(44, 15, 82, .06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease),
    border-radius 0.45s var(--ease);
}

.header--scrolled .header__card {
  padding: 7px 28px;
  border-radius: 20px;
}

.header--scrolled .header__card::before {
  opacity: 1;
  border-radius: 20px;
}

.brand { justify-self: start; display: inline-flex; }
.brand__logo {
  height: 56px; width: auto; display: block;
  filter: drop-shadow(0 8px 24px rgba(44, 15, 82, .32));
  transition: transform .5s var(--ease);
}
.brand:hover .brand__logo { transform: scale(1.03); }

/* minimal centered nav, like the reference */
.nav {
  justify-self: center;
  display: flex;
  gap: clamp(22px, 2.6vw, 46px);
}
.nav__link {
  position: relative;
  font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--violet-deep);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  opacity: .82;
  text-shadow: 0 2px 8px rgba(44, 15, 82, .18);
  background: transparent;
  transition:
    font-size .35s var(--ease),
    color .35s var(--ease),
    background .35s var(--ease),
    opacity .35s var(--ease),
    padding .35s var(--ease),
    box-shadow .35s var(--ease);
}
.nav__link:hover {
  font-size: 14.5px;
  padding: 7px 14px;
  opacity: 1;
  color: var(--purple);
  background: rgba(138, 63, 214, .10);
  box-shadow: 0 2px 14px rgba(138, 63, 214, .15);
  text-shadow: 0 2px 10px rgba(138, 63, 214, .25);
}

.actions { justify-self: end; display: flex; gap: 18px; }
.icon-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: none; background: none;
  color: var(--violet-deep);
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(44, 15, 82, .18));
  transition: transform .35s var(--ease), color .35s var(--ease), filter .35s var(--ease);
}
.icon-btn svg { width: 23px; height: 23px; }
.icon-btn:hover { color: var(--magenta); transform: translateY(-2px); }
.icon-btn:active { transform: scale(.92); }

/* burger — hidden on desktop, shown on mobile */
.burger {
  display: none;
  width: 34px; height: 34px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  border: none; background: none; cursor: pointer;
}
.burger span {
  display: block; width: 23px; height: 2px;
  border-radius: 2px; background: var(--violet-deep);
  transition: transform .35s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 92px 0 4px;
  text-align: center;
}

/* subtle speed streaks — hidden */
.hero__streaks { display: none; }

/* background brand image */
.hero__bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1200px, 92vw);
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: .50;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---- stage / carousel ---- */
.stage {
  position: relative;
  width: 100%;
  height: clamp(200px, 30vh, 360px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

.product {
  position: absolute;
  top: 50%; left: 50%;
  will-change: transform, opacity;
  transition:
    transform .9s var(--ease),
    opacity .7s var(--ease),
    filter .7s var(--ease);
  cursor: pointer;
}
.product__media {
  display: block;
  background: #fff;
  border-radius: 28px;
  padding: clamp(18px, 2.4vw, 34px);
  box-shadow:
    0 26px 64px rgba(20, 5, 46, .32),
    0 6px 18px rgba(20, 5, 46, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .6);
}
/* height drives the size (absolute length → every product is equal height) */
.product img,
.product svg.ph {
  display: block;
  height: clamp(340px, 52vh, 560px);
  width: auto;
  object-fit: contain;
  border-radius: 14px;
  user-select: none; -webkit-user-drag: none;
}

/* roles — wide spread, like the reference */
.product[data-role="center"] {
  transform: translate(-50%, -50%) scale(1.22);
  opacity: 1; filter: none; z-index: 3;
}
.product[data-role="left"] {
  transform: translate(calc(-50% - 33vw), -50%) scale(.66);
  opacity: .9; z-index: 2;
}
.product[data-role="right"] {
  transform: translate(calc(-50% + 33vw), -50%) scale(.66);
  opacity: .9; z-index: 2;
}
.product[data-role="hidden"] {
  transform: translate(-50%, -50%) scale(.45);
  opacity: 0; filter: blur(6px); z-index: 1; pointer-events: none;
}
.product[data-role="left"]:hover,
.product[data-role="right"]:hover { opacity: 1; }
.product[data-role="left"]:hover  { transform: translate(calc(-50% - 33vw), -52%) scale(.68); }
.product[data-role="right"]:hover { transform: translate(calc(-50% + 33vw), -52%) scale(.68); }

/* gentle idle float on the hero product */
.product[data-role="center"] .product__media { animation: productFloat 6s ease-in-out infinite; }
@keyframes productFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ---- switcher: arrow — name/price — arrow ---- */
.switcher {
  position: relative; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(30px, 5.5vw, 84px);
  margin-top: clamp(8px, 2.5vh, 30px);
}
.switcher__info { display: flex; flex-direction: column; align-items: center; min-width: clamp(220px, 26vw, 340px); height: 80px; justify-content: center; overflow: hidden; }

.arrow {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--violet-deep);
  background: transparent;
  border: 1px solid rgba(44, 15, 82, 0.28);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(44, 15, 82, .14);
  transition: transform .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.arrow svg { width: 18px; height: 18px; }
.arrow:hover { color: var(--magenta); border-color: rgba(229, 38, 155, 0.5); box-shadow: 0 6px 22px rgba(229, 38, 155, .22); }
.arrow:active { transform: scale(.92); }

.meta__name {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 21px);
  line-height: 1.25;
  letter-spacing: .26em;
  text-indent: .26em;
  color: var(--violet-deep);
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(44, 15, 82, .20);
}
.meta__price {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  letter-spacing: .18em;
  text-indent: .18em;
  margin-top: 13px;
  color: var(--violet);
  text-shadow: 0 3px 10px rgba(91, 42, 158, .18);
}
.meta__price::after { content: " ₴"; opacity: .65; }

/* meta swap animation */
.meta__name, .meta__price {
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}
.switcher__info.is-swapping .meta__name,
.switcher__info.is-swapping .meta__price {
  opacity: 0; transform: translateY(10px);
}

.cta {
  margin-top: clamp(18px, 2.4vh, 26px);
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--violet-deep);
  box-shadow: 0 8px 28px rgba(44, 15, 82, .30), 0 2px 8px rgba(44, 15, 82, .16);
  transition: transform .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.cta svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.cta:hover { background: var(--violet); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(44, 15, 82, .36), 0 4px 12px rgba(44, 15, 82, .18); }
.cta:hover svg { transform: translateX(3px); }
.cta:active { transform: translateY(0) scale(.98); }

/* dots */
.dots { display: flex; gap: 9px; margin-top: 20px; }
.dots button {
  width: 7px; height: 7px; padding: 0;
  border: none; border-radius: 999px;
  background: rgba(44, 15, 82, 0.22);
  cursor: pointer;
  transition: width .45s var(--ease), background .45s var(--ease);
}
.dots button[aria-selected="true"] {
  width: 24px;
  background: var(--violet-deep);
}

/* placeholder silhouette tint */
.product[data-tint="violet"] svg.ph { color: var(--violet); }
.product[data-tint="pink"]   svg.ph { color: var(--magenta); }
.product[data-tint="white"]  svg.ph { color: var(--purple); }

/* ===================== CATEGORIES ===================== */
.categories {
  padding: clamp(8px, 1.5vw, 20px) 0 clamp(72px, 9vw, 116px);
}

.categories__title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 600;
  letter-spacing: .38em;
  text-indent: .38em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: clamp(36px, 4.5vw, 60px);
}

/* ---- grid ---- */
.categories__grid {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* ---- card ---- */
.cat-card {
  flex: 1 1 0;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 15px;

  /* scroll-reveal initial state */
  opacity: 0;
  transform: translateY(52px);

  /* flex-grow: no delay | opacity+transform: staggered */
  transition:
    flex-grow 0.52s var(--ease) 0s,
    opacity  0.65s var(--ease) calc(var(--i) * 90ms),
    transform 0.65s var(--ease) calc(var(--i) * 90ms),
    filter 0.45s var(--ease);
}

.cat-card.is-visible {
  opacity: 1;
  transform: none;
}

/* all cards get snappy transition + shrink + dim when grid is hovered */
.categories__grid:has(.cat-card:hover) .cat-card {
  flex-grow: 0.58;
  filter: brightness(0.82) saturate(0.88);
  opacity: 0.88;
  transition:
    flex-grow 0.44s cubic-bezier(0.32, 1.3, 0.58, 1) 0s,
    filter   0.32s var(--ease),
    opacity  0.32s var(--ease),
    transform 0.44s var(--ease) 0s;
}
/* hovered card expands fully and stays vivid */
.categories__grid:has(.cat-card:hover) .cat-card:hover {
  flex-grow: 2.2;
  filter: brightness(1.04) saturate(1.1);
  opacity: 1;
}

/* ---- visual (image placeholder) ---- */
.cat-card__visual {
  background: var(--card-bg, #2c0f52);
  border-radius: 20px;
  height: clamp(380px, 58vh, 580px);
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 4px 18px rgba(14, 4, 40, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: box-shadow 0.48s var(--ease), transform 0.44s var(--ease);
}

/* photo — fills the whole card, icon floats above */
.cat-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.58s var(--ease), opacity 0.4s var(--ease);
}

.cat-card:hover .cat-card__img { transform: scale(1.06); }

/* when photo loads, hide the icon */
.cat-card__img:not([src=""]) ~ .cat-card__icon { opacity: 0; pointer-events: none; }

/* subtle radial glow behind the icon */
.cat-card__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 60%, rgba(255,255,255,.05) 0%, transparent 68%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}

.cat-card:hover .cat-card__visual {
  transform: translateY(-4px);
  box-shadow:
    0 40px 90px rgba(44, 15, 82, .70),
    0 10px 28px rgba(138, 63, 214, .32),
    inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.cat-card:hover .cat-card__visual::before { opacity: 1.8; }

/* ---- icon ---- */
.cat-card__icon {
  width: clamp(54px, 7vw, 78px);
  height: clamp(54px, 7vw, 78px);
  color: rgba(255, 255, 255, .48);
  transition: transform 0.52s var(--ease), color 0.52s var(--ease);
}

.cat-card:hover .cat-card__icon {
  color: rgba(255, 255, 255, .90);
  transform: scale(1.14) translateY(-8px);
}

/* ---- label ---- */
.cat-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.cat-card__name {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--violet-deep);
  transition: color 0.4s var(--ease), letter-spacing 0.4s var(--ease);
}

.cat-card:hover .cat-card__name {
  color: var(--purple);
  letter-spacing: .28em;
}

.cat-card__arrow {
  width: 17px; height: 17px;
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform 0.42s var(--ease), color 0.42s var(--ease);
}

.cat-card:hover .cat-card__arrow {
  transform: translateX(5px);
  color: var(--purple);
}

/* ===================== RESPONSIVE ===================== */

/* large laptops — tighten the nav so it never crowds the logo/icons */
@media (max-width: 1200px) {
  .nav { gap: clamp(16px, 2vw, 32px); }
  .nav__link { letter-spacing: .12em; }
}

/* tablet landscape / small laptop — keep all 3 products, scaled down */
@media (max-width: 1024px) {
  .header__card { padding-top: 22px; }
  .brand__logo { height: 50px; }
  .stage { height: clamp(380px, 60vh, 560px); }
  .product img, .product svg.ph { height: clamp(300px, 48vh, 440px); }
  .product[data-role="left"]  { transform: translate(calc(-50% - 34vw), -50%) scale(.6); }
  .product[data-role="right"] { transform: translate(calc(-50% + 34vw), -50%) scale(.6); }
  .product[data-role="left"]:hover  { transform: translate(calc(-50% - 34vw), -52%) scale(.62); }
  .product[data-role="right"]:hover { transform: translate(calc(-50% + 34vw), -52%) scale(.62); }
}

/* tablet portrait & narrower — focus on a single product (sides fade out) */
@media (max-width: 820px) {
  .nav { gap: 20px; }
  .nav__link { font-size: 12px; }
  .stage { height: clamp(320px, 50vh, 460px); }
  .product img, .product svg.ph { height: clamp(260px, 44vh, 400px); }
  /* sides are invisible here — keep them centered so they can't push the
     page wider than the viewport and create a horizontal scroll */
  .product[data-role="left"],
  .product[data-role="right"] {
    opacity: 0; filter: blur(4px); pointer-events: none;
    transform: translate(-50%, -50%) scale(.55);
  }
}

/* phones — nav collapses into a full-screen menu */
@media (max-width: 680px) {
  .header__card { grid-template-columns: 1fr auto; padding-top: 18px; }
  .brand { justify-self: start; }
  .actions { justify-self: end; gap: 14px; align-items: center; position: relative; z-index: 80; }
  .burger { display: flex; }
  .brand__logo { height: 44px; }

  /* scrolled header becomes a solid, full-bleed bar pinned to the very top.
     No floating-pill gaps means the dark footer can never peek in above or
     around the header when scrolled to the bottom of the page. */
  .header--scrolled {
    padding-left: 0;
    padding-right: 0;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .header--scrolled .header__card {
    border-radius: 0;
    padding: 10px clamp(20px, 5vw, 28px);
  }
  .header--scrolled .header__card::before { border-radius: 0; }

  /* hide user/cart when nav open */
  .icon-btn { transition: opacity .25s var(--ease); }
  body.nav-open .icon-btn { opacity: 0; pointer-events: none; }

  /* ── FULLSCREEN NAV OVERLAY ── */
  .nav {
    position: fixed; inset: 0; z-index: 70;
    width: 100%; height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: calc(80px + env(safe-area-inset-top, 0px)) clamp(24px, 8vw, 48px) calc(48px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;

    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity .35s cubic-bezier(0.32, 0.72, 0, 1),
      transform .35s cubic-bezier(0.32, 0.72, 0, 1),
      visibility 0s .38s;
  }

  .nav::before { display: none; }
  .nav::after  { display: none; }

  body.nav-open { overflow: hidden; }
  body.nav-open .nav {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition:
      opacity .32s cubic-bezier(0.32, 0.72, 0, 1),
      transform .32s cubic-bezier(0.32, 0.72, 0, 1),
      visibility 0s 0s;
  }

  /* nav links — large, centered, dark on light */
  .nav__link {
    position: relative; z-index: 1;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(28px, 9vw, 44px);
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: var(--violet-deep);
    padding: clamp(10px, 2vh, 16px) 0;
    display: block; width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(44,15,82,.09);

    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity .45s var(--ease),
      transform .45s var(--ease),
      color .18s;

    text-shadow: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .nav__link:first-child { border-top: 1px solid rgba(44,15,82,.09); }
  .nav__link::after { display: none; }

  .nav__link:hover,
  .nav__link:active {
    color: var(--magenta);
    font-size: clamp(28px, 9vw, 44px);
    padding: clamp(10px, 2vh, 16px) 0;
    background: transparent;
    box-shadow: none;
    text-shadow: none;
    opacity: 1;
  }

  body.nav-open .nav__link { opacity: 1; transform: none; }
  body.nav-open .nav__link:nth-child(1) { transition-delay: .06s; }
  body.nav-open .nav__link:nth-child(2) { transition-delay: .12s; }
  body.nav-open .nav__link:nth-child(3) { transition-delay: .18s; }
  body.nav-open .nav__link:nth-child(4) { transition-delay: .24s; }
  body.nav-open .nav__link:active { opacity: 1; }

  /* hero adjustments — раніше .hero мав flex:1 і розтягувався на весь
     екран (карусель товарів + кнопка "Перейти до каталогу" заповнювали
     цей простір). Тепер, коли карусель прибрано, лишається лише фонове
     фото — flex:1 більше не потрібен, інакше блок "Категорії" відривається
     величезною порожньою прогалиною. */
  .hero { padding: 76px 0 0; flex: none; }
  .stage { height: clamp(220px, 32vh, 320px); }
  .product img, .product svg.ph { height: clamp(230px, 40vh, 360px); }

  .switcher { gap: clamp(16px, 7vw, 34px); margin-top: 10px; }
  .switcher__info { min-width: 0; }
  .meta__name { font-size: clamp(13px, 4vw, 18px); letter-spacing: .14em; text-indent: .14em; }
  .meta__price { letter-spacing: .1em; text-indent: .1em; }
  .arrow { width: 46px; height: 46px; }
  .arrow svg { width: 16px; height: 16px; }
}

/* small phones */
@media (max-width: 420px) {
  .page { padding: 0 14px; }
  .actions { gap: 14px; }
  .cta { width: 100%; justify-content: center; padding: 14px 22px; }
  .stage { height: clamp(260px, 40vh, 360px); }
  .product img, .product svg.ph { height: clamp(200px, 36vh, 300px); }
  .arrow { width: 42px; height: 42px; }
  .dots { margin-top: 16px; }
}

/* very small phones */
@media (max-width: 340px) {
  .meta__name { font-size: 12.5px; letter-spacing: .1em; text-indent: .1em; }
  .switcher { gap: 12px; }
  .arrow { width: 38px; height: 38px; }
}

/* short / landscape phones — keep the whole hero on one screen */
@media (max-height: 560px) and (orientation: landscape) {
  .header { padding-top: 12px; }
  .hero { padding: 2px 0 16px; }
  .stage { height: clamp(180px, 54vh, 300px); }
  .product img, .product svg.ph { height: clamp(150px, 48vh, 280px); }
  .cta { margin-top: 12px; }
  .dots { margin-top: 10px; }
}

/* categories tablet */
@media (max-width: 900px) {
  .categories__grid { gap: 10px; }
  .cat-card__visual { height: clamp(240px, 38vh, 360px); }
}

/* categories mobile — 2×2 grid */
@media (max-width: 600px) {
  .categories { padding: 0 0 clamp(52px, 7vw, 80px); }
  .categories__title { margin-bottom: 18px; }
  .categories__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .cat-card {
    flex: unset;
    opacity: 1;
    transform: none;
  }
  /* disable expand effects on mobile */
  .categories__grid:has(.cat-card:hover) .cat-card {
    flex-grow: 1; filter: none; opacity: 1;
    transition: none;
  }
  .categories__grid:has(.cat-card:hover) .cat-card:hover {
    flex-grow: 1;
  }
  .cat-card:hover .cat-card__visual { transform: none; }
  .cat-card__visual { height: clamp(220px, 56vw, 320px); }
}

/* ===================== ABOUT ===================== */

.about {
  background: transparent;
  position: relative;
  z-index: 0; /* own stacking context so inner cards stay below the fixed header */
  overflow: hidden;
  /* sits well below the fixed glass header so cards never crowd it */
  padding: clamp(48px, 7vw, 104px) 0 clamp(72px, 9vw, 116px);
}

.about::before {
  content: '';
  position: absolute;
  top: 18%; left: 25%;
  width: 50%; height: 60%;
  background: radial-gradient(ellipse, rgba(138,63,214,.10) 0%, transparent 68%);
  pointer-events: none;
}

.about__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px);
}

.about__heading {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 600;
  letter-spacing: .38em;
  text-indent: .38em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: clamp(36px, 4.5vw, 60px);
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.about.is-revealed .about__heading {
  opacity: 1;
  transform: none;
}

.about__grid {
  display: grid;
  grid-template-columns: 620px 1fr;
  gap: 3px;
}

.about__row-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 620px 1fr;
  gap: 3px;
}

/* ---- quadrant base — entrance state ---- */
.about__q {
  overflow: hidden;
  opacity: 0;
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}
/* each quadrant flies in from its side */
.about__q--tl { transform: translateX(-130px); }
.about__q--tr { transform: translateX(130px); }
.about__q--bl { transform: translateX(-130px); }
.about__q--br { transform: translateX(130px); }

.about.is-revealed .about__q--tl { opacity: 1; transform: none; transition-delay: .04s; }
.about.is-revealed .about__q--tr { opacity: 1; transform: none; transition-delay: .22s; }
.about__row-bottom.is-revealed .about__q--bl { opacity: 1; transform: none; transition-delay: .04s; }
.about__row-bottom.is-revealed .about__q--br { opacity: 1; transform: none; transition-delay: .20s; }

/* ━━━ Q1 & Q4 — photo columns ━━━ */
.about__photo-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  perspective: 700px;
}

.about__photo-wrap {
  flex: 1;
  min-height: clamp(180px, 20vw, 260px);
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(160deg, #e9ddfb 0%, #d6c4f2 100%);
  box-shadow: 0 4px 18px rgba(44, 15, 82, .10), inset 0 0 0 1px rgba(255, 255, 255, .5);
  margin: 0;
  opacity: 0;
  transition:
    opacity  .85s cubic-bezier(0.22, 1, 0.36, 1),
    transform .9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* photo-wraps slide from the same side as their column (tl only — br is now the carousel) */
.about__q--tl .about__photo-wrap { transform: translateX(-64px); }

.about__q--tl .about__photo-wrap:nth-child(1) { transition-delay: .16s; }
.about__q--tl .about__photo-wrap:nth-child(2) { transition-delay: .30s; }
.about__q--tl .about__photo-wrap:nth-child(3) { transition-delay: .44s; }

/* extra photo shown only on mobile (left col is hidden there) */
.about__photo-wrap--mobile-only { display: none; }

.about.is-revealed .about__q--tl .about__photo-wrap {
  opacity: 1;
  transform: none;
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  border-radius: inherit;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.about__photo-wrap:hover .about__photo { transform: scale(1.05); }

/* ━━━ Q4 — фото-карусель праворуч ━━━ */
.about__q--br {
  opacity: 1;
  transform: none;
}

.about__carousel {
  position: relative;
  height: 100%;
  min-height: clamp(320px, 40vw, 520px);
  overflow: hidden;
  background: linear-gradient(160deg, #e9ddfb 0%, #d6c4f2 100%);
  box-shadow: 0 4px 18px rgba(44, 15, 82, .10), inset 0 0 0 1px rgba(255, 255, 255, .5);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.about__row-bottom.is-revealed .about__carousel {
  opacity: 1;
  transform: none;
}

.about__carousel-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about__carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
}

.about__carousel-slide .about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.about__carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(44, 15, 82, .22);
}
.about__carousel-arrow:active { transform: translateY(-50%) scale(.92); }
.about__carousel-arrow--prev { left: 14px; }
.about__carousel-arrow--next { right: 14px; }
.about__carousel-arrow svg { width: 16px; height: 16px; }

.about__carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 7px;
}
.about__carousel-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none; padding: 0;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.about__carousel-dots button[aria-selected="true"] {
  background: #fff;
  transform: scale(1.35);
}

@media (max-width: 640px) {
  .about__carousel { min-height: 300px; }
  .about__carousel-arrow { width: 38px; height: 38px; }
}

/* ━━━ Q2 — two text panels ━━━ */
.about__q--tr {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.about__text-panel {
  flex: 1;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 0;
  box-shadow: 0 4px 22px rgba(44, 15, 82, .08), inset 0 0 0 1px rgba(255, 255, 255, .6);
  padding: clamp(28px, 3.5vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}

.about__text-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(44, 15, 82, .14), inset 0 0 0 1px rgba(255, 255, 255, .7);
}

/* panel entrance — keyframe avoids conflict with hover transition */
@keyframes panelSlideIn {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: none; }
}
.about__text-panel { opacity: 0; }
.about.is-revealed .about__q--tr .about__text-panel:nth-child(1) {
  animation: panelSlideIn 1s cubic-bezier(0.22, 1, 0.36, 1) .30s both;
}
.about.is-revealed .about__q--tr .about__text-panel:nth-child(2) {
  animation: panelSlideIn 1s cubic-bezier(0.22, 1, 0.36, 1) .50s both;
}

.about__text-panel::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(229,38,155,.10) 0%, transparent 68%);
  pointer-events: none;
}

.about__panel-inner { position: relative; }

.about__panel-tag {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px; font-weight: 400;
  letter-spacing: .32em;
  color: var(--purple);
  margin-bottom: 14px;
  opacity: .9;
}

.about__panel-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(17px, 1.9vw, 28px);
  font-weight: 700; line-height: 1.18;
  color: var(--violet-deep);
  margin-bottom: 18px;
  letter-spacing: -.015em;
}

.about__panel-body {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(12.5px, 1vw, 14.5px);
  font-weight: 400; line-height: 1.82;
  color: var(--ink-soft);
}

/* ━━━ Q3 — stats + privileges ━━━ */
.about__q--bl {
  background: transparent;
  padding: clamp(28px, 3.5vw, 52px) clamp(8px, 1.5vw, 18px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 48px);
}

/* stats */
.about__stats {
  display: flex;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 30px) 0;
}

.about__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.about__stat-dial {
  position: relative;
  width: clamp(76px, 8vw, 108px);
  height: clamp(76px, 8vw, 108px);
  display: flex; align-items: center; justify-content: center;
}

.about__stat-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.about__ring-bg {
  fill: none;
  stroke: rgba(44, 15, 82, .10);
  stroke-width: 5;
}

/* circumference r=38: 2π×38 ≈ 238.76 */
.about__ring-arc {
  fill: none;
  stroke: var(--purple);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0 238.76;
  transition: stroke-dasharray 1.5s cubic-bezier(0.22, 1, 0.36, 1) .4s;
}

.about__stat-val {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(10px, 1.1vw, 14px);
  font-weight: 700;
  color: var(--violet-deep);
  position: relative; z-index: 1;
  letter-spacing: -.02em;
}

.about__stat-name {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(8px, .68vw, 10px);
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink-soft);
  text-align: center;
  text-transform: uppercase;
  line-height: 1.6;
}

/* stats entrance — spring pop with stagger */
.about__stat {
  opacity: 0;
  transform: translateY(26px) scale(0.82);
  transition:
    opacity .65s cubic-bezier(0.22, 1, 0.36, 1),
    transform .75s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.about__stat:nth-child(1) { transition-delay: .20s; }
.about__stat:nth-child(2) { transition-delay: .34s; }
.about__stat:nth-child(3) { transition-delay: .48s; }
.about__row-bottom.is-revealed .about__stat { opacity: 1; transform: none; }

/* privileges entrance */
@keyframes privSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: none; }
}
.about__privilege { opacity: 0; }
.about__row-bottom.is-revealed .about__privilege:nth-child(1) { animation: privSlideIn .55s cubic-bezier(0.22,1,0.36,1) .26s both; }
.about__row-bottom.is-revealed .about__privilege:nth-child(2) { animation: privSlideIn .55s cubic-bezier(0.22,1,0.36,1) .38s both; }
.about__row-bottom.is-revealed .about__privilege:nth-child(3) { animation: privSlideIn .55s cubic-bezier(0.22,1,0.36,1) .50s both; }
.about__row-bottom.is-revealed .about__privilege:nth-child(4) { animation: privSlideIn .55s cubic-bezier(0.22,1,0.36,1) .62s both; }
.about__row-bottom.is-revealed .about__privilege:nth-child(5) { animation: privSlideIn .55s cubic-bezier(0.22,1,0.36,1) .74s both; }

/* privileges */
.about__privileges {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(44, 15, 82, .12);
}

.about__privilege {
  display: grid;
  grid-template-rows: auto 0fr;
  border-bottom: 1px solid rgba(44, 15, 82, .12);
  padding: 17px 0;
  cursor: pointer;
  transition:
    grid-template-rows .54s cubic-bezier(0.22, 1, 0.36, 1),
    padding .54s cubic-bezier(0.22, 1, 0.36, 1);
}
.about__privilege:hover,
.about__privilege.is-open {
  grid-template-rows: auto 1fr;
  padding: 22px 0;
}

.about__priv-head {
  display: flex; align-items: center; gap: 22px;
}

.about__priv-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px; font-weight: 400;
  color: var(--purple);
  letter-spacing: .08em;
  flex-shrink: 0; width: 28px;
  opacity: .8;
  transition: opacity .32s var(--ease);
}

.about__priv-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 600;
  color: var(--violet-deep);
  transition: color .32s var(--ease);
}

.about__privilege:hover .about__priv-title,
.about__privilege.is-open .about__priv-title { color: var(--purple); }
.about__privilege:hover .about__priv-num,
.about__privilege.is-open .about__priv-num   { opacity: 1; }

/* dim others on sibling hover/open */
.about__privileges:has(.about__privilege:hover) .about__privilege:not(:hover),
.about__privileges:has(.about__privilege.is-open) .about__privilege:not(.is-open) {
  padding: 12px 0;
}
.about__privileges:has(.about__privilege:hover) .about__privilege:not(:hover) .about__priv-title,
.about__privileges:has(.about__privilege.is-open) .about__privilege:not(.is-open) .about__priv-title {
  color: rgba(44, 15, 82, .32);
}
.about__privileges:has(.about__privilege:hover) .about__privilege:not(:hover) .about__priv-num,
.about__privileges:has(.about__privilege.is-open) .about__privilege:not(.is-open) .about__priv-num {
  opacity: .25;
}

.about__priv-body-wrap {
  overflow: hidden; min-height: 0;
  padding-left: 50px;
}

.about__priv-body {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(12px, .92vw, 13.5px);
  line-height: 1.78;
  color: var(--ink-soft);
  padding-top: 9px;
}

/* ━━━ about responsive ━━━ */

/* Планшет ландшафт — уменьшаем фиксированные колонки с фото */
@media (max-width: 1100px) {
  .about__grid       { grid-template-columns: 380px 1fr; }
  .about__row-bottom { grid-template-columns: 380px 1fr; }
}

/* Планшет портрет — убираем боковые фото, текст на полную ширину */
@media (max-width: 860px) {
  .about__grid       { grid-template-columns: 1fr; }
  .about__q--tl      { display: none; }
  .about__row-bottom { grid-template-columns: 1fr; }
  .about__q--tr      { flex-direction: row; }
  .about__text-panel { min-height: 240px; }
  .about__stats      { gap: 12px; }
}

/* Мобильный — всё в одну колонку */
@media (max-width: 560px) {
  .about__q--tr      { flex-direction: column; }
  .about__text-panel { min-height: 0; padding: clamp(22px, 6vw, 36px); }
  .about__q--bl      { padding: clamp(22px, 6vw, 36px) clamp(16px, 4vw, 24px); }
  .about__stat-dial  { width: 64px; height: 64px; }
  .about__stats      { gap: 8px; }
}

/* ===================== FAQ ===================== */
.faq {
  background: transparent;
  padding: clamp(72px, 9vw, 116px) 0;
}

.faq__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.faq__header {
  text-align: center;
  margin-bottom: clamp(36px, 4.5vw, 60px);
}

.faq__title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 600;
  letter-spacing: .38em;
  text-indent: .38em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.faq__list {
  list-style: none;
  border-top: 1px solid rgba(29, 15, 51, .1);
}

.faq__item {
  border-bottom: 1px solid rgba(29, 15, 51, .1);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: clamp(18px, 2.2vw, 26px) 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  transition: color .3s var(--ease);
}

.faq__q:hover { color: var(--purple); }

.faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(29, 15, 51, .25);
  transition: transform .45s var(--ease), color .3s var(--ease);
}

.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
  color: var(--purple);
}

.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .55s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__item.is-open .faq__a {
  max-height: 400px;
}

.faq__a p {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.9;
  color: var(--ink-soft);
  padding-bottom: clamp(18px, 2vw, 28px);
}

.faq__a strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- FAQ decorative floating marks ---- */
.faq {
  position: relative;
  overflow: clip;
}

.faq__marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

.faq__mark {
  position: absolute;
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  line-height: 1;
}

.faq__mark > span {
  display: block;
}

@keyframes faqFlyL {
  from { opacity: 0; transform: translateX(-220px) rotate(-18deg); }
  to   { opacity: var(--mark-opacity, 0.15); transform: translateX(0) rotate(0deg); }
}
@keyframes faqFlyR {
  from { opacity: 0; transform: translateX(220px) rotate(18deg); }
  to   { opacity: var(--mark-opacity, 0.15); transform: translateX(0) rotate(0deg); }
}
@keyframes faqFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(var(--float-y, -16px)); }
}

/* per-mark: position · size · color · opacity */
.faq__mark--1 {
  top: 5%;  left: 2%;
  font-size: clamp(2rem, 2.8vw, 3.4rem);
  color: var(--violet);
  --mark-opacity: 0.45;
  --float-y: -13px;
}
.faq__mark--2 {
  top: 30%; left: 4%;
  font-size: clamp(4rem, 5.5vw, 6.5rem);
  color: var(--purple);
  --mark-opacity: 0.28;
  --float-y: -20px;
}
.faq__mark--3 {
  top: 68%; left: 3%;
  font-size: clamp(1.6rem, 2.2vw, 2.6rem);
  color: var(--ink-soft);
  --mark-opacity: 0.50;
  --float-y: -10px;
}
.faq__mark--4 {
  top: 12%; right: 3%;
  font-size: clamp(3rem, 4vw, 4.8rem);
  color: var(--purple);
  --mark-opacity: 0.32;
  --float-y: -17px;
}
.faq__mark--5 {
  top: 52%; right: 2%;
  font-size: clamp(5rem, 7vw, 8rem);
  color: var(--violet);
  --mark-opacity: 0.20;
  --float-y: -22px;
}
.faq__mark--6 {
  top: 80%; right: 5%;
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
  color: var(--violet-deep);
  --mark-opacity: 0.42;
  --float-y: -12px;
}

/* fly-in + float — triggered by .is-revealed */
.faq.is-revealed .faq__mark--1 { animation: faqFlyL .95s cubic-bezier(0.22,1,0.36,1) 0s    both; }
.faq.is-revealed .faq__mark--2 { animation: faqFlyL .95s cubic-bezier(0.22,1,0.36,1) .10s  both; }
.faq.is-revealed .faq__mark--3 { animation: faqFlyL .95s cubic-bezier(0.22,1,0.36,1) .05s  both; }
.faq.is-revealed .faq__mark--4 { animation: faqFlyR .95s cubic-bezier(0.22,1,0.36,1) .17s  both; }
.faq.is-revealed .faq__mark--5 { animation: faqFlyR .95s cubic-bezier(0.22,1,0.36,1) .07s  both; }
.faq.is-revealed .faq__mark--6 { animation: faqFlyR .95s cubic-bezier(0.22,1,0.36,1) .24s  both; }

.faq.is-revealed .faq__mark--1 > span { animation: faqFloat 3.2s 1.05s ease-in-out infinite alternate; }
.faq.is-revealed .faq__mark--2 > span { animation: faqFloat 4.1s 1.15s ease-in-out infinite alternate; }
.faq.is-revealed .faq__mark--3 > span { animation: faqFloat 2.7s 1.10s ease-in-out infinite alternate; }
.faq.is-revealed .faq__mark--4 > span { animation: faqFloat 3.7s 1.22s ease-in-out infinite alternate; }
.faq.is-revealed .faq__mark--5 > span { animation: faqFloat 4.6s 1.12s ease-in-out infinite alternate; }
.faq.is-revealed .faq__mark--6 > span { animation: faqFloat 3.0s 1.29s ease-in-out infinite alternate; }

/* ===================== FOOTER ===================== */
.footer {
  background: linear-gradient(175deg, #1c0840 0%, #120528 100%);
  position: relative;
  overflow: hidden;
  /* keep the whole footer on a layer below the fixed header so its big
     wordmark/headings can never paint over the header when scrolled */
  z-index: 0;
}

/* subtle grain overlay — same treatment as body */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}

/* decorative large "84" background glyph */
.footer::after {
  content: '84';
  position: absolute;
  right: -2%;
  bottom: -8%;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(180px, 22vw, 340px);
  font-weight: 800;
  color: rgba(138, 63, 214, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 3vw, 48px) 0;
}

/* ---- top grid ---- */
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* ---- brand col ---- */
.footer__wordmark {
  display: inline-block;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  margin-bottom: clamp(16px, 2vw, 24px);
  letter-spacing: -.02em;
  transition: color .3s var(--ease);
}
.footer__wordmark span { color: var(--purple); }
.footer__wordmark:hover { color: rgba(255,255,255,.8); }

.footer__tagline {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .45);
  margin-bottom: clamp(24px, 3vw, 36px);
}

/* social links */
.footer__socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, .5);
  font-family: 'Manrope', sans-serif;
  font-size: clamp(12px, .9vw, 13.5px);
  font-weight: 500;
  transition: color .3s var(--ease);
}
.footer__social svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: color .3s var(--ease);
}
.footer__social:hover { color: #fff; }

/* ---- nav / info cols ---- */
.footer__col-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .32em;
  text-indent: .32em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: clamp(18px, 2.2vw, 28px);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__link {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  transition: color .28s var(--ease);
  display: inline-block;
}
.footer__link:hover { color: #fff; }

.footer__link-static {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  color: rgba(255, 255, 255, .35);
  line-height: 1.5;
}

/* ---- bottom bar ---- */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 2.5vw, 28px) 0;
  gap: 16px;
}

.footer__copy {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(11px, .8vw, 13px);
  color: rgba(255, 255, 255, .25);
}

.footer__top-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .45);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 16px 9px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.footer__top-btn svg { width: 14px; height: 14px; }
.footer__top-btn:hover {
  background: rgba(138, 63, 214, .25);
  border-color: rgba(138, 63, 214, .4);
  color: #fff;
}

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__socials { flex-direction: row; flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 680px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ===================== LOADER ===================== */
.loader {
  position: fixed;
  inset: 0;
  width: 100%;
  /* `inset:0` alone under-covers inside in-app browsers
     (Instagram/Telegram webviews) where the bottom inset resolves against
     the wrong viewport. min-height forces the loader to the tallest of the
     inset span and the viewport height, so the page never peeks through. */
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--violet-deep);
  overflow: hidden;
  transition: opacity 0.65s var(--ease);
}
.loader.is-out {
  opacity: 0;
  pointer-events: none;
}

.loader__streaks { display: none; }

.loader__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.loader__logo {
  height: clamp(72px, 9vw, 108px);
  width: auto;
  user-select: none;
  animation: loaderLogoPulse 2.2s ease-in-out infinite;
}
@keyframes loaderLogoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.25))
            brightness(0.9);
  }
  50% {
    filter: drop-shadow(0 0 48px rgba(255, 255, 255, 0.5))
            brightness(1.05);
  }
}

.loader__bar {
  width: clamp(140px, 18vw, 220px);
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  animation: loaderBarFill 2.2s var(--ease-out) forwards;
}
@keyframes loaderBarFill {
  0%   { width: 0%; }
  65%  { width: 84%; }
  100% { width: 100%; }
}

.loader__tagline {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(9px, 0.85vw, 11px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  animation: loaderTaglineIn 0.85s var(--ease) 0.4s both;
}
@keyframes loaderTaglineIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== HERO ENTRY ===================== */
body.is-loading { overflow: hidden; }

body.is-loading .header   { opacity: 0; transform: translateY(-100%); }
body.is-loading .stage    { opacity: 0; transform: translateY(70px); }
body.is-loading .switcher { opacity: 0; transform: translateY(22px); }
body.is-loading .cta      { opacity: 0; transform: translateY(14px); }
body.is-loading .dots     { opacity: 0; }

@keyframes heroSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroRiseUp {
  from { opacity: 0; transform: translateY(70px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body.is-ready .header   { animation: heroSlideDown 0.95s var(--ease) 0.05s backwards; }
body.is-ready .stage    { animation: heroRiseUp    1.1s  var(--ease) 0.2s  backwards; }
body.is-ready .switcher { animation: heroFadeUp    0.8s  var(--ease) 0.55s backwards; }
body.is-ready .cta      { animation: heroFadeUp    0.7s  var(--ease) 0.7s  backwards; }
body.is-ready .dots     { animation: heroFadeIn    0.6s  var(--ease) 0.85s backwards; }

/* ===================== NAV ACTIVE STATE ===================== */
.nav__link--active {
  box-shadow: inset 0 0 0 1.5px rgba(44, 15, 82, 0.36);
  opacity: 1;
}
.nav__link--active:hover {
  box-shadow: inset 0 0 0 1.5px rgba(138, 63, 214, 0.5), 0 2px 14px rgba(138, 63, 214, .15);
}

/* ===================== CATALOG PAGE ===================== */
.page-catalog .categories {
  padding-top: 160px;
}

.page-catalog .categories__title {
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .page-catalog .categories {
    padding-top: 108px;
  }
}

/* ---- light category cards (catalog page) ---- */
.cat-card--light .cat-card__visual {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(44, 15, 82, .07), inset 0 0 0 1px rgba(44, 15, 82, .05);
}

.cat-card--light .cat-card__img {
  object-fit: contain;
  padding: clamp(14px, 2.5vw, 28px);
}

.cat-card--light:hover .cat-card__visual {
  box-shadow:
    0 28px 72px rgba(44, 15, 82, .14),
    0 8px 24px rgba(138, 63, 214, .10),
    inset 0 0 0 1px rgba(44, 15, 82, .04);
  transform: translateY(-4px);
}

.cat-card--light .cat-card__icon {
  color: rgba(44, 15, 82, 0.18);
}

/* ---- category placeholder pages ---- */
.cat-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px clamp(20px, 4vw, 48px) 80px;
  text-align: center;
  gap: 20px;
}

.cat-placeholder__title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  color: var(--violet-deep);
  letter-spacing: -.02em;
}

.cat-placeholder__text {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 420px;
}

.cat-placeholder__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet-deep);
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(44, 15, 82, 0.28);
  margin-top: 8px;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.cat-placeholder__back:hover {
  background: var(--violet-deep);
  color: #fff;
  border-color: var(--violet-deep);
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .12s !important;
  }
  .product[data-role="center"] .product__media { animation: none !important; }
  .cat-card { opacity: 1 !important; transform: none !important; }
  body.is-loading .header,
  body.is-loading .stage,
  body.is-loading .switcher,
  body.is-loading .cta,
  body.is-loading .dots { opacity: 1 !important; transform: none !important; }
  body.is-ready .header,
  body.is-ready .stage,
  body.is-ready .switcher,
  body.is-ready .cta,
  body.is-ready .dots { animation: none !important; }
}

/* ============================================================
   CATALOG CATEGORY PAGES (zahyst etc.)
   ============================================================ */

/* ---- Cart badge ---- */
.icon-btn { position: relative; }

.cart-badge {
  position: absolute;
  top: -5px; right: -7px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(229,38,155,.4);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.cart-badge[hidden] { display: none; }

/* ---- Category page layout ---- */
.cat-page {
  flex: 1;
  padding: clamp(110px, 14vh, 148px) 0 clamp(64px, 9vw, 108px);
  display: flex;
  flex-direction: column;
}

.cat-page__top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.cat-page__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  opacity: .65;
  transition: opacity .3s var(--ease), color .3s var(--ease);
  width: fit-content;
}

.cat-page__breadcrumb svg { width: 14px; height: 14px; flex-shrink: 0; }
.cat-page__breadcrumb:hover { opacity: 1; color: var(--purple); }

.cat-page__title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 800;
  color: var(--violet-deep);
  letter-spacing: -.025em;
  line-height: 1.05;
}

/* ---- Search bar ---- */
.cat-search {
  position: relative;
  margin-bottom: 14px;
  z-index: 60;
}

.cat-search__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1.5px solid rgba(44, 15, 82, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.cat-search__inner:focus-within {
  border-color: rgba(91, 42, 158, .4);
  box-shadow: 0 4px 16px rgba(44, 15, 82, .1);
}

.cat-search__icon {
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: color .2s var(--ease);
}

.cat-search__inner:focus-within .cat-search__icon { color: var(--violet); }

.cat-search__input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  min-width: 0;
}

.cat-search__input::placeholder { color: var(--ink-soft); }

.cat-search__clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(44, 15, 82, .08);
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.cat-search__clear:hover {
  background: rgba(44, 15, 82, .15);
  color: var(--ink);
}

.cat-search.has-query .cat-search__clear { display: flex; }

/* ---- Search dropdown (cross-page) ---- */
.csd {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1.5px solid rgba(44, 15, 82, .1);
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(44, 15, 82, .16),
    0 2px 8px rgba(44, 15, 82, .06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}

.csd.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.csd__list {
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.csd__list::-webkit-scrollbar { width: 4px; }
.csd__list::-webkit-scrollbar-track { background: transparent; }
.csd__list::-webkit-scrollbar-thumb {
  background: rgba(44, 15, 82, .15);
  border-radius: 2px;
}

.csd__empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  color: var(--ink-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
}

.csd__item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .15s var(--ease);
  border-bottom: 1px solid rgba(44, 15, 82, .05);
}

.csd__item:last-child { border-bottom: 0; }

.csd__item:hover,
.csd__item.is-focused {
  background: rgba(91, 42, 158, .05);
}

.csd__thumb {
  width: 52px; height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #f0ebfa 0%, #e8dffa 100%);
  flex-shrink: 0;
}

.csd__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.csd__img-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(44, 15, 82, .22);
}

.csd__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.csd__name {
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.csd__name mark {
  background: rgba(138, 63, 214, .14);
  color: var(--violet);
  border-radius: 3px;
  padding: 0 2px;
  font-style: normal;
}

.csd__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.csd__price {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--violet-deep);
  letter-spacing: -.015em;
}

.csd__old {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-decoration: line-through;
}

.csd__badge-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.csd__cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(44, 15, 82, .07);
  color: var(--ink-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.csd__cat--here {
  background: rgba(91, 42, 158, .12);
  color: var(--violet);
}

.csd__arrow { color: var(--ink-soft); }

.csd__cap {
  padding: 9px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid rgba(44, 15, 82, .06);
  margin: 0;
}

@media (max-width: 600px) {
  .csd { border-radius: 16px; }
  .csd__item { grid-template-columns: 44px 1fr auto; gap: 10px; padding: 8px 12px; }
  .csd__thumb { width: 44px; height: 44px; }
  .csd__name { font-size: 0.82rem; }
  .csd__price { font-size: 0.77rem; }
  .csd__cat { font-size: 0.68rem; padding: 2px 7px; }
  .csd__arrow { display: none; }
}

/* ---- Filter area ---- */
.cat-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(24px, 3.2vw, 44px);
}

.cat-filters__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cat-filters__toggle { display: none; }

.cat-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Sort buttons ---- */
.cat-filters__sort {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cat-sort__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(44, 15, 82, .16);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition:
    color       .28s var(--ease),
    background  .28s var(--ease),
    border-color .28s var(--ease),
    box-shadow  .28s var(--ease),
    transform   .28s var(--ease);
}

.cat-sort__btn:hover {
  border-color: rgba(91, 42, 158, .35);
  color: var(--violet);
  background: rgba(138, 63, 214, .07);
  transform: translateY(-1px);
}

.cat-sort__btn.is-active {
  background: var(--violet-deep);
  border-color: var(--violet-deep);
  color: #fff;
  box-shadow: 0 4px 18px rgba(44, 15, 82, .28);
  transform: translateY(-1px);
}

/* ---- Filter chips ---- */

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(44, 15, 82, 0.16);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition:
    color       .28s var(--ease),
    background  .28s var(--ease),
    border-color .28s var(--ease),
    box-shadow  .28s var(--ease),
    transform   .28s var(--ease);
}

.filter-chip:hover {
  border-color: rgba(91, 42, 158, .35);
  color: var(--violet);
  background: rgba(138, 63, 214, .07);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: var(--violet-deep);
  border-color: var(--violet-deep);
  color: #fff;
  box-shadow: 0 4px 18px rgba(44, 15, 82, .28);
  transform: translateY(-1px);
}

.filter-chip--sale.is-active {
  background: linear-gradient(135deg, var(--magenta), #c01f85);
  border-color: var(--magenta);
  box-shadow: 0 4px 18px rgba(229, 38, 155, .28);
}

.filter-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(44, 15, 82, .09);
  font-size: 10.5px;
  font-weight: 700;
  transition: background .28s var(--ease);
}

.filter-chip.is-active .filter-chip__count {
  background: rgba(255, 255, 255, .18);
}

/* ---- Sub-category chips (second level) ---- */
.cat-filters__subchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  padding-left: 14px;
  margin-top: 2px;
  border-top: 1px dashed rgba(44, 15, 82, .14);
  position: relative;
}

.cat-filters__subchips::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 14px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--violet), transparent);
  opacity: .4;
}

.filter-chip--sub {
  padding: 7px 13px;
  font-size: 12px;
  border-style: dashed;
  background: rgba(255, 255, 255, .5);
}

.filter-chip--sub.is-active {
  border-style: solid;
  background: var(--violet);
  border-color: var(--violet);
  box-shadow: 0 3px 14px rgba(91, 42, 158, .26);
}

/* ---- Product grid ---- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.6vw, 18px);
}

/* ---- Loading skeleton ---- */
.prod-skeleton {
  background: rgba(255, 255, 255, .55);
  border-radius: 18px;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  position: relative;
}

.prod-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.45) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skelShimmer 1.5s ease-in-out infinite;
}

@keyframes skelShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---- Empty / error state ---- */
.cat-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  gap: 12px;
  text-align: center;
}

.cat-state__icon {
  width: 50px; height: 50px;
  color: rgba(44, 15, 82, .18);
}

.cat-state__title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 600;
  color: var(--violet-deep);
  opacity: .45;
}

.cat-state__text {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  opacity: .6;
}

/* ---- Cross-catalog hint in empty state ---- */
.cat-cross-hint {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cat-cross-hint__label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.cat-cross-hint__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.cat-cross-hint__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 22px;
  background: rgba(91, 42, 158, .08);
  color: var(--violet);
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s var(--ease), transform .18s var(--ease);
}

.cat-cross-hint__link:hover {
  background: rgba(91, 42, 158, .15);
  transform: translateY(-1px);
}

.cat-cross-hint__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

/* ---- Product card ---- */
.prod-card {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 2px 12px rgba(44, 15, 82, .07),
    inset 0 0 0 1px rgba(255, 255, 255, .8);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    transform     .38s var(--ease),
    box-shadow    .38s var(--ease),
    background    .38s var(--ease);
}

.prod-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 48px rgba(44, 15, 82, .14),
    0 4px 16px rgba(138, 63, 214, .10),
    inset 0 0 0 1px rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .97);
}

.prod-card:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.prod-card.is-unavailable { opacity: .68; }

/* image wrap */
.prod-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #f0ebfa 0%, #e8dffa 100%);
  overflow: hidden;
}

.prod-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.prod-card:hover .prod-card__img { transform: scale(1.06); }

.prod-card__img.is-error { display: none; }

.prod-card__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(44, 15, 82, .16);
}

/* discount badge */
.prod-card__discount {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 3px 10px rgba(229, 38, 155, .35);
}

/* card body */
.prod-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: clamp(11px, 1.6vw, 16px);
}

.prod-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.prod-card__status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.prod-card__status.is-available { color: #1c7c4e; }
.prod-card__status.is-available::before { background: #22c55e; }
.prod-card__status.is-unavailable { color: var(--ink-soft); }
.prod-card__status.is-unavailable::before { background: rgba(106,91,130,.38); }

.prod-card__name {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 700;
  color: var(--violet-deep);
  line-height: 1.35;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.prod-card__price {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 700;
  color: var(--violet-deep);
  letter-spacing: -.015em;
}

.prod-card__old-price {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: line-through;
  opacity: .55;
}

/* buy button */
.prod-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: var(--violet-deep);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  margin-top: 4px;
  transition:
    background .28s var(--ease),
    box-shadow  .28s var(--ease),
    transform   .28s var(--ease);
}

.prod-card__btn:hover {
  background: var(--violet);
  box-shadow: 0 6px 20px rgba(91, 42, 158, .32);
  transform: translateY(-1px);
}

.prod-card__btn:active { transform: none; }

.prod-card__btn.is-disabled {
  background: rgba(44, 15, 82, .12);
  color: var(--ink-soft);
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   PRODUCT MODAL
   ============================================================ */

.prod-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
}

.prod-modal[hidden] { display: none; }

.prod-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 2, 20, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  animation: overlayIn .28s ease both;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* card: full-screen, image 40% / panel 60% */
.prod-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 40% 60%;
  animation: modalIn .4s var(--ease) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ---- CLOSE BUTTON ---- */
.prod-modal__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(44,15,82,.1);
  background: rgba(255,255,255,.9);
  color: var(--violet-deep);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(44,15,82,.1);
  transition: background .2s, border-color .2s, color .2s, transform .3s var(--ease);
}

.prod-modal__close:hover {
  background: #fff;
  border-color: rgba(229,38,155,.3);
  color: var(--magenta);
  transform: rotate(90deg) scale(1.08);
}

.prod-modal__close svg { width: 14px; height: 14px; }

/* ---- IMAGE SIDE ---- */
.prod-modal__img-wrap {
  position: relative;
  overflow: hidden;
  background: #f0ebf8;
  animation: imgIn .52s var(--ease) both;
}

@keyframes imgIn {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: none; }
}

.prod-modal__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}

.prod-modal__img-wrap:hover .prod-modal__img { transform: scale(1.03); }

.prod-modal__img.is-error { display: none; }

.prod-modal__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(44,15,82,.12);
}

.prod-modal__img-placeholder svg { width: 72px; height: 72px; }

.prod-modal__discount {
  position: absolute;
  top: 18px; left: 18px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 800;
  z-index: 5;
  letter-spacing: .07em;
  box-shadow: 0 4px 16px rgba(229,38,155,.45);
  animation: badgeIn .38s .3s var(--ease) both;
}

@keyframes badgeIn {
  from { opacity: 0; transform: scale(.75) translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---- GALLERY NAVIGATION ---- */
.prod-modal__gallery-prev,
.prod-modal__gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: background .16s, transform .16s;
  backdrop-filter: blur(6px);
}
.prod-modal__gallery-prev { left: 12px; }
.prod-modal__gallery-next { right: 12px; }
.prod-modal__gallery-prev:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.prod-modal__gallery-next:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.prod-modal__gallery-prev svg,
.prod-modal__gallery-next svg { width: 16px; height: 16px; }

.prod-modal__gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.prod-modal__gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.prod-modal__gallery-dot.is-active {
  background: #fff;
  transform: scale(1.35);
}

/* ---- PANEL (RIGHT) ---- */
.prod-modal__panel {
  /* panel is a flex column that fills the grid cell and scrolls internally */
  background: #fff;
  border-left: 1px solid rgba(44,15,82,.07);
  padding: clamp(28px, 3.5vw, 50px) clamp(24px, 3vw, 46px);
  display: flex;
  flex-direction: column;
  min-height: 0;      /* critical: allows flex child to shrink inside grid */
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(44,15,82,.12) transparent;
  animation: panelIn .5s .06s var(--ease) both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: none; }
}

/* magenta accent stripe at top of panel */
.prod-modal__panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--purple) 55%, transparent 100%);
}

/* subtle dot-grid */
.prod-modal__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(44,15,82,.035) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* all panel content above dot-grid */
.prod-modal__meta,
.prod-modal__category,
.prod-modal__name,
.prod-modal__price-row,
.prod-modal__divider,
.prod-modal__description,
.prod-modal__actions { position: relative; z-index: 1; }

/* ---- META: status + article ---- */
.prod-modal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.prod-modal__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.prod-modal__status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.prod-modal__status.is-available { color: #15803d; }
.prod-modal__status.is-available::before {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18), 0 0 8px rgba(34,197,94,.3);
  animation: statusPulse 2.4s ease-in-out infinite;
}
.prod-modal__status.is-unavailable { color: var(--ink-soft); }
.prod-modal__status.is-unavailable::before { background: rgba(106,91,130,.35); }

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.15), 0 0 8px rgba(34,197,94,.25); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,.08), 0 0 14px rgba(34,197,94,.45); }
}

.prod-modal__article {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: .5;
}

/* ---- CATEGORY BADGE ---- */
.prod-modal__category {
  display: inline-block;
  flex-shrink: 0;
  font-family: 'Unbounded', sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--magenta);
  background: rgba(229,38,155,.07);
  border: 1px solid rgba(229,38,155,.2);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 18px;
  align-self: flex-start;
}

.prod-modal__category[hidden] { display: none; }

/* ---- NAME ---- */
.prod-modal__name {
  flex-shrink: 0;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(14px, 1.6vw, 21px);
  font-weight: 700;
  color: var(--violet-deep);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---- PRICE ---- */
.prod-modal__price-row {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.prod-modal__price {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  color: var(--violet-deep);
  letter-spacing: -.04em;
  line-height: 1;
}

.prod-modal__currency {
  color: var(--magenta);
  font-size: .58em;
  font-weight: 700;
  letter-spacing: 0;
}

.prod-modal__old-price {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--ink-soft);
  text-decoration: line-through;
  opacity: .42;
}

/* ---- DIVIDER ---- */
.prod-modal__divider {
  flex-shrink: 0;
  border: none;
  border-top: 1px solid rgba(44,15,82,.08);
  margin: 0 0 18px;
}

/* ---- DESCRIPTION ---- */
.prod-modal__description {
  /* grows to fill space, shrinks when needed, never overflows */
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(13px, .9vw, 14px);
  line-height: 1.74;
  color: var(--ink-soft);
  opacity: .75;
  margin-bottom: 24px;
  overflow-wrap: break-word;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: rgba(44,15,82,.1) transparent;
}

/* ---- ACTIONS: button always at bottom ---- */
.prod-modal__actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.prod-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 17px 24px;
  border-radius: 999px;
  border: none;
  background: var(--violet-deep);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .26s var(--ease), box-shadow .26s var(--ease), transform .2s var(--ease);
  box-shadow: 0 6px 24px rgba(44,15,82,.28), inset 0 1px 0 rgba(255,255,255,.1);
}

/* shimmer sweep */
.prod-modal__btn::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-18deg);
  transition: left .5s var(--ease);
}

.prod-modal__btn:hover {
  background: var(--violet);
  box-shadow: 0 10px 32px rgba(91,42,158,.38), inset 0 1px 0 rgba(255,255,255,.15);
  transform: translateY(-2px);
}

.prod-modal__btn:hover::before { left: 140%; }

.prod-modal__btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 12px rgba(44,15,82,.22);
}

.prod-modal__btn.is-disabled {
  background: rgba(44,15,82,.08);
  color: var(--ink-soft);
  cursor: not-allowed;
  box-shadow: none;
}

.prod-modal__btn.is-disabled::before { display: none; }

.prod-modal__note {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.6;
  opacity: .52;
  padding: 0 4px;
}

/* ============================================================
   CART DRAWER
   ============================================================ */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.cart-drawer.is-open { pointer-events: auto; }

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 4, 30, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  cursor: pointer;
  transition: opacity .38s var(--ease);
}

.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }

.cart-drawer__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 48px rgba(12, 4, 30, .22);
  transform: translateX(100%);
  transition: transform .42s var(--ease);
  overflow: hidden;
}

.cart-drawer.is-open .cart-drawer__panel { transform: none; }

/* cart head */
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(44, 15, 82, .08);
  flex-shrink: 0;
}

.cart-drawer__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--violet-deep);
  letter-spacing: -.01em;
}

.cart-drawer__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(44, 15, 82, .07);
  color: var(--violet-deep);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .24s var(--ease), color .24s var(--ease);
}

.cart-drawer__close:hover {
  background: rgba(229, 38, 155, .1);
  color: var(--magenta);
}

.cart-drawer__close svg { width: 14px; height: 14px; }

/* items scroll area */
.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* empty state */
.cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 0;
  text-align: center;
  flex: 1;
}

.cart-drawer__empty-icon {
  width: 48px; height: 48px;
  color: rgba(44, 15, 82, .16);
}

.cart-drawer__empty-text {
  font-family: 'Manrope', sans-serif;
  font-size: 14.5px;
  color: var(--ink-soft);
  opacity: .65;
}

/* cart item */
.cart-item {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(44, 15, 82, .06);
}

.cart-item:last-child { border-bottom: none; padding-bottom: 0; }

.cart-item__img {
  width: 66px; height: 66px;
  border-radius: 12px;
  object-fit: cover;
  background: #f0ebfa;
  flex-shrink: 0;
  display: block;
}

.cart-item__img-placeholder {
  width: 66px; height: 66px;
  border-radius: 12px;
  background: #f0ebfa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(44,15,82,.2);
  flex-shrink: 0;
}

.cart-item__img-placeholder svg { width: 26px; height: 26px; }

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item__name {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet-deep);
  line-height: 1.3;
}

.cart-item__price {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--violet-deep);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.cart-item__qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(44, 15, 82, .18);
  background: none;
  color: var(--violet-deep);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background .2s, border-color .2s;
}

.cart-item__qty-btn:hover {
  background: rgba(44, 15, 82, .07);
  border-color: rgba(44, 15, 82, .36);
}

.cart-item__qty-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--violet-deep);
  min-width: 18px;
  text-align: center;
}

.cart-item__remove {
  padding: 5px;
  border: none;
  background: none;
  color: rgba(44, 15, 82, .28);
  cursor: pointer;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: color .22s, background .22s;
}

.cart-item__remove:hover {
  color: var(--magenta);
  background: rgba(229, 38, 155, .08);
}

.cart-item__remove svg { width: 16px; height: 16px; display: block; }

/* cart footer */
.cart-drawer__foot {
  padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(44, 15, 82, .08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  background: #fff;
}

.cart-drawer__total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__total-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-indent: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cart-drawer__total-sum {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--violet-deep);
  letter-spacing: -.02em;
}

.cart-drawer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 22px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 100%);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition:
    opacity    .28s var(--ease),
    box-shadow .28s var(--ease),
    transform  .28s var(--ease);
  box-shadow: 0 6px 22px rgba(44, 15, 82, .28);
}

.cart-drawer__cta:hover {
  opacity: .9;
  box-shadow: 0 10px 32px rgba(44, 15, 82, .38);
  transform: translateY(-2px);
}

.cart-drawer__cta:active { transform: none; }
.cart-drawer__cta svg { width: 17px; height: 17px; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */

.p84-toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 300;
  max-width: 320px;
  background: var(--violet-deep);
  color: #fff;
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 8px 32px rgba(12, 4, 30, .36);
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  transform: translateY(16px);
  opacity: 0;
  transition: transform .38s var(--ease), opacity .38s var(--ease);
  pointer-events: none;
  inset-inline-end: 26px;
}

.p84-toast.is-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.p84-toast__icon {
  width: 18px; height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   CATALOG RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .cat-page { padding-top: 96px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  /* Search */
  .cat-search__input { font-size: 0.88rem; }

  /* Filter toggle button (mobile-only) */
  .cat-filters__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1.5px solid var(--violet-deep);
    border-radius: 12px;
    background: #fff;
    color: var(--violet-deep);
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .18s var(--ease), color .18s var(--ease);
  }

  .cat-filters__toggle[aria-expanded="true"] {
    background: var(--violet-deep);
    color: #fff;
  }

  .cat-filters__toggle-chevron {
    transition: transform .25s var(--ease);
  }

  .cat-filters__toggle[aria-expanded="true"] .cat-filters__toggle-chevron {
    transform: rotate(180deg);
  }

  /* Chips collapse on mobile */
  .cat-filters__chips {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(44, 15, 82, .1);
  }

  .cat-filters__chips.is-open { display: flex; }

  .filter-chip {
    justify-content: flex-start;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 0.88rem;
    padding: 10px 14px;
  }

  /* Sort buttons mobile */
  .cat-filters__sort { flex: 1; justify-content: flex-end; }
  .cat-sort__btn {
    flex: 1;
    justify-content: center;
    font-size: 0.78rem;
    padding: 8px 8px;
    gap: 5px;
  }
  .cat-sort__btn svg { display: none; }

  .filter-chip__count { min-width: 18px; height: 18px; font-size: 10px; }

  .cat-filters__subchips {
    flex-direction: column;
    padding-left: 12px;
  }
  .filter-chip--sub { border-radius: 10px; font-size: 0.82rem; }

  .prod-grid { gap: 8px; }
  .prod-card__body { padding: 10px; gap: 6px; }
  .prod-card__name { font-size: 12.5px; }
  .prod-card__btn { font-size: 12px; padding: 9px 10px; }
  .p84-toast { bottom: 16px; right: 16px; left: 16px; max-width: none; }
}

/* Modal: tablet */
@media (max-width: 960px) {
  .prod-modal__card { grid-template-columns: 38% 62%; }
  .prod-modal__price { font-size: clamp(28px, 3.8vw, 44px); }
}

/* Modal: mobile — vertical stack */
@media (max-width: 640px) {
  .prod-modal__card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100dvh;
    overflow-y: auto;
    animation: modalInMobile .38s var(--ease) both;
  }

  @keyframes modalInMobile {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: none; }
  }

  .prod-modal__img-wrap {
    aspect-ratio: 3 / 4;
    width: 100%;
    max-height: 42dvh;
    flex-shrink: 0;
  }

  .prod-modal__img {
    object-fit: contain;
    padding: 20px;
  }

  .prod-modal__panel {
    padding: 22px 20px 32px;
    overflow-y: visible;
    height: auto;
  }

  .prod-modal__description {
    flex: none;
    overflow-y: visible;
    margin-bottom: 20px;
  }

  .prod-modal__actions { margin-top: 0; }

  .prod-modal__name  { font-size: 15px; margin-bottom: 14px; }
  .prod-modal__price { font-size: 30px; }
  .prod-modal__price-row { margin-bottom: 20px; }
  .prod-modal__btn { padding: 15px; font-size: 10px; }
  .prod-modal__close { top: 12px; right: 12px; width: 34px; height: 34px; }
}

@media (max-width: 420px) {
  .cat-page { padding-top: 86px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
}
