/* ============================================================
   style.css — общие стили для всех страниц izSkarky
   Структура:
   1.  Root variables
   2.  Reset & base
   3.  Scrollbar
   4.  Typography & utilities
   5.  Buttons
   6.  Header
   7.  Mobile nav
   8.  Product card (общая для всех страниц)
   9.  Cart drawer
   10. Animations
   11. Modal
   12. Toast
   13. Cookies banner
   14. Footer
   15. Image placeholders
   16. Page hero & breadcrumbs
   17. INDEX — специфичные стили
   18. CATALOG — специфичные стили
   19. PRODUCT PAGE — специфичные стили
   ============================================================ */


/* ============================================================
   1. ROOT VARIABLES
   ============================================================ */
:root {
  --green:        #28A253;
  --green-light:  #e8f5ee;
  --green-dark:   #1e7a3e;
  --bg:           #ffffff;
  --bg-soft:      #f7f6f4;
  --bg-card:      #fafaf8;
  --text:         #1a1a18;
  --text-mid:     #4a4a46;
  --text-light:   #8a8a84;
  --border:       #e8e8e4;
  --shadow:       0 2px 20px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.13);
  --radius:       14px;
  --radius-sm:    8px;
  --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --header-h:     72px;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

section { padding: 80px 0; }
@media(max-width:768px) { section { padding: 56px 0; } }


/* ============================================================
   3. SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Прокрутка страницы остаётся доступной, но её полоса справа не отображается. */
html { -ms-overflow-style: none; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }


/* ============================================================
   4. TYPOGRAPHY & UTILITIES
   ============================================================ */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: normal;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.section-sub {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 540px;
}
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
}
.container  { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.divider    { width: 48px; height: 3px; background: var(--green); border-radius: 2px; margin-bottom: 20px; }
.green      { color: var(--green); }


/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(40,162,83,0.3);
}
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-vk { background: #3d7ab5; color: #fff; }
.btn-vk:hover { background: #2f6299; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(61,122,181,0.3); }
.btn-vk img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; border-radius: 3px; }
.btn-instagram { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 52%, #fcaf45 100%); color: #fff; }
.btn-instagram:hover { background: linear-gradient(135deg, #6f2c98 0%, #e71847 52%, #ed9634 100%); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(225,48,108,0.3); }
.btn-instagram img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.tg-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost {
  background: transparent;
  color: var(--green);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
}
.btn-ghost:hover { background: var(--green-light); border-radius: 100px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-avito {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-avito:hover {
  border-color: #00AAFF;
  box-shadow: 0 4px 16px rgba(0,170,255,0.18);
  transform: translateY(-1px);
}
.btn-avito img { height: 1.25em; width: auto; }
.reviews-more .btn-avito { padding: 14px 36px; }
.reviews-more .btn-avito img { height: 22px; }


/* ============================================================
   6. HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
#header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.09);
  background: rgba(255,255,255,0.98);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo          { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon     {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--green-light); padding: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-name     { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.3px; }
.logo-sub      { font-size: 11px; color: var(--text-light); letter-spacing: 0.5px; }

nav   { display: flex; gap: 4px; margin-left: auto; }
nav a {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
nav a:hover,
nav a.active { background: var(--green-light); color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative;
  width: 42px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-mid);
}
.cart-btn:hover { border-color: var(--green); color: var(--green); }

.wishlist-btn {
  position: relative;
  width: 42px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-mid);
}
.wishlist-btn:hover { border-color: #ef4444; color: #ef4444; }
.wishlist-btn svg { transition: var(--transition); }
.wishlist-btn.has-items svg { fill: #ef4444; stroke: #ef4444; }

.wishlist-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 100px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}
.wishlist-count.visible { opacity: 1; transform: scale(1); }

/* FIX: min-width + padding позволяют корректно отображать двузначные числа */
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}
.cart-count.visible { opacity: 1; transform: scale(1); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width:768px) {
  nav              { display: none; }
  .burger          { display: flex; }
  .wishlist-btn    { display: none; }
  .header-actions  { margin-left: auto; }
}


/* ============================================================
   7. MOBILE NAV
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.mobile-nav.open { display: flex; animation: slideDown 0.25s ease; }
.mobile-nav a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text);
  transition: var(--transition);
}
.mobile-nav a:hover { background: var(--green-light); color: var(--green); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   8. PRODUCT CARD (общая база для слайдера, сетки и похожих)
   ============================================================ */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

/* Оверлей-ссылка открывает товар; управляющие кнопки остаются выше неё. */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.card-body     { position: relative; z-index: 2; pointer-events: none; }
.card-body .card-cart-control { pointer-events: auto; }
.card-badge    { pointer-events: none; }
.card-wishlist { z-index: 3; }

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: #f0ebe4;
  flex-shrink: 0;
}
.card-img .img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.card-img .img-placeholder svg  { width: 40px; height: 40px; opacity: 0.4; }
.card-img .img-placeholder span { font-size: 11px; opacity: 0.5; }

/* Оверлей при наведении (только на главной в слайдере) */
.card-img-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.04);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.product-card:hover .card-img-overlay { opacity: 1; }

.card-body  { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-name  { font-weight: 600; font-size: 15px; margin-bottom: 6px; line-height: 1.4; color: var(--text); }
.card-price { font-size: 18px; font-weight: 700; color: var(--green); margin-bottom: 12px; }
.card-price span { font-size: 12px; color: var(--text-light); font-weight: 400; }

/* Строки категория / описание / мета (каталог) */
.card-category  { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.card-desc      { font-size: 12px; color: var(--text-light); margin-bottom: 10px; line-height: 1.5; }
.card-price-old { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.card-meta      { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }

/* FIX: убран дублирующий `border: none` — свойство border задаётся один раз */
.card-btn {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
  margin-top: auto;
}
.card-btn:hover          { background: var(--green); color: #fff; border-color: var(--green); }
.card-btn.in-cart        { background: var(--green); color: #fff; border-color: var(--green); }
.card-btn.in-cart:hover  { background: var(--green-dark); border-color: var(--green-dark); }

/* Враппер кнопок (каталог) */
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-cart-control { position: relative; width: 100%; height: 40px; margin-top: auto; }
.card-actions .card-cart-control { flex: 1; }
.card-cart-control .card-btn { height: 40px; margin-top: 0; }
.card-qty-control {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 5px;
  color: #fff; background: var(--green); border: 1.5px solid var(--green);
  border-radius: var(--radius-sm); opacity: 0; pointer-events: none;
  transform: scale(.94); transition: opacity .2s ease, transform .24s cubic-bezier(.2,.8,.2,1);
}
.card-cart-control.is-in-cart .card-btn { opacity: 0; pointer-events: none; transform: scale(.94); }
.card-cart-control.is-in-cart .card-qty-control { opacity: 1; pointer-events: auto; transform: scale(1); }
.card-qty-btn {
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green); background: #fff; cursor: pointer;
  transition: transform .18s ease, color .18s ease, background .18s ease;
}
.card-qty-btn:hover { background: var(--green-light); transform: scale(1.08); }
.card-qty-btn:active { transform: scale(.92); }
.card-qty-btn--minus:hover { color: #d84a4a; background: #fef2f2; }
.card-qty-number { min-width: 32px; text-align: center; font-size: 14px; font-weight: 700; }

/* Set card */
.set-card         { flex: 0 0 300px; }
.set-card .card-img { height: 210px; }
.set-list         { list-style: none; margin-bottom: 10px; }
.set-list li      { font-size: 13px; color: var(--text-mid); padding: 2px 0; }
.set-list li::before { content: '— '; color: var(--green); }

/* Слайдерные карточки фиксированной ширины */
.slider-track .product-card { flex: 0 0 260px; }

/* Бейдж (каталог) */
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-new  { background: var(--green); color: #fff; }
.badge-hit  { background: #f59e0b; color: #fff; }
.badge-sale { background: #ef4444; color: #fff; }

/* Кнопка избранного (каталог) */
.card-wishlist {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  opacity: 0;
}
.product-card:hover .card-wishlist { opacity: 1; }
.card-wishlist:hover { border-color: #ef4444; background: #fff; }
.card-wishlist svg { width: 14px; height: 14px; transition: var(--transition); }
.card-wishlist.active svg { fill: #ef4444; stroke: #ef4444; }


/* ============================================================
   9. CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.45);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2001;
  width: 420px; max-width: 100vw;
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-header-title { font-family: var(--font-display); font-size: 20px; }
.cart-close {
  width: 36px; height: 36px;
  border: none; background: var(--bg-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); color: var(--text-mid);
}
.cart-close:hover { background: var(--border); }

.cart-items  { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty  {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; text-align: center; color: var(--text-light);
}
.cart-empty svg { width: 64px; height: 64px; opacity: 0.15; margin-bottom: 16px; }
.cart-empty h3  { font-family: var(--font-display); font-size: 20px; color: var(--text-mid); margin-bottom: 8px; }
.cart-empty p   { font-size: 14px; }

.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: none; }
}
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: 10px; overflow: hidden;
  background: #f0ebe4; flex-shrink: 0;
}
.cart-item-img .img-placeholder { height: 100%; }
.cart-item-name  { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.cart-item-cat   { font-size: 11px; color: var(--text-light); margin-bottom: 8px; }
.cart-item-qty   { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  transition: var(--transition); color: var(--text);
}
.qty-btn:hover  { border-color: var(--green); color: var(--green); }
.qty-num        { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--green); white-space: nowrap; }
.cart-item-remove {
  width: 28px; height: 28px;
  border: none; background: none;
  cursor: pointer; color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: var(--transition); margin-top: 4px;
}
.cart-item-remove:hover { background: #fef2f2; color: #ef4444; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.cart-footer     { padding: 20px 24px; border-top: 1px solid var(--border); flex-shrink: 0; }
.cart-summary    { margin-bottom: 16px; }
.cart-summary-row {
  display: flex; justify-content: space-between;
  font-size: 14px; margin-bottom: 8px; color: var(--text-mid);
}
.cart-summary-total {
  display: flex; justify-content: space-between;
  font-size: 17px; font-weight: 700;
  padding-top: 10px; border-top: 1px solid var(--border); margin-top: 4px;
}
.cart-summary-total span:last-child { color: var(--green); }

.cart-checkout       { background: var(--bg-soft); border-radius: var(--radius); padding: 18px; }
.cart-checkout-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.checkout-btns       { display: flex; flex-direction: column; gap: 10px; }
.checkout-btn {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 13px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  text-decoration: none; font-family: var(--font-body);
}
.checkout-btn-tg  { background: transparent; border-color: #29a9eb; color: #29a9eb; }
.checkout-btn-tg:hover  { background: #29a9eb; color: #fff; }
.checkout-btn-wa  { background: transparent; border-color: #25d366; color: #25d366; }
.checkout-btn-wa:hover  { background: #25d366; color: #fff; }
.checkout-btn-vk  { background: transparent; border-color: #0077FF; color: #0077FF; }
.checkout-btn-vk:hover  { background: #0077FF; color: #fff; }


/* ============================================================
   10. ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left.visible { opacity: 1; transform: none; }

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-right.visible { opacity: 1; transform: none; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ============================================================
   11. MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 640px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  padding: 36px;
  animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-title { font-family: var(--font-display); font-size: 22px; margin-bottom: 20px; }
.modal-body  { font-size: 14px; color: var(--text-mid); line-height: 1.8; }
.modal-body p  { margin-bottom: 12px; }
.modal-body h3 { margin: 20px 0 8px; color: var(--text); font-size: 15px; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px;
  border: none; background: var(--bg-soft);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); transition: var(--transition); font-size: 18px;
}
.modal-close:hover { background: var(--border); }


/* ============================================================
   12. TOAST
   ============================================================ */
#toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #fff;
  padding: 12px 24px; border-radius: 100px;
  font-size: 14px; z-index: 4000;
  opacity: 0; transition: all 0.3s;
  white-space: nowrap; pointer-events: none;
  max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ============================================================
   13. COOKIES BANNER
   ============================================================ */
#cookies-banner {
  position: fixed; bottom: 24px; left: 24px; z-index: 2000;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  padding: 20px 20px 20px 20px;
  max-width: 320px; width: calc(100% - 48px);
  transform: translateY(calc(100% + 40px));
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
#cookies-banner.visible { transform: translateY(0); }

.cookies-close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: var(--bg-soft);
  color: var(--text-light); font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cookies-close:hover { background: var(--border); color: var(--text); }

.cookies-icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.cookies-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.cookies-text {
  font-size: 13px; color: var(--text-mid); line-height: 1.6;
  margin-bottom: 16px;
}
.cookies-link {
  background: none; border: none; padding: 0;
  color: var(--green); text-decoration: underline;
  font-size: 13px; font-family: inherit; cursor: pointer;
}
.cookies-link:hover { color: var(--green-dark); }
.cookies-accept {
  width: 100%; padding: 10px 20px;
  background: var(--green); color: #fff;
  border: none; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}
.cookies-accept:hover { background: var(--green-dark); }
.cookies-reject { display:block; width:100%; margin-top:8px; border:0; background:transparent; color:var(--text-mid); font:inherit; font-size:13px; cursor:pointer; text-decoration:underline; }
.cookies-reject:hover { color:var(--text); }

.catalog-pagination { margin:32px 0 8px; }
.catalog-pagination .page-numbers { display:flex; gap:8px; padding:0; margin:0; list-style:none; flex-wrap:wrap; }
.catalog-pagination a, .catalog-pagination span { min-width:36px; height:36px; display:flex; align-items:center; justify-content:center; padding:0 10px; border:1px solid var(--border); border-radius:8px; color:var(--text); text-decoration:none; }
.catalog-pagination .current { background:var(--green); border-color:var(--green); color:#fff; }

@media(max-width: 480px) {
  #cookies-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; width: auto; }
}


/* ============================================================
   14. FOOTER
   ============================================================ */
footer { background: var(--text); color: rgba(255,255,255,.75); padding: 56px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }

.footer-logo-col .logo    { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-col .logo-sq {
  width: 42px; height: 42px; border-radius: 10px;
  background: #fff; padding: 3px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-logo-col .logo-sq img { display: block; width: 100%; height: 100%; object-fit: contain; }
.footer-logo-col .logo-name { font-family: var(--font-display); font-size: 18px; color: #fff; }
.footer-logo-col .logo-sub  { font-size: 11px; color: rgba(255,255,255,.4); }
.footer-logo-col p          { font-size: .85rem; color: rgba(255,255,255,.5); max-width: 260px; line-height: 1.65; }

.footer-nav-col h4 {
  color: #fff; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 18px; font-weight: 600;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-nav-col a  { font-size: .88rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-nav-col a:hover { color: var(--green); }

.footer-contacts-col h4 {
  color: #fff; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 18px; font-weight: 600;
}
.footer-contacts-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-contacts-col a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; color: rgba(255,255,255,.55);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-contacts-col a:hover { color: var(--green); }
.footer-contact-icon { display: block; width: 14px; height: 14px; }
.footer-avito-icon {
  flex: 0 0 14px;
  background-color: currentColor;
  -webkit-mask: url('../img/avito-logo-white.svg') center / contain no-repeat;
  mask: url('../img/avito-logo-white.svg') center / contain no-repeat;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px;
}
.footer-branding { grid-column: 2; text-align: center; }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer-credit {
  display: inline-block; margin-top: 8px;
  font-size: .92rem; font-weight: 700; text-decoration: underline;
  color: rgba(255,255,255,.7); transition: color var(--transition);
}
.footer-credit:hover { color: var(--green); }
.footer-legal { grid-column: 3; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.footer-legal button {
  background: none; border: none;
  font-size: .8rem; color: rgba(255,255,255,.35);
  transition: color var(--transition);
  font-family: var(--font-body); cursor: pointer;
}
.footer-legal button:hover { color: var(--green); }

@media(max-width:1024px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media(max-width:768px) {
  .footer-top    { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: start; }
  .footer-branding { grid-column: 1; justify-self: center; }
  .footer-legal  { grid-column: 1; justify-self: start; align-items: flex-start; }
}


/* ============================================================
   15. IMAGE PLACEHOLDERS
   ============================================================ */
.img-placeholder {
  background: linear-gradient(135deg, #e8e0d4 0%, #d0c8bc 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #a89880;
  text-align: center;
  padding: 20px;
}
.img-placeholder svg  { width: 40px; height: 40px; opacity: 0.5; }
.img-placeholder span { font-size: 12px; opacity: 0.7; }


/* ============================================================
   16. PAGE HERO & BREADCRUMBS
       (каталог и страницы товаров)
   ============================================================ */
.page-hero {
  margin-top: var(--header-h);
  background: var(--bg-soft);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner   { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-hero-title   { font-family: var(--font-display); font-size: clamp(32px,5vw,52px); font-weight: normal; letter-spacing: -1px; margin-bottom: 10px; }
.page-hero-sub     { font-size: 15px; color: var(--text-mid); }

.breadcrumbs       { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumbs a     { font-size: 13px; color: var(--text-light); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs span  { font-size: 13px; color: var(--text-light); }
.breadcrumbs .sep  { color: var(--border); }
.breadcrumbs .current { color: var(--text-mid); }


/* ============================================================
   17. INDEX PAGE — специфичные стили
   ============================================================ */

/* --- HERO --- */
#hero {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  background: var(--bg);
  overflow: hidden; position: relative;
  padding: 0 0;
}
@media(min-width:901px) {
  .hero-inner { transform: translateY(-40px); }
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 48px; width: 100%;
}
.hero-content   { z-index: 2; }
.hero-label     { margin-bottom: 20px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: normal; line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 20px;
}
.hero-title em { color: var(--green); font-style: normal; }
.hero-desc {
  font-size: 17px; color: var(--text-mid); line-height: 1.7;
  margin-bottom: 36px; max-width: 420px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  position: relative;
  border-radius: 24px 0 0 24px;
  overflow: hidden; height: 580px;
  margin-right: -24px;
}
.hero-image .img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #d4c9b8 0%, #b8a898 40%, #8a7a6a 100%);
}
.hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.15) 0%, transparent 40%);
  pointer-events: none;
}
@media(max-width:900px) {
  .hero-inner  { grid-template-columns: 1fr; }
  .hero-image  { height: 320px; border-radius: 20px; margin-right: 0; }
  #hero        { padding: 40px 0; }
}
@media(max-width:768px) {
  #hero {
    min-height: auto;
    padding: 28px 0 32px;
  }
  .hero-image { display: none; }
}

/* --- SLIDER SECTION --- */
.slider-section { padding: 64px 0; background: var(--bg); overflow: hidden; }
.slider-header {
  max-width: 1200px; margin: 0 auto 28px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.slider-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px); font-weight: normal;
}
.slider-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-mid);
  padding: 9px 18px; border: 1.5px solid var(--border);
  border-radius: 100px; transition: var(--transition);
}
.slider-link:hover { border-color: var(--green); color: var(--green); }
.slider-link svg { width: 16px; height: 16px; }
@media(max-width:420px) {
  /* Сохраняем заметный промежуток между заголовком и кнопкой в первом слайдере. */
  #popular .slider-header { gap: 12px; }
  #popular .slider-link { gap: 6px; padding: 8px 12px; font-size: 13px; flex-shrink: 0; }
}

.slider-track-wrap,
.slider-track-wrap * { cursor: default !important; }
.slider-track-wrap .product-card,
.slider-track-wrap .product-card .card-link,
.slider-track-wrap .product-card .card-btn,
.slider-track-wrap .product-card .card-qty-btn,
.slider-track-wrap .product-card .card-wishlist { cursor: pointer !important; }
.slider-track-wrap { overflow: hidden; user-select: none; }
.slider-track-wrap.is-dragging,
.slider-track-wrap.is-dragging * { cursor: grabbing !important; }
.slider-track {
  display: flex; gap: 20px; padding: 8px 24px 16px;
  will-change: transform;
}

/* --- ABOUT --- */
#about { background: var(--bg-soft); }
.about-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.about-title      { margin-bottom: 20px; }
.about-text       { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 36px; }
.about-sub-title  { font-size: 15px; font-weight: 600; color: var(--text-mid); letter-spacing: .01em; margin-top: 4px; margin-bottom: 28px; }
.about-team-title { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }
.about-team-text  { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 24px; }
.team-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.team-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1;
  position: relative;
}
.team-card-img  { width: 100%; height: 70%; background: #e0d8cc; }
.team-card-img .team-card-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-card-info { padding: 10px 12px; }
.team-card-name { font-weight: 600; font-size: 14px; }
.team-card-role { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.about-image {
  border-radius: var(--radius); overflow: hidden; height: 480px;
  background: linear-gradient(160deg, #c8bfb0 0%, #9a8e7e 100%);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.about-image .about-workshop-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
@media(max-width:900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-image { height: 280px; position: static; }
}
@media(max-width:768px) {
  .team-card-img  { height: 66%; }
  .team-card-info { padding: 10px 12px 16px; }
}
@media(max-width:360px) {
  .team-card { aspect-ratio: auto; min-height: 160px; }
  .team-card-img { height: 100px; }
  .team-card-info { padding: 8px 10px 12px; }
  .team-card-name { font-size: 13px; }
  .team-card-role { font-size: 11px; margin-top: 2px; }
}

/* --- CUSTOM ORDER --- */
#custom { background: var(--bg); }
.custom-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.custom-label { margin-bottom: 16px; }
.custom-title { margin-bottom: 16px; }
.custom-text  { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 28px; }
.custom-list  { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.custom-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--text-mid);
}
.custom-list li::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}
.custom-image {
  border-radius: var(--radius); overflow: hidden; height: 460px;
}
@media(max-width:900px) {
  .custom-inner { grid-template-columns: 1fr; }
  .custom-image { height: 260px; order: -1; }
}

/* --- ADVANTAGES --- */
#advantages { background: var(--bg-soft); }
.advantages-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.advantages-title { text-align: center; margin-bottom: 48px; }
.advantages-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.advantage-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: var(--transition);
}
.adv-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--green);
}
.adv-title { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.adv-text  { font-size: 14px; color: var(--text-mid); line-height: 1.7; }
@media(max-width:768px) { .advantages-grid { grid-template-columns: 1fr; gap: 16px; } }

/* --- CATALOG DOUBLE SLIDER (главная) --- */
#catalog { background: var(--bg); }
.catalog-double { display: flex; flex-direction: column; gap: 16px; }

/* --- TELEGRAM CHANNEL --- */
#tg-channel { background: var(--bg-soft); }
.tg-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.tg-label  { margin-bottom: 16px; }
.tg-title  { margin-bottom: 16px; }
.tg-text   { font-size: 15px; color: var(--text-mid); line-height: 1.8; max-width: 500px; margin-bottom: 28px; }
.tg-qr {
  width: 280px; height: 280px;
  border-radius: var(--radius); overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.tg-qr img { width: 100%; height: 100%; }
@media(max-width:768px) {
  .tg-inner { grid-template-columns: 1fr; }
  .tg-qr    { display: none; }
}

/* --- INDIVIDUAL ORDER --- */
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.order-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; font-weight: 600; }
.order-h2    { font-family: var(--font-display); font-size: clamp(26px,3.5vw,40px); font-weight: normal; letter-spacing: -.5px; line-height: 1.2; margin-bottom: 10px; }
.order-h3    { font-family: var(--font-body); font-size: 1.05rem; font-weight: 400; color: var(--text-mid); margin-bottom: 20px; line-height: 1.5; }
.order-p     { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 32px; }
.order-contact-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.order-contact-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; transition: var(--transition);
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
}
.order-btn-phone { background: var(--text); color: #fff; border-color: var(--text); }
.order-btn-phone:hover { background: var(--green); border-color: var(--green); }
.order-btn-tg { background: transparent; border-color: #29a9eb; color: #29a9eb; }
.order-btn-tg:hover { background: #29a9eb; color: #fff; }
.order-btn-wa { background: transparent; border-color: #25d366; color: #25d366; }
.order-btn-wa:hover { background: #25d366; color: #fff; }
.order-img { height: 480px; border-radius: var(--radius); overflow: hidden; }
@media(max-width:900px) {
  .order-grid    { grid-template-columns: 1fr; gap: 40px; }
  .order-img     { height: 280px; order: -1; }
}
@media(max-width:480px) {
  .order-contact-btns { flex-direction: column; }
  .order-contact-btn  { justify-content: center; }
}

/* --- CATALOG-2 SLIDER (главная) --- */
#catalog2 { background: var(--bg-soft); padding: 64px 0; overflow: hidden; }

/* --- REVIEWS --- */
#reviews { background: var(--bg); }
.reviews-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.reviews-grid   { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; transition: var(--transition);
}

.review-top {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.review-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #d4c8b8, #b8a898);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name   { font-weight: 600; font-size: 15px; }
.review-date   { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.review-stars  { display: flex; gap: 3px; margin-bottom: 12px; }
.review-photos { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.review-photo {
  width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, #e0d4c0, #c4b49a); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity 0.18s, transform 0.18s;
}
.review-photo:hover { opacity: 0.85; transform: scale(1.05); }
.review-photo svg { width: 20px; height: 20px; opacity: 0.4; }
.review-text   { font-size: 14px; color: var(--text-mid); line-height: 1.7; }
.reviews-more  { text-align: center; margin-top: 40px; }
@media(max-width:768px) { .reviews-grid { grid-template-columns: 1fr; } }

/* --- REVIEW LIGHTBOX --- */
#review-lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
#review-lightbox.active { opacity: 1; visibility: visible; }
.rl-close {
  position: absolute; top: 20px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; cursor: pointer;
  color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
}
.rl-close:hover { background: rgba(255,255,255,0.25); }
.rl-photo {
  width: min(calc(100vw - 80px), 720px); height: min(calc(100vh - 120px), 600px);
  border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.18s ease;
}
.rl-photo.switching { opacity: 0; }
.rl-photo svg { width: 64px; height: 64px; opacity: 0.35; }
.rl-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; cursor: pointer;
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background 0.18s; flex-shrink: 0;
}
.rl-arrow:hover { background: rgba(255,255,255,0.28); }
.rl-arrow:disabled { opacity: 0.25; pointer-events: none; }
.rl-arrow-prev { left: max(12px, calc(50% - 740px)); }
.rl-arrow-next { right: max(12px, calc(50% - 740px)); }
.rl-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.55); font-size: 13px; letter-spacing: 0.04em;
  display: flex; gap: 8px; align-items: center;
}
.rl-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.3); transition: background 0.18s;
}
.rl-dot.active { background: #fff; }
@media(max-width:600px) {
  .rl-photo { width: calc(100vw - 32px); height: calc(100vw - 32px); min-height: 220px; }
  .rl-arrow-prev { left: 8px; }
  .rl-arrow-next { right: 8px; }
}

/* --- CTA --- */
#cta { background: var(--bg-soft); }
.cta-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.cta-image {
  height: 460px; border-radius: var(--radius); overflow: hidden;
}
.cta-title { margin-bottom: 12px; }
.cta-sub   { font-family: var(--font-display); font-size: 19px; color: var(--text-mid); margin-bottom: 16px; font-weight: normal; }
.cta-text  { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 32px; }
.cta-btns  { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; transition: var(--transition);
  border: 1.5px solid transparent; text-decoration: none;
}
.cta-btn-phone { background: var(--text); color: #fff; border-color: var(--text); }
.cta-btn-phone:hover { background: var(--green); border-color: var(--green); }
.cta-btn-tg { background: transparent; border-color: #29a9eb; color: #29a9eb; }
.cta-btn-tg:hover { background: #29a9eb; color: #fff; }
.cta-btn-wa { background: transparent; border-color: #25d366; color: #25d366; }
.cta-btn-wa:hover { background: #25d366; color: #fff; }
@media(max-width:900px) {
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-image { height: 260px; order: -1; }
  .cta-btns  { flex-direction: column; }
  .cta-btn   { justify-content: center; }
}


/* ============================================================
   18. CATALOG PAGE — специфичные стили
   ============================================================ */

/* --- LAYOUT --- */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1200px; margin: 0 auto;
  padding: 20px 24px 60px;
  align-items: end;
}
.catalog-main { min-height: 200px; align-self: start; }

@media(max-width:900px) {
  .catalog-layout { grid-template-columns: 1fr; padding: 16px 24px 60px; align-items: start; }
  .catalog-main { align-self: auto; }
  .catalog-toolbar { margin-top: var(--header-h); }
  #catalog-section { padding-top: 0; }
}

/* --- SIDEBAR FILTERS --- */
.sidebar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: sticky;
  bottom: 20px;
}
.sidebar-title {
  font-family: var(--font-display); font-size: 18px;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 24px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 12px; display: block;
}
/* --- SORT DROPDOWN --- */
.sort-dropdown { position: relative; width: 100%; }
.sort-trigger {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-body); color: var(--text);
  background: var(--bg); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sort-trigger:hover   { border-color: var(--green); }
.sort-dropdown.open .sort-trigger { border-color: var(--green); box-shadow: 0 0 0 3px rgba(40,162,83,0.12); }
.sort-chevron { flex-shrink: 0; color: var(--text-light); transition: transform 0.25s cubic-bezier(.4,0,.2,1); }
.sort-dropdown.open .sort-chevron { transform: rotate(180deg); }

.sort-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 200;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  overflow: hidden; padding: 4px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.22s cubic-bezier(.4,0,.2,1),
              transform 0.22s cubic-bezier(.4,0,.2,1),
              visibility 0.22s;
}
.sort-dropdown.open .sort-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.sort-option {
  width: 100%; padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-family: var(--font-body); color: var(--text-mid);
  background: none; border: none; cursor: pointer; text-align: left;
  transition: background 0.15s, color 0.15s;
}
.sort-option:hover { background: var(--green-light); color: var(--green); }
.sort-option.active { color: var(--green); font-weight: 600; }
.sort-radio {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s;
}
.sort-option.active .sort-radio {
  border-color: var(--green); background: var(--green);
  box-shadow: inset 0 0 0 3px var(--bg);
}

.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-input-wrap { position: relative; }
.price-input {
  width: 100%; padding: 10px 14px 10px 28px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-body);
  color: var(--text); background: var(--bg);
  transition: border-color var(--transition);
}
.price-input:focus { outline: none; border-color: var(--green); }
.price-currency {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); font-size: 13px; color: var(--text-light);
  transition: color 0.2s;
}
.price-input-wrap.filled .price-currency { color: var(--text); }
.price-apply {
  width: 100%; margin-top: 12px; padding: 10px;
  border: none; border-radius: var(--radius-sm);
  background: var(--green); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: var(--font-body);
}
.price-apply:hover { background: var(--green-dark); }

.category-list { display: flex; flex-direction: column; gap: 4px; }
.cat-pill {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-mid); cursor: pointer;
  transition: var(--transition); border: none; background: transparent;
  font-family: var(--font-body); text-align: left; width: 100%;
}
.cat-pill:hover { background: var(--green-light); color: var(--green); }
.cat-pill.active { background: var(--green); color: #fff; }
.cat-pill.active .cat-count { background: rgba(255,255,255,0.25); color: #fff; }
.cat-count {
  font-size: 11px; font-weight: 600;
  background: var(--bg-soft); color: var(--text-light);
  padding: 2px 7px; border-radius: 100px;
}
.filter-reset {
  width: 100%; margin-top: 16px; padding: 10px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  color: var(--text-mid); font-family: var(--font-body);
}
.filter-reset:hover { border-color: var(--green); color: var(--green); }

.filter-toggle-btn {
  display: none; align-items: center; gap: 8px; padding: 10px 18px;
  border: 1.5px solid var(--border); border-radius: 100px; background: var(--bg);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition);
  font-family: var(--font-body); color: var(--text);
}
.filter-toggle-btn:hover { border-color: var(--green); color: var(--green); }

/* --- MOBILE FILTER DRAWER --- */
.filter-drawer-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}
.filter-drawer-overlay.active { opacity: 1; pointer-events: all; }

.sidebar-close {
  display: none;
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  z-index: 2;
  border: 1px solid var(--border); background: var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer; color: var(--text-mid);
  align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.sidebar-close:hover { border-color: var(--green); color: var(--green); }

@media(max-width:900px) {
  .filter-toggle-btn     { display: flex; }
  .filter-drawer-overlay { display: block; }
  .sidebar-close         { display: flex; }

  .sidebar {
    display: block !important;
    position: fixed !important;
    top: 0; right: 0; bottom: 0;
    width: 100vw; max-width: 100vw;
    overflow-y: auto; overflow-x: hidden;
    z-index: 2001;
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 40px rgba(0,0,0,0.14);
    transform: translateX(110%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    padding-top: 64px;
  }
  .sidebar.open { transform: translateX(0); }
}

/* --- PRODUCT GRID --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
@media(max-width:480px) { .product-grid { grid-template-columns: 1fr; gap: 12px; } }

/* --- NO RESULTS --- */
.no-results {
  grid-column: 1/-1; text-align: center; padding: 80px 20px; color: var(--text-light);
}
.no-results svg { width: 64px; height: 64px; margin: 0 auto 16px; opacity: 0.2; }
.no-results h3  { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; color: var(--text-mid); }
.no-results p   { font-size: 14px; }


/* ============================================================
   19. PRODUCT PAGE — специфичные стили
   ============================================================ */

/* --- LAYOUT --- */
.product-page   { max-width: 1200px; margin: 0 auto; padding: 20px 20px 80px; }
.product-toolbar { display: flex; align-items: center; gap: 12px; min-height: 32px; margin-bottom: 18px; }
.product-breadcrumbs { flex: 1; min-width: 0; margin: 0; flex-wrap: nowrap; overflow: hidden; }
.product-breadcrumbs .current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-toolbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: 0 0 auto; }
.product-toolbar-btn {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  box-shadow: none;
  transition: transform .2s ease, background var(--transition), color var(--transition);
}
.product-toolbar-btn img { width: 19px; height: 19px; object-fit: contain; }
.product-toolbar-btn:hover { transform: translateY(-1px); background: rgba(26,26,24,.06); }
.product-toolbar-btn:focus-visible { outline: 3px solid rgba(40,162,83,.32); outline-offset: 2px; }
.product-toolbar-favorite.active { background: rgba(254,242,242,.82); }
.product-toolbar-favorite.active img { filter: invert(31%) sepia(68%) saturate(1490%) hue-rotate(330deg) brightness(96%) contrast(92%); }
.product-toolbar-share.is-copied { background: var(--green-light); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; overflow-x: clip; }
.product-layout > * { min-width: 0; }
.product-name--mobile { display: none; }
@media(max-width:900px) {
  .product-page { padding: 0 16px 56px; }
  .product-toolbar {
    position: sticky; top: calc(var(--header-h) + 10px); z-index: 30;
    gap: 0; margin: 0 0 14px; padding: 0;
  }
  .product-toolbar.fade-in { transform: none; }
  .product-toolbar-btn {
    width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.64); border-radius: 12px;
    background: rgba(255,255,255,.72); box-shadow: 0 3px 14px rgba(26,26,24,.09);
    backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  }
  .product-toolbar-btn img { width: 20px; height: 20px; }
  .product-toolbar-btn:hover { background: rgba(255,255,255,.94); box-shadow: 0 5px 18px rgba(26,26,24,.13); }
  .product-breadcrumbs { display: none; }
  .product-toolbar-actions { gap: 8px; }
  .product-layout { grid-template-columns: 1fr; gap: 15px; }
  .product-name--mobile  { display: block; margin: 0; }
  .product-name--mobile + .product-info { margin-top: -5px; }
  .product-name--desktop { display: none; }
}
@media(max-width:420px) {
  .product-toolbar { top: calc(var(--header-h) + 10px); }
  .product-toolbar-btn { width: 40px; height: 40px; }
  .product-toolbar-actions { gap: 7px; }
}

/* --- GALLERY --- */
.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery-main {
  width: 100%; aspect-ratio: 4/3;
  border-radius: var(--radius); overflow: hidden;
  background: #f0ebe4; margin-bottom: 12px;
  border: 1px solid var(--border); position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main.is-loading::after {
  content: '';
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 30px; height: 30px; margin: -15px;
  border: 3px solid rgba(255,255,255,.8); border-top-color: var(--green);
  border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.16);
  animation: gallery-loader-spin .7s linear infinite;
  pointer-events: none;
}
@keyframes gallery-loader-spin { to { transform: rotate(360deg); } }
.gallery-main .img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; color: rgba(255,255,255,0.7);
}
.gallery-main .img-placeholder svg  { width: 56px; height: 56px; opacity: 0.5; }
.gallery-main .img-placeholder span { font-size: 13px; }

.gallery-thumb {
  width: 80px; height: 64px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer; transition: var(--transition);
  background: #f0ebe4; flex-shrink: 0;
}
.gallery-thumb:hover,
.gallery-thumb.active { border-color: var(--green); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb .img-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
}
@media(max-width:900px) { .gallery { position: static; } }

/* --- PRODUCT INFO --- */
.product-badges { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.product-badge  {
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-cat { background: var(--green-light); color: var(--green); }

.product-name      { font-family: var(--font-display); font-size: clamp(20px,2.2vw,26px); font-weight: normal; line-height: 1.2; margin-bottom: 6px; }
.product-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.product-price     { font-size: 32px; font-weight: 700; color: var(--green); }
.product-price-old { font-size: 18px; color: var(--text-light); text-decoration: line-through; }
.product-desc      { font-size: 14px; color: var(--text-mid); line-height: 1.6; margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }

/* --- SPECS TABLE --- */
.specs-title { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-light); margin-bottom: 14px; }
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.specs-table tr              { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child   { border-bottom: none; }
.specs-table td              { padding: 10px 0; font-size: 14px; vertical-align: top; }
.specs-table td:first-child  { color: var(--text-light); width: 45%; padding-right: 16px; }
.specs-table td:last-child   { color: var(--text); font-weight: 500; }

/* --- COLOR SWATCH --- */
.color-row    { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.color-label  { font-size: 13px; color: var(--text-light); }
.color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.08); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.color-name   { font-size: 13px; color: var(--text-mid); font-weight: 500; }

/* --- ACTION BUTTONS --- */
.product-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.product-cart-control { position: relative; height: 46px; }
.btn-cart {
  width: 100%; height: 46px; padding: 11px; border: none;
  background: var(--green); color: #fff;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: opacity .22s ease, transform .26s ease, background var(--transition), box-shadow var(--transition); font-family: var(--font-body);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-cart:hover   { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 6px 10px rgba(96, 98, 97, 0.3); }
.btn-cart.in-cart { background: var(--green-dark); }
.product-qty-control {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 6px;
  border: 1px solid var(--green); border-radius: var(--radius-sm);
  background: var(--green); color: #fff;
  opacity: 0; pointer-events: none; transform: scale(.94);
  transition: opacity .2s ease, transform .26s cubic-bezier(.2,.8,.2,1);
}
.product-cart-control.is-in-cart .btn-cart { opacity: 0; pointer-events: none; transform: scale(.94); }
.product-cart-control.is-in-cart .product-qty-control { opacity: 1; pointer-events: auto; transform: scale(1); }
.product-qty-btn {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green); background: #fff; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.product-qty-btn:hover { background: var(--green-light); transform: scale(1.08); }
.product-qty-btn:active { transform: scale(.92); }
.product-qty-btn--minus:hover { background: #fef2f2; color: #d84a4a; }
.product-qty-number { min-width: 42px; text-align: center; font-size: 15px; font-weight: 700; line-height: 1; }

.btn-order-links { display: flex; gap: 10px; }
.btn-order {
  flex: 1; padding: 13px;
  border: 1.5px solid var(--border); background: transparent;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-body); text-decoration: none; color: var(--text);
}
.btn-order-tg:hover { border-color: #29a9eb; color: #29a9eb; background: rgba(41,169,235,0.06); }
.btn-order-wa:hover { border-color: #25d366; color: #25d366; background: rgba(37,211,102,0.06); }

/* --- DELIVERY INFO --- */
.delivery-info { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.delivery-row  { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-mid); }
.delivery-row svg { flex-shrink: 0; color: var(--green); }

/* --- FULL PRODUCT DESCRIPTION --- */
.product-full-description {
  max-width: 820px;
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}
.product-full-description__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 20px;
}
.product-full-description__content {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.75;
}
.product-full-description__content > * + * { margin-top: 16px; }
.product-full-description__content h2,
.product-full-description__content h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: normal;
  line-height: 1.25;
  margin-top: 28px;
}
.product-full-description__content h2 { font-size: 24px; }
.product-full-description__content h3 { font-size: 20px; }
.product-full-description__content ul,
.product-full-description__content ol { padding-left: 22px; }
.product-full-description__content a { color: var(--green); text-decoration: underline; }
.product-info > .product-full-description--intro {
  max-width: none;
  margin: 0 0 15px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
}
.product-info > .product-full-description--intro .product-full-description__content {
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
}
.product-info > .product-full-description--intro .product-full-description__content > * + * { margin-top: 10px; }
.product-info > .product-full-description--intro .product-full-description__content h2,
.product-info > .product-full-description--intro .product-full-description__content h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  margin-top: 18px;
}
@media(max-width:600px) {
  .product-full-description { margin-top: 48px; padding-top: 40px; }
  .product-full-description__title { font-size: 26px; }
  .product-info > .product-full-description--intro { margin: 0 0 15px; padding: 0 0 12px; }
}

/* --- RELATED PRODUCTS --- */
.related-section { margin-top: 80px; padding-top: 60px; border-top: 1px solid var(--border); }
.related-header  { margin-bottom: 32px; }
.related-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
@media(max-width:600px) { .related-grid { grid-template-columns: 1fr; gap: 12px; } }

/* --- VARIANT SELECTORS (size chips, color circles, material btns) --- */
.variant-group { margin-bottom: 15px; }

.variant-label-row {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 5px;
}
.variant-label  { font-size: 13px; font-weight: 600; color: var(--text-mid); }
.variant-status { font-size: 13px; color: var(--text); font-weight: 500; }

.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  padding: 6px 11px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500; font-family: var(--font-body);
  background: var(--bg); color: var(--text-mid);
  cursor: pointer; transition: var(--transition);
}
.size-chip:hover  { border-color: var(--green); color: var(--green); }
.size-chip.active { border-color: var(--green); background: var(--green); color: #fff; font-weight: 600; }
.size-chip.disabled { opacity: 0.38; cursor: not-allowed; text-decoration: line-through; pointer-events: none; }

.color-options { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 7px 0 0px 7px; }
.color-circle {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition);
  border: none; outline: none; flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.13);
}
.color-circle:hover  { transform: scale(1.12); }
.color-circle.active {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4.5px var(--green), 0 3px 10px rgba(0,0,0,0.16);
  transform: scale(1.08);
}

.material-options { display: flex; gap: 8px; flex-wrap: wrap; }
.material-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500; font-family: var(--font-body);
  background: var(--bg); color: var(--text-mid);
  cursor: pointer; transition: var(--transition);
}
.material-btn:hover  { border-color: var(--green); color: var(--green); }
.material-btn.active { border-color: var(--green); background: var(--green); color: #fff; font-weight: 600; }

/* --- GALLERY ANIMATION & THUMB SCROLL --- */
.gallery-main { transition: opacity 0.2s ease; }

.gallery-thumbs-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.gallery-thumbs {
  display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; flex: 1; flex-wrap: nowrap;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb-arrow {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text-mid);
  cursor: pointer; transition: var(--transition);
  display: none; align-items: center; justify-content: center;
}
.gallery-thumb-arrow:hover { border-color: var(--green); color: var(--green); }

@media(max-width:540px) {
  .gallery-thumbs-wrap {
    position: relative;
    justify-content: center;
    padding: 0;
  }
  .gallery-thumb-arrow {
    display: none;
  }
  .gallery-thumbs {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  /* динамический fade — классы добавляются/убираются через JS */
  .gallery-thumbs-wrap.thumb-fade-right .gallery-thumbs {
    -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black calc(100% - 14px), transparent 100%);
  }
  .gallery-thumbs-wrap.thumb-fade-left .gallery-thumbs {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14px, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 14px, black 100%);
  }
  .gallery-thumbs-wrap.thumb-fade-left.thumb-fade-right .gallery-thumbs {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14px, black calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 14px, black calc(100% - 14px), transparent 100%);
  }
}

/* --- BUY NOW (прямой заказ на странице товара) --- */
.buy-now-section {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 28px;
}
.buy-now-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 12px;
}
.buy-now-btns { display: flex; flex-direction: column; gap: 8px; }
.buy-now-btns .checkout-btn { padding: 11px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.buy-now-btns .checkout-btn-vk {
  background: transparent; border-color: #0077FF; color: #0077FF;
}
.buy-now-btns .checkout-btn-vk:hover { background: #0077FF; color: #fff; }

/* --- PRODUCT DIVIDER --- */
.product-divider { height: 1px; background: var(--border); margin: 24px 0; }

/* --- PRODUCT PRICE SECTION (внутри info) --- */
.product-price-section { margin-bottom: 24px; }
.product-price-from { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.product-price-large { font-size: 36px; font-weight: 800; color: var(--green); line-height: 1; }
.product-price-per   { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ============================================================
   20. 404 PAGE
   ============================================================ */
.iz-error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) - 60px) 24px 40px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 50% 48%, var(--bg) 0%, var(--bg-soft) 100%);
}

/* --- Падающая стружка --- */
.iz-error-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.iz-error-chip {
  position: absolute;
  border-radius: 3px;
  opacity: 0;
  animation: chipFall linear infinite;
}
@keyframes chipFall {
  0%   { opacity: 0;    transform: translateY(-20px) rotate(0deg)   scale(1); }
  6%   { opacity: 0.65; }
  90%  { opacity: 0.3; }
  100% { opacity: 0;    transform: translateY(100vh) rotate(540deg) scale(0.7); }
}

/* --- Центральный блок --- */
.iz-error-inner {
  text-align: center;
  max-width: 520px;
  position: relative;
  z-index: 2;
}

/* --- 404: wood-grain shimmer --- */
.iz-error-num {
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 180px);
  font-weight: normal;
  line-height: 0.92;
  display: block;
  margin-bottom: 4px;
  background: linear-gradient(
    105deg,
    #c4a882 0%,
    #8a6438 15%,
    #d4c09a 30%,
    #a07848 45%,
    #c8b08a 60%,
    #8a6438 75%,
    #c4a882 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: woodShimmer404 5s linear infinite;
}
@keyframes woodShimmer404 {
  0%   { background-position: 0%   center; }
  100% { background-position: 220% center; }
}

/* --- Скамейка --- */
.iz-error-bench-wrap {
  width: 210px;
  margin: 0 auto 28px;
  display: block;
  animation: benchRock404 4.5s ease-in-out infinite;
  transform-origin: 50% 96%;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.09));
}
@keyframes benchRock404 {
  0%, 100% { transform: rotate(-2deg); }
  50%       { transform: rotate(2.5deg); }
}

/* --- Тег / подпись --- */
.iz-error-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* --- Текст и кнопки (с задержкой появления) --- */
.iz-error-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: normal;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  animation: errFadeUp 0.7s 0.1s both;
}
.iz-error-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 36px;
  animation: errFadeUp 0.7s 0.2s both;
}
.iz-error-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: errFadeUp 0.7s 0.3s both;
}
@keyframes errFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media(max-width: 480px) {
  .iz-error-btns       { flex-direction: column; align-items: center; }
  .iz-error-bench-wrap { width: 165px; }
}
