/* ════════════════════════════════════════════════════════════
   DermLab · style.css
   Аптечний мінімалізм — чисто, стерильно, дорого
   ════════════════════════════════════════════════════════════ */

/* ── Дизайн-токени ──────────────────────────────────────── */
:root {
  /* ══ Кольори — преміум/люкс, темна палітра + золото ══ */
  --c-black:      #08080A;         /* глибокий чорний */
  --c-bg:         #0C0D10;         /* основне тло сторінки — графітовий */
  --c-surface:    #17181C;         /* картки, шапка, підвал */
  --c-surface-2:  #1E2025;         /* друга поверхня — hover/alt-панелі */
  --c-white:      #FFFFFF;         /* чистий білий — ЛИШЕ текст і світлі акценти */

  --c-border:     rgba(233,224,204,0.10);
  --c-border-med: rgba(233,224,204,0.22);

  --c-text-primary:   #F4EFE4;     /* тепла слонова кістка — основний текст */
  --c-text-secondary: #B7AF9C;     /* теплий сірий */
  --c-text-muted:     #837B69;     /* приглушений теплий сірий */

  /* Золото — головний акцент замість синього */
  --c-gold:       #C6A05C;         /* основне золото */
  --c-gold-light: rgba(198,160,92,0.14);   /* тло під золото */
  --c-gold-dark:  #E8CC8C;         /* світліше золото — для hover на темному */
  --c-gold-mid:   rgba(198,160,92,0.4);    /* золото для рамок/кілець */
  --c-gold-deep:  #8C6A2F;         /* глибоке бронзове золото */

  /* Аліаси старих назв — щоб усі існуючі var(--c-blue…) в HTML/JS
     автоматично стали золотими без правок розмітки */
  --c-blue:       var(--c-gold);
  --c-blue-light: var(--c-gold-light);
  --c-blue-dark:  var(--c-gold-dark);
  --c-blue-mid:   var(--c-gold-mid);

  /* Шрифти — крупніші, виразніші заголовки */
  --f-serif:  'DM Serif Display', Georgia, serif;
  --f-sans:   'DM Sans', system-ui, sans-serif;

  /* Радіуси — трохи м'якіші й більш преміальні */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  14px;
  --r-xl:  24px;

  /* Тіні — глибокі, оксамитові */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-md: 0 12px 34px rgba(0,0,0,0.5);
  --shadow-lg: 0 28px 70px rgba(0,0,0,0.6);
  --shadow-gold: 0 8px 28px rgba(198,160,92,0.22);
  --shadow-gold-lg: 0 22px 48px rgba(198,160,92,0.28);
  --shadow-card-hover: 0 20px 44px rgba(0,0,0,0.55), 0 0 0 1px rgba(198,160,92,0.16);

  /* Скло — для sticky-шапки та floating-елементів */
  --glass-bg: rgba(23, 24, 28, 0.72);
  --glass-border: rgba(233,224,204,0.10);

  /* Градієнт золота — перевикористовується на кнопках/акцентах */
  --grad-gold: linear-gradient(155deg, var(--c-gold-dark), var(--c-gold) 60%, var(--c-gold-deep));

  /* Анімації */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t-fast: 180ms;
  --t-med:  260ms;
  --t-slow: 460ms;
}

/* ── Скидання ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--f-sans);
  background: var(--c-bg);
  color: var(--c-text-primary);
  font-size: 15px;
  line-height: 1.65;
  position: relative;
}
/* Тонка плівка шуму — додає тактильної, "друкованої" глибини темному тлу */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ── Виділення тексту та скролбар — у стилі бренду ───────── */
::selection { background: var(--c-gold); color: var(--c-black); }

html { scrollbar-color: var(--c-gold-deep) var(--c-bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb {
  background: var(--c-surface-2);
  border-radius: 99px;
  border: 2px solid var(--c-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--c-gold-deep); }

/* Клавіатурна доступність — акуратне золоте кільце замість браузерного дефолту */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ── Анімація появи сторінки ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__content,
.catalog__header,
.products-grid { animation: fadeUp .5s var(--ease) both; }
.catalog__header { animation-delay: .05s; }
.products-grid   { animation-delay: .1s; }

/* ══════════════════════════════════════════════════════════
   ВЕРХНЯ СТРІЧКА
══════════════════════════════════════════════════════════ */
.topbar {
  background: var(--c-black);
  color: rgba(244,239,228,.72);
  border-bottom: 1px solid var(--c-border);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .3px;
  padding: 7px 0;
  text-align: center;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar__sep { opacity: .35; }

/* ══════════════════════════════════════════════════════════
   ШАПКА
══════════════════════════════════════════════════════════ */
.header {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow var(--t-med) var(--ease);
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo__mark {
  width: 35px;
  height: 35px;
  background: var(--c-gold);
  color: var(--c-black);
  font-family: var(--f-sans);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  line-height: 1;
  flex-shrink: 0;
}
.logo__mark--img {
  padding: 0;
  overflow: hidden;
  background: none;
}
.logo__mark--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo__name {
  font-family: var(--f-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .5px;
  color: var(--c-text-primary);
}

/* Пошук */
.search {
  flex: 1;
  max-width: 620px;
  position: relative;
}
.search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-muted);
  pointer-events: none;
}
.search__input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-bg);
  font-family: var(--f-sans);
  font-size: 13.5px;
  color: var(--c-text-primary);
  outline: none;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow   var(--t-fast) var(--ease);
}
.search__input::placeholder { color: var(--c-text-muted); }
.search__input:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px var(--c-gold-light);
  background: var(--c-surface-2);
}

/* Прихований чекбокс — перемикає мобільний рядок пошуку без JS.
   Має бути прямим нащадком .header, поряд з .header__inner. */
.mobile-search-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Кнопки шапки */
.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Кнопка пошуку для мобільного (прихована на десктопі — там є .search__input) */
.search-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  color: var(--c-text-secondary);
  background: none;
  border: none;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.search-toggle-btn:hover { background: var(--c-bg); color: var(--c-text-primary); }
.mobile-search-toggle:checked ~ .header__inner .search-toggle-btn {
  background: var(--c-bg);
  color: var(--c-text-primary);
}

.action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--c-text-secondary);
  transition: background var(--t-fast) var(--ease),
              color     var(--t-fast) var(--ease);
}
.action-btn:hover { background: var(--c-bg); color: var(--c-text-primary); }

.action-btn__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--c-gold);
  color: var(--c-black);
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ── Кнопки ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease),
              color     var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              transform  var(--t-fast) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  position: relative;
  background: var(--grad-gold);
  color: var(--c-black);
  border-color: var(--c-gold);
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .65s var(--ease);
  z-index: 1;
  pointer-events: none;
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover {
  background: linear-gradient(155deg, var(--c-gold-dark), var(--c-gold-dark) 60%, var(--c-gold));
  border-color: var(--c-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--c-gold);
  border-color: var(--c-gold-mid);
}
.btn--ghost:hover {
  background: var(--c-gold-light);
  color: var(--c-gold-dark);
  border-color: var(--c-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── Категорії-навігація ─────────────────────────────────── */
.cat-nav {
  border-top: 1px solid var(--c-border);
}
.cat-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  overflow: visible;
}

.cat-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  /* скидання стилів <button>, бо тригер категорії тепер кнопка */
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  cursor: pointer;
}
.cat-nav__link:hover { color: var(--c-text-primary); }
.cat-nav__link--active {
  color: var(--c-blue);
  border-bottom-color: var(--c-blue);
  font-weight: 600;
}

/* ── Підменю категорій (дропдаун для підкатегорій) ─────────── */
.cat-nav__item {
  position: relative;
  display: inline-flex;
}
.cat-nav__caret {
  margin-left: 5px;
  transition: transform var(--t-fast) var(--ease);
}
.cat-nav__item:hover .cat-nav__caret,
.cat-nav__item:focus-within .cat-nav__caret {
  transform: rotate(180deg);
}

.cat-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              visibility var(--t-fast) var(--ease);
}
.cat-nav__item:hover .cat-nav__dropdown,
.cat-nav__item:focus-within .cat-nav__dropdown,
.cat-nav__item--open .cat-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cat-nav__item--open .cat-nav__caret {
  transform: rotate(180deg);
}
/* невидимий місток, щоб курсор не "губив" дропдаун між лінком і меню */
.cat-nav__dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.cat-nav__dropdown-link {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-secondary);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.cat-nav__dropdown-link:hover {
  background: var(--c-bg);
  color: var(--c-text-primary);
}
.cat-nav__dropdown-link--active {
  color: var(--c-blue);
  font-weight: 600;
}
.cat-nav__dropdown-link--all {
  font-weight: 600;
  border-bottom: 1px solid var(--c-border);
  border-radius: 0;
  margin-bottom: 4px;
  padding-bottom: 10px;
}

/* ══════════════════════════════════════════════════════════
   ГЕРОЙ-БАНЕР
══════════════════════════════════════════════════════════ */
.hero {
  max-width: 1360px;
  margin: 0 auto;
  padding: 96px 40px 96px;
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 72px;
  align-items: center;
}

.hero__eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--f-serif);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.14;
  color: var(--c-text-primary);
  margin-bottom: 28px;
  letter-spacing: -.5px;
}
.hero__title em {
  font-style: italic;
  color: var(--c-gold);
}

.hero__body {
  font-size: 15.5px;
  color: var(--c-text-secondary);
  line-height: 1.75;
  margin-bottom: 44px;
  font-weight: 300;
  max-width: 460px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__ctas .btn--primary { padding: 14px 32px; font-size: 14.5px; }
.hero__ctas .btn--ghost   { padding: 14px 32px; font-size: 14.5px; }
.hero__ctas .btn {
  transition: transform var(--t-fast) var(--ease),
              box-shadow  var(--t-fast) var(--ease),
              background  var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color       var(--t-fast) var(--ease);
}
.hero__ctas .btn:hover { transform: translateY(-2px) scale(1.015); }

/* ── Композиція справа: продукція живе просто у фоні героя,
      без картки, рамки чи ефекту "екрана" — лише м'яке золоте
      світіння і плаваючі скляні чіпи поверх ── */
.hero__visual {
  position: relative;
  height: 80vh;
  min-height: 520px;
  max-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Широке розмите золоте світіння позаду продукції — заміняє будь-яку "підставку" */
.hero__glow {
  position: absolute;
  inset: -18%;
  z-index: 0;
  background:
    radial-gradient(circle at 54% 46%, rgba(198,160,92,.34), transparent 58%),
    radial-gradient(circle at 62% 68%, rgba(198,160,92,.16), transparent 55%),
    radial-gradient(circle at 30% 30%, rgba(198,160,92,.08), transparent 60%);
  filter: blur(56px);
  pointer-events: none;
}

/* Фото продукції — жодної рамки, тіні-картки чи заокруглення.
   Мяке маскування країв розчиняє зображення у тлі героя,
   тож композиція виглядає як частина сцени, а не вставлений скріншот. */
.hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 58%;
  filter: drop-shadow(0 50px 70px rgba(0,0,0,.5));
  -webkit-mask-image:
    radial-gradient(ellipse 74% 78% at 50% 52%, #000 52%, transparent 100%);
  mask-image:
    radial-gradient(ellipse 74% 78% at 50% 52%, #000 52%, transparent 100%);
  transition: transform .9s var(--ease);
}
.hero__visual:hover .hero__photo {
  transform: scale(1.025);
}

/* Основна floating glass-картка (статистика) — легша, без важкої рамки-контейнера */
.hero__badge {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 10%;
  background: rgba(23, 24, 28, 0.55);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(233,224,204,0.14);
  border-radius: var(--r-xl);
  padding: 18px 26px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.hero__visual:hover .hero__badge { transform: translateY(-3px); }

.hero__badge-num {
  display: block;
  font-family: var(--f-serif);
  font-size: 3rem;
  color: var(--c-gold);
  line-height: 1.1;
}
.hero__badge-label {
  font-size: 12px;
  color: var(--c-text-secondary);
  font-weight: 400;
}

/* Малі floating glass-чіпи */
.hero__chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(23, 24, 28, 0.6);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(233,224,204,0.14);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-text-primary);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transition: transform var(--t-med) var(--ease);
}
.hero__visual:hover .hero__chip { transform: translateY(-3px); }

.hero__chip--rating {
  top: 12%;
  left: 2%;
}
.hero__chip--clinical {
  bottom: 16%;
  left: 0%;
}

/* ══════════════════════════════════════════════════════════
   СМУЖКА ДОВІРИ
══════════════════════════════════════════════════════════ */
.trust-bar {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.trust-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-secondary);
  font-weight: 400;
}
.trust-item svg { color: var(--c-blue); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   КАТАЛОГ
══════════════════════════════════════════════════════════ */
.catalog { padding: 64px 0 88px; scroll-margin-top: 96px; }
.catalog__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.catalog__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
}
.catalog__title {
  font-family: var(--f-serif);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--c-text-primary);
  letter-spacing: -.3px;
}
.catalog__meta {
  font-size: 13px;
  color: var(--c-text-muted);
}

/* ── Стан завантаження ───────────────────────────────────── */
.state-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 72px 0;
  color: var(--c-text-muted);
  font-size: 13.5px;
}
.state-loader__dots {
  display: flex;
  gap: 6px;
}
.state-loader__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-blue);
  opacity: .3;
  animation: pulse 1.2s var(--ease) infinite;
}
.state-loader__dots span:nth-child(2) { animation-delay: .2s; }
.state-loader__dots span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse {
  0%, 80%, 100% { opacity: .2; transform: scale(1); }
  40%           { opacity: 1;  transform: scale(1.15); }
}

.state-error {
  text-align: center;
  padding: 56px 0;
  color: var(--c-text-secondary);
  font-size: 14px;
  line-height: 1.8;
}
.state-error code {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  font-size: 12.5px;
  color: var(--c-blue);
}

/* ── ★ СІТКА ТОВАРІВ ★ ───────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* ── Картка товару ───────────────────────────────────────── */
.product-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-med) var(--ease),
              box-shadow   var(--t-med) var(--ease),
              transform    var(--t-med) var(--ease);
  cursor: pointer;
}
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.product-card:hover {
  border-color: var(--c-blue-mid);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
}
.product-card:hover::after { transform: scaleX(1); }

/* Зображення товару */
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--c-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.product-card:hover .product-card__img {
  transform: scale(1.04);
}
.product-card__img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--c-border-med);
}
.product-card__img-placeholder svg { opacity: .4; }
.product-card__img-placeholder span {
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Теги на картці */
.product-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--c-gold);
  color: var(--c-black);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
}
.product-card__tag--new  { background: #0D9488; color: #fff; }   /* бірюзовий */
.product-card__tag--sale { background: #DC2626; color: #fff; }   /* червоний */
.product-card__tag--out  { background: #6B7280; color: #fff; }   /* сірий — немає в наявності */

/* Картка товару, якого немає в наявності */
.product-card--out .product-card__img {
  filter: grayscale(60%);
  opacity: .7;
}
.product-card--out .product-card__img-placeholder { opacity: .6; }

/* Тіло картки */
.product-card__body {
  padding: 16px 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Бренд */
.product-card__brand {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-blue);
}

/* Назва */
.product-card__name {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-primary);
  line-height: 1.4;
  flex: 1;
}

/* Об'єм */
.product-card__volume {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-top: 2px;
}

/* Рейтинг */
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.product-card__stars {
  display: flex;
  gap: 2px;
}
.product-card__star {
  font-size: 11px;
  color: var(--c-border-med);
}
.product-card__star--on { color: #F59E0B; }
.product-card__rating-count {
  font-size: 11.5px;
  color: var(--c-text-muted);
}

/* Підвал картки — ціна + кнопка */
.product-card__footer {
  padding: 0 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--c-border);
  margin-top: 10px;
  padding-top: 14px;
}

.product-card__price-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.product-card__price {
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text-primary);
  letter-spacing: -.3px;
}
.product-card__price-old {
  font-size: 12px;
  color: var(--c-text-muted);
  text-decoration: line-through;
}

/* Кнопка "Купити" на картці */
.btn--buy {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--c-blue-light);
  color: var(--c-blue);
  border: 1px solid var(--c-blue-mid);
  border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease),
              color     var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.btn--buy:hover {
  background: var(--c-gold);
  color: var(--c-black);
  border-color: var(--c-gold);
}
.btn--buy--disabled {
  background: #F3F4F6;
  color: #9CA3AF;
  border-color: #E5E7EB;
  cursor: not-allowed;
}
.btn--buy--disabled:hover {
  background: #F3F4F6;
  color: #9CA3AF;
  border-color: #E5E7EB;
}

/* Бейдж наявності на сторінці товару */
.product-view__stock-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}
.product-view__stock-badge--out {
  background: #FEE2E2;
  color: #DC2626;
}
.btn-buy-main--disabled {
  background: #F3F4F6 !important;
  color: #9CA3AF !important;
  border-color: #E5E7EB !important;
  cursor: not-allowed;
}
.btn-buy-main--disabled:hover {
  background: #F3F4F6 !important;
  color: #9CA3AF !important;
}

/* ══════════════════════════════════════════════════════════
   ВІДГУКИ ПРО ТОВАР
══════════════════════════════════════════════════════════ */
.reviews-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 72px;
  border-top: 1px solid var(--c-border);
  padding-top: 40px;
}
.reviews-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.reviews-title {
  font-family: var(--f-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--c-text-primary);
}
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--c-text-muted);
}
.reviews-summary__stars { display: inline-flex; gap: 1px; }
.reviews-summary__avg { font-weight: 700; color: var(--c-text-primary); }

/* Зірки — статичні (перегляд) */
.review-star { font-size: 15px; color: var(--c-border-med); }
.review-star.on { color: #F59E0B; }

/* Зірки — інтерактивний вибір у формі */
.review-star-input { display: flex; gap: 4px; margin: 8px 0 14px; }
.review-star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 26px; line-height: 1;
  color: var(--c-border-med);
  padding: 2px; transition: color 150ms ease, transform 100ms ease;
}
.review-star-btn:hover { transform: scale(1.12); }
.review-star-btn.on { color: #F59E0B; }

/* Форма відгуку */
.review-form-wrap { margin-bottom: 32px; }
.review-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.review-form__label {
  font-size: 13px; font-weight: 600;
  color: var(--c-text-primary);
}
.review-form__textarea {
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--c-text-primary);
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 180ms ease;
}
.review-form__textarea:focus { border-color: var(--c-gold); }
.review-form__submit { width: auto; min-width: 180px; padding: 11px 24px; font-size: 14px; }

.review-login-prompt {
  background: var(--c-surface);
  border: 1px dashed var(--c-border-med);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  font-size: 14px;
  color: var(--c-text-secondary);
  margin-bottom: 32px;
}
.review-login-prompt a { color: var(--c-blue); font-weight: 600; }

/* Список відгуків */
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px 22px;
}
.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 12px;
}
.review-card__author {
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text-primary);
}
.review-card__date {
  font-size: 12px;
  color: var(--c-text-muted);
  white-space: nowrap;
}
.review-card__stars { display: flex; gap: 1px; margin-bottom: 8px; }
.review-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-secondary);
  white-space: pre-wrap;
}
.review-card__delete {
  margin-top: 10px;
  background: none;
  border: none;
  color: #DC2626;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.review-card__delete:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .reviews-section { padding: 8px 20px 56px; padding-top: 32px; }
}

/* ══════════════════════════════════════════════════════════
   СЕКЦІЯ ІНГРЕДІЄНТІВ
══════════════════════════════════════════════════════════ */
.ingredients {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(198,160,92,.08), transparent 55%),
    var(--c-black);
  padding: 96px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.ingredients__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-blue-mid);
  margin-bottom: 16px;
}

.ingredients__title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  color: var(--c-white);
  margin-bottom: 52px;
  line-height: 1.22;
}

.ingredients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ingr-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: background var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              transform var(--t-med) var(--ease);
}
.ingr-card:hover {
  background: rgba(198,160,92,.06);
  border-color: var(--c-gold-mid);
  transform: translateY(-2px);
}

.ingr-card__symbol {
  display: inline-block;
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--c-blue-mid);
  margin-bottom: 14px;
}
.ingr-card__name {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 10px;
}
.ingr-card__desc {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  font-weight: 300;
}

/* ══════════════════════════════════════════════════════════
   ПІДВАЛ
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}
.footer__brand .logo { margin-bottom: 14px; }
.footer__desc {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-text-primary);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 13.5px;
  color: var(--c-text-muted);
  transition: color var(--t-fast) var(--ease);
}
.footer__col a:hover { color: var(--c-blue); }

.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--c-text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ══════════════════════════════════════════════════════════
   АДАПТИВНІСТЬ
══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .products-grid        { grid-template-columns: repeat(3, 1fr); }
  .ingredients__grid    { grid-template-columns: repeat(2, 1fr); }
  .hero                 { grid-template-columns: 1fr; min-height: auto; padding: 56px 32px 48px; gap: 40px; }
  .hero__visual          { height: 420px; min-height: 320px; max-height: 460px; order: 2; }
  .hero__content          { order: 1; }
}

@media (max-width: 768px) {
  .header__inner        { padding: 0 20px; }
  .search               { display: none; }
  .products-grid        { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ingredients__grid    { grid-template-columns: 1fr; }
  .footer__inner        { grid-template-columns: 1fr; }
  .footer__cols         { grid-template-columns: repeat(2, 1fr); }
  .hero                 { padding: 44px 20px 40px; gap: 32px; }
  .hero__visual          { height: 340px; min-height: 280px; }
  .hero__chip            { font-size: 11.5px; padding: 7px 12px; }
  .hero__badge            { padding: 16px 20px; }
  .hero__badge-num        { font-size: 2.3rem; }
  .catalog__inner       { padding: 0 20px; }
  .trust-bar__inner     { gap: 24px; }
}

@media (max-width: 480px) {
  .products-grid        { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer__cols         { grid-template-columns: 1fr; }
  .hero__title          { font-size: 2rem; }
  .hero__ctas           { flex-direction: column; }
  .hero__ctas .btn      { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════
   АВАТАР — спільний компонент (avatar.js)
══════════════════════════════════════════════════════════ */
.dl-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  color: #fff;
  font-family: var(--f-sans);
  font-weight: 600;
  line-height: 1;
  user-select: none;
}
.dl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dl-avatar--sm { width: 34px;  height: 34px;  font-size: 13px; }
.dl-avatar--md { width: 52px;  height: 52px;  font-size: 18px; }
.dl-avatar--lg { width: 96px;  height: 96px;  font-size: 32px; }

.header-avatar-link {
  display: inline-flex;
  align-items: center;
  border-radius: 50%;
  transition: box-shadow var(--t-fast) var(--ease);
}
.header-avatar-link:hover {
  box-shadow: 0 0 0 3px var(--c-gold-light);
}