/* ======================================
   Уютное Ранчо — Продажа зерна
   Цветовая палитра: Деревенский (зелёный/коричневый/белый)
   ====================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --primary: #5B7D2A;
  --primary-hover: #4A6822;
  --primary-dark: #3A5518;
  --primary-light: #F0F5E8;
  --primary-gradient: linear-gradient(135deg, #5B7D2A 0%, #4A6822 100%);

  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-hover: #FBF9F6;
  --border: #E5DDD4;

  --text: #2C1810;
  --text-secondary: #6B5B4E;
  --text-muted: #9C8E82;
  --text-inverse: #FFFFFF;

  --sale: #C45B28;
  --sale-bg: #FFF5EE;
  --success: #5B7D2A;
  --warning: #D4922A;

  --accent-brown: #8B6543;
  --accent-wheat: #D4A84B;
  --accent-cream: #F5EDE0;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(44, 24, 16, 0.06), 0 1px 2px rgba(44, 24, 16, 0.04);
  --shadow-md: 0 4px 12px rgba(44, 24, 16, 0.08);
  --shadow-lg: 0 8px 30px rgba(44, 24, 16, 0.12);
  --shadow-xl: 0 16px 50px rgba(44, 24, 16, 0.16);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1240px;
  --header-height: 72px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Merriweather Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; 
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
}

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

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header.hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.header__logo:hover {
  opacity: 0.85;
}

.header__logo svg {
  width: 38px;
  height: 38px;
}

.header__logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-secondary);
  display: block;
  line-height: 1.2;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

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

.header__nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header__search {
  position: relative;
  width: 220px;
}

.header__search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
  outline: none;
}

.header__search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 125, 42, 0.12);
  background: var(--surface);
}

.header__search input::placeholder {
  color: var(--text-muted);
}

.header__search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

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

.header__action-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--sale);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Button */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  transition: var(--transition);
}

.header__burger:hover {
  background: var(--primary-light);
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.header__burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.open span:nth-child(2) {
  opacity: 0;
}

.header__burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── HERO SECTION ── */
.hero {
  position: relative;
  margin-top: var(--header-height);
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  color: var(--text-inverse);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 600px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.96;
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.6;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 100px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 16px rgba(91, 125, 42, 0.3);
}

.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 24px rgba(91, 125, 42, 0.4);
  transform: translateY(-1px);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-inverse);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
}

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

.btn--outline-dark:hover {
  background: var(--primary);
  color: var(--text-inverse);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  padding: 10px 16px;
}

.btn--ghost:hover {
  background: var(--primary-light);
}

.btn--sale {
  background: var(--sale);
  color: white;
  box-shadow: 0 4px 16px rgba(196, 91, 40, 0.3);
}

.btn--sale:hover {
  background: #A04820;
  box-shadow: 0 6px 24px rgba(196, 91, 40, 0.4);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ── SECTIONS ── */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--surface);
}

.section__header {
  margin-bottom: 40px;
}

.section__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section__subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 6px;
}


/* ── CATEGORY TILES ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: var(--transition);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.65) 100%);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card:hover::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(91, 125, 42, 0.6) 100%);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 20px;
  color: white;
  font-weight: 700;
  font-size: 1.15rem;
}

.category-card__count {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 2px;
}

/* ── PRODUCT CARDS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.product-card__img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg);
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-card:hover .product-card__img img {
  transform: scale(1.06);
}

.product-card__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  z-index: 2;
  cursor: pointer;
  border: none;
}

.product-card__fav:hover,
.product-card__fav.active {
  color: var(--sale);
  background: white;
  box-shadow: var(--shadow-sm);
}

.product-card__fav.active svg {
  fill: var(--sale);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.product-card__badge-item {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-card__badge-item--sale {
  background: #C45B28;
  color: white;
}

.product-card__badge-item--new {
  background: var(--success);
  color: white;
}

.product-card__badge-item--hit {
  background: var(--primary);
  color: white;
}

.product-card__info {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  line-height: 1.4;
  min-height: 2.8em;
}

.product-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-card__prices {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--success);
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.product-card__price.product-card__price--discount {
  color: #C45B28;
}

.product-card__price--old {
  font-size: 0.82rem;
  font-weight: 400;
  color: #808B9B;
  /* Ozon Gray */
  text-decoration: line-through;
  white-space: nowrap;
}

.product-card__discount {
  font-size: 0.82rem;
  font-weight: 700;
  color: #C45B28;
  /* Ozon Magenta */
  white-space: nowrap;
  flex-shrink: 0;
}

/* Card Gallery Hover Zones */
.product-card__gallery-zones {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 5;
  opacity: 0;
  /* Only active zones hover */
}

.product-card:hover .product-card__gallery-zones {
  opacity: 1;
}

.product-card__gallery-zone {
  flex: 1;
  height: 100%;
  cursor: pointer;
}

.product-card__gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 6;
  opacity: 0;
  transition: 0.2s;
}

.product-card:hover .product-card__gallery-dots {
  opacity: 1;
}

.product-card__gallery-dot {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.product-card__gallery-dot.active {
  background: white;
}

/* ── PRODUCT CARD COLOR SWATCHES ── */
.product-card__colors {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  min-height: 22px;
}

.product-card__prices {
  margin-top: auto;
}

.product-card__color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  flex-shrink: 0;
  display: inline-flex;
}

.product-card__color-dot:hover,
.product-card__color-dot.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(91, 125, 42, 0.2);
}

.product-card__color-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.product-card__color-half {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
}

.product-card__color-half--left {
  left: 0;
}

.product-card__color-half--right {
  right: 0;
}

/* Color map */
[data-cname="графит"] { background-color: #4A4A4A; }
[data-cname="вотан"],
[data-cname="дуб вотан"] { background-color: #C4A87D; }
[data-cname="белый"] { background-color: #F5F5F5; }
[data-cname="белый/дуб вотан"] { background-color: #F5F5F5; }
[data-cname="цемен"],
[data-cname="цемент"] { background-color: #A8A8A0; }
[data-cname="фантом"] { background-color: #6B6B7B; }
[data-cname="графит/дуб вотан"] { background-color: #4A4A4A; }


/* ── PROMO STRIP ── */
.promo-strip {
  padding: 0;
}

.promo-strip__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #C45B28 0%, #D4922A 50%, #E8A94B 100%);
  border-radius: var(--radius-lg);
  color: white;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  margin-top: -20px;
}

.promo-strip__inner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.promo-strip__inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 91, 40, 0.3);
}

.promo-strip__badge {
  flex-shrink: 0;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.promo-strip__text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.promo-strip__text strong {
  font-weight: 700;
}

.promo-strip__cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: var(--transition);
}

.promo-strip__inner:hover .promo-strip__cta {
  opacity: 1;
  gap: 8px;
}

/* ── HITS CAROUSEL ── */
.carousel-nav__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-nav__btn--left {
  left: 12px;
}

.carousel-nav__btn--right {
  right: 12px;
}

.carousel-nav__btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(91, 125, 42, 0.35);
}

.hits-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -20px;
  padding: 0 20px;
}

.hits-carousel__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
}

.hits-carousel__track::-webkit-scrollbar {
  display: none;
}

.hits-carousel__track .product-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  min-width: 0;
}

/* CTA card at end of carousel */
.hits-carousel__cta-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--primary);
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
  min-height: 350px;
  padding: 24px;
  text-align: center;
}

.hits-carousel__cta-card:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hits-carousel__cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(91, 125, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hits-carousel__cta-card:hover .hits-carousel__cta-icon {
  background: rgba(255, 255, 255, 0.2);
}

.hits-carousel__cta-text {
  font-size: 1.2rem;
  font-weight: 800;
}

.hits-carousel__cta-sub {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ── DELIVERY SECTION ── */
.delivery-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.delivery-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.delivery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.delivery-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}

.delivery-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.delivery-card__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── ABOUT SECTION ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about__img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.about__content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.about__stat {
  text-align: center;
}

.about__stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.about__stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── FOOTER ── */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer__social:hover {
  background: var(--primary);
  color: white;
}

.footer__heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer__bottom a {
  color: var(--primary);
}

/* ── CATALOG PAGE ── */
.catalog-hero {
  margin-top: var(--header-height);
  padding: 56px 0 48px;
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.55), rgba(91, 125, 42, 0.5)), url('/img/hero-banner.png') center/cover no-repeat;
  color: white;
  position: relative;
  overflow: hidden;
}

.catalog-hero::after {
  content: '🌾';
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  opacity: 0.15;
  pointer-events: none;
}

.catalog-hero__subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-top: 8px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.catalog-hero__title {
  font-size: 2.4rem;
  font-weight: 800;
}

.catalog-hero__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  opacity: 0.8;
  margin-top: 8px;
}

.catalog-hero__breadcrumbs a:hover {
  text-decoration: underline;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: start;
  gap: 28px;
  padding: 40px 0;
}

/* Sidebar Filters */
.filters {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  height: calc(100vh - var(--header-height) - 40px);
  display: flex;
  flex-direction: column;
}

.filters form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.filters__scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Mobile filter toggle button - hidden on desktop */
.filters-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}

.filters-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile filter panel header - hidden on desktop */
.filters__header-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 700;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}

.filters__close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.filters__close-btn:hover {
  color: var(--text);
  background: var(--bg);
}

/* Backdrop - hidden on desktop */
.filters-backdrop {
  display: none;
}

.filter-group {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.filter-group__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.filter-group__title svg {
  transition: transform 0.3s ease;
}

.filter-group.collapsed .filter-group__title svg {
  transform: rotate(180deg);
}

.filter-group.collapsed .filter-group__list,
.filter-group.collapsed .price-range,
.filter-group.collapsed .colors-grid {
  display: none;
}

.filter-group__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.filter-item:hover {
  color: var(--primary);
}

.filter-item input[type="checkbox"],
.filter-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.filter-item input[type="checkbox"] { border-radius: 4px; }
.filter-item input[type="radio"] { border-radius: 50%; }

.filter-item__count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Sort bar */
.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-topbar__count {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.catalog-topbar__count strong {
  color: var(--text);
  font-weight: 700;
}

.catalog-topbar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-topbar__sort label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.catalog-topbar__sort select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.catalog-topbar__sort select:focus {
  border-color: var(--primary);
}

/* Category filter pills */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  border: none;
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--surface);
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
}

.mobile-nav.open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
}

.mobile-nav__close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav__links a {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-nav__links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .header__search {
    width: 180px;
  }

  .hero__title {
    font-size: 2.6rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .catalog-layout {
    grid-template-columns: 220px 1fr;
    gap: 20px;
  }

  .hits-carousel__track .product-card {
    flex: 0 0 260px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header__nav {
    display: none;
  }

  .header__search {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .hero {
    height: 420px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 50px 0;
  }

  .section__title {
    font-size: 1.6rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .delivery-cards {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .promo-strip__inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
  }

  .promo-strip__text {
    font-size: 0.85rem;
  }

  .carousel-nav__btn--left,
  .carousel-nav__btn--right {
    display: none;
  }

  .hits-carousel__track .product-card {
    flex: 0 0 240px;
  }

  .hits-carousel__cta-card {
    flex: 0 0 180px;
    min-height: 300px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: var(--surface);
    padding: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .filters.filters--open {
    display: flex;
    transform: translateX(0);
  }

  .filters form {
    height: auto;
    padding: 16px;
    padding-top: 0;
  }

  .filters__header-mobile {
    display: flex !important;
  }

  .filters-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .filters-backdrop.active {
    display: block;
    opacity: 1;
  }

  .filters-toggle-btn {
    display: inline-flex !important;
  }

  .catalog-hero__title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero__title {
    font-size: 1.7rem;
  }

  .hero {
    height: 360px;
  }

  .btn--lg {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .product-card__info {
    padding: 12px 14px 16px;
  }

  .product-card__name {
    font-size: 0.85rem;
  }

  .product-card__price {
    font-size: 1.1rem;
  }

  .hits-carousel__track .product-card {
    flex: 0 0 220px;
  }

  .hits-carousel__cta-card {
    flex: 0 0 160px;
    min-height: 260px;
  }

  .promo-strip__badge {
    display: none;
  }
}

/* ── HTMX Loading Indicator ── */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Price range slider custom ── */
.price-range {
  margin-top: 12px;
}

.price-range__inputs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-range__inputs input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
  outline: none;
  transition: var(--transition);
}

.price-range__inputs input:focus {
  border-color: var(--primary);
}

/* ═══════════════════════════════════
   CART — Premium Modern Design
   ═══════════════════════════════════ */

/* Overlay backdrop */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 10, 30, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Sidebar panel */
.cart-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 92vw;
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-overlay.open .cart-sidebar {
  transform: translateX(0);
}

/* Header */
.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: linear-gradient(135deg, #5B7D2A 0%, #4A6822 100%);
  color: white;
}

.cart-sidebar__header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-sidebar__header h3::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 002 1.6h9.7a2 2 0 002-1.6L23 6H6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.cart-sidebar__close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-sidebar__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Body */
.cart-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

/* Empty state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  color: var(--text-muted);
  text-align: center;
}

.cart-empty svg {
  opacity: 0.15;
  margin-bottom: 16px;
}

.cart-empty p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--text-secondary);
}

.cart-empty::after {
  content: 'Добавьте товары из каталога';
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Cart Item ── */
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: white;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all 0.25s ease;
}

.cart-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(91, 125, 42, 0.15);
  transform: translateY(-1px);
}

.cart-item__img {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.cart-item:hover .cart-item__img img {
  transform: scale(1.05);
}

.cart-item__info {
  flex: 1;
  min-width: 0;
  padding-right: 24px;
}

.cart-item__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Qty stepper */
.cart-item__qty {
  display: inline-flex;
  align-items: center;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.cart-item__qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-item__qty-btn:hover {
  background: var(--primary);
  color: white;
}

.cart-item__qty span {
  width: 32px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: white;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* Remove button */
.cart-item__remove {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: all 0.2s;
  opacity: 0.6;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item:hover .cart-item__remove {
  opacity: 1;
}

.cart-item__remove:hover {
  color: #ef4444;
  background: #fef2f2;
}

/* Footer */
.cart-sidebar__footer {
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.cart-sidebar__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: #F5EDE0;
  border-radius: 12px;
  border: 1px solid rgba(91, 125, 42, 0.08);
}

.cart-sidebar__total span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cart-sidebar__total strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.cart-sidebar__footer .btn--primary {
  background: linear-gradient(135deg, #5B7D2A 0%, #4A6822 100%);
  border: none;
  font-size: 1rem;
  padding: 16px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(91, 125, 42, 0.3);
  transition: all 0.3s;
}

.cart-sidebar__footer .btn--primary:hover {
  box-shadow: 0 6px 24px rgba(91, 125, 42, 0.4);
  transform: translateY(-1px);
}

/* ── Toast notification ── */
.cart-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  white-space: nowrap;
}

.cart-toast svg {
  background: rgba(91, 125, 42, 0.2);
  stroke: #5B7D2A;
  padding: 3px;
  border-radius: 50%;
}

.cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Add to cart button on product cards ── */
.product-card__cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: linear-gradient(135deg, #5B7D2A 0%, #4F7025 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 10px;
  width: 100%;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(91, 125, 42, 0.2);
}

.product-card__cart-btn:hover {
  background: linear-gradient(135deg, #4F7025 0%, #3A5518 100%);
  box-shadow: 0 4px 16px rgba(91, 125, 42, 0.35);
  transform: translateY(-1px);
}

.price-range__inputs span {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── PRODUCT PAGE STYLES (Moved from product.html) ── */
.product-page {
            margin-top: var(--header-height);
            padding: 40px 0 80px;
        }

        .product-page__breadcrumbs {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.88rem;
            color: var(--text-secondary);
            margin-bottom: 32px;
        }

        .product-page__breadcrumbs a {
            color: var(--primary);
        }

        .product-page__breadcrumbs a:hover {
            text-decoration: underline;
        }

        .product-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: start;
        }

        /* ── Gallery ── */
        .product-gallery {
            position: sticky;
            top: calc(var(--header-height) + 20px);
        }

        .product-gallery__main {
            background: var(--bg);
            border-radius: var(--radius-xl);
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
            cursor: zoom-in;
        }

        .product-gallery__main img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 16px;
            transition: transform 0.3s ease;
        }

        .product-gallery__main:hover img {
            transform: scale(1.05);
        }

        .product-gallery__thumbs {
            display: flex;
            gap: 10px;
            margin-top: 12px;
            flex-wrap: wrap;
        }

        .product-gallery__thumb {
            width: calc(25% - 8px);
            max-width: 130px;
            aspect-ratio: 1;
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            border: 2.5px solid transparent;
            background: var(--bg);
            transition: all 0.2s ease;
            padding: 4px;
            flex-shrink: 0;
        }

        .product-gallery__thumb.active {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(91, 125, 42, 0.15);
        }

        .product-gallery__thumb:hover:not(.active) {
            border-color: var(--border);
        }

        .product-gallery__thumb img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .product-gallery__placeholder {
            text-align: center;
            color: var(--text-muted);
            padding: 40px;
        }

        .product-gallery__placeholder svg {
            width: 80px;
            height: 80px;
            margin-bottom: 16px;
            opacity: 0.3;
        }

        .product-gallery__placeholder p {
            font-size: 0.95rem;
        }

        /* ── Lightbox ── */
        .lightbox {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(0, 0, 0, 0.92);
            backdrop-filter: blur(20px);
            align-items: center;
            justify-content: center;
            cursor: zoom-out;
        }

        .lightbox.open {
            display: flex;
        }

        .lightbox img {
            max-width: 90vw;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 8px;
        }

        .lightbox__close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            transition: 0.2s;
        }

        .lightbox__close:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .lightbox__nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            transition: 0.2s;
        }

        .lightbox__nav:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .lightbox__nav--prev {
            left: 20px;
        }

        .lightbox__nav--next {
            right: 20px;
        }

        /* ── Product Details ── */
        .product-details {
            padding: 10px 0;
        }

        .product-details__badges {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }

        .product-details__title {
            font-size: 2rem;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 8px;
            line-height: 1.2;
        }

        .product-details__sku {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 24px;
        }

        .product-details__prices {
            display: flex;
            align-items: baseline;
            gap: 12px;
            margin-bottom: 24px;
        }

        .product-details__price {
            font-size: 2.6rem;
            font-weight: 850;
            color: var(--success);
            letter-spacing: -0.5px;
        }

        .product-details__price--discount {
            color: #C45B28;
        }

        .product-details__price-old {
            font-size: 1.3rem;
            color: #808B9B;
            text-decoration: line-through;
            font-weight: 400;
        }

        .product-details__discount {
            font-size: 0.95rem;
            font-weight: 800;
            color: #C45B28;
            background: rgba(249, 17, 85, 0.1);
            padding: 4px 10px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
        }

        /* ── Description ── */
        .product-desc {
            margin-bottom: 28px;
        }

        .product-desc__text {
            font-size: 0.95rem;
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: 20px;
        }

        .product-desc__sections {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .product-desc__section {
            background: var(--bg);
            border-radius: var(--radius-md);
            padding: 18px 22px;
            border-left: 3px solid var(--primary);
        }

        .product-desc__section-title {
            font-size: 0.88rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .product-desc__section-title svg {
            color: var(--primary);
            flex-shrink: 0;
        }

        .product-desc__section-content {
            font-size: 0.88rem;
            color: var(--text-secondary);
            line-height: 1.7;
        }

        .product-desc__section-content ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .product-desc__section-content li {
            padding: 3px 0;
            padding-left: 16px;
            position: relative;
        }

        .product-desc__section-content li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: var(--primary);
            font-weight: 700;
        }

        /* ── Specs ── */
        .product-details__specs {
            border-top: 1px solid var(--border);
            padding-top: 20px;
            margin-bottom: 28px;
        }

        .product-details__spec {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            font-size: 0.9rem;
            border-bottom: 1px solid var(--bg);
        }

        .product-details__spec-label {
            color: var(--text-secondary);
        }

        .product-details__spec-value {
            font-weight: 600;
            color: var(--text);
        }

        /* Product page color picker */
        .product-details__color-picker {
            padding: 14px 0;
            border-bottom: 1px solid var(--bg);
        }

        .product-details__color-picker .product-details__spec-label {
            margin-bottom: 12px;
            font-size: 0.9rem;
        }

        .product-details__color-picker .product-details__spec-label strong {
            color: var(--text);
            font-weight: 700;
        }

        .product-details__color-swatches {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .product-details__swatch {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid var(--border);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: var(--transition);
            background: none;
            padding: 0;
            flex-shrink: 0;
        }

        .product-details__swatch:hover {
            border-color: var(--primary);
        }

        .product-details__swatch.active {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(91, 125, 42, 0.25);
        }


        .product-details__actions {
            display: flex;
            gap: 12px;
        }

        .product-details__actions .btn {
            flex: 1;
        }

        .product-details__note {
            margin-top: 20px;
            padding: 16px 20px;
            background: var(--primary-light);
            border-radius: var(--radius-md);
            font-size: 0.88rem;
            color: var(--primary-dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        @media (max-width: 768px) {
            .product-layout {
                grid-template-columns: 1fr;
                gap: 28px;
            }

            .product-gallery {
                position: static;
            }

            .product-details__title {
                font-size: 1.5rem;
            }

            .product-details__price {
                font-size: 1.8rem;
            }
        }

/* ── PARTNERS PAGE ── */

/* Intro Section */
.partners-intro {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.partners-intro__text {
  flex: 1;
}

.partners-intro__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.partners-intro__text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.partners-intro__badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
  background: var(--primary-light);
  border-radius: var(--radius-xl);
  border: 2px solid rgba(91, 125, 42, 0.15);
  text-align: center;
  min-width: 160px;
}

.partners-intro__badge-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-intro__badge-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
  display: block;
}

.partners-intro__badge-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: block;
}

/* Feature Cards */
.partners-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partners-feature {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.partners-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.partners-feature__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.partners-feature__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.partners-feature__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Process Steps */
.partners-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: center;
}

.partners-step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 28px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.partners-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.partners-step__num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 12px;
}

.partners-step:hover .partners-step__num {
  opacity: 0.5;
}

.partners-step__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.partners-step__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.partners-step__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.3;
  padding-top: 60px;
  flex-shrink: 0;
}

/* Audience Cards */
.partners-audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.partners-audience__card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.partners-audience__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.partners-audience__icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1;
}

.partners-audience__card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.partners-audience__card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* CTA Block */
.partners-cta {
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  color: white;
  position: relative;
  overflow: hidden;
}

.partners-cta::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.partners-cta::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.partners-cta__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.partners-cta__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.partners-cta__text {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 28px;
  line-height: 1.6;
}

.partners-cta__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.partners-cta__actions .btn--primary {
  background: white;
  color: var(--primary);
  border-color: white;
}

.partners-cta__actions .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.partners-cta__actions .btn--outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.partners-cta__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.partners-cta__decoration {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  z-index: 0;
}

/* Partners Page Responsive */
@media (max-width: 1024px) {
  .partners-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-steps {
    flex-wrap: wrap;
    gap: 16px;
  }

  .partners-step__arrow {
    display: none;
  }

  .partners-step {
    max-width: 100%;
    flex: 1 1 calc(50% - 16px);
  }
}

@media (max-width: 768px) {
  .partners-intro {
    flex-direction: column;
    text-align: center;
  }

  .partners-features {
    grid-template-columns: 1fr;
  }

  .partners-audience {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-cta {
    padding: 36px 24px;
  }

  .partners-cta__title {
    font-size: 1.5rem;
  }

  .partners-cta__decoration {
    display: none;
  }

  .partners-cta__actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .partners-audience {
    grid-template-columns: 1fr;
  }

  .partners-step {
    flex: 1 1 100%;
  }
}

/* ═══════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 20px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  pointer-events: none;
}

.cookie-consent.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(91, 125, 42, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 -4px 32px rgba(44, 24, 16, 0.12), 0 0 0 1px rgba(255,255,255,0.6) inset;
}

.cookie-consent__icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.cookie-consent__text {
  flex: 1;
}

.cookie-consent__text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cookie-consent__text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
  color: var(--primary-hover);
}

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

.cookie-consent__accept {
  padding: 10px 24px !important;
  font-size: 0.88rem !important;
  border-radius: var(--radius-sm) !important;
  white-space: nowrap;
}

.cookie-consent__link {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

.cookie-consent__link:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .cookie-consent__inner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 12px;
  }

  .cookie-consent__actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-consent__accept {
    flex: 1;
  }
}

/* ═══════════════════════════════════════
   LEGAL CONTENT PAGES (Privacy, Terms, Oferta)
   ═══════════════════════════════════════ */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.legal-content__updated {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 10px;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  margin-bottom: 6px;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.legal-content a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--transition);
}

.legal-content a:hover {
  color: var(--primary-hover);
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content__contacts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 16px;
}

.legal-content__contacts p {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .legal-content {
    padding: 12px 0 40px;
  }

  .legal-content h2 {
    font-size: 1.18rem;
    margin: 28px 0 12px;
  }

  .legal-content p,
  .legal-content ul li {
    font-size: 0.9rem;
  }
}
