/* ============================================================
   Мастер света — design system
   Ink, paper & pine. Warm paper surfaces, spruce ink, a single
   deep-green accent, forest-dark panels for product photography.
   ============================================================ */

:root {
  /* surfaces */
  --bg: #f3f2ec;
  --surface: #ffffff;
  --surface-2: #eae8df;
  --forest: #16211b;
  --forest-2: #1e2c24;

  /* text */
  --ink: #1a231d;
  --ink-soft: #434b45;
  --muted: #5f6862;

  /* lines */
  --line: #dcdbd1;
  --line-strong: #c6c5b8;

  /* accent — deep pine green */
  --accent: #1f4b39;
  --accent-deep: #163728;
  --accent-soft: #e5ede8;

  --ok: #2f7d51;
  --danger: #b23b2e;

  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(22, 33, 27, .05);
  --shadow: 0 6px 22px rgba(22, 33, 27, .09);
  --shadow-lg: 0 20px 50px rgba(22, 33, 27, .16);

  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Spectral", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gap: clamp(16px, 3vw, 32px);
  --section-y: clamp(56px, 8vw, 112px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0 0 .4em;
}
h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.3rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.wrap { width: min(var(--wrap), 100% - 2 * var(--gap)); margin-inline: auto; }
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--fill { background: var(--surface-2); border-block: 1px solid var(--line); }

/* small section label — quiet, never shouty */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent); flex: none;
}
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .82em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600; font-size: .96rem; letter-spacing: -.005em;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--surface-2); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 1em 1.9em; font-size: 1.02rem; }

/* squared tag, not a pill */
.pill {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  padding: .3em .6em; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft);
}
.badge-ok {
  color: var(--ok); display: inline-flex; align-items: center; gap: .45em; font-weight: 600;
}
.badge-ok::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
}

.link-arrow {
  color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: .4em;
  transition: gap .18s ease;
}
.link-arrow:hover { gap: .7em; }

/* ============================================================
   Header
   ============================================================ */
.topbar {
  background: var(--forest); color: #b9c4bc; font-size: .82rem;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem;
}
.topbar a:hover { color: #fff; }
.topbar__links { display: flex; gap: 1.4rem; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(243, 242, 236, .92);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo search actions";
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: 76px;
}
.site-header__row > .logo { grid-area: logo; }
.site-header__row .search { grid-area: search; }
.site-header__row .header-actions { grid-area: actions; }
.logo { display: inline-flex; align-items: center; gap: .65rem; }
.logo__mark {
  width: 38px; height: 38px; border-radius: var(--radius); flex: none;
  background: var(--forest); color: #f3f2ec;
  display: grid; place-items: center;
}
.logo__mark svg { width: 20px; height: 20px; }
.logo__name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  line-height: 1; letter-spacing: -.02em;
}
.logo__tag {
  display: block; font-family: var(--font-sans); font-size: .68rem;
  letter-spacing: .01em; color: var(--muted); font-weight: 500; margin-top: 4px;
}

.search {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 3px 3px 3px 16px; max-width: 520px; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input {
  border: 0; background: transparent; outline: none;
  flex: 1; font-size: .95rem; color: var(--ink); min-width: 0;
}
.search button {
  border: 0; border-radius: var(--radius-sm); padding: .58em .8em;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  transition: background .18s ease;
}
.search button:hover { background: var(--accent-deep); }
.search button svg { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: .3rem; }
.icon-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 0; background: transparent; color: var(--ink);
  padding: .55em .65em; border-radius: var(--radius); font-weight: 600; font-size: .9rem;
  position: relative; transition: background .18s ease;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 0; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* catalog dropdown */
.nav-bar { border-top: 1px solid var(--line); }
.nav-bar > .wrap { display: flex; align-items: stretch; gap: .5rem; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--accent); color: #fff; border: 0;
  padding: 0 1.3rem; font-weight: 600; font-size: .92rem; letter-spacing: -.005em;
  transition: background .18s ease;
}
.nav-toggle:hover { background: var(--accent-deep); }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: .1rem; flex-wrap: wrap; align-items: center; }
.nav-links a {
  padding: .85rem .85rem; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover { color: var(--accent); border-color: var(--accent); }

.mega {
  position: absolute; left: 0; right: 0; z-index: 55;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: none;
  max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain;
}
.mega.open { display: block; animation: megaIn .2s ease; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega__inner { padding: 1.6rem 0 1.3rem; }
.mega__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: .3rem 1.6rem;
}
.mega__col { padding-bottom: .5rem; }
.mega__head {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .5rem .1rem; font-weight: 600; font-size: .98rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mega__head:hover { color: var(--accent); }
.mega__head-name { line-height: 1.2; }
.mega__count {
  flex: none; font-size: .72rem; font-weight: 600; color: var(--muted);
}
.mega__list { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: 1px; }
.mega__list li a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .38rem .1rem; font-size: .86rem; color: var(--ink-soft);
  transition: color .15s ease, padding-left .15s ease;
}
.mega__list li a:hover { color: var(--accent); padding-left: .3rem; }
.mega__list li a i { font-style: normal; font-size: .72rem; color: var(--muted); }
.mega__more a { color: var(--accent); font-weight: 600; }
.mega__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.2rem; padding: 1rem 1.3rem; border-radius: var(--radius);
  background: var(--forest); color: #eef1ec; font-size: .95rem;
}
.mega__cta b { color: #fff; font-weight: 600; }
.mega__cta-arrow { transition: transform .2s ease; font-size: 1.3rem; }
.mega__cta:hover .mega__cta-arrow { transform: translateX(5px); }

/* editable stat strip (category & product pages) */
.stat-strip { display: flex; flex-wrap: wrap; gap: 0; margin-top: 1.4rem; }
.stat-strip__item {
  padding: .2rem 1.4rem .2rem 0; margin-right: 1.4rem; min-width: 90px;
  border-right: 1px solid var(--line);
}
.stat-strip__item:last-child { border-right: 0; }
.stat-strip__item b {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: 1.6rem; line-height: 1.05; color: var(--ink);
}
.stat-strip__item span { font-size: .78rem; color: var(--muted); }
.stat-strip--pdp { margin: 1.6rem 0; }

/* ============================================================
   Homepage top: category rail + editorial hero banner
   ============================================================ */
.home-top { padding: clamp(18px, 2.5vw, 30px) 0 clamp(26px, 4vw, 44px); }
.home-top__grid {
  display: grid; grid-template-columns: 264px 1fr;
  gap: clamp(16px, 2vw, 26px); align-items: stretch;
}

.cat-rail {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; max-height: 468px;
}
.cat-rail__head {
  display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem;
  letter-spacing: -.005em; padding: .9rem 1.1rem; color: var(--ink);
  border-bottom: 1px solid var(--line); flex: none;
}
.cat-rail__head svg { width: 17px; height: 17px; color: var(--accent); }
.cat-rail ul {
  list-style: none; margin: 0; padding: .35rem; display: grid; gap: 1px;
  grid-auto-rows: max-content; flex: 1 1 auto; min-height: 0; overflow-y: auto;
}
.cat-rail li a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .5rem .7rem; border-radius: var(--radius-sm); font-size: .87rem;
  color: var(--ink-soft); transition: color .15s ease, background .15s ease;
}
.cat-rail li a:hover { background: var(--surface-2); color: var(--accent); }
.cat-rail li a i { font-style: normal; font-size: .74rem; color: var(--muted); }

.hero-slider {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 452px; background: var(--forest);
}
.hero-slider__track { position: relative; height: 100%; min-height: 452px; }
.hero-slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.08fr .92fr; align-items: center;
  gap: 1.4rem; padding: clamp(28px, 4vw, 60px);
  opacity: 0; visibility: hidden; transition: opacity .5s ease; color: #e9ede9;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide__body { z-index: 2; max-width: 30rem; }
.hero-slide__kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 500; color: #9db0a4; margin-bottom: 1.1rem;
}
.hero-slide__kicker::before { content: ""; width: 24px; height: 1px; background: #6f867a; }
.hero-slide h2 {
  color: #fff; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 3.3vw, 3.2rem); line-height: 1.02; margin-bottom: .7rem;
}
.hero-slide p { color: #c3cec6; max-width: 40ch; margin: 0 0 .4rem; }
.hero-slide__price {
  font-family: var(--font-display); font-size: 1.5rem; color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-slide .btn { margin-top: 1.5rem; }
.hero-slide__media { position: relative; height: 100%; display: grid; place-items: center; }
.hero-slide__media img {
  position: relative; max-width: 100%; max-height: 340px; object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .45));
}

.hero-slider__dots {
  position: absolute; bottom: 20px; left: clamp(28px, 4vw, 60px);
  display: flex; gap: .5rem; z-index: 3;
}
.hero-slider__dots button {
  width: 22px; height: 3px; border: 0; padding: 0; border-radius: 0;
  background: rgba(255, 255, 255, .28); cursor: pointer; transition: background .2s ease;
}
.hero-slider__dots button.is-active { background: #fff; }

.hero-stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.hero-stats-bar div {
  padding: 1.1rem 1.4rem; border-right: 1px solid var(--line);
}
.hero-stats-bar div:last-child { border-right: 0; }
.hero-stats-bar b {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: 1.7rem; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums;
}
.hero-stats-bar span { font-size: .8rem; color: var(--muted); }

/* forest product frame reused by the brand band */
.hero__art {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--forest); display: grid; place-items: center;
}
.hero__art img {
  max-width: 84%; max-height: 84%; object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .4));
}
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ============================================================
   Section heading
   ============================================================ */
.head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; margin-bottom: 2.4rem; flex-wrap: wrap;
}
.head-row p { margin: .5rem 0 0; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 0; }
.cat-card {
  position: relative; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); margin: -0.5px; min-height: 176px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.3rem; transition: background .2s ease;
  isolation: isolate;
}
.cat-card:hover { background: var(--surface-2); }
.cat-card__bg {
  position: absolute; inset: 0; z-index: -1;
  object-fit: cover; width: 100%; height: 100%; opacity: .1;
}
.cat-card h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .2rem; }
.cat-card span { color: var(--muted); font-size: .85rem; }
.cat-card__arrow {
  position: absolute; top: 1.2rem; right: 1.2rem; color: var(--accent);
  opacity: 0; transform: translateX(-4px); transition: .2s ease;
}
.cat-card:hover .cat-card__arrow { opacity: 1; transform: none; }

/* ============================================================
   Product cards / grid
   ============================================================ */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card__media {
  position: relative; aspect-ratio: 1/1; background: var(--surface);
  display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card__media img {
  width: 100%; height: 100%; object-fit: contain; padding: 14px;
  transition: transform .4s ease; mix-blend-mode: multiply;
}
.card:hover .card__media img { transform: scale(1.04); }
.card__series { position: absolute; top: 10px; left: 10px; }
.card__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__name {
  font-size: .95rem; font-weight: 500; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.5em;
}
.card__name:hover { color: var(--accent); }
.card__meta { font-size: .78rem; color: var(--muted); }
.card__foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; padding-top: .5rem;
}
.card__price {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.card__price small {
  display: block; font-size: .68rem; color: var(--muted); font-weight: 500; letter-spacing: 0;
}
.add-btn {
  border: 1px solid var(--line-strong); background: var(--surface);
  width: 42px; height: 42px; border-radius: var(--radius); flex: none;
  display: grid; place-items: center; color: var(--ink);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.add-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.add-btn svg { width: 20px; height: 20px; }
.add-btn.added { background: var(--ok); border-color: var(--ok); color: #fff; }
.img-fallback { color: var(--line-strong); display: grid; place-items: center; width: 100%; height: 100%; }
.img-fallback svg { width: 46px; height: 46px; }

/* ============================================================
   Collections strip
   ============================================================ */
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.coll {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 3/4; background: var(--forest);
  display: flex; align-items: flex-end; padding: 1.1rem; color: #fff;
}
.coll img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .62; transition: opacity .4s ease, transform .4s ease;
}
.coll:hover img { opacity: .78; transform: scale(1.05); }
.coll::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 35%, rgba(15, 22, 18, .82));
}
.coll__txt { position: relative; z-index: 1; }
.coll__txt b { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
.coll__txt span { display: block; font-size: .78rem; color: #b6c1b9; margin-top: .1rem; }

/* ============================================================
   Features / advantages
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feat__ic {
  width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 1.1rem;
}
.feat__ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feat p { margin: 0; font-size: .9rem; color: var(--muted); }

/* home capabilities — editorial numbered list, no icon chips */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; }
.cap {
  padding: 1.6rem 1.6rem 1.6rem 0; border-top: 1px solid var(--line);
  margin-right: 1.6rem;
}
.cap__no {
  font-family: var(--font-display); font-size: .95rem; color: var(--accent);
  font-variant-numeric: tabular-nums; margin-bottom: .8rem; display: block;
}
.cap h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.cap p { margin: 0; font-size: .9rem; color: var(--muted); }

/* brand band */
.band { background: var(--forest); color: #d9e0da; border-radius: var(--radius-lg); overflow: hidden; }
.band__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px);
  align-items: center; padding: clamp(32px, 5vw, 64px);
}
.band h2 { color: #fff; }
.band h2 em { color: #fff; font-style: italic; }
.band .lead { color: #b9c4bc; }
.band__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2rem; }
.band__facts div b {
  font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; color: #fff;
  display: block; font-variant-numeric: tabular-nums;
}
.band__facts div span { font-size: .82rem; color: #9fb0a5; }

/* ============================================================
   Breadcrumbs
   ============================================================ */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: var(--muted); padding: 1.4rem 0; }
.crumbs a:hover { color: var(--accent); }
.crumbs span.sep { opacity: .5; }

/* ============================================================
   Category page layout
   ============================================================ */
.shop { display: grid; grid-template-columns: 262px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.subcats { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.subcats a {
  font-size: .85rem; font-weight: 500; padding: .5em 1em; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  transition: border-color .15s ease, color .15s ease;
}
.subcats a:hover { border-color: var(--accent); color: var(--accent); }

.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; position: sticky; top: 92px;
}
.filters__group { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.filters__group:last-child { border-bottom: 0; }
.filters__group > h4 {
  font-size: .8rem; letter-spacing: .04em; color: var(--muted); margin-bottom: .8rem;
  text-transform: uppercase;
}
.facet-opt {
  display: flex; align-items: center; gap: .55rem; font-size: .88rem; padding: .28rem 0;
  color: var(--ink-soft);
}
.facet-opt input { accent-color: var(--accent); width: 16px; height: 16px; }
.facet-opt:hover { color: var(--ink); }
.facet-list { max-height: 230px; overflow: auto; padding-right: 4px; }
.price-row { display: flex; gap: .5rem; align-items: center; }
.price-row input {
  width: 100%; padding: .55em .6em; border: 1px solid var(--line-strong);
  border-radius: var(--radius); font-size: .88rem;
}

.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1.4rem; flex-wrap: wrap;
}
.toolbar__count { font-size: .9rem; color: var(--muted); }
.sort { display: flex; gap: .3rem; flex-wrap: wrap; }
.sort a {
  font-size: .82rem; font-weight: 500; padding: .45em .9em; border-radius: var(--radius);
  color: var(--muted); border: 1px solid transparent; transition: color .15s ease;
}
.sort a.active { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.sort a:hover { color: var(--ink); }

.filter-fab { display: none; }

/* pagination */
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2.6rem; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding: 0 .8em; display: inline-grid; place-items: center;
  border-radius: var(--radius); border: 1px solid var(--line); font-weight: 500; font-size: .9rem;
  background: var(--surface);
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager .disabled { opacity: .4; }

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

/* ============================================================
   Product detail
   ============================================================ */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery__main {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden;
  position: sticky; top: 92px;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 30px; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.gallery__thumbs button {
  width: 72px; height: 72px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); padding: 6px; overflow: hidden; transition: border-color .15s ease;
}
.gallery__thumbs button.active { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pdp__title { margin: .4rem 0 .6rem; }
.pdp__sub { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.pdp__sub b { color: var(--ink-soft); }
.price-box { display: flex; align-items: baseline; gap: 1rem; margin: 1.2rem 0; }
.price-box .now {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.buy-row { display: flex; gap: .8rem; align-items: stretch; margin: 1.4rem 0; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-strong);
  border-radius: var(--radius); overflow: hidden;
}
.qty button { width: 44px; height: 52px; border: 0; background: var(--surface); font-size: 1.3rem; color: var(--ink-soft); }
.qty button:hover { background: var(--surface-2); }
.qty input {
  width: 54px; height: 52px; border: 0; text-align: center; font-size: 1rem; font-weight: 600;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.assure {
  display: grid; gap: .7rem; margin: 1.6rem 0; padding: 1.3rem;
  background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--line);
}
.assure div { display: flex; gap: .7rem; align-items: center; font-size: .88rem; color: var(--ink-soft); }
.assure svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

.specs { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.specs td { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 48%; padding-right: 1rem; }
.specs td:last-child { font-weight: 600; }

.prose { max-width: 70ch; color: var(--ink-soft); }
.prose p { margin: 0 0 1rem; }

.tabs { margin-top: clamp(40px, 6vw, 72px); }
.tabs__nav { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; flex-wrap: wrap; }
.tabs__nav button {
  border: 0; background: transparent; padding: .9em 1.2em; font-weight: 600; font-size: .95rem;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs__nav button.active { color: var(--ink); border-color: var(--accent); }
.tabs__panel { display: none; }
.tabs__panel.active { display: block; }

/* ============================================================
   Cart
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.cart-line {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 1.1rem; align-items: center;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.cart-line__img {
  width: 92px; height: 92px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; overflow: hidden;
}
.cart-line__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.cart-line__name { font-weight: 500; font-size: .95rem; }
.cart-line__name a:hover { color: var(--accent); }
.cart-line__meta { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.cart-line__end { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.cart-line__price { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.qty--sm button { width: 36px; height: 40px; font-size: 1.1rem; }
.qty--sm input { width: 44px; height: 40px; }
.link-remove { background: 0; border: 0; color: var(--muted); font-size: .8rem; display: inline-flex; align-items: center; gap: .3rem; }
.link-remove:hover { color: var(--danger); }

.summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; position: sticky; top: 92px;
}
.summary h3 { font-size: 1.05rem; }
.summary__row { display: flex; justify-content: space-between; padding: .55rem 0; font-size: .92rem; color: var(--ink-soft); }
.summary__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 1rem; margin-top: .6rem; border-top: 1px solid var(--line);
}
.summary__total b { font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; font-variant-numeric: tabular-nums; }

/* ============================================================
   Checkout / forms
   ============================================================ */
.form-grid { display: grid; gap: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .82em 1em; font-size: .98rem; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .errorlist { list-style: none; margin: .4rem 0 0; padding: 0; color: var(--danger); font-size: .82rem; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.delivery-opt {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  transition: border-color .15s ease; margin-bottom: .7rem;
}
.delivery-opt:hover { border-color: var(--accent); }
.delivery-opt input { accent-color: var(--accent); margin-top: 3px; }
.delivery-opt b { display: block; font-size: .95rem; }
.delivery-opt span { font-size: .82rem; color: var(--muted); }
.delivery-opt .price { margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* payment stub */
.pay-card {
  max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.pay-card__head {
  background: var(--forest); color: #fff; padding: 1.4rem 1.6rem;
  display: flex; justify-content: space-between; align-items: center;
}
.pay-card__head small { color: #9fb0a5; }
.pay-card__body { padding: 1.6rem; }
.pay-note {
  font-size: .82rem; color: var(--muted); background: var(--surface-2);
  border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: .8rem 1rem; margin: 1rem 0;
}

.notice { text-align: center; padding: clamp(40px, 6vw, 80px) 0; }
.notice__ic {
  width: 76px; height: 76px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin: 0 auto 1.4rem;
}
.notice__ic svg { width: 38px; height: 38px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--forest); color: #b3bfb6; margin-top: var(--section-y); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: clamp(40px, 5vw, 68px) 0 2.4rem; }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .88rem; }
.footer-brand .logo__name { color: #fff; }
.footer-brand .logo__mark { background: #fff; color: var(--forest); }
.footer-brand p { font-size: .88rem; color: #93a197; max-width: 34ch; margin-top: 1rem; }
.footer-contact b { color: #fff; font-size: 1.2rem; font-family: var(--font-display); font-weight: 500; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.1rem; flex-wrap: wrap; }
.footer-social a {
  font-size: .8rem; font-weight: 500; padding: .4em .9em;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); color: #cbd4cd;
  transition: border-color .15s ease, color .15s ease;
}
.footer-social a:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.4rem 0; display: flex;
  justify-content: space-between; gap: 1rem; font-size: .8rem; color: #7d8a80; flex-wrap: wrap;
}

/* messages */
.flash { padding: .9rem 1.2rem; border-radius: var(--radius); margin-bottom: .8rem; font-size: .9rem; font-weight: 500; border: 1px solid transparent; }
.flash--info { background: #eef3f5; color: #2a5a6a; border-color: #d7e3e7; }
.flash--error { background: #f9ece9; color: var(--danger); border-color: #eecfc9; }
.flash--success { background: var(--accent-soft); color: var(--accent-deep); border-color: #cfe0d5; }

/* utilities */
.stack-lg > * + * { margin-top: var(--section-y); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .home-top__grid { grid-template-columns: 232px 1fr; }
  .hero__art { max-width: 460px; order: -1; }
  .band__inner, .pdp { grid-template-columns: 1fr; }
  .gallery__main { position: static; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .home-top__grid { grid-template-columns: 1fr; }
  .cat-rail { display: none; }
  .hero-slider, .hero-slider__track { min-height: 392px; }
  .shop { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; inset: 0; z-index: 80; border-radius: 0; overflow: auto; }
  .filters.open { display: block; }
  .filter-fab { display: inline-flex; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mega { max-height: calc(100vh - 120px); }
  .mega__grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
/* Header reflows: logo + actions on top, full-width search below */
@media (max-width: 760px) {
  .site-header__row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo actions" "search search";
    row-gap: .6rem; padding-bottom: .7rem; min-height: 0; padding-top: .6rem;
  }
  .search { max-width: none; }
}
@media (max-width: 620px) {
  .logo__tag { display: none; }
  .logo__name { font-size: 1.3rem; }
  .topbar__links { display: none; }
  .band__inner { padding: 1.6rem; }
  .band__facts { grid-template-columns: 1fr 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  /* two-up product cards read better than a single column on phones */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
  .cap { margin-right: 0; }
  .card__media img { padding: 10px; }
  .card__body { padding: .7rem .8rem .9rem; gap: .4rem; }
  .card__price { font-size: 1.05rem; }
  .add-btn { width: 38px; height: 38px; }
  .hero-slider, .hero-slider__track { min-height: 340px; }
  .hero-slide { grid-template-columns: 1fr; gap: .5rem; padding: 30px 24px; align-content: center; }
  .hero-slide__media { display: none; }
  .hero-slide .btn { margin-top: 1rem; }
  .hero-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-stats-bar div:nth-child(2) { border-right: 0; }
  .hero-stats-bar b { font-size: 1.45rem; }
  .mega__grid { grid-template-columns: 1fr 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line__img { width: 64px; height: 64px; }
  .cart-line__end { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
}
@media (max-width: 400px) {
  .mega__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
