/* Шапка — адаптивная */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--color-border); }
.header__inner { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 72px; padding: 0 1.5rem; max-width: 1400px; margin: 0 auto; }
.header--lemana .header__logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; flex-shrink: 0; gap: 0; }
.header__logo-icon { color: #2d5a27; line-height: 0; }
.header__logo-icon svg { display: block; }
.header__logo-text { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; line-height: 1.2; color: #1a1a1a; }
.header__menu-btn { flex-shrink: 0; width: 44px; height: 44px; border: none; border-radius: 6px; background: #9acd32; color: #1a1a1a; cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0; }
.header__menu-icon { width: 20px; height: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.header__menu-line { display: block; height: 2px; background: currentColor; border-radius: 1px; }
.header__search { flex: 1; max-width: 480px; min-width: 120px; position: relative; display: flex; align-items: stretch; }
.header__search-icon { position: absolute; left: 0; top: 0; bottom: 0; width: 44px; display: flex; align-items: center; justify-content: center; color: #666; pointer-events: none; }
.header__search-input { width: 100%; height: 44px; padding: 0 14px 0 44px; border: none; border-radius: 6px; background: #EFEFEF; font: inherit; font-size: 0.95rem; color: #1a1a1a; }
.header__search-input::placeholder { color: #888; }
.header__search-input:focus { outline: none; box-shadow: 0 0 0 2px rgba(0,0,0,0.1); }
.header__location { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0; border: none; background: none; cursor: pointer; font: inherit; text-align: left; flex-shrink: 0; }
.header__location-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.header__location-label { font-size: 0.75rem; color: #888; }
.header__location-value { font-size: 0.9rem; font-weight: 600; color: #1a1a1a; }
.header__icons { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.header__icon { width: 44px; height: 44px; border-radius: 50%; background: #ebebeb; color: #2c2c2c; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.header__icon:hover { background: #ddd; text-decoration: none; }
.header__search-toggle { display: none; border: none; background: none; cursor: pointer; padding: 0; width: 44px; height: 44px; align-items: center; justify-content: center; color: #333; border-radius: 50%; }
.header__mobile-panel { display: none; }

/* Hero */
.hero { position: relative; min-height: 360px; overflow: hidden; border-radius: 12px; margin: var(--space-lg) auto 0.75rem; max-width: 1600px; width: calc(100% - 0.5rem); }
.hero__track { display: flex; width: 100%; min-height: 360px; transition: transform 0.45s ease; }
.hero__slide { flex: 0 0 100%; min-width: 100%; }
.hero__inner { display: flex; min-height: 360px; width: 100%; }
.hero__right { flex: 1; min-height: 360px; background-size: cover; background-position: center; border-radius: 12px; }
.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 56px; height: 56px; border: none; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.hero__arrow-icon { width: 16px; height: 16px; border-right: 5px solid #3154B5; border-bottom: 5px solid #3154B5; display: block; }
.hero__arrow--prev { left: 0; border-radius: 0 8px 8px 0; }
.hero__arrow--prev .hero__arrow-icon { transform: rotate(135deg); }
.hero__arrow--next { right: 0; border-radius: 8px 0 0 8px; }
.hero__arrow--next .hero__arrow-icon { transform: rotate(-45deg); }
.hero__dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.hero__dot { width: 10px; height: 10px; border: none; border-radius: 50%; background: #3154B5; cursor: pointer; padding: 0; opacity: 0.5; }
.hero__dot--active { opacity: 1; transform: scale(1.15); }

@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) { .categories__inner { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 768px) {
  .hero, .hero__track, .hero__inner, .hero__right { min-height: 280px; }
  .hero { margin: 0.5rem; width: calc(100% - 1rem); }
  .header__inner { flex-wrap: wrap; padding: 0 0.75rem; min-height: 64px; }
  .header__search--desktop { max-width: 100%; }
  .header__location-value { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 0.375rem; }
  .popular-products .container { width: 100%; max-width: 100%; padding-inline: 0.5rem; }
  .product-card__price-wrap { margin: 0.75rem 0.625rem 0.25rem; }
  .product-card__title { margin: 0 0.625rem 0.625rem; }
  .product-card__quantity { margin: 0 0.625rem; max-width: none; width: calc(100% - 1.25rem); }
  .product-card__qty-btn { flex: 1; width: auto; height: 36px; }
  .product-card__qty-value { flex: 1; min-width: 0; }
  .product-card__add { margin: 0 0.625rem; width: calc(100% - 1.25rem); }
}

@media (max-width: 600px) {
  .categories__inner { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .category-card__img { height: 100px; }
}

@media (max-width: 480px) {
  .header__search--desktop,
  .header__location,
  .header__icons--desktop { display: none !important; }
  .header__menu-btn { display: flex; order: 1; }
  .header__search-toggle { display: flex; order: 3; }
  .header__inner { justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.75rem; min-height: 56px; }
  .header__logo { order: 2; flex: 1; justify-content: center; }
  .header__logo-icon svg { width: 24px; height: 24px; }
  .header__logo-text { font-size: 0.8rem; }
  .header__mobile-panel {
    display: block; order: 4; width: 100%; max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease; border-top: 1px solid transparent;
  }
  .header--search-open .header__mobile-panel { max-height: 120px; border-top-color: var(--color-border); }
  .header__mobile-panel .header__search { width: 100%; max-width: none; margin-bottom: 0.5rem; }
  .header__mobile-panel .header__search-input { height: 42px; font-size: 0.9rem; padding-left: 40px; }
  .header__mobile-panel .header__search-icon { width: 40px; }
  .header__mobile-panel .header__icons { display: flex; gap: 0.5rem; }

  .hero, .hero__track, .hero__inner, .hero__right { min-height: 220px; }
  .hero { border-radius: 10px; }
  .hero__right { border-radius: 10px; }
  .hero__arrow { width: 44px; height: 44px; }
  .hero__arrow--prev { border-radius: 0 10px 10px 0; }
  .hero__arrow--next { border-radius: 10px 0 0 10px; }
  .hero__arrow-icon { width: 14px; height: 14px; border-right-width: 4px; border-bottom-width: 4px; }
  .hero__dots { bottom: 12px; gap: 8px; }
  .hero__dot { width: 8px; height: 8px; }

  .popular-products .container { padding-inline: 0.375rem; }
  .products-grid { gap: 0.625rem 0.25rem; }
  .container--wide { padding: 0 0.75rem; }
  .brand-video__wrap { max-height: 280px; }
}
