/* ──────────────────────────────────────────────────────────────────────────
   Ecoprof — design tokens + global styles
   Premium soft-cream cosmetics, modern sans, hairline borders, no shadows.
   Палитра, размеры и стиль управляются через CSS-переменные (вкл. Tweaks).
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces — теплые молочные тона */
  --ep-bg:        #f6f1ea;        /* основной фон */
  --ep-surface:   #ffffff;        /* карточки */
  --ep-surface-2: #ede5d8;        /* акцент-секция */
  --ep-surface-3: #f0e9dc;        /* мягкий блок */

  /* Текст — три тира */
  --ep-ink:       #2a241e;        /* заголовки */
  --ep-ink-2:     #6f6557;        /* основной текст */
  --ep-ink-3:     #a39989;        /* мета, плейсхолдеры */

  /* Линии */
  --ep-line:      rgba(42,36,30,0.10);
  --ep-line-2:    rgba(42,36,30,0.06);

  /* Акцент (управляется Tweaks) */
  --ep-accent:    #c47862;        /* terracotta default */
  --ep-accent-ink:#ffffff;
  --ep-accent-soft: rgba(196,120,98,0.10);

  /* Sale (тоже мягкий, не кричит) */
  --ep-sale:      #b85240;
  --ep-sale-bg:   rgba(184,82,64,0.08);

  /* Типографика */
  --ep-font:      'Inter Tight', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ep-font-display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ep-font-serif:   'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --ep-font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Радиусы */
  --ep-r-sm: 8px;
  --ep-r:    14px;
  --ep-r-lg: 22px;
  --ep-r-xl: 28px;
  --ep-r-pill: 999px;

  /* Размер кружков категорий (управляется Tweaks) */
  --ep-circle: 216px;

  /* Стиль карточки товара (управляется Tweaks): tinted | clean | bordered */
  --ep-card-bg: var(--ep-surface);
  --ep-card-border: 1px solid var(--ep-line-2);
  --ep-card-radius: var(--ep-r);

  /* Motion */
  --ep-ease: cubic-bezier(0.2, 0, 0, 1);
  --ep-dur: 280ms;
}

/* ── Reset / base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
.ep-root {
  margin: 0;
  font-family: var(--ep-font);
  color: var(--ep-ink);
  background: var(--ep-bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01' on, 'cv11' on;
  letter-spacing: -0.005em;
}
.ep-root *::selection { background: var(--ep-accent); color: var(--ep-accent-ink); }
.ep-root button { font-family: inherit; cursor: pointer; }
.ep-root a { color: inherit; text-decoration: none; cursor: pointer; }

/* Mobile root tightens type a notch */
.ep-root.is-mobile { font-size: 14px; }

/* ── Typography ─────────────────────────────────────────── */
.ep-display {
  font-family: var(--ep-font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.ep-serif { font-family: var(--ep-font-serif); font-style: italic; font-weight: 400; }
.ep-mono  { font-family: var(--ep-font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ep-ink-3); }
.ep-eyebrow {
  font-family: var(--ep-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ep-ink-2);
  font-weight: 600;
}

/* ── Layout helpers ─────────────────────────────────────── */
.ep-container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.is-mobile .ep-container { padding: 0 16px; }

/* ── Header ─────────────────────────────────────────────── */
.ep-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,241,234,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ep-line-2);
}
.ep-header-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  gap: 24px;
}
.is-mobile .ep-header-inner { grid-template-columns: auto 1fr auto; height: 56px; gap: 12px; }
.ep-nav { display: flex; gap: 28px; justify-content: center; }
.ep-nav a {
  font-size: 13.5px; color: var(--ep-ink-2);
  padding: 8px 0; transition: color .2s var(--ep-ease);
}
.ep-nav a:hover { color: var(--ep-ink); }
.ep-nav a.active { color: var(--ep-ink); }
.ep-logo {
  font-family: var(--ep-font-display);
  font-weight: 500; font-size: 22px;
  letter-spacing: -0.04em;
  display: flex; align-items: center; gap: 8px;
}
.ep-logo .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ep-accent); transform: translateY(2px); }
.ep-header-actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.ep-icon-btn {
  width: 40px; height: 40px; border-radius: var(--ep-r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--ep-ink); padding: 0;
  position: relative; transition: background .2s var(--ep-ease);
}
.ep-icon-btn:hover { background: rgba(42,36,30,0.05); }
.ep-cart-count {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--ep-accent); color: var(--ep-accent-ink);
  font-size: 10px; font-weight: 600; line-height: 18px; text-align: center;
}

/* ── Buttons ────────────────────────────────────────────── */
.ep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--ep-r-pill);
  border: none; font-size: 14px; font-weight: 500;
  background: var(--ep-ink); color: #fff;
  transition: transform .15s var(--ep-ease), background .2s var(--ep-ease), opacity .2s var(--ep-ease);
}
.ep-btn:hover { background: #15110d; }
.ep-btn:active { transform: scale(0.985); }
.ep-btn.accent { background: var(--ep-accent); color: var(--ep-accent-ink); }
.ep-btn.accent:hover { filter: brightness(0.96); }
.ep-btn.ghost { background: transparent; color: var(--ep-ink); border: 1px solid var(--ep-line); }
.ep-btn.ghost:hover { background: rgba(42,36,30,0.04); }
.ep-btn.sm { height: 38px; padding: 0 16px; font-size: 13px; }
.ep-btn.lg { height: 56px; padding: 0 28px; font-size: 15px; }
.ep-btn.full { width: 100%; }

/* ── Chips ──────────────────────────────────────────────── */
.ep-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: var(--ep-r-pill);
  background: var(--ep-surface); border: 1px solid var(--ep-line-2);
  color: var(--ep-ink-2); font-size: 12.5px;
  transition: all .2s var(--ep-ease);
}
.ep-chip:hover { color: var(--ep-ink); border-color: var(--ep-line); }
.ep-chip.active { background: var(--ep-ink); color: #fff; border-color: var(--ep-ink); }

/* ── Cards (товар) ──────────────────────────────────────── */
.ep-product {
  position: relative;
  background: var(--ep-card-bg);
  border: var(--ep-card-border);
  border-radius: var(--ep-card-radius);
  padding: 16px 16px 18px;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ep-ease), border-color .25s var(--ep-ease);
  cursor: pointer;
}
.ep-product:hover { transform: translateY(-3px); border-color: var(--ep-line); }
.ep-product:hover .ep-product-add { transform: translateY(0); opacity: 1; }
.ep-product-img-wrap {
  position: relative; aspect-ratio: 1;
  border-radius: calc(var(--ep-card-radius) - 4px);
  background:
    radial-gradient(circle at 50% 50%, transparent 44%, var(--ep-card-bg, #fdfaf4) 45%) center / 0% 0% no-repeat,
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), var(--cat-color, #f0e9dc) 70%) center / 0% 0% no-repeat;
  background-color: transparent;
  transition: background-size 420ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}
.ep-product:hover .ep-product-img-wrap {
  background-size: 115% 115%, 115% 115%;
}
.ep-product-img-wrap::before { content: none; }
.ep-product-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: transform .5s var(--ep-ease); position: relative; z-index: 1; }
.ep-product-img img, .ep-product-img svg { width: 100%; height: 100%; object-fit: contain; padding: 12%; box-sizing: border-box; }
.ep-product:hover .ep-product-img { transform: scale(1.04); }
.ep-product-add {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  height: 40px; border-radius: var(--ep-r-pill);
  background: var(--ep-ink); color: #fff;
  border: none; font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
  transform: translateY(10px); opacity: 0;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 420ms cubic-bezier(0.4, 0, 0.2, 1),
    background .2s var(--ep-ease),
    color .2s var(--ep-ease);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 6px 18px rgba(42,36,30,0.16);
  cursor: pointer;
  z-index: 2;
}
.ep-product-add:hover { background: var(--ep-accent); color: var(--ep-accent-ink); }
.ep-product:hover .ep-product-add { transform: none; opacity: 1; }
/* why: touch devices have no hover; per UX the buy action lives only on the PDP, not on list cards. */
.is-mobile .ep-product-add { display: none; }
.ep-product-cat { font-family: var(--ep-font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ep-ink-2); margin: 0 0 4px; font-weight: 500; }
.ep-product-name { font-size: 14.5px; font-weight: 500; margin: 0 0 2px; letter-spacing: -0.01em; color: var(--ep-ink); }
.ep-product-sub  { font-size: 12.5px; color: var(--ep-ink-2); margin: 0 0 10px; line-height: 1.4; min-height: 2.8em; }
.ep-product-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; }
.ep-product-price { font-size: 15px; font-weight: 500; color: var(--ep-ink); font-variant-numeric: tabular-nums; }
.ep-product-old   { font-size: 12px; color: var(--ep-ink-3); text-decoration: line-through; margin-left: 6px; }
.ep-product-rating { font-size: 12px; color: var(--ep-ink-2); display: inline-flex; align-items: center; gap: 4px; }

/* Badges — мінімалістичні текстові під фото */
.ep-badges { display: flex; gap: 14px; align-items: center; margin: 0 0 6px; min-height: 14px; }
.ep-badge {
  font-family: var(--ep-font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
  color: var(--ep-ink);
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; padding: 0;
}
.ep-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none;
}
.ep-badge.new  { color: var(--ep-accent); }
.ep-badge.best { color: #9b7a30; }

/* Promo pill — акція badge (2+1, 1+1, gift, set) top-left of product image */
.ep-promo-pill {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--ep-font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  background: var(--ep-accent); color: var(--ep-accent-ink);
  box-shadow: 0 2px 8px rgba(42,36,30,0.12);
}

/* Sale pill — small soft pill in top-right corner of product image */
.ep-sale-pill {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--ep-font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 4px 8px; border-radius: 999px;
  background: var(--ep-sale-bg); color: var(--ep-sale);
  backdrop-filter: blur(4px);
}

/* ─── Sale badge variants (управляется Tweaks: a|b|c|d) ─── */
/* a: тонкая полоска со старой ценой зачёркнутой — обработано в JS */
/* b: маленький бэйдж в углу */
.ep-sale-b {
  font-family: var(--ep-font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 4px 8px; border-radius: 999px; color: var(--ep-sale); background: var(--ep-sale-bg);
}
/* c: точка-индикатор */
.ep-sale-c-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ep-sale);
  box-shadow: 0 0 0 4px var(--ep-sale-bg);
}
/* d: лента */
.ep-sale-d {
  font-family: var(--ep-font-mono); font-size: 9px; letter-spacing: 0.12em; font-weight: 600;
  padding: 3px 26px; background: var(--ep-sale); color: #fff;
  transform: rotate(-90deg) translateY(-50%); transform-origin: left top;
  position: absolute; top: 20px; left: 0;
}

.ep-award-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--ep-font-mono); font-size: 9.5px; letter-spacing: 0.08em; font-weight: 600;
  padding: 3px 8px 3px 5px; border-radius: 999px;
  background: rgba(255,255,255,0.92); color: var(--ep-ink); backdrop-filter: blur(4px);
}
.ep-award-pill::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--award-tint, #e8d5b7); display: inline-block; }

/* ── Category circles ───────────────────────────────────── */
.ep-cat-circle {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  cursor: pointer; flex: 0 0 auto;
  transition: transform .35s var(--ep-ease);
}
.ep-cat-circle:hover { transform: translateY(-2px); }
.ep-cat-circle .ring {
  width: var(--ep-circle); height: var(--ep-circle);
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), var(--ring-bg) 70%);
  display: flex; align-items: center; justify-content: center;
  transition: transform .45s var(--ep-ease), box-shadow .35s var(--ep-ease);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(42,36,30,0.06);
}
.ep-cat-circle:hover .ring { transform: scale(1.04); box-shadow: 0 12px 28px rgba(42,36,30,0.10); }
.ep-cat-circle .ring svg { width: 56%; height: 70%; }
.ep-cat-circle .ring img {
  width: 94%; height: 94%; object-fit: contain;
}
.ep-cat-circle .label {
  font-size: 14px; font-weight: 500; color: var(--ep-ink); text-align: center;
  letter-spacing: -0.005em;
}
.ep-cat-circle .count {
  font-family: var(--ep-font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ep-ink-3); margin-top: 4px;
}

/* ── Sections ───────────────────────────────────────────── */
.ep-section { padding: 96px 0; position: relative; }
.is-mobile .ep-section { padding: 56px 0; }
.ep-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 48px;
}
.is-mobile .ep-section-head { margin-bottom: 28px; flex-direction: column; align-items: flex-start; gap: 12px; }
.ep-section-title { font-family: var(--ep-font-display); font-weight: 500; font-size: 42px; line-height: 1.02; letter-spacing: -0.025em; margin: 0; }
.is-mobile .ep-section-title { font-size: 28px; }
.ep-section-sub { font-size: 15px; color: var(--ep-ink-2); margin: 6px 0 0; max-width: 480px; }

/* ── Hero ───────────────────────────────────────────────── */
.ep-hero {
  position: relative; padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--ep-bg) 0%, var(--ep-bg) 100%);
}
.ep-hero-rotator { position: relative; }
.ep-hero-slide { position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transform: translateY(16px) scale(0.995); pointer-events: none;
  transition: opacity .8s var(--ep-ease), transform .9s cubic-bezier(.4,0,.1,1); }
.ep-hero-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.ep-hero-slide.on > * { animation: ep-hero-rise .9s cubic-bezier(.32,0,.12,1) both; }
@keyframes ep-hero-rise { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: none; } }
.is-mobile .ep-hero-rotator { min-height: 0; }
.is-mobile .ep-hero-slide { position: relative; transform: none; opacity: 1; pointer-events: auto; transition: opacity .5s var(--ep-ease); }
@media (prefers-reduced-motion: reduce) { .ep-hero-slide.on > * { animation: none; } }
.is-mobile .ep-hero { padding: 32px 0 40px; }
.ep-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.is-mobile .ep-hero-grid { grid-template-columns: 1fr; gap: 32px; }
.ep-hero-title {
  font-family: var(--ep-font-display);
  font-weight: 500;
  font-size: clamp(48px, 5.6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 24px 0 24px;
}
.is-mobile .ep-hero-title { font-size: 44px; margin: 16px 0; }
.ep-hero-title em { font-family: var(--ep-font-serif); font-style: italic; font-weight: 400; color: var(--ep-ink-2); letter-spacing: 0; word-spacing: 0.08em; }
.ep-hero-lede { font-size: 17px; line-height: 1.55; color: var(--ep-ink-2); max-width: 460px; margin: 0 0 32px; }
.is-mobile .ep-hero-lede { font-size: 15px; margin-bottom: 24px; }
.ep-hero-ctas { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ep-hero-meta { margin-top: 36px; display: flex; gap: 32px; flex-wrap: wrap; }
.is-mobile .ep-hero-meta { gap: 20px; margin-top: 24px; }
.ep-hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.ep-hero-meta-item .v { font-family: var(--ep-font-display); font-size: 22px; font-weight: 500; }
.ep-hero-meta-item .k { font-size: 11px; color: var(--ep-ink-3); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--ep-font-mono); }

.ep-hero-art {
  position: relative; aspect-ratio: 1; border-radius: var(--ep-r-xl);
  background: var(--ep-surface-3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ep-hero-art .blob {
  position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: 0.6;
}
.ep-hero-art .blob.a { width: 60%; height: 60%; background: #f0c8c4; top: -10%; left: -10%; }
.ep-hero-art .blob.b { width: 55%; height: 55%; background: #c8e2d5; bottom: -10%; right: -5%; }
.ep-hero-art .blob.c { width: 40%; height: 40%; background: #e1d4ed; top: 30%; right: 20%; }
.ep-hero-art .hero-bottle { position: relative; z-index: 2; height: 78%; }

/* ── Bestseller grid ────────────────────────────────────── */
.ep-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}
.is-mobile .ep-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ── Category strip (horizontal scroll on mobile) ───────── */
.ep-cat-strip {
  display: flex; gap: 28px;
  flex-wrap: wrap; justify-content: center;
}
.is-mobile .ep-cat-strip {
  flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
  padding: 4px 16px 16px; margin: 0 -16px;
  gap: 16px;
  scrollbar-width: none;
}
.is-mobile .ep-cat-strip::-webkit-scrollbar { display: none; }
.is-mobile .ep-cat-circle { --ep-circle: 104px; }

/* ── Awards strip ───────────────────────────────────────── */
.ep-awards {
  display: flex; gap: 40px; align-items: center; justify-content: center;
  padding: 36px 0; flex-wrap: wrap;
  border-top: 1px solid var(--ep-line-2);
  border-bottom: 1px solid var(--ep-line-2);
}
.ep-awards .ep-award {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--ep-ink-2);
}
.ep-awards .ep-award-medal {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--medal); display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ep-awards .ep-award-medal::before {
  content: ''; position: absolute; inset: 6px;
  border: 1.5px dashed rgba(255,255,255,0.55); border-radius: 50%;
}
.ep-awards .ep-award-medal span {
  font-family: var(--ep-font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  color: #fff; text-transform: uppercase; line-height: 1; text-align: center;
}
.ep-awards .ep-award-label { font-size: 12px; color: var(--ep-ink-2); }

/* ── Product page ───────────────────────────────────────── */
.ep-pdp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: flex-start; padding-top: 40px;}
.is-mobile .ep-pdp-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 16px;}
.ep-pdp-gallery { position: sticky; top: 92px;}
.is-mobile .ep-pdp-gallery { position: static;}
.ep-pdp-main {
  flex: 1; min-width: 0;
  aspect-ratio: 1;
  border-radius: var(--ep-r-lg);
  background: #fdfaf4;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.ep-pdp-main svg { width: 60%; height: 80%; }
.ep-pdp-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; box-sizing: border-box; }
.ep-pdp-thumbs { display: flex; flex-direction: column; gap: 10px; width: 80px; flex: none; max-height: 100%; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.ep-pdp-thumbs::-webkit-scrollbar { width: 4px; }
.ep-pdp-thumbs::-webkit-scrollbar-thumb { background: var(--ep-line); border-radius: 2px; }
.is-mobile .ep-pdp-thumbs { flex-direction: row; width: auto; max-height: none; overflow-x: auto; overflow-y: visible; }
.ep-pdp-thumb {
  aspect-ratio: 1; flex: none; border-radius: var(--ep-r-sm);
  background: #fdfaf4;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ep-line-2); cursor: pointer;
  transition: border-color .2s var(--ep-ease);
  overflow: hidden;
}
.is-mobile .ep-pdp-thumb { width: 72px; }
.ep-pdp-thumb.active { border-color: var(--ep-ink); }
.ep-pdp-thumb svg { width: 60%; height: 70%; }
.ep-pdp-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; box-sizing: border-box; }
.ep-pdp-thumb.video {
  background: #1a1714; color: rgba(255,255,255,0.9);
}
.ep-pdp-thumb.video::after {
  content: ''; width: 0; height: 0;
  border-left: 14px solid currentColor;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.ep-pdp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ep-line-2); background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ep-ink);
  opacity: 0; pointer-events: none;
  transition: background .15s var(--ep-ease), color .15s var(--ep-ease), border-color .15s var(--ep-ease), opacity .2s var(--ep-ease);
}
.ep-pdp-main:hover .ep-pdp-arrow,
.ep-pdp-main:focus-within .ep-pdp-arrow { opacity: 1; pointer-events: auto; }
.is-mobile .ep-pdp-arrow { opacity: 1; pointer-events: auto; }
.ep-pdp-arrow:hover { background: var(--ep-ink); color: #fff; border-color: var(--ep-ink); }
.ep-pdp-arrow.prev { left: 14px; }
.ep-pdp-arrow.next { right: 14px; }

/* bottom gallery bar: video pill (left) + thumbnails (right, scroll if many) */
.ep-pdp-gallery-bar {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 6;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
}
.ep-pdp-thumbs-ov {
  flex: 1 1 auto; min-width: 0; justify-content: flex-end;
  display: flex; gap: 8px; overflow-x: auto; padding: 4px;
  position: relative; top: -6px;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .22s var(--ep-ease), transform .22s var(--ep-ease);
  scrollbar-width: thin;
}
.ep-pdp-thumbs-ov::-webkit-scrollbar { height: 4px; }
.ep-pdp-thumbs-ov::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 2px; }
/* Gallery bar is a SIBLING of .ep-pdp-main (not a child) — hover-reveal must trigger on the gallery. */
.ep-pdp-gallery:hover .ep-pdp-thumbs-ov,
.ep-pdp-gallery:focus-within .ep-pdp-thumbs-ov { opacity: 1; pointer-events: auto; transform: none; }
.is-mobile .ep-pdp-thumbs-ov { opacity: 1; pointer-events: auto; transform: none; justify-content: flex-start; width: 100%; flex: none; top: 0; }
.ep-pdp-thumb-ov {
  flex: none; width: 60px; height: 60px; padding: 0; border-radius: 14px;
  background: #fdfaf4; border: 1px solid var(--ep-line); cursor: pointer; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  outline: 2px solid transparent; outline-offset: -2px;
  transition: outline-color .15s var(--ep-ease), border-color .15s var(--ep-ease);
}
.ep-pdp-thumb-ov:hover { border-color: var(--ep-ink-3); }
.ep-pdp-thumb-ov.active { outline-color: var(--ep-accent); }
.ep-pdp-thumb-ov img { width: 100%; height: 100%; object-fit: contain; padding: 9%; box-sizing: border-box; }
.ep-pdp-thumb-ov.video { background: #1a1714; color: #fff; }
.ep-pdp-thumb-ov.video::after { content:''; width:0; height:0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }

/* video state inside the main image */
.ep-pdp-video { position: absolute; inset: 0; background: #1a1714; display: flex; align-items: center; justify-content: center; }
.ep-pdp-video::before { content:''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,0.08), transparent 60%); }
.ep-pdp-video-play {
  position: relative; z-index: 2; width: 72px; height: 72px; border-radius: 999px; cursor: pointer;
  border: 0; background: rgba(255,255,255,0.92); color: #1a1714; padding-left: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s var(--ep-ease), background .15s var(--ep-ease);
}
.ep-pdp-video-play:hover { transform: scale(1.06); background: #fff; }
.ep-pdp-video-cap { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; color: #fff; }
.ep-pdp-video-cap .e { font-family: var(--ep-font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.ep-pdp-video-cap .t { font-size: 15px; font-weight: 600; margin-top: 6px; line-height: 1.3; }
.ep-pdp-video-cap .d { font-family: var(--ep-font-mono); font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 6px; }

.ep-pdp-info { padding-top: 8px; }
.ep-pdp-title { font-family: var(--ep-font-display); font-weight: 500; font-size: 44px; line-height: 1.02; letter-spacing: -0.03em; margin: 8px 0 6px; }
.is-mobile .ep-pdp-title { font-size: 32px; }
.ep-pdp-sub { font-size: 16px; color: var(--ep-ink-2); margin: 0 0 24px; }
.ep-pdp-price-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 24px; }
.ep-pdp-price { font-family: var(--ep-font-display); font-size: 32px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ep-pdp-old   { font-size: 17px; color: var(--ep-ink-3); text-decoration: line-through; }

.ep-pdp-bullets { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 24px; border-top: 1px solid var(--ep-line-2); border-bottom: 1px solid var(--ep-line-2); margin-bottom: 24px; }
.ep-pdp-bullets li { list-style: none; display: flex; gap: 10px; font-size: 13.5px; color: var(--ep-ink-2); align-items: baseline; }
.ep-pdp-bullets li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ep-accent); flex: none; transform: translateY(-2px); }

.ep-qty {
  display: inline-flex; align-items: center; height: 48px; border-radius: var(--ep-r-pill);
  border: 1px solid var(--ep-line);
  background: var(--ep-surface);
}
.ep-qty button {
  width: 40px; height: 100%; background: transparent; border: 0; color: var(--ep-ink);
  font-size: 18px; line-height: 1; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.ep-qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }

.ep-pdp-actions { display: flex; gap: 10px; align-items: stretch; margin-top: 12px; }
.ep-pdp-actions .ep-btn { flex: 1; }

/* YouTube link card */
.ep-youtube-card {
  display: flex; gap: 14px; align-items: center;
  margin: 28px 0;
  padding: 14px; border-radius: var(--ep-r);
  background: #f5e9e3; border: 1px solid rgba(196,120,98,0.18);
  transition: transform .2s var(--ep-ease);
  cursor: pointer;
}
.ep-youtube-card:hover { transform: translateY(-1px); }
.ep-youtube-thumb {
  width: 84px; height: 60px; border-radius: 8px; background: #1a1714;
  flex: none; position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 50% 50%, #5a3024 0%, #1a1714 80%);
}
.ep-youtube-thumb::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  margin-left: 3px;
}
.ep-youtube-meta .yt-eyebrow { font-family: var(--ep-font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #b85240; }
.ep-youtube-meta .yt-title { font-size: 14.5px; font-weight: 500; margin: 2px 0 0; }
.ep-youtube-meta .yt-dur { font-size: 12px; color: var(--ep-ink-3); margin-top: 2px; }

/* PDP awards row */
.ep-pdp-awards { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.ep-pdp-award {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--ep-surface); border: 1px solid var(--ep-line-2);
}
.ep-pdp-award .medal {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--medal); display: flex; align-items: center; justify-content: center;
  font-family: var(--ep-font-mono); font-size: 8px; font-weight: 700;
  color: #fff; letter-spacing: 0.06em; text-transform: uppercase;
  position: relative;
}
.ep-pdp-award .medal::before { content:''; position:absolute; inset:3px; border: 1px dashed rgba(255,255,255,0.45); border-radius:50%;}
.ep-pdp-award .meta .a { font-size: 13px; font-weight: 500; line-height: 1.1; }
.ep-pdp-award .meta .b { font-size: 11px; color: var(--ep-ink-3); margin-top: 2px; font-family: var(--ep-font-mono); letter-spacing: 0.06em; text-transform: uppercase;}

/* Frequently Bought Together */
.ep-fbt {
  background: var(--ep-surface);
  border: 1px solid var(--ep-line-2);
  border-radius: var(--ep-r-lg);
  padding: 32px;
  margin-top: 56px;
}
.is-mobile .ep-fbt { padding: 20px; margin-top: 32px; }
.ep-fbt-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 16px;}
.ep-fbt-giftbadge {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 7px 13px; border-radius: 999px;
  background: var(--ep-accent-soft); color: var(--ep-accent);
}
.ep-fbt-gift {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ep-ink-3);
}
.ep-fbt-gift svg { flex: none; }
/* gift node at the end of the FBT row (= gift) */
.ep-fbt-plus.equals { font-size: 22px; color: var(--ep-ink-3); }
.ep-fbt-giftnode { flex: none; width: 150px; text-align: center; opacity: 0.92; }
.ep-fbt-giftnode.on { opacity: 1; }
.ep-fbt-giftnode .thumb {
  position: relative; aspect-ratio: 1; border-radius: var(--ep-r); overflow: hidden;
  background: var(--ep-accent-soft); border: 1.5px dashed color-mix(in srgb, var(--ep-accent) 45%, transparent);
  margin-bottom: 10px;
}
.ep-fbt-giftnode .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-fbt-giftnode .giftico {
  position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ep-accent); color: var(--ep-accent-ink);
  display: inline-flex; align-items: center; justify-content: center; pointer-events: none;
}
.ep-fbt-giftnode .nm { font-size: 13px; font-weight: 600; color: var(--ep-ink); }
.ep-fbt-giftnode .gsub { font-size: 11.5px; color: var(--ep-ink-3); margin-top: 2px; }
.ep-fbt-gift.on {
  font-weight: 500; color: var(--ep-accent);
  padding: 6px 12px; border-radius: 999px; background: var(--ep-accent-soft);
}
.is-mobile .ep-fbt-head { flex-direction: column; align-items: flex-start; }
.ep-fbt-row { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ep-fbt-row::-webkit-scrollbar { height: 4px; }
.ep-fbt-row::-webkit-scrollbar-thumb { background: var(--ep-line); border-radius: 2px; }
.ep-fbt-item {
  flex: none; width: 132px; display: flex; flex-direction: column; gap: 8px; cursor: pointer;
}
.is-mobile .ep-fbt-item { width: 108px; }
.ep-fbt-item .thumb {
  aspect-ratio: 1; border-radius: var(--ep-r); background: #fdfaf4;
  border: 1px solid var(--ep-line-2);
  display: flex; align-items: center; justify-content: center; position: relative;
  overflow: hidden;
}
.ep-fbt-item .thumb svg { width: 70%; height: 75%; }
.ep-fbt-item .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10%; box-sizing: border-box; }
.ep-fbt-item .check {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 1px solid var(--ep-line);
  display: flex; align-items: center; justify-content: center;
}
.ep-fbt-item.checked .check { background: var(--ep-accent); border-color: var(--ep-accent); }
.ep-fbt-item.checked .check::after {
  content: ''; width: 5px; height: 9px;
  border-right: 1.8px solid #fff; border-bottom: 1.8px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}
.ep-fbt-item .nm { font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.ep-fbt-item .pr { font-size: 12px; color: var(--ep-ink-2); font-variant-numeric: tabular-nums; }
.ep-fbt-plus { color: var(--ep-ink-3); font-weight: 300; font-size: 22px; flex: none; padding: 0 4px; }
.ep-fbt-total {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0 0; margin-top: 20px; border-top: 1px dashed var(--ep-line);
}
.is-mobile .ep-fbt-total { flex-direction: column; align-items: stretch; gap: 12px; }
.ep-fbt-total .saved {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ep-sale); font-weight: 500;
  padding: 4px 10px; background: var(--ep-sale-bg); border-radius: 999px;
}

/* ── Cart drawer ────────────────────────────────────────── */
.ep-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(42,36,30,0.32);
  z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ep-ease);
  backdrop-filter: blur(2px);
}
.ep-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.ep-drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: 440px; max-width: 92vw;
  background: var(--ep-bg);
  z-index: 101;
  transform: translateX(100%);
  transition: transform .35s var(--ep-ease);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--ep-line-2);
}
.is-mobile .ep-drawer { width: 100%; max-width: 100%; }
.ep-drawer.open { transform: none; }
.ep-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--ep-line-2);
}
.ep-drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.ep-drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--ep-line-2); background: var(--ep-bg);}

.ep-cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ep-line-2); }
.ep-cart-item:last-child { border-bottom: 0; }
.ep-cart-item .thumb {
  width: 84px; height: 84px; border-radius: var(--ep-r-sm); background: #fdfaf4;
  border: 1px solid var(--ep-line-2);
  display: flex; align-items: center; justify-content: center; flex: none;
  overflow: hidden;
}
.ep-cart-item .thumb svg { width: 60%; height: 75%; }
.ep-cart-item .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; box-sizing: border-box; }
.ep-cart-item .meta { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ep-cart-item .nm { font-size: 14px; font-weight: 500; }
.ep-cart-item .sb { font-size: 12px; color: var(--ep-ink-2); }
.ep-cart-item .row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.ep-cart-item .pr { font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 500;}
.ep-cart-item .qty-sm { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ep-line); border-radius: 999px; height: 28px;}
.ep-cart-item .qty-sm button {
  width: 26px; height: 100%; background: transparent; border: 0; color: var(--ep-ink);
  font-size: 14px; line-height: 1; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.ep-cart-item .qty-sm span { min-width: 18px; text-align: center; font-size: 12px; }
.ep-cart-item .x {
  background: transparent; border: 0; color: var(--ep-ink-3); padding: 4px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

/* Empty cart */
.ep-cart-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; padding: 60px 24px; color: var(--ep-ink-2);
}
.ep-cart-empty .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--ep-surface-3); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }

/* Cart totals */
.ep-cart-totals { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ep-cart-totals .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ep-ink-2); }
.ep-cart-totals .row.total { font-size: 16px; color: var(--ep-ink); font-weight: 500; padding-top: 8px; border-top: 1px dashed var(--ep-line); margin-top: 6px;}

/* ── Marquee / promo strip ──────────────────────────────── */
.ep-promo-strip {
  background: var(--ep-ink); color: #fff;
  font-family: var(--ep-font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 0; overflow: hidden;
}
.ep-promo-track { display: flex; gap: 64px; white-space: nowrap; animation: ep-marquee 32s linear infinite; }
.ep-promo-track span::before { content: '◇'; margin-right: 12px; color: var(--ep-accent); }
@keyframes ep-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Footer ─────────────────────────────────────────────── */
.ep-footer {
  background: var(--ep-surface-2);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.ep-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.is-mobile .ep-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
.ep-footer h4 { font-size: 12px; font-family: var(--ep-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ep-ink-3); margin: 0 0 16px; font-weight: 500;}
.ep-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ep-footer a { font-size: 14px; color: var(--ep-ink-2); }
.ep-footer a:hover { color: var(--ep-ink); }
.ep-footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ep-line-2); font-size: 12px; color: var(--ep-ink-3); }

/* ── Fade-in animation on scroll ────────────────────────── */
.ep-fade { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ep-ease), transform .6s var(--ep-ease); }
.ep-fade.in { opacity: 1; transform: none; }

/* ── Tabs (PDP) ─────────────────────────────────────────── */
.ep-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--ep-line-2); margin: 56px 0 24px; }
.ep-tab {
  background: transparent; border: 0; padding: 12px 0; color: var(--ep-ink-3);
  font-size: 14px; position: relative; cursor: pointer;
}
.ep-tab.active { color: var(--ep-ink); }
.ep-tab.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ep-ink);
}

/* ── Reviews ────────────────────────────────────────────── */
.ep-review { padding: 20px 0; border-bottom: 1px solid var(--ep-line-2); }
.ep-review .hd { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.ep-review .av { width: 36px; height: 36px; border-radius: 50%; background: var(--ep-surface-3); display: flex; align-items: center; justify-content: center; font-weight: 500; color: var(--ep-ink); }
.ep-review .stars { color: #d9a04a; font-size: 12px; letter-spacing: 1px; }
.ep-review .body { font-size: 14px; color: var(--ep-ink-2); line-height: 1.55; }

/* ── Skin quiz callout ──────────────────────────────────── */
.ep-quiz-callout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--ep-r-xl); overflow: hidden;
  background: var(--ep-surface-2);
}
.is-mobile .ep-quiz-callout { grid-template-columns: 1fr; }
.ep-quiz-callout .left { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center;}
.is-mobile .ep-quiz-callout .left { padding: 32px 24px;}
.ep-quiz-callout .right {
  background: var(--ep-surface);
  padding: 32px; display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 280px;
}
.ep-quiz-callout .right .circles { position: relative; width: 240px; height: 240px; }
.ep-quiz-callout .right .c { position: absolute; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--ep-font-mono); font-size: 9px; letter-spacing: 0.1em; color: rgba(0,0,0,0.5); text-transform: uppercase;}
.ep-quiz-callout .right .c1 { width: 130px; height: 130px; background: #fcd8c4; top: 10px; left: 0; }
.ep-quiz-callout .right .c2 { width: 110px; height: 110px; background: #c8e2d5; top: 0; right: 0; }
.ep-quiz-callout .right .c3 { width: 100px; height: 100px; background: #e1d4ed; bottom: 0; right: 32px; }
.ep-quiz-callout .right .c4 { width: 90px;  height: 90px;  background: #f4e4c1; bottom: 16px; left: 24px; }

/* ── Mobile nav drawer ──────────────────────────────────── */
.ep-mob-menu {
  position: fixed; inset: 0; background: var(--ep-bg);
  z-index: 50; transform: translateX(-100%);
  transition: transform .3s var(--ep-ease); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.ep-mob-menu.open { transform: none; }
.ep-mob-menu a { font-size: 24px; font-family: var(--ep-font-display); letter-spacing: -0.025em; padding: 10px 0; }

/* Утилита: скрыть скроллбар, оставив скролл */
.ep-noscroll::-webkit-scrollbar { display: none; }
.ep-noscroll { scrollbar-width: none; }

/* In-cart state — карточка та кнопка-степпер */
.ep-incart-pill {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--ep-font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 4px 10px 4px 6px; border-radius: 999px;
  background: var(--ep-accent); color: var(--ep-accent-ink);
}
.ep-wish-btn {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  width: 32px; height: 32px; border-radius: 999px;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.92); color: var(--ep-ink);
  backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--ep-ease), color .15s var(--ep-ease), transform .15s var(--ep-ease);
}
.ep-wish-btn:hover { transform: scale(1.08); }
.ep-wish-btn.on { background: var(--ep-accent); color: var(--ep-accent-ink); }
.ep-product.in-cart .ep-product-add { display: none; }
.ep-product-stepper {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  height: 40px; border-radius: 999px;
  background: rgba(255,255,255,0.96); color: var(--ep-ink);
  border: 1px solid var(--ep-line-2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px; backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(42,36,30,0.10);
  z-index: 2;
  opacity: 0; transform: translateY(10px);
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 420ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ep-product.in-cart:hover .ep-product-stepper { opacity: 1; transform: none; }
/* Mobile: no stepper on list cards either — quantity managed on PDP / in the cart drawer. */
.is-mobile .ep-product-stepper { display: none; }
.ep-product-stepper button {
  width: 32px; height: 32px; border-radius: 999px; border: 0;
  background: transparent; color: var(--ep-ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--ep-ease);
}
.ep-product-stepper button:hover { background: var(--ep-surface-3); }
.ep-product-stepper span { font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 24px; text-align: center; }

/* Toast — спливає у нижньому правому куті */
.ep-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 12px; border-radius: 14px;
  background: rgba(253, 250, 244, 0.97);
  border: 1px solid rgba(42,36,30,0.08);
  box-shadow: 0 12px 36px rgba(42,36,30,0.16), 0 1px 0 rgba(255,255,255,0.6) inset;
  backdrop-filter: blur(12px);
  min-width: 290px; max-width: 360px;
  opacity: 0; transform: translateY(16px) scale(0.96);
  transition:
    opacity 360ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.ep-toast.visible { opacity: 1; transform: none; pointer-events: auto; }
.ep-toast-thumb {
  width: 44px; height: 44px; border-radius: 8px; background: #fff;
  border: 1px solid var(--ep-line-2); flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ep-toast-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.ep-toast-meta { flex: 1; min-width: 0; }
.ep-toast-eyebrow {
  font-family: var(--ep-font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ep-ink-2); font-weight: 600;
}
.ep-toast-name { font-size: 13px; font-weight: 500; color: var(--ep-ink); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-toast-cta {
  flex: none; padding: 7px 12px; border-radius: 999px;
  background: var(--ep-ink); color: #fff; border: 0;
  font-size: 12px; font-weight: 500; cursor: pointer;
}
.ep-toast-cta:hover { background: #15110d; }
.is-mobile .ep-toast { left: 12px; right: 12px; bottom: 12px; min-width: auto; max-width: none; }

/* Cart icon pulse on add */
@keyframes ep-pulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.25); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.ep-cart-pulse { animation: ep-pulse 540ms cubic-bezier(0.16, 1, 0.3, 1); }

.ep-upsell-add {
  width: 30px; height: 30px; border-radius: 999px;
  border: 1px solid var(--ep-line); background: #fff; color: var(--ep-ink);
  flex: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--ep-ease), color .15s var(--ep-ease), border-color .15s var(--ep-ease);
}
.ep-upsell-add:hover {
  background: var(--ep-accent); color: var(--ep-accent-ink); border-color: var(--ep-accent);
}

/* ── Lines (collections) page — compact 5x2 ─────────────── */
.ep-line-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  aspect-ratio: 3 / 4;
  transition: transform .4s var(--ep-ease);
  display: flex; flex-direction: column;
  isolation: isolate;
}
.ep-line-card:hover { transform: translateY(-3px); }
.ep-line-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 38%, var(--cat-color) 0%, var(--cat-color) 36%, transparent 64%),
    linear-gradient(180deg, #fff, #fdfaf4);
  z-index: 0;
}
.ep-line-num {
  position: absolute; top: 10px; left: 12px; z-index: 2;
  font-size: 9.5px; color: var(--ep-ink-2); font-weight: 600; letter-spacing: 0.1em;
}
.ep-line-product {
  position: relative; z-index: 1;
  height: 64%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 8%;
  transition: transform .4s var(--ep-ease);
}
.ep-line-product img {
  max-height: 100%; max-width: 70%; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.08));
  transition: transform .4s var(--ep-ease);
}
.ep-line-card:hover .ep-line-product img { transform: translateY(-4px) scale(1.04); }
.ep-line-text {
  position: relative; z-index: 2;
  padding: 6px 14px 14px;
  text-align: center;
  margin-top: auto;
}
.ep-line-text h3 {
  font-family: var(--ep-font-display);
  font-size: 16px; font-weight: 500; letter-spacing:-0.015em;
  margin: 0 0 2px; line-height: 1.1; color: var(--ep-ink);
}
.ep-line-meta {
  font-family: var(--ep-font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ep-ink-3);
}

.is-mobile .ep-line-card { aspect-ratio: 4 / 5; border-radius: 14px; }
.is-mobile .ep-line-text h3 { font-size: 14px; }
.ep-sort-opt {
  display: block; width: 100%; padding: 10px 14px; text-align: left;
  background: transparent; color: var(--ep-ink); border: 0; cursor: pointer;
  font-size: 13px; font-family: inherit;
  transition: background .12s var(--ep-ease);
}
.ep-sort-opt:hover { background: var(--ep-surface-3); }
.ep-sort-opt.active { background: var(--ep-surface-3); font-weight: 500; }

/* ── Search overlay ─────────────────────────────────────── */
.ep-search-overlay { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.ep-search-overlay.open { pointer-events: auto; }
.ep-search-backdrop {
  position: absolute; inset: 0; background: rgba(42,36,30,0.32);
  opacity: 0; transition: opacity .25s var(--ep-ease);
  backdrop-filter: blur(4px);
}
.ep-search-overlay.open .ep-search-backdrop { opacity: 1; }
.ep-search-panel {
  position: absolute; left: 50%; top: 60px;
  transform: translate(-50%, -16px); opacity: 0;
  width: min(720px, calc(100vw - 32px));
  background: var(--ep-bg); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(42,36,30,0.16);
  transition: transform .3s var(--ep-ease), opacity .25s var(--ep-ease);
  display: flex; flex-direction: column; max-height: 75vh;
}
.ep-search-overlay.open .ep-search-panel { opacity: 1; transform: translate(-50%, 0); }
.ep-search-row {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--ep-line-2);
}
.ep-search-row input {
  flex: 1; border: 0; background: transparent; outline: none;
  font: 17px var(--ep-font); color: var(--ep-ink); letter-spacing: -0.005em;
}
.ep-search-row input::placeholder { color: var(--ep-ink-3); }
.ep-search-body { padding: 18px 20px 22px; overflow-y: auto; }
.ep-search-hit {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  margin: 0 -12px; border-radius: 10px; cursor: pointer;
  transition: background .12s var(--ep-ease);
}
.ep-search-hit:hover { background: var(--ep-surface-3); }
.ep-search-hit .thumb {
  width: 48px; height: 48px; flex: none; border-radius: 8px;
  background: #fff; border: 1px solid var(--ep-line-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ep-search-hit .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; box-sizing: border-box; }

/* ── Cookie banner ───────────────────────────────────── */
.ep-cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  max-width: 760px; margin: 0 auto;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ep-line-2);
  border-radius: 18px; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(42,36,30,0.12);
  z-index: 150;
  font-size: 13.5px; color: var(--ep-ink-2); line-height: 1.5;
}
.ep-cookie-text { flex: 1; min-width: 220px; }
.ep-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ep-cookie-btn {
  border: 0; padding: 9px 16px; border-radius: 999px;
  font: 500 12.5px var(--ep-font); cursor: pointer;
  transition: background .15s var(--ep-ease), opacity .15s var(--ep-ease);
}
.ep-cookie-btn.ghost { background: var(--ep-surface-3); color: var(--ep-ink); }
.ep-cookie-btn.ghost:hover { background: var(--ep-line-2); }
.ep-cookie-btn.primary { background: var(--ep-ink); color: #fff; }
.ep-cookie-btn.primary:hover { background: #15110d; }
.is-mobile .ep-cookie-banner { padding: 14px; }
.is-mobile .ep-cookie-actions { width: 100%; }
.is-mobile .ep-cookie-btn { flex: 1; }

/* Range sliders — accent colored */
.ep-root input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; padding: 0; margin: 4px 0;
  background: transparent; outline: none; cursor: pointer;
  accent-color: var(--ep-accent);
}
.ep-root input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(to right, var(--ep-accent) var(--fill, 0%), var(--ep-line-2) var(--fill, 0%));
}
.ep-root input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 999px; background: var(--ep-line-2);
}
.ep-root input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ep-accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(42,36,30,0.18);
  cursor: grab; margin-top: -7px;
  transition: transform .15s var(--ep-ease);
}
.ep-root input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }
.ep-root input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ep-accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(42,36,30,0.18);
  cursor: grab;
}

/* Dual-handle price slider */
.ep-price-range {
  position: relative;
  height: 22px;
  margin: 4px 0;
  touch-action: none; /* why: prevent the page scrolling while a thumb is being dragged on touch */
}
.ep-price-range .track-bg {
  position: absolute; top: 9px; left: 0; right: 0; height: 4px;
  background: var(--ep-line-2);
  border-radius: 999px; pointer-events: none;
}
.ep-price-range .track-fill {
  position: absolute; top: 9px; height: 4px;
  background: var(--ep-accent);
  border-radius: 999px; pointer-events: none;
}
/* Native <input type=range> rules removed — DualPriceRange (see store-catalog.jsx)
   replaced the stacked-native pattern with explicit pointer events on .ep-price-thumb. */

/* ── Generic modal ─────────────────────────────────────── */
.ep-modal-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(42,36,30,0.4); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: ep-fadein .2s var(--ep-ease);
}
.ep-modal {
  position: relative;
  width: 100%; max-width: 460px;
  background: var(--ep-bg); border-radius: 22px;
  padding: 36px 32px 32px;
  box-shadow: 0 24px 60px rgba(42,36,30,0.20);
  animation: ep-modal-in .3s var(--ep-ease);
  max-height: 90vh; overflow-y: auto;
}
.ep-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 999px;
  border: 0; background: transparent; cursor: pointer;
  color: var(--ep-ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--ep-ease);
}
.ep-modal-close:hover { background: var(--ep-surface-3); }
@keyframes ep-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes ep-modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* OAuth buttons — recognizable */
.ep-oauth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: var(--ep-r-pill);
  font: 500 13.5px var(--ep-font); letter-spacing: -0.005em;
  cursor: pointer; transition: background .15s var(--ep-ease), border-color .15s var(--ep-ease);
}
.ep-oauth-btn.google {
  background: #ffffff; color: #3c4043;
  border: 1px solid #dadce0;
}
.ep-oauth-btn.google:hover { background: #f8f9fa; border-color: #d2e3fc; }
.ep-oauth-btn.apple {
  background: #000000; color: #ffffff;
  border: 1px solid #000000;
}
.ep-oauth-btn.apple:hover { background: #1a1a1a; }
.ep-oauth-btn svg { flex: none; display: block; }

/* ════════════════════════════════════════════════════════════
   PDP — selling-landing sections
   Bolder weights, conversion-focused blocks. Used on the product page.
   ════════════════════════════════════════════════════════════ */

/* Info column — selling layout */
.ep-sell-title {
  font-family: var(--ep-font-display); font-weight: 700;
  font-size: 46px; line-height: 1.0; letter-spacing: -0.035em; margin: 10px 0 8px;
}
.is-mobile .ep-sell-title { font-size: 33px; }
.ep-sell-tagline { font-size: 17px; color: var(--ep-ink-2); margin: 0 0 18px; line-height: 1.5; max-width: 460px; }

/* checklist bullets (replace dot bullets) */
.ep-sell-checks { display: flex; flex-direction: column; gap: 11px; margin: 22px 0 26px; padding: 0; }
.ep-sell-checks li { list-style: none; display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ep-ink); font-weight: 500; }
.ep-sell-checks li .ck {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ep-accent-soft); color: var(--ep-accent);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}

/* price block */
.ep-sell-pricebox { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 20px 0 6px; }
.ep-sell-price { font-family: var(--ep-font-display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ep-sell-old { font-size: 19px; color: var(--ep-ink-3); text-decoration: line-through; }
.ep-sell-off {
  font-family: var(--ep-font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--ep-sale); color: #fff; padding: 5px 10px; border-radius: 999px;
}
.ep-sell-instal { font-family: var(--ep-font-mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--ep-ink-2); text-transform: none; margin: 0 0 20px; }
.ep-sell-instal b { color: var(--ep-ink); font-weight: 600; }

/* promo callout on PDP (акція) */
.ep-promo-callout {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 0;
  padding: 12px 16px; border-radius: var(--ep-r);
  background: var(--ep-accent-soft); border: 1px solid color-mix(in srgb, var(--ep-accent) 30%, transparent);
}
.ep-promo-callout .b {
  flex: none; font-family: var(--ep-font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 999px; background: var(--ep-accent); color: var(--ep-accent-ink);
}
.ep-promo-callout .l { font-size: 14px; font-weight: 500; color: var(--ep-ink); line-height: 1.3; }

/* big add row */
.ep-sell-actions { display: flex; gap: 10px; align-items: stretch; }
.ep-sell-actions .ep-btn { flex: 1; font-size: 15px; font-weight: 600; white-space: nowrap; }
.ep-btn.xl { height: 56px; padding: 0 22px; font-size: 15px; }

/* trust / guarantee row */
.ep-sell-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.is-mobile .ep-sell-trust { grid-template-columns: 1fr; gap: 10px; }
.ep-sell-trust .it { display: flex; gap: 10px; align-items: flex-start; }
.ep-sell-trust .it svg { flex: none; color: var(--ep-accent); margin-top: 1px; }
.ep-sell-trust .it .h { font-size: 12.5px; font-weight: 600; color: var(--ep-ink); line-height: 1.2; }
.ep-sell-trust .it .s { font-size: 11.5px; color: var(--ep-ink-3); margin-top: 2px; line-height: 1.25; }

/* generic selling section header */
.ep-sell-h { font-family: var(--ep-font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; color: var(--ep-ink); }

/* Pain → promise band */
.ep-sell-pain {
  margin-top: 64px; padding: 64px 8%; border-radius: var(--ep-r-xl);
  background: var(--ep-surface-2); text-align: center;
}
.is-mobile .ep-sell-pain { margin-top: 40px; padding: 40px 22px; }
.ep-sell-pain .q { font-size: clamp(28px, 3.4vw, 46px); font-weight: 700; max-width: 720px; margin: 14px auto 16px; text-wrap: balance; }
.ep-sell-pain .a { font-size: 17px; color: var(--ep-ink-2); max-width: 560px; margin: 0 auto; line-height: 1.6; }
.is-mobile .ep-sell-pain .a { font-size: 15px; }
.ep-sell-stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; margin-top: 40px; }
.is-mobile .ep-sell-stats { gap: 32px; margin-top: 28px; }
.ep-sell-stat .v { font-family: var(--ep-font-display); font-weight: 700; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.ep-sell-stat .k { font-family: var(--ep-font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ep-ink-3); margin-top: 8px; }

/* Benefits grid */
.ep-sell-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.is-mobile .ep-sell-benefits { grid-template-columns: 1fr; gap: 14px; }
.ep-sell-benefit { background: var(--ep-surface); border: 1px solid var(--ep-line-2); border-radius: var(--ep-r-lg); padding: 28px 26px; }
.ep-sell-benefit .ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--ep-accent-soft); color: var(--ep-accent);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.ep-sell-benefit h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 7px; color: var(--ep-ink); }
.ep-sell-benefit p { font-size: 14px; color: var(--ep-ink-2); line-height: 1.55; margin: 0; }
/* photo benefit cards */
.ep-sell-benefit.photo { padding: 0; overflow: hidden; }
.ep-benefit-photo { aspect-ratio: 3/4.2; overflow: hidden; background: var(--ep-surface-3); }
.is-mobile .ep-benefit-photo { aspect-ratio: 16/12; }
.ep-benefit-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-benefit-body { padding: 22px 24px 26px; }

/* Floating Telegram help button.
   why: animating width:56px → auto isn't interpolatable in CSS (auto is a keyword,
   not a numeric value) — browsers snap instantly, which felt like a glitch.
   Instead let the button size itself naturally (inline-flex) and animate ONLY the
   label's max-width; the button width follows smoothly as content expands. */
.ep-tg-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 0;
  min-width: 56px; height: 56px; padding: 0 16px; justify-content: center;
  border-radius: 999px; background: var(--ep-accent); color: #fff; text-decoration: none;
  box-shadow: 0 8px 24px rgba(42,36,30,0.22); cursor: pointer;
  overflow: hidden;
  transition: box-shadow .25s var(--ep-ease), transform .25s var(--ep-ease);
}
.ep-tg-fab svg { flex: none; fill: #fff; color: #fff; }
.ep-tg-fab-label {
  max-width: 0; opacity: 0; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: #fff;
  transition: max-width .4s var(--ep-ease), opacity .3s var(--ep-ease), margin-left .4s var(--ep-ease);
}
.ep-tg-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(42,36,30,0.3); }
.ep-tg-fab:hover .ep-tg-fab-label { max-width: 160px; opacity: 1; margin-left: 9px; }
.is-mobile .ep-tg-fab { right: 16px; bottom: 16px; }

/* Consultation decorative side art — gentle drift + flowing vine */
@keyframes ep-consult-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes ep-consult-float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
@keyframes ep-consult-vine { to { stroke-dashoffset: -38; } }
@keyframes ep-consult-pulse { 0%,100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.55; transform: scale(1.05); } }
.ep-consult-deco { animation: ep-consult-float 8s ease-in-out infinite; transform-origin: center; will-change: transform; }
.ep-consult-deco.r { animation: ep-consult-float2 10s ease-in-out infinite; }
.ep-consult-deco .b1 { transform-box: fill-box; transform-origin: center; animation: ep-consult-pulse 7s ease-in-out infinite; }
.ep-consult-deco.r .b1 { animation-delay: -3s; }
.ep-consult-deco .b2 { transform-box: fill-box; transform-origin: center; animation: ep-consult-float2 6s ease-in-out infinite; }
.ep-consult-vine { animation: ep-consult-vine 5s linear infinite; }
.ep-consult-deco .ep-leaf { transform-box: fill-box; transform-origin: center; animation: ep-consult-pulse 8s ease-in-out infinite; }
.ep-consult-deco.r .ep-leaf { animation-delay: -3s; }
@media (prefers-reduced-motion: reduce) {
  .ep-consult-deco, .ep-consult-deco .b1, .ep-consult-deco .b2, .ep-consult-vine, .ep-consult-deco .ep-leaf { animation: none; }
}

/* How-to steps — illustrated photo cards */
.ep-steps { position: relative; margin-top: 32px; }
.ep-steps-row { position: relative; display: grid; grid-template-columns: repeat(var(--steps), 1fr); gap: 22px; }
.is-mobile .ep-steps-row { grid-template-columns: 1fr; gap: 18px; }

.ep-step { position: relative; display: flex; flex-direction: column; }

.ep-step-photo { position: relative; aspect-ratio: 3/5; border-radius: var(--ep-r-lg); overflow: hidden; background: var(--ep-surface-3); }
.is-mobile .ep-step-photo { aspect-ratio: 16/11; }
.ep-step-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-step-num {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ep-accent); color: var(--ep-accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ep-font-display); font-weight: 700; font-size: 17px;
  box-shadow: 0 4px 14px rgba(42,36,30,0.22);
}

.ep-step-card { padding: 18px 4px 0; }
.is-mobile .ep-step-card { padding: 14px 2px 0; }
.ep-step-tag { font-family: var(--ep-font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ep-accent); margin-bottom: 8px; }
.ep-step h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 7px; color: var(--ep-ink); }
.ep-step p { font-size: 13.5px; color: var(--ep-ink-2); line-height: 1.55; margin: 0; }

/* How-to steps (legacy) */
.ep-sell-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.is-mobile .ep-sell-steps { grid-template-columns: 1fr; }
.ep-sell-step { position: relative; background: var(--ep-surface-3); border-radius: var(--ep-r-lg); padding: 26px 24px; }
.ep-sell-step-num {
  display: flex; align-items: baseline; gap: 9px; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--ep-line);
  font-family: var(--ep-font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ep-ink-3);
}
.ep-sell-step-num b {
  font-family: var(--ep-font-display); font-weight: 700; font-size: 34px; line-height: 0.9;
  letter-spacing: -0.03em; color: var(--ep-accent); text-transform: none;
}
.ep-sell-step h4 { font-size: 16px; font-weight: 600; margin: 0 0 6px; color: var(--ep-ink); }
.ep-sell-step p { font-size: 13.5px; color: var(--ep-ink-2); line-height: 1.5; margin: 0; }

/* Before / after band */
.ep-sell-ba { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; margin-top: 56px; background: var(--ep-surface); border: 1px solid var(--ep-line-2); border-radius: var(--ep-r-xl); padding: 32px; }
.is-mobile .ep-sell-ba { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
.ep-sell-ba-img { position: relative; aspect-ratio: 16/10; border-radius: var(--ep-r-lg); overflow: hidden; background: var(--ep-surface-3); }
.ep-sell-ba-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-sell-ba-img .divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); background: rgba(255,255,255,0.85); z-index: 4; pointer-events: none; }
.ep-sell-ba-img .lbl { position: absolute; top: 14px; z-index: 5; padding: 4px 10px; border-radius: 999px; font-family: var(--ep-font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* FAQ accordion */
.ep-sell-faq { margin-top: 56px; max-width: 820px; }
.ep-sell-faq2 { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.is-mobile .ep-sell-faq2 { grid-template-columns: 1fr; gap: 18px; }
.ep-sell-faq-aside { position: sticky; top: 92px; }
.is-mobile .ep-sell-faq-aside { position: static; }
.ep-sell-faq-aside .help { font-size: 14px; color: var(--ep-ink-2); line-height: 1.6; margin: 0; max-width: 300px; }
.ep-sell-faq-list { border-top: 1px solid var(--ep-line-2); }
.ep-sell-faq-item { border-bottom: 1px solid var(--ep-line-2); }
.ep-sell-faq-q { width: 100%; text-align: left; background: transparent; border: 0; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 17px; font-weight: 600; color: var(--ep-ink); letter-spacing: -0.01em; }
.ep-sell-faq-q > span:first-child { flex: 1; }
.ep-sell-faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ep-line); position: relative; transition: background .2s var(--ep-ease), border-color .2s var(--ep-ease); }
.ep-sell-faq-q .pm::before, .ep-sell-faq-q .pm::after { content: ''; position: absolute; background: var(--ep-ink); transition: transform .25s var(--ep-ease), opacity .25s var(--ep-ease); }
.ep-sell-faq-q .pm::before { top: 50%; left: 8px; right: 8px; height: 2px; transform: translateY(-50%); }
.ep-sell-faq-q .pm::after { left: 50%; top: 8px; bottom: 8px; width: 2px; transform: translateX(-50%); }
.ep-sell-faq-item.open .ep-sell-faq-q .pm { background: var(--ep-ink); border-color: var(--ep-ink); }
.ep-sell-faq-item.open .ep-sell-faq-q .pm::before { background: #fff; }
.ep-sell-faq-item.open .ep-sell-faq-q .pm::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.ep-sell-faq-a { overflow: hidden; max-height: 0; transition: max-height .3s var(--ep-ease); }
.ep-sell-faq-item.open .ep-sell-faq-a { max-height: 360px; }
.ep-sell-faq-a p { font-size: 14.5px; color: var(--ep-ink-2); line-height: 1.65; margin: 0 0 22px; max-width: 680px; }

/* Repeat CTA band */
.ep-sell-cta { margin-top: 56px; border-radius: var(--ep-r-xl); background: var(--ep-surface-2); color: var(--ep-ink); border: 1px solid var(--ep-line-2); padding: 44px 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.is-mobile .ep-sell-cta { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; text-align: center; }
.ep-sell-cta .thumb { width: 96px; height: 96px; border-radius: var(--ep-r); background: #fff; border: 1px solid var(--ep-line-2); overflow: hidden; flex: none; }
.is-mobile .ep-sell-cta .thumb { margin: 0 auto; }
.ep-sell-cta .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10%; box-sizing: border-box; }
.ep-sell-cta h3 { font-family: var(--ep-font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--ep-ink); }
.ep-sell-cta p { font-size: 14px; color: var(--ep-ink-2); margin: 0; line-height: 1.5; }
.ep-sell-cta .price-now { font-family: var(--ep-font-display); font-weight: 700; font-size: 28px; color: var(--ep-ink); }
.ep-sell-cta .price-old { font-size: 16px; color: var(--ep-ink-3); text-decoration: line-through; margin-left: 10px; }
.ep-sell-cta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ep-sell-cta-right .ep-btn { white-space: nowrap; }
.is-mobile .ep-sell-cta-right { align-items: stretch; }

/* About / description (editorial) */
.ep-sell-about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.is-mobile .ep-sell-about { grid-template-columns: 1fr; gap: 18px; }
.ep-sell-about .body p { font-size: 16.5px; line-height: 1.7; color: var(--ep-ink-2); margin: 0 0 18px; }
.ep-sell-about .body p:last-child { margin-bottom: 0; }

/* Key actives chips */
.ep-sell-actives { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.is-mobile .ep-sell-actives { grid-template-columns: 1fr 1fr; }
.ep-sell-active { background: var(--ep-surface); border: 1px solid var(--ep-line-2); border-radius: var(--ep-r); padding: 18px; }
.ep-sell-active .n { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ep-ink); }
.ep-sell-active .d { font-size: 12.5px; color: var(--ep-ink-2); margin-top: 4px; line-height: 1.35; }

/* Full INCI */
.ep-sell-inci { background: var(--ep-surface-3); border-radius: var(--ep-r-lg); padding: 24px 26px; }
.ep-sell-inci .lbl { font-family: var(--ep-font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ep-ink-3); margin-bottom: 10px; }
.ep-sell-inci .txt { font-family: var(--ep-font-mono); font-size: 12.5px; line-height: 1.75; color: var(--ep-ink-2); }

/* Reviews with summary */
.ep-sell-rev { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; }
.is-mobile .ep-sell-rev { grid-template-columns: 1fr; gap: 28px; }
.ep-sell-rev-summary { position: sticky; top: 92px; }
.is-mobile .ep-sell-rev-summary { position: static; }
.ep-sell-rev-summary .big { font-family: var(--ep-font-display); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.ep-sell-rev-summary .stars { color: #d9a04a; font-size: 18px; letter-spacing: 2px; margin-top: 8px; }
.ep-sell-rev-summary .cnt { font-size: 13px; color: var(--ep-ink-3); margin-top: 6px; }
.ep-sell-rev-summary .bars { display: flex; flex-direction: column; gap: 7px; margin-top: 20px; }
.ep-sell-rev-summary .bar { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ep-ink-3); }
.ep-sell-rev-summary .bar .k { width: 22px; font-variant-numeric: tabular-nums; }
.ep-sell-rev-summary .bar .track { flex: 1; height: 6px; border-radius: 999px; background: var(--ep-line-2); overflow: hidden; }
.ep-sell-rev-summary .bar .fill { display: block; height: 100%; background: var(--ep-accent); border-radius: 999px; }
.ep-sell-rev-summary .bar .v { width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.ep-sell-rev-list { display: flex; flex-direction: column; gap: 16px; }

/* ════════════════════════════════════════════════════════════
   PDP — discount badge, 1-click order, video lightbox
   ════════════════════════════════════════════════════════════ */
.ep-pdp-discount {
  position: absolute; top: 24px; right: 24px; z-index: 6;
  font-family: var(--ep-font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  background: var(--ep-sale); color: #fff; padding: 6px 11px; border-radius: 999px;
}
.ep-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* watch-video pill on the main image */
.ep-pdp-vidbtn {
  position: absolute; left: 16px; bottom: 16px; z-index: 6;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 7px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  font: 600 12.5px var(--ep-font); color: var(--ep-ink); letter-spacing: -0.01em;
  transition: transform .15s var(--ep-ease), box-shadow .15s var(--ep-ease);
}
.ep-pdp-vidbtn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.ep-pdp-vidbtn .ct { margin-left: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ep-accent); color: var(--ep-accent-ink); font-family: var(--ep-font-mono); font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.ep-pdp-vidbtn .pp { width: 28px; height: 28px; border-radius: 50%; background: var(--ep-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; padding-left: 2px; }

/* shared modal backdrop */
.ep-qb-backdrop, .ep-vid-backdrop {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(20,16,12,0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: ep-fadein .2s ease;
}
.ep-qb, .ep-vid {
  position: relative; width: 100%; background: var(--ep-surface);
  border-radius: var(--ep-r-lg); box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  animation: ep-modal-in .25s var(--ep-ease);
}
.ep-qb { max-width: 420px; padding: 28px; }
.ep-qb-h { font-family: var(--ep-font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 8px 0 18px; }
.ep-qb-sum { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--ep-line-2); border-radius: var(--ep-r); margin-bottom: 18px; }
.ep-qb-sum .th { width: 52px; height: 52px; border-radius: 10px; background: #fff; border: 1px solid var(--ep-line-2); overflow: hidden; flex: none; }
.ep-qb-sum .th img { width: 100%; height: 100%; object-fit: contain; padding: 8%; box-sizing: border-box; }
.ep-qb-field { display: block; margin-bottom: 12px; }
.ep-qb-field .lb { font-size: 12px; color: var(--ep-ink-2); margin-bottom: 6px; display: block; }
.ep-qb-field input { width: 100%; height: 48px; border: 1px solid var(--ep-line); border-radius: var(--ep-r); padding: 0 14px; font: 500 15px var(--ep-font); color: var(--ep-ink); background: var(--ep-bg); box-sizing: border-box; }
.ep-qb-field textarea { width: 100%; border: 1px solid var(--ep-line); border-radius: var(--ep-r); padding: 11px 14px; font: 500 14px var(--ep-font); color: var(--ep-ink); background: var(--ep-bg); box-sizing: border-box; resize: vertical; }
.ep-qb-field input:focus, .ep-qb-field textarea:focus { outline: none; border-color: var(--ep-accent); }
.ep-qb-note { font-size: 12px; color: var(--ep-ink-3); margin: 14px 0 0; text-align: center; line-height: 1.45; }
.ep-qb-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; color: var(--ep-ink-2); display: inline-flex; align-items: center; justify-content: center; z-index: 4; transition: background .15s var(--ep-ease); }
.ep-qb-x:hover { background: var(--ep-surface-3); }
.ep-qb-success { text-align: center; padding: 14px 4px; }
.ep-qb-success .ic { width: 60px; height: 60px; border-radius: 50%; background: var(--ep-accent-soft); color: var(--ep-accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* video lightbox */
.ep-vid { max-width: 760px; overflow: hidden; }
.ep-vid-stage { position: relative; aspect-ratio: 16/9; background: #1a1714; display: flex; align-items: center; justify-content: center; }
.ep-vid-stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,0.08), transparent 60%); }
.ep-vid-meta { padding: 18px 22px 22px; }
.ep-vid-meta .e { font-family: var(--ep-font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ep-ink-3); }
.ep-vid-meta .t { font-size: 16px; font-weight: 600; margin-top: 6px; color: var(--ep-ink); }
.ep-vid-meta .d { font-family: var(--ep-font-mono); font-size: 11px; color: var(--ep-ink-3); margin-top: 6px; }
.ep-vid-kind { position: absolute; top: 14px; left: 14px; z-index: 3; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-family: var(--ep-font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ep-ink); }
/* playlist rail */
.ep-vid-rail { display: flex; gap: 10px; padding: 0 22px 22px; overflow-x: auto; scrollbar-width: thin; }
.ep-vid-rail::-webkit-scrollbar { height: 5px; }
.ep-vid-rail::-webkit-scrollbar-thumb { background: var(--ep-line); border-radius: 3px; }
.ep-vid-railitem { flex: none; width: 160px; padding: 0; background: transparent; border: 0; cursor: pointer; text-align: left; }
.ep-vid-railitem .thumb { position: relative; display: block; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: #fdfaf4; border: 2px solid transparent; transition: border-color .15s var(--ep-ease); }
.ep-vid-railitem.active .thumb { border-color: var(--ep-accent); }
.ep-vid-railitem .thumb .pp { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(26,23,20,0.78); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding-left: 2px; }
.ep-vid-railitem .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 7px; }
.ep-vid-railitem .meta .k { font-size: 12.5px; font-weight: 600; color: var(--ep-ink); }
.ep-vid-railitem.active .meta .k { color: var(--ep-accent); }
.ep-vid-railitem .meta .dd { font-family: var(--ep-font-mono); font-size: 10.5px; color: var(--ep-ink-3); flex: none; }

/* consultation video-testimonial cards */
.ep-vtest { padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; display: block; }
.ep-vtest .media { position: relative; display: block; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: var(--ep-surface-3); }
.ep-vtest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-vtest .scrim { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(20,16,12,0) 40%, rgba(20,16,12,0.72) 100%); pointer-events: none; }
.ep-vtest .pp { position: absolute; top: 14px; left: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--ep-ink); display: inline-flex; align-items: center; justify-content: center; padding-left: 2px; transition: transform .15s var(--ep-ease); }
.ep-vtest:hover .pp { transform: scale(1.08); }
.ep-vtest .dur { position: absolute; top: 16px; right: 14px; z-index: 3; font-family: var(--ep-font-mono); font-size: 10.5px; color: #fff; background: rgba(20,16,12,0.5); padding: 3px 8px; border-radius: 999px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ep-vtest .cap { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3; display: flex; flex-direction: column; gap: 3px; }
.ep-vtest .cap .n { font-size: 13.5px; font-weight: 600; color: #fff; }
.ep-vtest .cap .c { font-size: 12px; color: rgba(255,255,255,0.82); line-height: 1.35; }

/* prominent dark "buy in 1 click" button, inline with add-to-cart */
.ep-btn-oneclick { background: var(--ep-ink); color: #fff; border: 1px solid var(--ep-ink); }
.ep-btn-oneclick:hover { background: #15110d; border-color: #15110d; }
.ep-btn-oneclick svg { margin-right: 3px; }
/* ──────────────────────────────────────────────────────────────
   New rules for production demo (no overrides — all override-style
   tweaks are merged into the original rules above).
   ────────────────────────────────────────────────────────────── */

/* Thumb for the custom DualPriceRange (see store-catalog.jsx). */
.ep-price-thumb {
  position: absolute; top: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  padding: 0;
  border-radius: 50%;
  background: var(--ep-accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(42,36,30,0.18);
  cursor: grab;
  z-index: 2;
  transition: transform .15s var(--ep-ease);
  -webkit-tap-highlight-color: transparent;
}
.ep-price-thumb:active { cursor: grabbing; transform: scale(1.1); z-index: 3; }
.ep-price-thumb:focus { outline: none; box-shadow: 0 0 0 4px var(--ep-accent-soft), 0 2px 6px rgba(42,36,30,0.18); }

/* Before/after thumbnail — actual photo preview with center split + small tag
   (replaces the tiny abstract icon that read as a user avatar). */
.ep-pdp-thumb-ov.ba { position: relative; background: #fdfaf4; }
.ep-pdp-thumb-ov.ba img { object-fit: cover; padding: 0; }
.ep-pdp-thumb-ov.ba .ba-split { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); background: rgba(255,255,255,0.92); box-shadow: 0 0 3px rgba(0,0,0,0.25); pointer-events: none; }
.ep-pdp-thumb-ov.ba .ba-tag { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font-family: var(--ep-font-mono); font-size: 7.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: rgba(42,36,30,0.62); padding: 1px 5px; border-radius: 999px; line-height: 1.5; white-space: nowrap; pointer-events: none; }

/* 1-click modal — quantity stepper between product summary and contact fields. */
.ep-qb-qty { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ep-qb-qty .lb { font-size: 13px; color: var(--ep-ink-2); }
.ep-qb-stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--ep-line); border-radius: 999px; height: 40px; padding: 0 4px; }
.ep-qb-stepper button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--ep-ink); font-size: 18px; line-height: 1; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s var(--ep-ease); }
.ep-qb-stepper button:hover:not(:disabled) { background: var(--ep-surface-3); }
.ep-qb-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.ep-qb-stepper span { min-width: 30px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Mobile sticky buy bar — fixed to viewport bottom, smaller buttons, iPhone safe-area inset. */
.is-mobile .ep-sell-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  flex-wrap: nowrap; gap: 8px; align-items: center;
  margin: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(246,241,234,0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--ep-line);
  box-shadow: 0 -4px 20px rgba(42,36,30,0.10);
}
.is-mobile .ep-sell-actions .ep-btn { flex: 1; min-width: 0; }
.is-mobile .ep-sell-actions .ep-btn.xl { height: 48px; font-size: 13px; padding: 0 10px; }
.is-mobile .ep-btn-oneclick { gap: 4px; }
.is-mobile .ep-btn-oneclick svg { margin-right: 0; }

/* Mobile: PDP gallery bar drops below the image as a static column (video CTA, then thumbs). */
.is-mobile .ep-pdp-gallery-bar { position: static; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 0 0; }
.is-mobile .ep-pdp-vidbtn { position: static; }

/* Clearance so the fixed buy bar doesn't cover the last content / footer on mobile. */
.is-mobile .ep-pdp-root { padding-bottom: 84px; }

/* ====== SHOPIFY DAWN CHECKOUT (mockup) ====== */
.shopify-checkout {
  background: var(--ep-bg);
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: #202223;
  padding-top: 0;
}
.shopify-checkout * { box-sizing: border-box; }
.shopify-header {
  background: rgba(246,241,234,0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ep-line-2);
  padding: 18px 5%;
  position: sticky; top: 0; z-index: 10;
}
.shopify-header .ep-logo.shopify-logo {
  text-decoration: none;
  color: var(--ep-ink);
}
.shopify-checkout-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  padding: 40px 5% 80px;
}
@media (max-width: 900px) {
  .shopify-checkout-grid { grid-template-columns: 1fr; gap: 30px; padding: 20px 4% 60px; }
}
.shopify-breadcrumb {
  font-size: 13px;
  color: var(--ep-ink-3);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shopify-breadcrumb a, .shopify-breadcrumb span {
  color: var(--ep-ink-3);
  text-decoration: none;
}
.shopify-breadcrumb .active { color: var(--ep-ink); font-weight: 600; }
.shopify-breadcrumb a:hover { color: var(--ep-accent); text-decoration: underline; }
.shopify-step { background: transparent; }
.shopify-h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 18px;
  color: var(--ep-ink);
  font-family: var(--ep-font-display, inherit);
  letter-spacing: -0.015em;
}
.shopify-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--ep-line);
  border-radius: 14px;
  font-size: 15px;
  font-family: var(--ep-font), 'Inter', sans-serif;
  background: var(--ep-surface);
  margin-bottom: 14px;
  color: var(--ep-ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  letter-spacing: -0.005em;
  appearance: none;
  -webkit-appearance: none;
}
.shopify-input::placeholder { color: var(--ep-ink-3); font-size: 14.5px; }
.shopify-input:hover { border-color: var(--ep-ink-3); }
.shopify-input:focus {
  outline: none;
  border-color: var(--ep-accent);
  box-shadow: 0 0 0 3px var(--ep-accent-soft);
  background: var(--ep-surface);
}
/* select dropdown matches */
select.shopify-input {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%236f6557' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.shopify-input:focus {
  outline: none;
  border-color: var(--ep-accent);
  box-shadow: 0 0 0 1px var(--ep-accent);
}
.shopify-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.shopify-row-2 .shopify-input { margin-bottom: 0; }
.shopify-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ep-ink-2);
  margin: -4px 0 28px;
  cursor: pointer;
  user-select: none;
}
.shopify-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--ep-accent);
  cursor: pointer;
}
.shopify-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--ep-line);
  border-radius: 5px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
}
.shopify-radio.active {
  border-color: var(--ep-accent);
  background: var(--ep-accent-soft);
  box-shadow: 0 0 0 1px var(--ep-accent);
}
.shopify-radio input { margin: 0; }
.shopify-radio .name { font-weight: 500; font-size: 14px; }
.shopify-radio .sub { font-size: 12px; color: var(--ep-ink-3); margin-top: 2px; }
.shopify-radio .price { margin-left: auto; font-weight: 600; }
.shopify-radio > div:first-of-type { flex: 1; }
.shopify-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--ep-line-2);
  flex-wrap: wrap;
  gap: 12px;
}
.shopify-link {
  color: var(--ep-accent);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}
.shopify-link:hover { text-decoration: underline; }
.shopify-btn {
  background: var(--ep-accent);
  color: var(--ep-accent-ink);
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.02em;
  font-family: var(--ep-font), inherit;
  transition: background 0.2s, transform 0.1s;
}
.shopify-btn:active { transform: scale(0.98); }
.shopify-btn:hover { background: var(--ep-ink); }
.shopify-btn-lg { padding: 18px 36px; font-size: 15px; min-width: 200px; }
.shopify-info-block {
  border: 1px solid var(--ep-line-2);
  border-radius: 5px;
  padding: 16px;
  margin-bottom: 24px;
  background: #fff;
}
.shopify-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--ep-line-2);
  font-size: 13px;
}
.shopify-info-row:last-child { border-bottom: none; }
.shopify-info-row > span:first-child { color: var(--ep-ink-3); min-width: 80px; }
.shopify-info-row > span:last-child { color: var(--ep-ink); text-align: right; }
.shopify-checkout-right {
  background: var(--ep-surface-3);
  border: 1px solid var(--ep-line-2);
  border-radius: 16px;
  padding: 26px 30px;
  align-self: start;
  height: fit-content;
}
@media (max-width: 900px) {
  .shopify-checkout-right { border-left: none; border-top: none; padding: 22px 22px; }
}
.shopify-items {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--ep-line-2);
}
.shopify-items li:first-child { padding-top: 2px; }
.shopify-items li:last-child { border-bottom: none; padding-bottom: 4px; }
.shopify-items li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ep-line-2);
}
.shopify-items li:last-child { border-bottom: none; }
.shopify-items .thumb {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 8px;
  border: 1px solid var(--ep-line-2);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ep-surface);
}
.shopify-items .thumb img {
  width: 100%; height: 100%; object-fit: contain; padding: 8px;
}
.shopify-items .thumb-wrap {
  position: relative;
  flex-shrink: 0;
}
.shopify-items .thumb-wrap .qty {
  position: absolute;
  top: -7px; right: -7px;
  background: var(--ep-ink);
  color: #fff;
  border-radius: 999px;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid var(--ep-surface-3);
  z-index: 2;
}
.shopify-items .info { flex: 1; min-width: 0; padding-right: 8px; }
.shopify-items .name { font-size: 13px; font-weight: 500; color: var(--ep-ink); line-height: 1.3; }
.shopify-items .sub { font-size: 11px; color: var(--ep-ink-3); margin-top: 2px; }
.shopify-items .price { font-size: 14px; font-weight: 600; color: var(--ep-ink); white-space: nowrap; }
.shopify-promo {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.shopify-promo .shopify-input { margin-bottom: 0; height: 46px; font-size: 14px; }
.shopify-promo button { height: 46px; flex-shrink: 0; }
.shopify-promo button {
  padding: 0 22px;
  background: var(--ep-surface);
  border: 1px solid var(--ep-accent);
  color: var(--ep-accent);
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--ep-font), inherit;
  white-space: nowrap;
}
.shopify-promo button:hover { background: var(--ep-accent-soft); }
.shopify-totals {
  padding-top: 4px;
}
.shopify-totals .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ep-ink-2);
}
.shopify-totals .row span:last-child { color: var(--ep-ink); font-weight: 500; }
.shopify-totals .row.total {
  border-top: 1px solid var(--ep-line);
  padding-top: 16px;
  margin-top: 8px;
  font-size: 15px;
  color: var(--ep-ink);
}
.shopify-totals .row.total span:first-child { font-weight: 500; font-size: 16px; }
.shopify-totals .row.total span:last-child {
  font-family: var(--ep-font-display, inherit);
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
}
.shopify-note {
  background: rgba(196,120,98,0.08);
  border: 1px solid var(--ep-accent-soft, rgba(196,120,98,0.30));
  border-left: 3px solid var(--ep-accent);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ep-ink-2);
  margin-top: 16px;
}
.shopify-note strong { display: block; margin-bottom: 4px; font-size: 13px; color: var(--ep-accent); }

.shopify-thanks, .shopify-empty {
  max-width: 500px;
  margin: 80px auto;
  text-align: center;
  padding: 60px 30px;
  background: var(--ep-surface);
  border: 1px solid var(--ep-line-2);
  border-radius: 16px;
}
.shopify-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ep-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
}
.shopify-thanks h1, .shopify-empty h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
}


/* Hide main site header on Shopify checkout (Shopify pattern: minimal logo-only header) */
body.shopify-checkout-mode .ep-header,
body.shopify-checkout-mode .ep-promo-bar,
body.shopify-checkout-mode .ep-footer { display: none !important; }

