/* =========================================================
   ЧАЕМАНИЯ — Botanical Premium
   Tokens per Figma "Основы стиля"
   #081D18 / #102D25 / #224535 / #CEA569 / #F5F0E7 / #FFFCF7
   Grid: 1440 — 12 cols — margins 120 — gutter 24
   ========================================================= */
:root {
  --dark: #081d18;
  --green: #102d25;
  --green-2: #16382c;
  --green-3: #224535;
  --sage: #7c8f70;
  --brown: #4a3427;
  --clay: #6b4636;
  --gold: #cea569;
  --gold-deep: #b7935a;
  --gold-soft: #e0c69a;
  --cream: #f5f0e7;
  --cream-2: #efe8da;
  --white: #fffcf7;
  --ink: #102d25;
  --muted: #8b9791;
  --muted-dark: #9fb0a6;
  --line: rgba(16, 45, 37, 0.12);
  --line-soft: rgba(16, 45, 37, 0.08);
  --line-light: rgba(255, 255, 255, 0.12);
  --line-gold: rgba(206, 165, 105, 0.4);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;

  --container: 1440px;
  --pad: 120px;
  --gap: 24px;
  --radius: 3px;
  --ease: cubic-bezier(0.25, 0.6, 0.25, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.12; letter-spacing: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow.is-light { color: var(--gold); }
.eyebrow .spark { font-size: 10px; margin-right: 6px; }

.lead {
  font-size: 14px;
  line-height: 1.75;
  color: #6e7f75;
  font-weight: 400;
  max-width: 520px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #1a2b22; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-dark { background: var(--green); color: var(--cream); }
.btn-dark:hover { background: var(--dark); }
.btn-outline { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--green); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--gold-deep);
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { color: var(--ink); gap: 12px; }
.link-arrow.is-light { color: var(--gold); }
.link-arrow.is-light:hover { color: var(--cream); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  background: var(--dark);
  color: var(--cream);
  position: relative;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 96px;
}
.logo { display: flex; flex-direction: column; gap: 7px; }
.logo-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #fffcf7;
  line-height: 1;
}
.logo-sub {
  font-size: 6.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8d9a93;
  line-height: 1;
  font-weight: 400;
}

.nav { display: flex; align-items: center; gap: 36px; margin-left: 140px; margin-right: auto; }
.nav a {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e3e9e4;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--gold-soft); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--cream);
  position: relative;
  transition: color 0.25s var(--ease);
}
.icon-btn:hover { color: var(--gold-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -3px;
  right: -7px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 20px;
  background: var(--gold);
  color: var(--green);
  font-size: 9px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
}
.cart-count[hidden] { display: none; }
.burger { display: none; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 29, 24, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.search-overlay.is-open { opacity: 1; pointer-events: auto; }
.search-overlay form { width: min(680px, 100%); display: flex; flex-direction: column; gap: 20px; }
.search-overlay label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.search-overlay input {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--cream);
  outline: none;
}
.search-overlay input::placeholder { color: rgba(245, 240, 231, 0.35); }
.search-close {
  position: absolute;
  top: 32px;
  right: 40px;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; background: var(--dark); color: var(--cream); overflow: hidden; }
.hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 0.25s linear;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #081d18 0%, rgba(8, 29, 24, 0.94) 26%, rgba(8, 29, 24, 0.42) 60%, rgba(8, 29, 24, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 29, 24, 0.5) 0%, transparent 45%);
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding-top: 96px;
  padding-bottom: 88px;
}
.hero-content { max-width: 560px; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; animation: heroFade 0.7s var(--ease); }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.hero h1,
.hero h2 {
  font-size: clamp(46px, 4.4vw, 62px);
  line-height: 1.1;
  margin: 22px 0 22px;
}
.hero h1 .line,
.hero h2 .line { display: block; }
.hero .lead { max-width: 400px; color: #d7e0d9; font-size: 14px; }
.hero-slide .btn { margin-top: 30px; }

.hero-slider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
  color: #8d9a93;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.hero-slider button { color: #8d9a93; padding: 2px; transition: color 0.25s; }
.hero-slider button:hover { color: var(--gold-soft); }
.hero-slider .is-current { color: var(--gold-soft); }
.hero-slider .dash { width: 24px; height: 1px; background: rgba(255, 255, 255, 0.22); }

/* =========================================================
   Trust bar
   ========================================================= */
.trust { background: var(--green); color: #dfe7e2; }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding-top: 28px;
  padding-bottom: 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #d3ddd6;
}
.trust-item svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--dark); color: var(--cream); }
.section-green { background: var(--green); color: var(--cream); }
.section-cream-2 { background: var(--cream-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(36px, 3.4vw, 48px); margin-top: 12px; }

/* =========================================================
   Collections
   ========================================================= */
.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.collection-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 30px;
  border-radius: var(--radius);
  color: #fff;
  overflow: hidden;
}
.collection-card h3 { font-size: 34px; letter-spacing: 0.02em; text-transform: uppercase; }
.collection-card p { font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); max-width: 190px; margin-top: 8px; }
.collection-card .card-arrow {
  position: absolute;
  right: 26px;
  bottom: 26px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s var(--ease);
}
.collection-card:hover .card-arrow { transform: translateX(4px); }
.c-sage { background: var(--sage); }
.c-brown { background: var(--brown); }
.c-clay { background: var(--clay); }
.c-gold { background: #b89a5c; }

/* =========================================================
   Product cards
   ========================================================= */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--sage);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(245, 240, 231, 0.92);
  color: var(--green);
  padding: 5px 9px;
}
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.product-meta { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.product-name { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.product-price { font-size: 14px; }

.add-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s;
  flex: none;
}
.add-btn:hover { background: var(--gold); color: var(--dark); }
.add-btn svg { width: 11px; height: 11px; }

.section-dark .product-card, .section-green .product-card { background: transparent; }
.section-dark .product-meta, .section-green .product-meta { color: #8fa298; }
.section-dark .product-name, .section-green .product-name { color: var(--cream); }
.section-dark .product-price, .section-green .product-price { color: var(--cream); }
.section-dark .add-btn, .section-green .add-btn { background: var(--gold); color: #17281f; }
.section-dark .add-btn:hover, .section-green .add-btn:hover { background: var(--cream); }

/* =========================================================
   About split
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-media { position: relative; min-height: 520px; overflow: hidden; background: var(--green-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 80px 100px 80px 60px;
  background: var(--cream);
}
.split-body h2 { font-size: clamp(36px, 3.4vw, 48px); line-height: 1.16; }
.split-body .lead { max-width: 440px; }

/* =========================================================
   Gift CTA
   ========================================================= */
.gift { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: start; padding-top: 88px; padding-bottom: 88px; }
.gift-content h2 { font-size: clamp(36px, 3.6vw, 50px); margin: 14px 0 16px; }
.gift-content .lead { max-width: 360px; color: #c6d2ca; }
.gift-content .link-arrow { margin-top: 24px; }
.gift-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--green-2); }
.gift-media img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--dark); color: var(--cream); padding: 50px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-nav { display: flex; gap: 34px; flex-wrap: wrap; }
.footer-nav a { font-size: 11px; color: #c3cfc8; transition: color 0.25s; }
.footer-nav a:hover { color: var(--gold-soft); }

/* =========================================================
   Page head
   ========================================================= */
.page-head { padding: 40px 0 34px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #9aa69e; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs span.sep { opacity: 0.7; }
.page-head h1 { font-size: clamp(42px, 4.6vw, 64px); margin-top: 22px; line-height: 1.05; }
.page-head .lead { margin-top: 12px; }

/* =========================================================
   Catalog
   ========================================================= */
.catalog { padding-bottom: 96px; }
.catalog-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.catalog-head-row h1 { margin-top: 22px; }
.catalog-head-row .sort-select { margin-bottom: 6px; }
.catalog .search-row { margin-top: 26px; }

.search-row { display: flex; gap: 16px; }
.search-row .btn { height: 54px; padding: 0 40px; }
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0 18px;
  height: 54px;
  border-radius: 2px;
}
.search-field svg { width: 15px; height: 15px; color: #93a097; flex: none; }
.search-field input { border: 0; outline: none; background: none; width: 100%; font-size: 13px; }
.search-field input::placeholder { color: #9aa69e; }

.sort-select {
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  height: 44px;
  padding: 0 16px;
  min-width: 200px;
  border-radius: 2px;
}
.sort-select select {
  border: 0;
  background: none;
  outline: none;
  appearance: none;
  width: 100%;
  font-size: 12px;
  color: var(--ink);
  padding-right: 18px;
  cursor: pointer;
}
.sort-select::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: translateY(-3px) rotate(45deg);
  pointer-events: none;
}

.catalog-layout { display: grid; grid-template-columns: 248px 1fr; gap: var(--gap); align-items: start; }
.filters { background: var(--white); border: 1px solid var(--line); padding: 28px 26px; border-radius: 2px; }
.filters h2 { font-family: var(--sans); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; }
.filter-group { border-top: 1px solid var(--line-soft); margin-top: 20px; padding-top: 18px; }
.filter-group:first-of-type { border-top: 0; margin-top: 18px; padding-top: 0; }
.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #55665d;
  padding: 0;
}
.filter-toggle .minus { font-size: 13px; color: #93a097; }
.filter-body { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.filter-body.is-collapsed { display: none; }

.check { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #4d5f55; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 12px;
  height: 12px;
  border: 1px solid #c0c9c3;
  border-radius: 1px;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.check input:checked + .box { background: var(--green); border-color: var(--green); }
.check input:checked + .box::after { content: ""; width: 6px; height: 3px; border-left: 1px solid #fff; border-bottom: 1px solid #fff; transform: translateY(-1px) rotate(-45deg); }

.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 0 8px;
  font-size: 11px;
  outline: none;
  border-radius: 2px;
}
.price-inputs span { color: #a2ada6; }
.filters-reset {
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.filters-reset:hover { color: var(--ink); }

.catalog-main { min-height: 400px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.catalog-grid .product-card { background: var(--white); }
.catalog-empty { padding: 60px 0; text-align: center; color: #7d8b83; }
.catalog-empty h3 { font-size: 26px; color: var(--ink); margin-bottom: 6px; }
.catalog-note { margin-top: 16px; font-size: 11px; color: #8a978f; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 44px; font-size: 12px; color: #7d8b83; }
.pagination a, .pagination span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.pagination a:hover { color: var(--ink); }
.pagination .is-current { background: var(--green); color: var(--cream); }

.catalog-cta { display: grid; grid-template-columns: 1fr 0.85fr; gap: 70px; align-items: center; padding-top: 84px; padding-bottom: 84px; }
.catalog-cta h2 { font-size: clamp(34px, 3.4vw, 48px); margin: 12px 0 14px; }
.catalog-cta .lead { max-width: 400px; }

/* =========================================================
   Product page
   ========================================================= */
.product-page { padding-bottom: 0; }
.product-layout {
  display: grid;
  grid-template-columns: 1.07fr 0.93fr;
  gap: 64px;
  align-items: start;
  padding-top: 16px;
}
.gallery { display: grid; gap: 0; }
.gallery-main { aspect-ratio: 6 / 5; border-radius: 2px; overflow: hidden; background: var(--sage); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(16, 45, 37, 0.04);
  margin-top: 2px;
}
.gallery-count { font-size: 11px; color: #7d8b83; width: 22px; flex: none; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; }
.gallery-thumbs button {
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid transparent;
  padding: 0;
  opacity: 0.75;
  transition: opacity 0.25s, border-color 0.25s;
}
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { opacity: 1; border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding-top: 8px; }
.product-info .eyebrow { color: var(--gold-deep); }
.product-info h1 { font-size: clamp(40px, 3.8vw, 58px); margin: 18px 0 14px; }
.product-info .subtitle { font-size: 14px; color: #6e7f75; max-width: 470px; }

.product-divider { height: 1px; background: var(--line); margin: 26px 0; }
.option-label { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #7d8b83; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-width: 72px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  background: var(--white);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--green); border-color: var(--green); color: var(--cream); }

.qty-block { margin-top: 26px; }
.qty {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  height: 56px;
  min-width: 146px;
  padding: 0 6px;
}
.qty button { width: 40px; height: 100%; font-size: 15px; color: #6b7a72; }
.qty button:hover { color: var(--ink); }
.qty input {
  width: 38px;
  text-align: center;
  border: 0;
  background: none;
  outline: none;
  font-size: 14px;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.price-line { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 22px; }
.price-line .price { font-family: var(--serif); font-size: 40px; line-height: 1; }
.price-line .unit { font-size: 11px; color: #8a978f; }

.buy-row { display: flex; gap: 12px; align-items: stretch; }
.buy-row .btn { height: 56px; }
.buy-row .btn:first-child { flex: 1; }
.buy-row .btn-outline { padding: 0 26px; }

/* Product content tabs */
.product-content { margin-top: 56px; }
.product-content > h2 { font-size: clamp(36px, 3.4vw, 46px); }
.product-intro { font-size: 14px; color: #5f7268; line-height: 1.75; max-width: 560px; margin-top: 18px; }
.tabs { display: flex; gap: 44px; border-bottom: 1px solid var(--line); margin-top: 40px; }
.tabs button {
  padding: 0 0 14px;
  font-size: 13px;
  color: #7d8b83;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.tabs button.is-active { color: var(--ink); border-color: var(--gold); }
.tab-panel { padding-top: 26px; display: none; }
.tab-panel.is-active { display: block; }
.tab-panel p { font-size: 13.5px; color: #5f7268; max-width: 640px; line-height: 1.8; }
.tab-panel p + p { margin-top: 10px; }
.spec-table { width: 100%; max-width: 640px; border-collapse: collapse; font-size: 13px; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line-soft); color: #4d5f55; }
.spec-table td:first-child { color: #8a978f; width: 45%; }

.related-section { padding: 64px 0 84px; }

/* =========================================================
   Cart
   ========================================================= */
.cart-page { padding-bottom: 40px; }
.cart-head h1 { font-size: clamp(42px, 4.6vw, 64px); }
.cart-head .cart-sub { font-size: 12px; color: #7d8b83; margin-top: 6px; }

.cart-layout { display: grid; grid-template-columns: 1fr 390px; gap: 42px; align-items: start; }
.cart-card { background: var(--white); border-radius: var(--radius); padding: 8px 40px; }
.cart-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 130px; height: 130px; border-radius: 2px; overflow: hidden; background: var(--sage); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.cart-item-meta { font-size: 11px; color: #8a978f; margin-top: 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.cart-qty { display: inline-flex; align-items: center; gap: 16px; }
.cart-qty button { font-size: 13px; color: #6b7a72; padding: 2px; }
.cart-qty button:hover { color: var(--ink); }
.cart-qty input {
  width: 22px;
  text-align: center;
  border: 0;
  background: none;
  outline: none;
  font-size: 13px;
  -moz-appearance: textfield;
}
.cart-qty input::-webkit-outer-spin-button, .cart-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-remove { font-size: 10px; color: #a2ada6; }
.cart-remove:hover { color: #a4513f; }
.cart-item-price { font-family: var(--serif); font-size: 24px; text-align: right; padding-top: 24px; }

.cart-aside { display: grid; gap: 22px; }
.order-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
}
.order-panel h2 { font-size: 28px; margin-bottom: 20px; }
.order-row { display: flex; justify-content: space-between; gap: 20px; font-size: 12.5px; color: #7d8b83; padding: 7px 0; }
.order-row strong, .order-row span:last-child { color: var(--ink); font-weight: 400; }
.order-divider { height: 1px; background: var(--line); margin: 16px 0; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; }
.order-total .label { font-size: 12.5px; color: #7d8b83; }
.order-total .amount { font-family: var(--serif); font-size: 28px; }
.order-panel .btn { margin-top: 22px; height: 56px; }
.cart-note { font-size: 11px; color: #9aa69e; line-height: 1.6; max-width: 340px; }
.continue-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 26px; color: var(--ink); margin-top: 34px; }
.continue-link:hover { color: var(--gold-deep); }
.cart-footnote { font-size: 11px; color: #9aa69e; margin-top: 26px; }

.cart-empty { text-align: center; padding: 60px 0 70px; }
.cart-empty h2 { font-size: 32px; margin-bottom: 8px; }
.cart-empty p { color: #7d8b83; font-size: 13.5px; margin-bottom: 24px; }

/* =========================================================
   Checkout
   ========================================================= */
.checkout-steps { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.checkout-steps .step { font-size: 11px; color: #9aa69e; display: flex; align-items: center; gap: 8px; }
.checkout-steps .step.is-active { color: var(--ink); }
.checkout-steps .num { font-size: 11px; }
.checkout-steps .dash { width: 70px; height: 1px; background: var(--line); }

.checkout-layout { display: grid; grid-template-columns: 1fr 390px; gap: 42px; align-items: start; padding-bottom: 64px; }
.checkout-card { background: var(--white); border-radius: var(--radius); padding: 36px 40px; }
.form-block { padding-bottom: 26px; }
.form-block + .form-block { border-top: 1px solid var(--line-soft); padding-top: 30px; }
.form-block h2 { font-size: 30px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.is-full { grid-column: 1 / -1; }
.field label { font-size: 10px; color: #7d8b83; }
.field input, .field textarea, .field select {
  height: 50px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0 14px;
  font-size: 12.5px;
  outline: none;
  border-radius: 2px;
  transition: border-color 0.2s;
}
.field textarea { height: 120px; padding: 12px 14px; resize: vertical; background: var(--cream); }
.field input::placeholder, .field textarea::placeholder { color: #b3bdb7; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }

.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: #4d5f55;
  cursor: pointer;
  background: var(--white);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:has(input:checked) { background: var(--green); border-color: var(--green); color: var(--cream); }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; color: #7d8b83; margin-top: 26px; cursor: pointer; }
.consent input { position: absolute; opacity: 0; }
.consent .box { width: 12px; height: 12px; border: 1px solid #c0c9c3; margin-top: 3px; display: inline-grid; place-items: center; flex: none; }
.consent input:checked + .box { background: var(--green); border-color: var(--green); }
.consent input:checked + .box::after { content: ""; width: 6px; height: 3px; border-left: 1px solid #fff; border-bottom: 1px solid #fff; transform: translateY(-1px) rotate(-45deg); }

.checkout-aside { display: grid; gap: 18px; position: sticky; top: 24px; }
.order-panel-dark { background: var(--green); color: var(--cream); border-radius: var(--radius); padding: 30px; }
.order-panel-dark h2 { font-size: 28px; color: var(--cream); margin-bottom: 22px; }
.order-panel-dark .order-item { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: #cfdad3; padding: 7px 0; }
.order-panel-dark .order-item span:last-child { color: var(--gold-soft); white-space: nowrap; }
.order-panel-dark .order-divider { background: rgba(255, 255, 255, 0.16); margin: 18px 0; }
.order-panel-dark .order-total .label { color: #cfdad3; }
.order-panel-dark .order-total .amount { color: var(--gold-soft); }
.order-panel-dark .btn { margin-top: 24px; height: 56px; }

.order-success {
  max-width: 620px;
  margin: 20px auto 80px;
  text-align: center;
  padding: 52px 40px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
}
.order-success .mark { width: 50px; height: 50px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; color: var(--gold-deep); }
.order-success h1,
.order-success h2 { font-size: 40px; margin-bottom: 10px; }
.order-success p { color: #5f7268; font-size: 13px; }

/* =========================================================
   Info page (delivery)
   ========================================================= */
.info-cards { display: grid; gap: 24px; padding-bottom: 70px; }
.info-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 40px 40px;
}
.info-card .num { font-family: var(--serif); font-size: 26px; color: var(--gold-deep); }
.info-card h2 { font-size: 34px; }
.info-card .info-body { padding-top: 14px; border-top: 1px solid var(--line-soft); margin-top: 10px; }
.info-card p { font-size: 13px; color: #6e7f75; line-height: 1.8; max-width: 760px; }
.info-card p + p { margin-top: 8px; }
.info-footnote { font-size: 11px; color: #9aa69e; padding-bottom: 80px; }

/* =========================================================
   Contacts
   ========================================================= */
.contacts-layout { display: grid; grid-template-columns: 0.94fr 1fr; gap: 30px; align-items: stretch; padding-bottom: 30px; }
.contacts-card {
  background: var(--green);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  min-height: 620px;
}
.contacts-card .brand { font-family: var(--serif); font-size: 26px; color: var(--gold); letter-spacing: 0.06em; }
.contacts-links { display: grid; gap: 22px; margin-top: 56px; }
.contacts-links a { font-size: 16px; color: var(--cream); transition: color 0.2s; }
.contacts-links a:hover { color: var(--gold-soft); }
.contacts-card .contacts-note { margin-top: auto; padding-top: 40px; font-size: 11.5px; color: #a9b8af; line-height: 1.8; }
.contacts-card .contacts-note a { color: var(--gold-soft); }
.contacts-card .contacts-note p + p { margin-top: 4px; }

.contacts-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}
.contacts-form h2 { font-size: 34px; margin-bottom: 24px; }
.contacts-form .field { margin-bottom: 18px; }
.contacts-form .field label { font-size: 10px; color: #7d8b83; }
.contacts-form .field input, .contacts-form .field select { background: var(--white); }
.contacts-form .field input::placeholder { color: #b3bdb7; }
.contacts-form textarea {
  height: 180px;
  background: var(--cream);
  border: 1px solid transparent;
}
.contacts-form textarea:focus { border-color: var(--gold); background: var(--white); }
.contacts-form .btn { margin-top: 10px; height: 56px; }
.form-footnote { font-size: 11px; color: #9aa69e; padding: 26px 0 70px; }

/* =========================================================
   About page
   ========================================================= */
.about-hero { background: var(--green); color: var(--cream); padding: 84px 0 150px; }
.about-hero h1 { font-size: clamp(40px, 4.6vw, 60px); margin-top: 26px; max-width: 760px; line-height: 1.12; }
.about-hero h1 span { display: block; }
.about-hero .lead { color: #c6d2ca; margin-top: 30px; max-width: 400px; }
.about-story { padding: 90px 0 70px; }
.about-story h2 { font-size: clamp(38px, 4vw, 54px); }
.about-story .story-text { margin-top: 46px; display: grid; gap: 6px; font-size: 13.5px; color: #4d5f55; line-height: 1.8; max-width: 1120px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 90px; }
.value-card { background: var(--white); border-radius: var(--radius); padding: 30px 30px 34px; }
.value-card .num { font-family: var(--serif); font-size: 24px; color: var(--gold-deep); }
.value-card h3 { font-size: 24px; margin: 26px 0 12px; }
.value-card p { font-size: 12px; color: #7d8b83; line-height: 1.7; }

/* =========================================================
   Toast / reveal
   ========================================================= */
.toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 120;
  background: var(--green);
  color: var(--cream);
  padding: 15px 20px;
  border-left: 2px solid var(--gold);
  font-size: 12px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }

.reveal-init { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-init.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  :root { --pad: 64px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .collections { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .split-body { padding: 64px; }
  .gift { gap: 48px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr 330px; gap: 30px; }
}

@media (max-width: 1120px) {
  :root { --pad: 48px; }
  .nav { gap: 24px; margin-left: 60px; }
  .header-inner { gap: 24px; }
}

@media (max-width: 980px) {
  :root { --pad: 24px; }
  .header-inner { min-height: 78px; gap: 16px; }
  .nav { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--cream); }
  .burger svg { width: 20px; height: 20px; }
  .site-header.is-menu-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--dark);
    padding: 10px var(--pad) 20px;
    border-top: 1px solid var(--line-light);
    margin: 0;
  }
  .site-header.is-menu-open .nav a { width: 100%; padding: 13px 0; }

  .hero-inner { min-height: 540px; padding-top: 64px; padding-bottom: 56px; }
  .hero-media { background-position: 62% center; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(8, 29, 24, 0.5) 0%, rgba(8, 29, 24, 0.55) 40%, #081d18 100%),
                linear-gradient(90deg, rgba(8, 29, 24, 0.9), rgba(8, 29, 24, 0.3));
  }
  .hero-slider { margin-top: 30px; }

  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 14px; padding-top: 20px; padding-bottom: 20px; }
  .trust-item { font-size: 11px; }

  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
  .products-grid, .collections { gap: 16px; }
  .collection-card { min-height: 220px; padding: 22px; }
  .collection-card h3 { font-size: 24px; }
  .collection-card p { font-size: 11px; }

  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 300px; }
  .split-body { padding: 48px var(--pad) 54px; }

  .gift { grid-template-columns: 1fr; gap: 30px; padding-top: 60px; padding-bottom: 60px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-nav { gap: 20px; }

  .page-head { padding: 28px 0 24px; }
  .catalog-head-row { align-items: flex-start; }
  .catalog-head-row .sort-select { margin-bottom: 0; }
  .catalog .search-row { margin-top: 20px; }
  .search-row .btn { padding: 0 24px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 22px; }
  .filters { padding: 22px; }
  .catalog-grid { gap: 16px; }
  .catalog-cta { grid-template-columns: 1fr; gap: 26px; padding-top: 52px; padding-bottom: 52px; }

  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .gallery-main { aspect-ratio: 1 / 1; }
  .product-content { margin-top: 42px; }
  .tabs { gap: 26px; }
  .buy-row { flex-wrap: wrap; }
  .buy-row .btn:first-child { flex: 1 1 100%; }

  .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 26px; }
  .cart-card { padding: 4px 22px; }
  .cart-row { grid-template-columns: 92px 1fr; gap: 18px; }
  .cart-thumb { width: 92px; height: 92px; }
  .cart-item-name { font-size: 22px; }
  .cart-item-price { grid-column: 2; text-align: left; padding-top: 0; font-size: 20px; }
  .cart-item-controls { margin-top: 14px; }
  .cart-head h1 { font-size: 40px; }
  .checkout-card { padding: 26px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .checkout-steps .dash { width: 28px; }
  .checkout-aside { position: static; }

  .info-card { grid-template-columns: 1fr; gap: 8px; padding: 26px 24px 30px; }
  .info-card h2 { font-size: 28px; }

  .contacts-layout { grid-template-columns: 1fr; }
  .contacts-card { min-height: 0; padding: 30px; }
  .contacts-card .contacts-note { padding-top: 34px; }
  .contacts-form { padding: 28px 24px; }

  .about-hero { padding: 56px 0 64px; }
  .about-story { padding: 56px 0 46px; }
  .about-story .story-text { margin-top: 28px; }
  .values { grid-template-columns: 1fr; gap: 14px; padding-bottom: 60px; }
}

@media (max-width: 560px) {
  :root { --pad: 16px; }
  .products-grid, .collections, .catalog-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .logo-title { font-size: 18px; }
  .logo-sub { font-size: 6px; }
  .footer-nav { flex-direction: column; gap: 10px; }
  .search-overlay { padding: 24px; }
  .search-overlay input { font-size: 22px; }
  .page-head h1 { font-size: 36px; }
  .gallery-strip { padding: 10px; gap: 8px; }
  .cart-row { grid-template-columns: 76px 1fr; }
  .cart-thumb { width: 76px; height: 76px; }
}
