/* Сброс и переменные */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --color-primary: #2d5a27;
  --color-primary-light: #3d7a35;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-bg: #fff;
  --color-bg-alt: #f5f5f5;
  --color-border: #e0e0e0;
  --font-sans: 'Onest', system-ui, -apple-system, sans-serif;
  --container: min(100% - 2rem, 1140px);
  --space: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}
body { margin: 0; font-family: var(--font-sans); color: var(--color-text); line-height: 1.5; background: var(--color-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: var(--container); margin-inline: auto; padding-inline: var(--space); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; border-radius: var(--radius);
  font: inherit; font-weight: 500; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn--primary:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); text-decoration: none; }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--color-text); }
.btn--ghost:hover { background: var(--color-bg-alt); text-decoration: none; }

.categories { padding: 0.75rem 0 var(--space-lg); }
.categories__inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.category-card { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #1a1a1a; background: #f0f0f0; border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.category-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-decoration: none; color: #1a1a1a; }
.category-card__img { width: 100%; height: 120px; background-size: cover; background-position: center; background-color: #e8e8e8; }
.category-card__img--kitchen { background: linear-gradient(135deg, #d4a574 0%, #c4956a 50%, #b8855a 100%); }
.category-card__img--storage { background: linear-gradient(135deg, #e8ddc8 0%, #ddd0b8 100%); }
.category-card__img--children { background: linear-gradient(135deg, #7cb342 0%, #9ccc65 50%, #c5e1a5 100%); }
.category-card__img--winter { background: linear-gradient(180deg, #37474f 0%, #546e7a 100%); }
.category-card__img--garden { background: linear-gradient(135deg, #78909c 0%, #90a4ae 100%); }
.category-card__img--catalog { background: linear-gradient(135deg, #b3e5fc 0%, #81d4fa 100%); }
.category-card__title { padding: 0.75rem 0.5rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; text-align: center; text-transform: uppercase; }
.category-card__img[style*="background-image"] { background-size: cover; background-position: center; }
.categories__loading, .products__loading { grid-column: 1 / -1; text-align: center; color: var(--color-text-muted); padding: 1rem; }

.popular-products .container { width: min(100% - 2rem, 1280px); max-width: 1280px; }
.popular-products { padding-bottom: 0.5rem; }
.products-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
.product-card { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); padding: 0 0 0.75rem; transition: box-shadow .2s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.product-card__img-wrap { position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--color-bg-alt); }
.product-card__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-card__price-wrap { display: flex; align-items: center; gap: 0.4rem 0.5rem; margin: 0.65rem 0.75rem 0.2rem; flex-wrap: wrap; }
.product-card__price-current { font-size: 0.95rem; font-weight: 700; color: #1a1a1a; line-height: 1.25; }
.product-card__price-old { font-size: 0.7rem; font-weight: 400; color: #9e9e9e; text-decoration: line-through; }
.product-card__title { margin: 0 0.75rem 0.5rem; font-size: 0.8rem; font-weight: 400; color: #555; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; -webkit-box-orient: vertical; }
.product-card__quantity { display: flex; align-items: center; margin: 0 0.75rem; gap: 0; width: 100%; max-width: 120px; }
.product-card__qty-btn { width: 32px; height: 32px; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; font-size: 1rem; font-weight: 500; color: #333; cursor: pointer; padding: 0; line-height: 1; flex-shrink: 0; }
.product-card__qty-btn:hover { background: var(--color-bg-alt); }
.product-card__qty-value { min-width: 32px; text-align: center; font-size: 0.9rem; font-weight: 500; }
.product-card__add { margin: 0 0.75rem; padding: 0.5rem 0.75rem; background: #2196F3; color: #fff; border: none; border-radius: 8px; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; width: calc(100% - 1.5rem); box-sizing: border-box; }
.product-card__add:hover { background: #1976D2; color: #fff; text-decoration: none; }
.product-card__link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.product-card__link:hover { text-decoration: none; color: inherit; }
.product-card__link:hover .product-card__title { color: var(--color-primary); }

.brand-video { padding: 0.5rem 0 var(--space-xl); background: #fff; }
.brand-video .section__title { margin-bottom: 0.75rem; }
.container--wide { width: min(100% - 2rem, 1280px); max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.brand-video__wrap { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 720px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.brand-video__player { display: block; width: 100%; height: 100%; object-fit: contain; }

.section { padding: var(--space-xl) 0; }
.section__title { margin: 0 0 var(--space-lg); font-size: 1.5rem; font-weight: 700; text-align: center; }

.footer { background: var(--color-text); color: #ccc; padding: var(--space-xl) 0 var(--space-lg); margin-top: var(--space-xl); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer__brand { font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.footer__heading { font-size: 1rem; color: #fff; margin: 0 0 0.5rem; }
.footer__links a { color: #ccc; }
.footer__links a:hover { color: #fff; text-decoration: none; }
.footer__copy { margin: 0; padding-top: var(--space); border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #999; text-align: center; }
