/* ──────────────────────────────────────────────────────────────────────────
   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: 132px;

  /* Стиль карточки товара (управляется 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; }
.is-mobile .ep-product-add { opacity: 1; transform: none; height: 36px; font-size: 12.5px; }
.is-mobile .ep-product-add { opacity: 1; transform: none; height: 34px; font-size: 12px; }
.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; }

/* 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: 12px;
  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: 78%; height: 78%; 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%);
}
.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 { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 92px;}
.is-mobile .ep-pdp-gallery { position: static;}
.ep-pdp-main {
  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: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ep-pdp-thumb {
  aspect-ratio: 1; 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;
}
.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-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;}
.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,
.is-mobile .ep-product.in-cart .ep-product-stepper { opacity: 1; transform: 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; }

/* ── 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; }
