/* =============================================================
   LASTIVKA STORE — MAIN CSS
   ============================================================= */

:root {
  --green: #4a9c6f;
  --green-dark: #357a55;
  --green-light: #e8f5ee;
  --accent: #2d7d52;
  --white: #fff;
  --cream: #fafaf8;
  --gray-light: #f4f4f2;
  --gray: #9ca3a0;
  --gray-dark: #555f5a;
  --text: #1e2d25;
  --text-light: #6b7c73;
  --border: #e2e8e4;
  --shadow: 0 2px 16px rgba(74,156,111,0.10);
  --shadow-md: 0 4px 24px rgba(74,156,111,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* CONTAINER */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ======= HEADER ======= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.logo img { height: 44px; width: auto; object-fit: contain; }
.logo-text span { color: var(--text); }

/* Search */
.header-search {
  flex: 1; max-width: 440px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--gray-light);
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--transition);
}
.header-search input:focus { outline: none; border-color: var(--green); background: #fff; }
.header-search button {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--green);
}

/* Cart */
.cart-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  font-size: 14px; font-weight: 600;
  transition: background var(--transition);
  position: relative;
  white-space: nowrap;
}
.cart-btn:hover { background: var(--green-dark); }
.cart-count {
  background: #fff;
  color: var(--green);
  border-radius: 50%;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  line-height: 1;
}

/* NAV */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  gap: 4px;
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
}
.nav-inner a {
  padding: 12px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-inner a:hover, .nav-inner a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none; border: none;
  flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
}
.mobile-nav.open { display: block; }
.mobile-nav-inner {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 280px;
  background: #fff;
  padding: 24px 20px;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,.15);
}
.mobile-nav-inner a {
  display: block; padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px; font-weight: 500;
  color: var(--text);
}
.mobile-nav-inner a:hover { color: var(--green); }
.mobile-nav-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 24px; cursor: pointer; color: var(--gray);
}

/* ======= HERO / BANNER ======= */
.hero {
  background: linear-gradient(135deg, var(--green-light) 0%, #d4ede0 100%);
  padding: 60px 0;
}
.hero-inner {
  display: flex; align-items: center; gap: 40px;
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; color: var(--text);
  line-height: 1.15; margin-bottom: 16px;
}
.hero-text h1 span { color: var(--green); }
.hero-text p { color: var(--text-light); font-size: 17px; margin-bottom: 28px; }
.hero-img { flex-shrink: 0; width: clamp(180px, 30vw, 320px); }
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.btn-liqpay { background: #d51a1a; color: #fff; }
.btn-liqpay:hover { background: #b01414; }

/* ======= SECTION ======= */
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800; color: var(--text);
  margin-bottom: 8px;
}
.section-sub { color: var(--text-light); margin-bottom: 32px; font-size: 15px; }

/* ======= CATEGORIES GRID ======= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.cat-tile {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.cat-tile:hover { transform: scale(1.04); box-shadow: var(--shadow-md); }
.cat-tile-img {
  aspect-ratio: 4/3; overflow: hidden;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
}
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.cat-tile:hover .cat-tile-img img { transform: scale(1.08); }
.cat-tile-name { padding: 12px; font-weight: 600; font-size: 14px; color: var(--text); }

/* ======= PRODUCT CARD ======= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-img {
  aspect-ratio: 3/4; overflow: hidden;
  background: var(--gray-light);
  position: relative;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.badge-sale {
  position: absolute; top: 10px; left: 10px;
  background: #e74c3c; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 50px;
}
.badge-out {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 50px;
}
.product-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 4px; line-height: 1.3;
}
.product-card-size { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.product-card-price {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.price-sale { font-size: 18px; font-weight: 700; color: var(--green); }
.price-old { font-size: 13px; color: var(--gray); text-decoration: line-through; }
.price-main { font-size: 18px; font-weight: 700; color: var(--text); }
.product-card-footer { padding: 0 14px 14px; }
.btn-add-cart {
  width: 100%;
  background: var(--green); color: #fff;
  border: none; border-radius: 50px;
  padding: 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-add-cart:hover { background: var(--green-dark); }
.btn-add-cart:disabled { background: var(--gray); cursor: not-allowed; }

/* ======= CAROUSEL ======= */
.carousel-wrap { position: relative; overflow: hidden; }
.carousel-track {
  display: flex; gap: 20px;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-track .product-card { flex: 0 0 calc(25% - 15px); min-width: 200px; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1.5px solid var(--border);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  box-shadow: var(--shadow);
  transition: background var(--transition), border-color var(--transition);
}
.carousel-arrow:hover { background: var(--green); border-color: var(--green); color: #fff; }
.carousel-arrow.prev { left: -20px; }
.carousel-arrow.next { right: -20px; }

/* ======= CATALOG LAYOUT ======= */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky; top: 80px;
}
.sidebar-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-section label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-light); padding: 4px 0; cursor: pointer; }
.sidebar-section label input[type=checkbox] { accent-color: var(--green); width: 16px; height: 16px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }
.price-range input:focus { outline: none; border-color: var(--green); }

/* Filters bar */
.filters-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.filters-bar select {
  padding: 9px 14px; border: 1.5px solid var(--border);
  border-radius: 50px; font-size: 13px; background: #fff;
  cursor: pointer;
}
.filters-bar select:focus { outline: none; border-color: var(--green); }
.results-count { font-size: 14px; color: var(--text-light); }

/* ======= PRODUCT PAGE ======= */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { position: sticky; top: 80px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--gray-light); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 72px; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; border: 2px solid transparent;
  transition: border-color var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--green); }

.product-info {}
.product-article { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.product-name { font-size: clamp(20px, 3vw, 28px); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.product-price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.product-price-sale { font-size: 28px; font-weight: 800; color: var(--green); }
.product-price-old { font-size: 18px; color: var(--gray); text-decoration: line-through; }
.product-stock { font-size: 13px; margin-bottom: 20px; }
.product-stock.in { color: var(--green); }
.product-stock.out { color: #e74c3c; }

.product-variants { margin-bottom: 20px; }
.variants-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.variants-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 7px 16px; border: 1.5px solid var(--border);
  border-radius: 50px; font-size: 13px; background: #fff;
  cursor: pointer; transition: var(--transition);
}
.variant-btn:hover { border-color: var(--green); color: var(--green); }
.variant-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

.product-chars { margin-bottom: 24px; }
.product-chars table { width: 100%; border-collapse: collapse; }
.product-chars td { padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.product-chars td:first-child { color: var(--text-light); width: 45%; }
.product-chars td:last-child { font-weight: 500; }

.product-desc { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 24px; }
.product-desc h3 { color: var(--text); font-size: 15px; margin-bottom: 8px; }

/* ======= CART DRAWER ======= */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 300; display: none;
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: -480px; bottom: 0;
  width: 420px; max-width: 100vw;
  background: #fff; box-shadow: -4px 0 32px rgba(0,0,0,.15);
  z-index: 301; display: flex; flex-direction: column;
  transition: right .3s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { right: 0; }
.cart-drawer-header {
  padding: 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer-header h2 { font-size: 18px; font-weight: 700; }
.cart-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--gray); }
.cart-empty svg { margin: 0 auto 16px; }
.cart-item {
  display: flex; gap: 12px; margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.cart-item-img { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.cart-item-size { font-size: 12px; color: var(--text-light); }
.cart-item-qty {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.qty-btn {
  width: 28px; height: 28px; border: 1.5px solid var(--border);
  border-radius: 50%; background: #fff; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { border-color: var(--green); color: var(--green); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--green); white-space: nowrap; }
.cart-item-remove { background: none; border: none; color: var(--gray); cursor: pointer; font-size: 18px; padding: 0 4px; }
.cart-item-remove:hover { color: #e74c3c; }
.cart-drawer-footer { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--gray-light); }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* ======= CHECKOUT FORM ======= */
.checkout-section { padding: 48px 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.checkout-form-card, .order-summary {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.checkout-form-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-light); }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 80px; }
.prepay-notice {
  background: #fff9e6; border: 1.5px solid #f0c936;
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 13px; color: #7a6000; margin-bottom: 20px;
  display: flex; gap: 8px; align-items: flex-start;
}
.prepay-notice svg { flex-shrink: 0; margin-top: 2px; }
.order-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.summary-item { display: flex; gap: 10px; margin-bottom: 12px; }
.summary-item-img { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.summary-item-img img { width: 100%; height: 100%; object-fit: cover; }
.summary-item-name { font-size: 13px; font-weight: 500; line-height: 1.3; }
.summary-item-sub { font-size: 12px; color: var(--text-light); }
.summary-item-price { margin-left: auto; font-weight: 700; font-size: 14px; white-space: nowrap; }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; }
.checkout-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ======= PAGINATION ======= */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  min-width: 40px; height: 40px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font-size: 14px;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ======= FOOTER ======= */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.8);
  padding: 48px 0 24px;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--green); }
.footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background var(--transition);
}
.footer-social a:hover { background: var(--green); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 8px; }

/* ======= BREADCRUMB ======= */
.breadcrumb { padding: 14px 0; font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 6px; }

/* ======= ALERTS ======= */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #e8f5ee; color: var(--green-dark); border: 1px solid #b8dfc8; }
.alert-error { background: #fde8e8; color: #c0392b; border: 1px solid #f5b8b8; }

/* ======= STATIC PAGES ======= */
.static-page { max-width: 820px; margin: 0 auto; padding: 48px 20px; }
.static-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 24px; }
.static-page h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--green-dark); }
.static-page p, .static-page li { font-size: 15px; line-height: 1.8; color: var(--text-light); margin-bottom: 12px; }

/* ======= RELATED PRODUCTS ======= */
.related-section { margin-top: 60px; }

/* ======= TOAST ======= */
.toast-wrap {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--text); color: #fff;
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: 14px; box-shadow: var(--shadow-md);
  animation: slideIn .3s ease;
  pointer-events: all;
  display: flex; align-items: center; gap: 10px;
  max-width: 320px;
}
.toast.success { background: var(--green); }
.toast.error { background: #e74c3c; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ======= LOADER ======= */
.loader {
  display: inline-block; width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 200px 1fr; }
  .product-page { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .carousel-track .product-card { flex: 0 0 calc(33.33% - 14px); }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { order: -1; }
}

@media (max-width: 768px) {
  .header-search { display: none; }
  .hamburger { display: flex; }
  .site-nav { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: none; }
  .sidebar.mobile-open { display: block; }
  .product-page { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .carousel-track .product-card { flex: 0 0 calc(50% - 10px); }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-img { width: 200px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .carousel-track .product-card { flex: 0 0 calc(50% - 10px); }
  .cart-drawer { width: 100vw; }
}

/* ======= CAROUSEL UPDATED ======= */
.carousel-outer {
  position: relative;
  padding: 0 50px;
}
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-outer .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(74,156,111,0.25);
  transition: background var(--transition), color var(--transition);
}
.carousel-outer .carousel-arrow:hover {
  background: var(--green);
  color: #fff;
}
.carousel-outer .carousel-arrow.prev { left: 0; }
.carousel-outer .carousel-arrow.next { right: 0; }

@media (max-width: 768px) {
  .carousel-outer { padding: 0 36px; }
  .carousel-outer .carousel-arrow { width: 36px; height: 36px; }
}
