/* ===== ROOT VARIABLES ===== */
:root {
  --green-dark: #4d6c3c;
  --green-light: #82b735;
  --gold: #f5d079;
  --cream: #fefaf1;
  --text-dark: #1c2119;
  --text-muted: #6b7c62;
  --border: #e2ead8;
  --white: #ffffff;
  --card-shadow: 0 2px 12px rgba(77,108,60,0.10);
  --radius: 12px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--green-light);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 16px;
}
.topbar span { margin: 0 12px; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--green-dark);
  flex-shrink: 0;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { fill: var(--white); }
.logo-sub {
  font-family: 'Ephesis', cursive;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  line-height: 1;
  margin-top: -2px;
}
.search-wrap {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 2px solid var(--border);
  border-radius: 24px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}
.search-input:focus { border-color: var(--green-light); }
.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--green-dark);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--green-light); }
.search-btn svg { fill: var(--white); }
.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.header-contacts strong { color: var(--green-dark); font-size: 15px; }

/* ===== NAV ===== */
.nav { background: var(--green-dark); }
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-bottom: 3px solid transparent;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.12);
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-link svg { fill: currentColor; opacity: 0.7; }

/* ===== DROPDOWN ===== */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 200;
  border-top: 3px solid var(--green-light);
}
.dropdown-wide {
  min-width: 260px;
  columns: 2;
  column-gap: 0;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text-dark);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  break-inside: avoid;
}
.dropdown a:first-child {
  font-weight: 700;
  color: var(--green-dark);
  border-bottom: 1px solid var(--border);
  column-span: all;
}
.dropdown a:hover { background: var(--cream); color: var(--green-dark); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #3a5428 50%, #2d4020 100%);
  color: var(--white);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2382b735' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  font-family: 'Ephesis', cursive;
  font-size: 1.2em;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-tagline {
  display: inline-block;
  background: var(--green-light);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 24px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-primary { background: var(--gold); color: var(--text-dark); border-color: var(--gold); }
.btn-primary:hover { background: #f0c84a; box-shadow: 0 4px 16px rgba(245,208,121,0.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ===== SECTIONS ===== */
.section { max-width: 1280px; margin: 0 auto; padding: 48px 24px; }
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.section-title span {
  font-family: 'Ephesis', cursive;
  font-size: 1.3em;
  color: var(--green-light);
}
.section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.catalog-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

/* ===== BREADCRUMBS ===== */
#breadcrumbs { margin-bottom: 16px; min-height: 28px; }
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}
.bc-link {
  color: var(--green-dark);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s;
  padding: 2px 0;
}
.bc-link:hover { color: var(--green-light); text-decoration: underline; }
.bc-sep {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 2px;
  opacity: 0.6;
}
.bc-current {
  color: var(--text-dark);
  font-weight: 600;
}

/* ===== CATEGORY CARDS ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}
.cat-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cat-card:hover, .cat-card.active {
  border-color: var(--green-light);
  background: linear-gradient(135deg, #f0f9e8, #e8f5d8);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}
.cat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--cream);
  border: 2px solid var(--border);
  transition: all 0.2s;
}
.cat-card:hover .cat-icon, .cat-card.active .cat-icon {
  background: var(--green-light);
  border-color: var(--green-light);
}
.cat-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.cat-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--cream);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ===== CATALOG LAYOUT ===== */
.catalog-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.filters-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 78px;
}
.catalog-main { flex: 1; min-width: 0; }

/* ===== FILTER PANEL ===== */
.filter-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0f9e8, #e8f5d8);
  border-bottom: 1px solid var(--border);
}
.filter-panel-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.filter-reset-all-sm {
  background: none;
  border: 1px solid #e57373;
  border-radius: 12px;
  padding: 2px 9px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #e57373;
  cursor: pointer;
  transition: background 0.15s;
}
.filter-reset-all-sm:hover { background: #fff5f5; }

/* ===== CATEGORIES IN SIDEBAR ===== */
.filter-section { border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; }
.filter-section-cats { padding: 0; }
.filter-section-cats .filter-section-title {
  padding: 12px 16px 8px;
  margin: 0;
}
.filter-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 16px 16px 0;
  display: block;
}
.fc-list { padding-bottom: 8px; }

.fc-main-wrap { }
.fc-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
  border-radius: 0;
}
.fc-item:hover { background: var(--cream); }
.fc-item.active {
  background: linear-gradient(90deg, #eaf5d8, #f4fce8);
  border-left: 3px solid var(--green-light);
}
.fc-item.active .fc-label { color: var(--green-dark); font-weight: 800; }
.fc-icon { font-size: 14px; flex-shrink: 0; }
.fc-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 6px;
  flex-shrink: 0;
  font-weight: 600;
}
.fc-chevron {
  font-size: 16px;
  color: var(--text-muted);
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  font-weight: 700;
}
.fc-chevron.open { transform: rotate(90deg); }

/* Sub items */
.fc-sub-list {
  background: #f9fcf5;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.fc-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 14px 6px 32px;
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}
.fc-sub-item:hover { background: #eef7e2; }
.fc-sub-item.active {
  background: #dff0c5;
  border-left: 3px solid var(--green-light);
}
.fc-sub-item.active .fc-sub-label { color: var(--green-dark); font-weight: 700; }
.fc-sub-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

/* Sort section */
.filter-section-sort { padding: 14px 16px; }
.filter-section { padding-bottom: 4px; }
.sort-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  transition: background 0.12s;
  margin-bottom: 2px;
  user-select: none;
}
.sort-option:hover { background: var(--cream); }
.sort-option.active { background: linear-gradient(135deg, #f0f9e8, #e8f5d8); color: var(--green-dark); }
.sort-option input[type="radio"] { accent-color: var(--green-dark); width: 14px; height: 14px; flex-shrink: 0; }

/* Price section */
.filter-price-inputs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  padding: 0 16px;
}
.price-input {
  flex: 1;
  padding: 7px 9px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  width: 0;
  outline: none;
  transition: border-color 0.2s;
  background: var(--cream);
  color: var(--text-dark);
}
.price-input:focus { border-color: var(--green-light); background: var(--white); }
.price-dash { color: var(--text-muted); font-weight: 700; flex-shrink: 0; }
.filter-price-hint { font-size: 11px; color: var(--text-muted); padding: 0 16px 8px; }
.filter-reset-price {
  display: block;
  margin: 0 16px 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-reset-price:hover { border-color: #e57373; color: #e57373; }

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--green-light);
  box-shadow: 0 8px 24px rgba(77,108,60,0.15);
  transform: translateY(-3px);
}
.product-img {
  height: 150px;
  background: linear-gradient(135deg, #f0f9e8 0%, #e0f0d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(77,108,60,0.06) 100%);
}
.product-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-light);
}
.product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-unit { font-size: 11px; color: var(--text-muted); }
.product-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-price { font-size: 18px; font-weight: 800; color: var(--green-dark); }
.product-price .currency { font-size: 12px; font-weight: 600; }
.btn-cart {
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.btn-cart:hover { background: var(--green-light); }

/* ===== LOADING / EMPTY ===== */
.skeleton {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: shimmer 1.5s infinite;
}
.skeleton-img { height: 150px; background: var(--border); }
.skeleton-body { padding: 12px; }
.skeleton-line { height: 11px; background: var(--border); border-radius: 6px; margin-bottom: 8px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
@keyframes shimmer { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; color: var(--text-dark); margin-bottom: 8px; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 32px 0;
  flex-wrap: wrap;
}
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}
.page-btn:hover { border-color: var(--green-light); color: var(--green-dark); }
.page-btn.active { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-info { font-size: 13px; color: var(--text-muted); padding: 0 8px; }

/* ===== PRODUCT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--white);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.93) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.modal-close:hover { background: var(--border); }
.modal-product { padding: 32px 28px 28px; }
.modal-icon { font-size: 76px; text-align: center; margin-bottom: 14px; display: block; line-height: 1; }
.modal-cat {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--green-light);
  margin-bottom: 10px;
}
.modal-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.4;
}
.modal-details {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 4px 16px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
}
.modal-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.modal-detail-row:last-child { border-bottom: none; }
.modal-detail-label { color: var(--text-muted); font-weight: 600; }
.modal-detail-val { font-weight: 700; color: var(--text-dark); }
.modal-in-stock { color: #4caf50; }
.modal-out-of-stock { color: #e53935; }
.out-of-stock-label {
  font-size: 12px;
  color: #e53935;
  font-weight: 600;
}
.product-card.out-of-stock { opacity: .65; }
.product-card.out-of-stock .product-img { filter: grayscale(.4); }
.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 0;
  border-top: 2px solid var(--border);
}
.modal-price-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.modal-price { font-size: 30px; font-weight: 800; color: var(--green-dark); line-height: 1; }
.modal-price .currency { font-size: 17px; }
.modal-per-unit { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.btn-cart-lg { padding: 12px 22px; font-size: 13px; border-radius: 24px; }
.modal-product-img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 16px;
  background: #f8f9fa;
}
.modal-description {
  background: #f6faf4;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin: 16px 0;
}
.modal-desc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-dark);
  margin: 0 0 8px;
}
.modal-description p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.modal-source-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}
.modal-source-link:hover { color: var(--green); text-decoration: underline; }

/* ===== FOOTER ===== */
.footer { background: var(--green-dark); color: rgba(255,255,255,0.85); margin-top: 48px; }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-desc { font-size: 14px; line-height: 1.7; opacity: 0.8; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-size: 16px;
}
.social-btn:hover { background: var(--green-light); }
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  opacity: 0.8;
  transition: opacity 0.15s;
  cursor: pointer;
}
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
  opacity: 0.85;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--green-light); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════
   CART BUTTON (header)
═══════════════════════════════════════════════ */
.cart-btn {
  position: relative;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.cart-btn:hover { background: var(--green-light); transform: scale(1.06); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e53935;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
  animation: badgePop 0.25s ease;
}
@keyframes badgePop {
  0% { transform: scale(0.6); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════
   CART PANEL (slide from right)
═══════════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 400;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-panel.open { transform: translateX(0); }

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 2px solid var(--border);
  background: linear-gradient(135deg, #f0f9e8, #e8f5d8);
  flex-shrink: 0;
}
.cart-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--green-dark);
}
.cart-panel-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(77,108,60,0.1);
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cart-panel-close:hover { background: rgba(77,108,60,0.2); }

/* Cart items list */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
}
.cart-empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.4; }
.cart-empty-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.cart-empty-sub { font-size: 13px; }

/* Single cart item */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: background 0.15s;
}
.cart-item:hover { background: #fafdf6; }
.cart-item-icon {
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f9e8, #e0f0d0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-light);
  margin-bottom: 5px;
}
.cart-item-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cart-item-unit-price { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.cart-item-total { font-size: 14px; font-weight: 800; color: var(--green-dark); }

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* Quantity control */
.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--cream);
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.qty-btn:hover { background: #dff0c5; }
.qty-input {
  width: 38px;
  height: 30px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.cart-remove-btn {
  background: none;
  border: none;
  color: #bbb;
  font-size: 13px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cart-remove-btn:hover { background: #ffeaea; color: #e53935; }

/* Cart footer */
.cart-panel-footer {
  padding: 16px 20px 20px;
  border-top: 2px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}
.cart-footer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.cart-total-sum { font-size: 22px; font-weight: 800; color: var(--green-dark); }
.cart-order-btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 8px;
}
.cart-order-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.cart-continue-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  padding: 6px;
  transition: color 0.15s;
}
.cart-continue-btn:hover { color: var(--green-dark); }

/* ═══════════════════════════════════════════════
   ORDER MODAL
═══════════════════════════════════════════════ */
.order-modal-box { max-width: 560px; }

.order-modal-header {
  text-align: center;
  padding: 28px 28px 0;
}
.order-modal-icon { font-size: 48px; margin-bottom: 10px; }
.order-modal-title { font-size: 20px; font-weight: 800; color: var(--green-dark); margin-bottom: 20px; }

.order-summary {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 24px 20px;
  overflow: hidden;
}
.order-summary-items { max-height: 180px; overflow-y: auto; }
.order-summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.order-summary-row:last-child { border-bottom: none; }
.order-summary-name { flex: 1; font-weight: 600; color: var(--text-dark); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-summary-qty { color: var(--text-muted); font-weight: 600; flex-shrink: 0; }
.order-summary-price { font-weight: 800; color: var(--green-dark); flex-shrink: 0; }
.order-summary-total {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
  background: #f0f9e8;
  border-top: 1px solid var(--border);
}
.order-summary-total strong { font-size: 17px; color: var(--green-dark); }

.order-form { padding: 0 24px 24px; }
.order-form-group { margin-bottom: 14px; }
.order-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.order-input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.order-input:focus { border-color: var(--green-light); background: var(--white); }
.order-input.input-error { border-color: #e53935; background: #fff5f5; }
.order-textarea { resize: vertical; min-height: 72px; }

.order-error {
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #c62828;
  margin-bottom: 14px;
  font-weight: 600;
}
.order-submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  position: relative;
}
.order-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.order-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Order success */
.order-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 28px 40px;
}
.order-success-icon { font-size: 72px; margin-bottom: 20px; }
.order-success h2 { font-size: 22px; font-weight: 800; color: var(--green-dark); margin-bottom: 12px; }
.order-success p { font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 340px; }

/* ═══════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1c2119;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .filters-sidebar { width: 220px; }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-contacts { display: none; }
  .catalog-layout { flex-direction: column; }
  .filters-sidebar { width: 100%; position: static; }
  /* Two-column filter on tablet */
  .filter-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .filter-panel-header { grid-column: 1 / -1; }
  .filter-section-cats { grid-row: 1 / 3; }
}

@media (max-width: 600px) {
  .cart-panel { width: 100vw; }
  .header-inner { padding: 10px 16px; }
  .logo { font-size: 18px; }
  .hero { padding: 40px 16px; }
  .section { padding: 32px 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .nav-link { padding: 10px 11px; font-size: 11px; }
  .filter-panel { grid-template-columns: 1fr; }
  .modal-product { padding: 24px 18px 20px; }
  .modal-price { font-size: 26px; }
  .modal-name { font-size: 16px; }
  .breadcrumbs { font-size: 12px; }
}
