/* ============================================================
   Айрочай — магазин чая и посуды
   ============================================================ */
:root {
  --accent:        #2F855A;
  --accent-dark:   #22553A;
  --accent-deeper: #14301F;
  --accent-soft:   #E7F2EC;
  --gold:          #C9992E;
  --gold-soft:     #F4E8C9;
  --bg:            #FAF6EF;
  --bg-alt:        #F2EBDE;
  --card:          #FFFFFF;
  --ink:           #24322A;
  --muted:         #6C7A72;
  --line:          #E7DFCF;
  --radius:        18px;
  --shadow-sm:     0 2px 10px rgba(20, 48, 31, 0.06);
  --shadow-md:     0 10px 30px rgba(20, 48, 31, 0.10);
  --shadow-lg:     0 24px 60px rgba(20, 48, 31, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-font { font-family: 'Cormorant Garamond', serif; }

a { color: var(--accent-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

.text-accent { color: var(--accent) !important; }

img { max-width: 100%; }

/* ============================================================
   Кнопки
   ============================================================ */
.btn-accent {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--accent-dark);
  --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--accent-deeper);
  --bs-btn-active-border-color: var(--accent-deeper);
  --bs-btn-active-color: #fff;
  border-radius: 12px;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
}
.btn-outline-accent {
  --bs-btn-color: var(--accent-dark);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
  --bs-btn-active-color: #fff;
  border-radius: 12px;
  font-weight: 600;
}
.btn-light-accent {
  --bs-btn-bg: var(--accent-soft);
  --bs-btn-border-color: var(--accent-soft);
  --bs-btn-color: var(--accent-dark);
  --bs-btn-hover-bg: var(--gold-soft);
  --bs-btn-hover-border-color: var(--gold-soft);
  --bs-btn-hover-color: #7a5a00;
  --bs-btn-active-bg: var(--gold-soft);
  --bs-btn-active-border-color: var(--gold-soft);
  border-radius: 12px;
  font-weight: 600;
}

/* ============================================================
   Верхняя контактная полоса
   ============================================================ */
.topbar {
  background: var(--accent-deeper);
  color: #cfe0d3;
  font-size: 0.85rem;
}
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.45rem 0; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar-item i { color: var(--gold); }
.topbar-item a { color: inherit; }
.topbar-item a:hover { color: #fff; }

/* ============================================================
   Шапка
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.header-inner { display: flex; align-items: center; gap: 2rem; padding: 0.8rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-icon { width: 42px; height: 42px; border-radius: 12px; }
.brand-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--accent-deeper);
  letter-spacing: -0.02em;
}
.brand:hover .brand-text { color: var(--accent); }

.header-search {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  display: flex;
}
.header-search .form-control {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0.6rem 3rem 0.6rem 1.1rem;
  font-size: 0.95rem;
}
.header-search .form-control:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,133,90,.15); }
.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--accent);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-cart:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.header-cart > i { font-size: 1.25rem; color: var(--accent); }
.cart-count {
  position: absolute;
  top: -8px;
  right: -6px;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* ============================================================
   Навигация + мега-меню
   ============================================================ */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0; }
.nav-main { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav-main-item { position: relative; }
.nav-main-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav-main-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-caret { font-size: 0.65rem; color: var(--muted); }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow-lg);
  padding: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .22s ease;
  z-index: 1050;
}
.nav-main-item:hover .mega-menu,
.nav-main-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}
.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.92rem;
}
.mega-menu-item:hover { background: var(--accent-soft); color: var(--accent-dark); }
.mega-menu-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.mega-menu-all {
  display: block;
  margin-top: 0.7rem;
  padding: 0.65rem;
  text-align: center;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}
.mega-menu-all:hover { background: var(--accent); color: #fff; }

.navbar-toggler-nav {
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  margin: 0.6rem 0;
}
.nav-mobile { list-style: none; margin: 0; padding: 0 0 1rem; }
.nav-mobile-parent > a { display: block; padding: 0.7rem 0.2rem; font-weight: 700; border-bottom: 1px solid var(--line); color: var(--ink); }
.nav-mobile-children { list-style: none; padding: 0.4rem 0 0.6rem 1rem; }
.nav-mobile-children a { display: block; padding: 0.35rem 0; color: var(--muted); font-size: 0.93rem; }
.nav-mobile-children a:hover { color: var(--accent); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: radial-gradient(ellipse at 20% 20%, #1E4A31 0%, var(--accent-deeper) 60%, #0E2418 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201,153,46,0.14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,153,46,0.16);
  border: 1px solid rgba(201,153,46,0.4);
  color: var(--gold);
  padding: 0.35rem 0.9rem;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.hero-title .text-gold { color: var(--gold); }
.hero-subtitle { color: #c9dccf; font-size: 1.1rem; max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn-hero { padding: 0.85rem 2rem; font-size: 1.02rem; border-radius: 14px; }
.btn-hero-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1400;
}
.btn-hero-gold:hover { background: #b9891f; border-color: #b9891f; color: #fff; }
.btn-hero-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-media {
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2E6B47, #1A3A26 70%);
  border: 1px solid rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,0.4);
}
.hero-media img { width: 78%; height: 78%; object-fit: cover; border-radius: 50%; }
.hero-float {
  position: absolute;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 0.7rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  animation: floatY 5s ease-in-out infinite;
}
.hero-float i { font-size: 1.5rem; color: var(--accent); }
.hero-float small { display: block; color: var(--muted); font-size: 0.75rem; line-height: 1.2; }
.hero-float strong { font-size: 0.95rem; line-height: 1.2; }
.hero-float-1 { top: 12%; left: 4%; animation-delay: .5s; }
.hero-float-2 { bottom: 14%; right: 2%; animation-delay: 1.4s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================================
   Общие секции
   ============================================================ */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: radial-gradient(ellipse at 50% 0%, #1E4A31 0%, var(--accent-deeper) 60%, #0E2418 100%);
  color: #fff;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.section-head { margin-bottom: 2.6rem; max-width: 700px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}
.section-sub { color: var(--muted); }
.section-dark .section-sub { color: #b9cdbf; }

/* ============================================================
   Карточки категорий (главная)
   ============================================================ */
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease;
  min-height: 240px;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-card img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform .4s ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,26,16,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.3rem;
  color: #fff;
}
.cat-card-count {
  align-self: flex-start;
  background: var(--gold);
  color: #1a1400;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 30px;
  margin-bottom: 0.5rem;
}
.cat-card-title { font-size: 1.45rem; font-weight: 700; font-family: 'Cormorant Garamond', serif; line-height: 1.1; }
.cat-card-price { font-size: 0.9rem; color: #d7e6db; margin-top: 0.15rem; }

/* ============================================================
   Карточка товара
   ============================================================ */
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-thumb {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #F6F1E7, #EFE7D7);
  display: block;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.22rem 0.6rem;
  border-radius: 30px;
  z-index: 2;
}
.product-badge.sale { background: var(--gold); }
.product-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-title:hover { color: var(--accent); }
.product-price-row { margin-top: auto; display: flex; align-items: baseline; gap: 0.6rem; padding-top: 0.6rem; }
.product-price { font-size: 1.35rem; font-weight: 800; color: var(--accent-dark); }
.product-old-price { font-size: 0.95rem; color: var(--muted); text-decoration: line-through; }
.product-add {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--accent-soft);
  border: none;
  color: var(--accent-dark);
  font-weight: 700;
  padding: 0.65rem;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}
.product-add:hover { background: var(--accent); color: #fff; }
.product-add:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   Преимущества
   ============================================================ */
.adv-item { text-align: center; padding: 1.6rem 1rem; }
.adv-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 1.1rem;
  font-size: 1.7rem;
}
.adv-item h3 { font-size: 1.15rem; font-weight: 700; font-family: 'Manrope', sans-serif; margin-bottom: 0.4rem; }
.adv-item p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ============================================================
   CTA-секция
   ============================================================ */
.cta-box {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent-deeper));
  border-radius: 24px;
  padding: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: "🍃";
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 10rem;
  opacity: 0.1;
}
.cta-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 0.5rem; }
.cta-text { color: #c9dccf; margin-bottom: 1.6rem; max-width: 520px; }

/* ============================================================
   Подвал
   ============================================================ */
.site-footer {
  background: var(--accent-deeper);
  color: #b9cdbf;
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}
.brand-footer .brand-text { color: #fff; }
.footer-help-title { color: #fff; font-weight: 700; margin: 1.2rem 0 0.9rem; font-size: 1.02rem; }
.footer-socials { display: flex; gap: 0.6rem; }
.social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: all .2s ease;
}
.social-link:hover { background: var(--gold); color: #1a1400; transform: translateY(-3px); }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: #b9cdbf; }
.footer-links a:hover { color: var(--gold); }
.footer-ico { width: 20px; color: var(--gold); margin-right: 0.3rem; }
.footer-divider { border-color: rgba(255,255,255,0.12); margin: 1.8rem 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.88rem; color: #8fa79a; }
.footer-pay-icons { display: inline-flex; gap: 0.9rem; font-size: 1.6rem; color: #b9cdbf; }

/* ============================================================
   Cookie-баннер
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.3rem;
  z-index: 2000;
  transform: translateY(200%);
  transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-body { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cookie-banner-body p { margin: 0; flex: 1; min-width: 240px; font-size: 0.9rem; color: var(--muted); }
.cookie-banner-body a { color: var(--accent-dark); text-decoration: underline; }

/* ============================================================
   Страницы каталога / товара
   ============================================================ */
.page-hero {
  background: linear-gradient(120deg, var(--accent-deeper), #1E4A31);
  color: #fff;
  padding: 2.6rem 0;
}
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; margin: 0; }
.page-hero .crumbs { color: #9fc2ab; font-size: 0.9rem; margin-bottom: 0.6rem; }
.page-hero .crumbs a { color: var(--gold); }
.page-hero .crumbs .sep { margin: 0 0.45rem; opacity: 0.5; }

.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.catalog-sidebar { position: sticky; top: 96px; }
.sidebar-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}
.sidebar-box h3 { font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.9rem; font-family: 'Manrope', sans-serif; }
.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li { margin-bottom: 0.35rem; }
.sidebar-links a { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.7rem; border-radius: 10px; color: var(--ink); font-size: 0.93rem; }
.sidebar-links a:hover, .sidebar-links a.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.sidebar-links .count { color: var(--muted); font-size: 0.82rem; }

.catalog-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.catalog-count { color: var(--muted); font-size: 0.93rem; }
.catalog-sort { display: flex; align-items: center; gap: 0.6rem; }
.catalog-sort label { color: var(--muted); font-size: 0.9rem; }
.catalog-sort select { border: 1px solid var(--line); border-radius: 10px; padding: 0.45rem 0.8rem; background: #fff; font-size: 0.92rem; }

/* Хлебные крошки каталога по подкатегориям */
.subcat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.subcat-chip {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 30px;
  padding: 0.4rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.subcat-chip:hover, .subcat-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Пагинация */
.pagination-custom { display: flex; justify-content: center; gap: 0.4rem; margin-top: 2.4rem; flex-wrap: wrap; }
.pagination-custom a, .pagination-custom span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
}
.pagination-custom a:hover { border-color: var(--accent); color: var(--accent); }
.pagination-custom .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Товар */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-detail-gallery {
  background: linear-gradient(180deg, #F6F1E7, #EFE7D7);
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
.product-detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info .product-cat { margin-bottom: 0.5rem; }
.product-detail-info h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 0.9rem; }
.product-detail-price { display: flex; align-items: baseline; gap: 0.8rem; margin: 0.6rem 0 1.2rem; }
.product-detail-price .price { font-size: 2.2rem; font-weight: 800; color: var(--accent-dark); }
.product-detail-price .old { font-size: 1.2rem; color: var(--muted); text-decoration: line-through; }
.product-detail-meta { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.4rem; font-size: 0.92rem; color: var(--muted); }
.product-detail-meta i { color: var(--accent); margin-right: 0.35rem; }
.product-detail-desc { color: var(--muted); margin-bottom: 1.6rem; }
.buy-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.qty-stepper button {
  width: 42px;
  height: 46px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--accent-dark);
  font-weight: 700;
}
.qty-stepper button:hover { background: var(--accent-soft); }
.qty-stepper input {
  width: 52px;
  height: 46px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  background: transparent;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-btn { padding: 0.7rem 2.2rem; font-size: 1.05rem; }
.product-acc { margin-top: 2.4rem; }
.product-acc .accordion-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: 0.7rem; overflow: hidden; }
.product-acc .accordion-button { font-weight: 700; color: var(--ink); }
.product-acc .accordion-button:not(.collapsed) { background: var(--accent-soft); color: var(--accent-dark); box-shadow: none; }

/* ============================================================
   Корзина
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.cart-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto auto auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--bg-alt); }
.cart-item-title { font-weight: 700; color: var(--ink); line-height: 1.3; }
.cart-item-title a:hover { color: var(--accent); }
.cart-item-unit { font-size: 0.82rem; color: var(--muted); }
.cart-item-price { font-weight: 700; white-space: nowrap; }
.cart-item-remove { border: none; background: transparent; color: var(--muted); font-size: 1.05rem; }
.cart-item-remove:hover { color: #c0392b; }

.cart-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 96px;
}
.cart-summary h3 { font-size: 1.2rem; font-weight: 800; font-family: 'Manrope', sans-serif; margin-bottom: 1.1rem; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 0.7rem; color: var(--muted); }
.sum-row.total { font-size: 1.35rem; font-weight: 800; color: var(--ink); border-top: 1px dashed var(--line); padding-top: 0.9rem; margin-top: 0.9rem; }
.sum-hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; }
.sum-hint i { color: var(--accent); margin-right: 0.35rem; }

.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-empty i { font-size: 4.5rem; color: var(--line); margin-bottom: 1.2rem; }
.cart-empty h2 { font-size: 1.6rem; font-weight: 700; }

/* ============================================================
   Оформление заказа
   ============================================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.checkout-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.checkout-form h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.4rem; }
.form-label { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.form-control, .form-select {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.6rem 0.9rem;
}
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,133,90,.15); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.delivery-option, .pay-option {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.delivery-option:has(input:checked), .pay-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.delivery-option label, .pay-option label { cursor: pointer; margin: 0; font-weight: 600; }
.delivery-option small, .pay-option small { color: var(--muted); display: block; margin-left: 1.7rem; }

.order-review .cart-item { grid-template-columns: 54px 1fr auto; padding: 0.8rem 0; border-bottom: 1px dashed var(--line); }
.order-review .cart-item:last-child { border-bottom: none; }
.order-review .cart-item-img { width: 54px; height: 54px; }
.order-review .cart-item-price { font-size: 0.95rem; }

/* ============================================================
   Статические страницы (доставка, оферта, опт)
   ============================================================ */
.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.doc-card h2 { font-size: 1.5rem; font-weight: 700; margin: 1.6rem 0 0.8rem; }
.doc-card h2:first-child { margin-top: 0; }
.doc-card p, .doc-card li { color: var(--muted); }
.doc-card ul { padding-left: 1.2rem; }
.doc-card li { margin-bottom: 0.4rem; }
.doc-card strong { color: var(--ink); }

.info-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  height: 100%;
}
.info-tile .info-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.info-tile h3 { font-size: 1.15rem; font-weight: 700; font-family: 'Manrope', sans-serif; margin-bottom: 0.5rem; }
.info-tile p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ============================================================
   Поиск, 404, прочее
   ============================================================ */
.search-form { display: flex; gap: 0.7rem; max-width: 560px; }
.search-form .form-control { flex: 1; }
.search-result-count { color: var(--muted); margin-bottom: 1.6rem; }

.not-found { text-align: center; padding: 5rem 1rem; }
.not-found .code { font-size: 6rem; font-weight: 800; color: var(--accent-soft); line-height: 1; font-family: 'Cormorant Garamond', serif; }
.not-found h1 { font-size: 2rem; font-weight: 700; margin: 0.6rem 0; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ============================================================
   Анимации появления
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* Скролл вверх */
.scroll-top-btn {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
  z-index: 1500;
}
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--accent-dark); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 991.98px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 3rem 0; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-media { width: min(300px, 80%); }
  .product-detail { grid-template-columns: 1fr; gap: 1.6rem; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 70px 1fr auto; }
  .cart-item .cart-item-price { grid-column: 2; }
  .cta-box { padding: 2rem; }
}
@media (max-width: 575.98px) {
  .header-inner { gap: 0.8rem; flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; }
  .cart-item { grid-template-columns: 60px 1fr auto; gap: 0.7rem; padding: 0.9rem; }
  .qty-stepper button { width: 36px; }
  .qty-stepper input { width: 42px; }
}
