/* ==========================================================================
   VIPRASSADA — design tokens & base styles
   ========================================================================== */

:root {
  --color-primary: #2D5A3D;
  --color-primary-hover: #24492F;
  --color-accent: #E8834A;
  --color-accent-hover: #D9723A;
  --color-bg: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-text: #1F2A24;
  --color-text-secondary: #6B7268;
  --color-border: #E3E0D8;
  --color-badge-stock-bg: #E4EEE7;
  --color-badge-stock-text: #2D5A3D;
  --color-badge-preorder-bg: #FBE8D9;
  --color-badge-preorder-text: #B85C1F;
  --color-footer-bg: #1F2A24;

  --font-heading: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;

  --radius-card: 8px;
  --radius-pill: 100px;

  --container-max: 1440px;
  --gutter-desktop: 64px;
  --gutter-mobile: 20px;

  --header-height: 60px;
  --header-height-mobile: 52px;
  --topbar-height: 40px;
  --topbar-height-mobile: 34px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: calc(var(--topbar-height) + var(--header-height));
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 900px) {
  body { padding-top: calc(var(--topbar-height-mobile) + var(--header-height-mobile)); }
}

a { color: var(--color-primary); text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* Keeps in-page anchor links (nav "О нас" / "Контакты") from landing
   under the fixed header. */
[id] { scroll-margin-top: calc(var(--topbar-height) + var(--header-height) + 16px); }

@media (max-width: 900px) {
  [id] { scroll-margin-top: calc(var(--topbar-height-mobile) + var(--header-height-mobile) + 16px); }
}

img { max-width: 100%; display: block; }

button { font-family: var(--font-body); -webkit-tap-highlight-color: transparent; }

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
}

@media (max-width: 720px) {
  .container { padding: 0 var(--gutter-mobile); }
}

/* ==========================================================================
   Buttons & badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 12.5px 32px;
}

.btn-light {
  background: var(--color-bg);
  color: var(--color-primary);
}

.btn-block { display: flex; width: 100%; }

.badge {
  display: inline-flex;
  align-self: flex-start;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}
.badge-stock { color: var(--color-badge-stock-text); background: var(--color-badge-stock-bg); }
.badge-preorder { color: var(--color-badge-preorder-text); background: var(--color-badge-preorder-bg); }

/* ==========================================================================
   Topbar — thin utility strip above the header: hours + contacts,
   visible at a glance on every page. Fixed and stacked directly above
   .site-header (see --topbar-height / --topbar-height-mobile).
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 51;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter-desktop);
  background: var(--color-primary);
  color: var(--color-bg);
  font-size: 13px;
  font-weight: 600;
}

.topbar__hours,
.topbar__contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar__hours { opacity: 0.92; }

.topbar__contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.topbar__contact {
  color: var(--color-bg);
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__icon { flex-shrink: 0; opacity: 0.85; }

@media (max-width: 900px) {
  .topbar {
    height: var(--topbar-height-mobile);
    padding: 0 var(--gutter-mobile);
    font-size: 11.5px;
    gap: 12px;
  }
  .topbar__contacts { gap: 14px; }
  .topbar__contact--email { display: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--gutter-desktop);
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.site-header__nav {
  display: flex;
  gap: 40px;
}

.site-header__nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.site-header__nav a.active { color: var(--color-primary); }

.site-header__call {
  font-size: 13px;
  padding: 9px 20px;
}

.site-header__menu-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.site-header__mobile-panel {
  display: flex;
  position: fixed;
  top: calc(var(--topbar-height-mobile) + var(--header-height-mobile));
  left: 0;
  right: 0;
  z-index: 45;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 20px 28px;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 16px 32px rgba(31, 42, 36, 0.14);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.site-header__mobile-panel a { font-size: 20px; font-weight: 700; color: var(--color-text); }
.site-header__mobile-panel .btn { margin-top: 8px; }

.site-header__overlay {
  display: block;
  position: fixed;
  top: calc(var(--topbar-height-mobile) + var(--header-height-mobile));
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 42, 36, 0.55);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

body.menu-open .site-header__mobile-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}
body.menu-open .site-header__overlay {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .site-header { top: var(--topbar-height-mobile); height: var(--header-height-mobile); padding: 0 var(--gutter-mobile); }
  .site-header__logo { font-size: 17px; }
  .site-header__nav, .site-header__call.desktop-only { display: none; }
  .site-header__menu-btn { display: flex; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-bg);
  padding: 64px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250, 248, 245, 0.15);
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}

.site-footer__desc {
  color: rgba(250, 248, 245, 0.6);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.site-footer__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(250, 248, 245, 0.5);
  margin-bottom: 16px;
}

.site-footer__contacts { font-size: 14px; line-height: 2; }
.site-footer__address { font-size: 14px; line-height: 1.8; }

.site-footer__bottom { padding-top: 24px; font-size: 13px; }
.site-footer__bottom a { color: var(--color-bg); text-decoration: underline; }

.site-footer__copy { padding-top: 12px; font-size: 13px; color: rgba(250, 248, 245, 0.45); }

@media (max-width: 900px) {
  .site-footer { padding: 40px 20px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .site-footer__brand { font-size: 17px; }
}

/* ==========================================================================
   Homepage — hero
   ========================================================================== */

.hero {
  position: relative;
  height: 760px;
  background: var(--color-primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__deco { position: absolute; opacity: 0.45; stroke: #3E7350; }
.hero__deco--top { top: -100px; right: -140px; }
.hero__deco--bottom { bottom: -120px; left: -120px; }

.hero__content {
  position: relative;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F2A876;
  margin-bottom: 20px;
}

.hero__title {
  font-weight: 600;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-bg);
  margin: 0 0 24px;
}

.hero__lead {
  font-weight: 500;
  font-size: 19px;
  color: var(--color-bg);
  opacity: 0.85;
  max-width: 520px;
  margin: 0 0 40px;
  line-height: 1.5;
}

.hero__actions { display: flex; align-items: center; gap: 24px; }
.hero__link { font-size: 15px; font-weight: 700; color: var(--color-bg); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.15s; }

@media (max-width: 900px) {
  .hero { height: 520px; }
  .hero__content { padding: 0 24px; }
  .hero__title { font-size: 38px; margin-bottom: 16px; }
  .hero__lead { font-size: 15px; margin-bottom: 28px; }
  .hero__actions { flex-direction: column; gap: 16px; }
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.section { padding: 96px var(--gutter-desktop); border-bottom: 1px solid var(--color-border); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__title { font-weight: 600; font-size: 36px; margin: 0 0 12px; }
.section__subtitle { color: var(--color-text-secondary); font-size: 16px; margin: 0; }

@media (max-width: 900px) {
  .section { padding: 48px var(--gutter-mobile); }
  .section__head { margin-bottom: 28px; }
  .section__title { font-size: 26px; }
  .section__subtitle { font-size: 14px; }
}

/* ==========================================================================
   Category cards (homepage)
   ========================================================================== */

.category-feature {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: all 0.2s;
}
.category-feature__label {
  padding: 32px;
  background: linear-gradient(0deg, rgba(31, 42, 36, 0.6), rgba(31, 42, 36, 0));
  width: 100%;
  box-sizing: border-box;
}
.category-feature__label span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--color-bg);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.category-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: all 0.2s;
}
.category-card__label {
  padding: 16px;
  box-sizing: border-box;
  width: 100%;
  background: linear-gradient(0deg, rgba(31, 42, 36, 0.55), rgba(31, 42, 36, 0));
}
.category-card__label span { font-weight: 700; font-size: 15px; color: var(--color-bg); }

.section__cta { text-align: center; }

@media (max-width: 900px) {
  .category-feature { height: 200px; margin-bottom: 16px; }
  .category-feature__label { padding: 20px; }
  .category-feature__label span { font-size: 19px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
  .category-card { height: 140px; }
  .category-card__label { padding: 12px; }
  .category-card__label span { font-size: 13px; }
}

/* ==========================================================================
   How it works (steps)
   ========================================================================== */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { text-align: center; padding: 0 24px; border-right: 1px solid var(--color-border); }
.step:last-child { border-right: none; }
.step__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-badge-stock-bg);
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.step__icon svg { stroke: var(--color-primary); }
.step__title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.step__desc { color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }

@media (max-width: 900px) {
  .steps { display: flex; flex-direction: column; gap: 28px; }
  .step { display: flex; gap: 16px; align-items: center; text-align: left; padding: 0; border-right: none; }
  .step__icon { width: 56px; height: 56px; margin: 0; flex-shrink: 0; }
  .step__icon svg { width: 26px; height: 26px; }
  .step__body { display: flex; flex-direction: column; gap: 4px; }
}

/* ==========================================================================
   About section
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 420px;
  background: linear-gradient(135deg, #E4EEE7, #F2EFE9 60%, #FBE8D9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__media svg { opacity: 0.5; }
.about__eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 16px;
}
.about__title { font-weight: 600; font-size: 36px; margin: 0 0 20px; line-height: 1.15; }
.about__text { color: var(--color-text); opacity: 0.8; font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.about__stats { display: flex; gap: 48px; }
.about__stat-value { font-family: var(--font-heading); font-weight: 600; font-size: 32px; color: var(--color-primary); }
.about__stat-label { color: var(--color-text-secondary); font-size: 14px; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 0; }
  .about__media { height: 220px; margin-bottom: 24px; }
  .about__title { font-size: 24px; }
  .about__text { font-size: 14px; }
  .about__stats { gap: 32px; }
  .about__stat-value { font-size: 24px; }
}

/* ==========================================================================
   Map section
   ========================================================================== */

.map-card {
  position: relative;
  display: block;
  height: 420px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(135deg, #E4EEE7, #F2EFE9 60%, #FBE8D9);
  cursor: pointer;
  transition: all 0.2s;
}

@media (max-width: 900px) {
  .map-card { height: 200px; }
}
.map-card__pin {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.map-card__text { color: var(--color-text); font-weight: 600; font-size: 15px; }
.map-card__link {
  position: absolute; right: 16px; bottom: 16px;
  font-size: 12px; font-weight: 600; color: var(--color-text);
  background: rgba(250, 248, 245, 0.85); backdrop-filter: blur(4px);
  border-radius: var(--radius-pill); padding: 7px 14px;
}

/* ==========================================================================
   Page header (Catalog / Product / Privacy)
   ========================================================================== */

.page-head { padding: 48px var(--gutter-desktop) 0; }
.page-head__title { font-weight: 600; font-size: 40px; margin: 0 0 12px; }
.page-head__meta { color: var(--color-text-secondary); font-size: 15px; }

.breadcrumb-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--color-primary);
  margin-bottom: 16px; transition: gap 0.15s;
}

.breadcrumb-trail { color: var(--color-text-secondary); font-size: 14px; }
.breadcrumb-trail a { color: var(--color-text-secondary); }

@media (max-width: 900px) {
  .page-head { padding: 24px var(--gutter-mobile) 0; }
  .page-head__title { font-size: 28px; }
  /* Catalog only: title + count read as one tight group on mobile. */
  .page-head--catalog .page-head__title { margin-bottom: 8px; }
}

/* ==========================================================================
   Catalog layout
   ========================================================================== */

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 32px var(--gutter-desktop) 80px;
  align-items: start;
}

.filters {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  position: sticky;
  top: calc(var(--topbar-height) + var(--header-height) + 20px);
}
.filters__title { font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.filters__group { margin-bottom: 32px; }
.filters__group:last-child { margin-bottom: 0; }

.filters__checkbox {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; cursor: pointer; margin-bottom: 12px;
}
.filters__checkbox input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--color-primary); }

/* Категория "Рассада томатов" — раскрывающиеся подкатегории (грунт) */
.filters__category-item { margin-bottom: 12px; }
.filters__category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.filters__category-row .filters__checkbox { margin-bottom: 0; flex: 1; min-width: 0; }

.filters__expand-btn {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; padding: 0; cursor: pointer;
  color: var(--color-text-secondary);
  transition: transform 0.2s ease, color 0.2s ease;
}
.filters__expand-btn--open { transform: rotate(180deg); color: var(--color-primary); }

.filters__subcategories {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-left: 26px;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.filters__subcategories--open { max-height: 120px; opacity: 1; }

.filters__subcategories-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}
.filters__checkbox--sub { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 0; }

.price-range { margin-bottom: 16px; }
.price-range__inputs { display: flex; gap: 12px; }
.price-range__inputs input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--color-border); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; font-family: var(--font-body); color: var(--color-text);
}

.availability-options { display: flex; flex-direction: column; gap: 8px; }
.availability-options button {
  font-size: 14px; font-weight: 600; color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  padding: 10px 16px; background: transparent; cursor: pointer; text-align: left;
}
.availability-options button.active { font-weight: 700; color: var(--color-bg); background: var(--color-primary); border-color: var(--color-primary); }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.catalog-toolbar__title { font-weight: 700; font-size: 17px; }
.catalog-toolbar__count { color: var(--color-text-secondary); font-size: 14px; }

.search-box { position: relative; max-width: 360px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.search-box__icon { position: absolute; left: 16px; top: 21px; transform: translateY(-50%); color: var(--color-text-secondary); font-size: 15px; pointer-events: none; }
.search-box input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  padding: 12px 16px 12px 40px; font-size: 14px; font-family: var(--font-body); color: var(--color-text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}
.product-card__photo {
  height: 190px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-border);
  flex-shrink: 0;
}
.product-card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-card__name { font-weight: 700; font-size: 15px; margin-bottom: 6px; line-height: 1.35; }
.product-card__category { color: var(--color-text-secondary); font-size: 12px; margin-bottom: 12px; }
.product-card__prices { display: flex; flex-direction: column; gap: 2px; margin-top: auto; margin-bottom: 12px; }
.product-card__price-old { color: var(--color-text-secondary); font-size: 13px; text-decoration: line-through; }
.product-card__price { font-family: var(--font-heading); font-weight: 600; font-size: 20px; }

.empty-state { padding: 64px 0; text-align: center; color: var(--color-text-secondary); font-size: 15px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination button {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--color-text);
  background: transparent; border: 1px solid transparent; cursor: pointer;
}
.pagination button.page-nav { border-color: var(--color-border); color: var(--color-text-secondary); }
.pagination button.active { background: var(--color-primary); color: var(--color-bg); font-weight: 700; }
.pagination button:disabled { opacity: 0.35; cursor: not-allowed; }
.pagination span { width: 36px; text-align: center; color: var(--color-text-secondary); font-size: 14px; }

.filters-toggle-btn {
  display: none;
  align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  font-weight: 700; font-size: 14px; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-pill); padding: 12px 20px;
  cursor: pointer; margin-bottom: 20px;
}
.filters-toggle-btn__count {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile-only filter drawer chrome — hidden on desktop so it can't
   join the .catalog-layout grid as a stray auto-placed item. */
.filters__close,
.filters__apply {
  display: none;
}
.filters-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 42, 36, 0.45);
  z-index: 60;
}

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; gap: 0; padding: 24px var(--gutter-mobile) 40px; }
  .filters-toggle-btn { display: flex; }
  .filters {
    display: none;
    position: fixed;
    inset: 0;
    max-height: none;
    overflow-y: auto;
    border-radius: 0;
    border: none;
    z-index: 61;
    padding: 24px 20px 32px;
    box-shadow: none;
  }
  .filters__close {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
  }
  .filters__close-title {
    font-family: var(--font-heading); font-weight: 600; font-size: 20px;
    color: var(--color-text); margin: 0; line-height: 1;
  }
  .filters__close-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-border);
    background: transparent; font-size: 15px; line-height: 1; color: var(--color-text); cursor: pointer;
    padding: 0;
  }
  .filters__apply { display: block; width: 100%; margin-top: 8px; }
  body.filters-open .filters { display: block; }
  body.filters-open .filters-overlay { display: block; }
  .filters__checkbox {
    font-size: 16px;
    gap: 14px;
    padding: 12px 4px;
    margin-bottom: 2px;
  }
  .filters__checkbox input {
    width: 22px; height: 22px;
    margin: 0;
    flex-shrink: 0;
  }
  .filters__category-item { margin-bottom: 2px; }
  /* Same horizontal padding as every other .filters__checkbox (12px 4px)
     so the "Рассада томатов" checkbox lines up with its siblings — only
     the vertical rhythm needs to match the row's flex layout. */
  .filters__category-row .filters__checkbox { padding: 12px 4px; }
  .filters__expand-btn { width: 32px; height: 32px; }
  /* Aligns the sub-checkbox squares directly under the parent row's text
     (checkbox width 22px + its 14px gap), not an eyeballed value. */
  .filters__subcategories { margin-left: 36px; }
  .filters__checkbox--sub { font-size: 14px; padding: 6px 0; margin: 0; }
  .availability-options button {
    padding: 14px 16px;
    font-size: 15px;
  }
  .search-box { max-width: none; margin-bottom: 24px; padding-bottom: 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card__photo { height: 130px; }
  .product-card__body { padding: 12px; }
  .product-card__name { font-size: 13px; }
}

/* ==========================================================================
   Product page
   ========================================================================== */

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 32px var(--gutter-desktop) 80px;
  border-bottom: 1px solid var(--color-border);
}

.product-main__photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 520px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-border);
}

.product-main__info { display: flex; flex-direction: column; }
.product-main__category { color: var(--color-text-secondary); font-size: 14px; margin-bottom: 12px; }
.product-main__title { font-weight: 600; font-size: 40px; line-height: 1.1; margin: 0 0 20px; }
.product-main__badge { margin-bottom: 28px; }

.product-main__price-block {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px 0; margin-bottom: 28px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.product-main__price { font-family: var(--font-heading); font-weight: 600; font-size: 34px; }
.product-main__price-old { color: var(--color-text-secondary); font-size: 15px; text-decoration: line-through; margin-right: 8px; }
.product-main__meta { color: var(--color-text-secondary); font-size: 15px; }

.product-main__specs { display: flex; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.product-main__spec-label { font-size: 12px; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.03em; }
.product-main__spec-value { font-weight: 700; font-size: 15px; }

.product-main__desc { font-size: 15px; line-height: 1.75; color: var(--color-text); opacity: 0.85; margin: 0 0 36px; max-width: 480px; }

.related { padding: 80px var(--gutter-desktop); }
.related__title { font-weight: 600; font-size: 32px; margin: 0 0 40px; }
.related .product-grid { margin-bottom: 0; }

@media (max-width: 900px) {
  .product-main { grid-template-columns: 1fr; gap: 0; padding: 20px 20px 40px; }
  .product-main__photo { height: 280px; margin-bottom: 20px; }
  .product-main__title { font-size: 26px; margin-bottom: 14px; }
  .product-main__price-block { padding: 18px 0; margin-bottom: 20px; }
  .product-main__price { font-size: 26px; }
  .related { padding: 40px 20px; }
  .related__title { font-size: 22px; margin-bottom: 20px; }
}

/* ==========================================================================
   Privacy page
   ========================================================================== */

.policy-content { padding: 32px var(--gutter-desktop) 80px; max-width: 820px; }
.policy-content h1 { font-weight: 600; font-size: 40px; margin: 0 0 8px; }
.policy-content__meta { color: var(--color-text-secondary); font-size: 14px; margin-bottom: 48px; }
.policy-content h2 { font-weight: 700; font-size: 17px; margin: 32px 0 12px; }
.policy-content p { font-size: 15px; line-height: 1.75; opacity: 0.85; margin: 0 0 12px; }

@media (max-width: 900px) {
  .policy-content { padding: 20px 20px 40px; }
  .policy-content h1 { font-size: 26px; }
  .policy-content h2 { font-size: 15px; margin: 24px 0 10px; }
  .policy-content p { font-size: 14px; line-height: 1.7; }
}

/* ==========================================================================
   Burger menu icon toggle — crossfade + rotate between hamburger and ×
   ========================================================================== */

.site-header__menu-icon--open,
.site-header__menu-icon--close {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  opacity: 1;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.site-header__menu-icon--close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
}
body.menu-open .site-header__menu-icon--open {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
}
body.menu-open .site-header__menu-icon--close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* ==========================================================================
   Hover-only interactions
   Scoped to devices with a real pointer (mouse/trackpad) so touch taps on
   phones/tablets never trigger a "stuck" hover state (e.g. the orange
   link-hover flash when tapping or scrolling through product cards).
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--color-accent); }

  /* These links keep their own color on hover instead of turning accent. */
  .site-header__logo:hover { color: var(--color-primary); }
  .product-card:hover { color: var(--color-primary); }

  .btn-primary:hover { background: var(--color-primary-hover); color: var(--color-bg); transform: translateY(-1px); }
  .btn-outline:hover { background: var(--color-primary); color: var(--color-bg); }
  .btn-light:hover { background: #F4EFE8; color: var(--color-primary); transform: translateY(-1px); }

  .site-header__nav a:hover { color: var(--color-primary); }

  .site-footer__bottom a:hover { color: var(--color-accent); }

  .hero__link:hover { gap: 12px; color: var(--color-bg); }

  .category-feature:hover { box-shadow: 0 16px 40px rgba(31, 42, 36, 0.16); transform: translateY(-2px); }
  .category-card:hover { box-shadow: 0 16px 40px rgba(31, 42, 36, 0.16); transform: translateY(-2px); }
  .map-card:hover { box-shadow: 0 16px 40px rgba(31, 42, 36, 0.16); transform: translateY(-2px); }

  .breadcrumb-back:hover { gap: 10px; color: var(--color-primary); }
  .breadcrumb-trail a:hover { color: var(--color-accent); }

  .filters__expand-btn:hover { color: var(--color-primary); }

  .cookie-banner__decline:hover { border-color: var(--color-primary); color: var(--color-primary); }
  .cookie-banner__accept:hover { background: var(--color-accent-hover); }
}

/* ==========================================================================
   Cookie consent banner
   Injected into the DOM by main.js on first visit (see assets/js/main.js).
   Shown/hidden via the --visible modifier so it can transition in/out
   instead of popping. Fixed at the bottom, above everything else.
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  width: calc(100% - 48px);
  max-width: 920px;
  box-sizing: border-box;
  background: var(--color-surface);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(31, 42, 36, 0.16);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cookie-banner__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
  max-width: 520px;
}
.cookie-banner__text a { text-decoration: underline; }

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__decline,
.cookie-banner__accept {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cookie-banner__decline {
  color: var(--color-text);
  background: transparent;
  border: 1.5px solid var(--color-border);
  padding: 12px 24px;
}
.cookie-banner__accept {
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  padding: 12px 26px;
}

@media (max-width: 900px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
    border-radius: 18px;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    transform: translateY(16px);
  }
  .cookie-banner--visible { transform: translateY(0); }
  .cookie-banner__text { font-size: 13px; max-width: none; }
  .cookie-banner__actions { gap: 10px; }
  .cookie-banner__decline,
  .cookie-banner__accept {
    flex: 1;
    padding: 11px;
    font-size: 13px;
    text-align: center;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.icon-only { display: flex; align-items: center; justify-content: center; }
