/* ========================================
   СОТЫ ЗДОРОВЬЯ - Стили
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #8FB935;
    --primary-dark: #7A9E2D;
    --primary-light: #A8D14A;
    --secondary-color: #F5A623;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-white: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Bar */
.top-bar {
    background: #f5f5f5;
    padding: 6px 0;
    font-size: 12px;
    color: var(--text-light);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    gap: 20px;
}

.top-bar-links a:hover {
    color: var(--primary-color);
}

/* Main Header */
.main-header {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-right: 50px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Search */
.search-container {
    flex: 1;
    max-width: 440px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: var(--radius-lg);
    padding: 4px;
    transition: var(--transition);
}

.search-box:focus-within {
    background: var(--bg-white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius);
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.search-result-price {
    color: var(--primary-color);
    font-weight: 600;
}

/* Catalog Dropdown */
.catalog-dropdown {
    position: relative;
}

.catalog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.catalog-btn:hover {
    background: var(--primary-dark);
}

.catalog-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    margin-top: 0px;
    padding: 8px 0;
    display: none;
    z-index: 100;
}

.catalog-dropdown:hover .catalog-menu {
    display: block;
}

.catalog-item { 
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    transition: var(--transition);
}

.catalog-item:hover {
    background: #f9f9f9;
    color: var(--primary-color);
}

.catalog-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

/* Phone Block */
.phone-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.phone-icon {
    font-size: 24px;
}

.phone-info {
    display: flex;
    flex-direction: column;
}

.phone-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.phone-number:hover {
    color: var(--primary-color);
}

.callback-link {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 2px;
    padding: 0;
    text-align: left;
}

.callback-link:hover {
    color: var(--primary-dark);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-color);
    transition: var(--transition);
}

.icon-btn:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    width: auto;
    padding: 0 12px;
}

.cart-btn.active {
    background: var(--primary-color);
    color: white;
}

.cart-sum {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Navigation Bar */
.nav-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-link:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.nav-link-callback {
    color: var(--primary-color);
    border: 1px dashed var(--primary-color);
}

.nav-link-callback:hover {
    background: var(--primary-color);
    color: white;
    border-style: solid;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.social-icon.whatsapp {
    background: #25D366;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.telegram {
    background: #0088cc;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* ========================================
   CATEGORIES SLIDER
   ======================================== */

.categories-section {
    padding: 20px 0;
    background: var(--bg-white);
}

.categories-slider {
    position: relative;
    display: flex;
    align-items: center;
}

.categories-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px;
}

.categories-track::-webkit-scrollbar {
    display: none;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 112px;
    padding: 0px 8px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 32px;
}

.category-name {
    font-size: 11px;
    text-align: center;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.3;
}

.slider-arrow {
    position: absolute;
    width: 36px;
    height: 36px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #8f8f8f;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    background: #f2f2f2;
}

.slider-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.slider-prev {
    left: -40px;
}

.slider-next {
    right: -40px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    padding: 24px 0;
    background: var(--bg-white);
}

.hero-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
}

.hero-content {
    flex: 1;
    padding: 40px;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-description {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 400px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--bg-color);
    transform: translateX(4px);
}

.hero-image {
    flex: 1;
    max-width: 500px;
    height: 280px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   PRODUCTS SECTIONS
   ======================================== */

.main-content {
    padding: 32px 0;
}

.products-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.section-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.section-link:hover {
    color: var(--primary-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* Product Card */
.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.product-card.out-of-stock {
    opacity: 0.6;
    order: 999;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product Stickers */
.product-stickers {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sticker {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.sticker-hit {
    background: #FF6B6B;
    color: white;
}

.sticker-new {
    background: #4ECDC4;
    color: white;
}

.sticker-sale {
    background: var(--secondary-color);
    color: white;
}

.sticker-bestseller {
    background: #9B59B6;
    color: white;
}

.sticker-nosugar {
    background: #3498DB;
    color: white;
}

.sticker-glutenfree {
    background: #2ECC71;
    color: white;
}

.sticker-vegan {
    background: #27AE60;
    color: white;
}

/* Product Actions */
.product-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
	z-index: 1;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-action-btn {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: var(--text-light);
    transition: var(--transition);
}

.product-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.product-action-btn.active {
    background: #FF6B6B;
    color: white;
}

/* Product Info */
.product-info {
    padding: 12px;
}

.product-price-block {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.product-old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-name {
  font-size: 13px;
  color: var(--text-color);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 55px;
  margin-bottom: 15px;
}

.product-weight {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Product Buttons */
.product-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-out-of-stock {
    background: var(--text-muted);
    color: white;
    cursor: not-allowed;
}

.btn-notify {
    background: var(--secondary-color);
    color: white;
}

.btn-notify:hover {
    background: #E6951A;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: var(--radius);
    padding: 4px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #f5f5f5;
    color: #333333;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    font-size: 40px;
}

.footer-logo-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.footer-logo-subtitle {
    display: block;
    font-size: 12px;
    color: var(--primary-light);
}

.footer-text {
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #333333;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-phone {
    font-size: 18px !important;
    font-weight: 600;
    color: white !important;
}

.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.footer-bottom {
    display: block;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #333333;
}

.payment-methods {
    display: flex;
    gap: 12px;
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-content-small {
    max-width: 400px;
}

.modal-content-medium {
    max-width: 500px;
}

.modal-content-large {
    max-width: 800px;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    background: #f5f5f5;
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: #f9f9f9;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f9f9f9;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-image img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-remove {
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #FF6B6B;
}

.cart-summary {
    padding-top: 16px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-delivery-info {
    padding: 12px;
    background: #FFF8E7;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-light);
}

.cart-delivery-info.free {
    background: #E8F5E9;
    color: #2E7D32;
}

/* Order Form */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.order-summary {
    padding: 16px;
    background: #f9f9f9;
    border-radius: var(--radius);
    margin-top: 8px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.order-delivery {
    font-size: 13px;
    color: var(--text-light);
}

/* Delivery Info */
.delivery-info {
    font-size: 14px;
    line-height: 1.8;
}

.delivery-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--text-color);
}

.delivery-info ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 16px;
}

.delivery-info li {
    margin-bottom: 8px;
}

/* Product Quick View */
.product-quick-view {
    display: flex;
    gap: 24px;
}

.product-quick-image {
    width: 300px;
    height: 300px;
    background: #f9f9f9;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-quick-image img {
    max-width: 250px;
    max-height: 250px;
    object-fit: contain;
}

.product-quick-info {
    flex: 1;
}

.product-quick-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.product-quick-description {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-quick-properties {
    margin-bottom: 16px;
}

.product-quick-properties h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-quick-properties ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-light);
}

.product-quick-properties li {
    margin-bottom: 4px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    transition: var(--transition);
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-container {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .logo-text {
        display: none;
    }
    
    .phone-block {
        display: none;
    }
    
    .catalog-btn span {
        display: none;
    }
    
    .nav-links {
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        white-space: nowrap;
        padding: 8px 12px;
    }
    
    .social-icons {
        display: none;
    }
    
    .hero-banner {
        flex-direction: column;
    }
    
    .hero-content {
        padding: 24px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-image {
        max-width: 100%;
        height: 200px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .product-quick-view {
        flex-direction: column;
    }
    
    .product-quick-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 16px;
    }
}
 
/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cart-btn.pulse {
    animation: pulse 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
.site-logo-img {
  max-width: 220px;
  position: relative;
  top: -3px;
}

 
/* каталог открывается только по клику */
.catalog-dropdown .catalog-menu{ display:none; }
.catalog-dropdown.open .catalog-menu{ display:block; }

/* на всякий — если где-то был hover */
.catalog-dropdown:hover .catalog-menu{ display:none; }
/* ===== Catalog dropdown visibility (hover + click) ===== */
.catalog-menu {
  display: none;
  position: absolute;
  left: 0;
  z-index: 9999;
}

/* Открытие по наведению */
.catalog-dropdown:hover .catalog-menu {
  display: block;
}

/* Открытие по клику (JS добавляет .active) */
.catalog-menu.active,
.catalog-dropdown.active .catalog-menu {
  display: block;
}
/* ===== HERO CLEAN SLIDER ===== */

#heroSlider .hero-viewport{
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

#heroSlider .hero-slider{
  display: flex;
  flex-wrap: nowrap;
  transition: transform .5s ease;
  width: 100%;
}

#heroSlider .hero-slide{
  flex: 0 0 100%;
  width: 100%;
  display: block;
}

#heroSlider .hero-img{
  width: 100%; 
  object-fit: cover;
  display: block;
}

/* стрелки */
#heroSlider .hero-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

#heroSlider .hero-prev{ left: 10px; }
#heroSlider .hero-next{ right: 10px; }

/* точки */
#heroSlider .hero-dots{
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

#heroSlider .hero-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  opacity: .4;
  cursor: pointer;
}

#heroSlider .hero-dot.active{
  opacity: 1;
}

#heroSlider .container {
  position: relative;   /* теперь стрелки будут внутри контейнера */
}

#heroSlider .hero-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
#heroSlider .hero-viewport{
  cursor: grab;
}

#heroSlider .hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

#heroSlider .hero-prev {
  left: -25px;   /* немного выносим наружу контейнера */
}

#heroSlider .hero-next {
  right: -25px;
}
#heroSlider .hero-nav {
position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #8f8f8f;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
background: #f2f2f2;
}
.categories-track{
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
}

.categories-track::-webkit-scrollbar{
  display: none;
}

.categories-track.is-dragging{
  cursor: grabbing;
}

/* РЯД со скроллом */
.products-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  gap: 12px;                 /* можешь свой */
  scroll-snap-type: x mandatory; /* опционально */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

/* карточка НЕ сжимается */
.products-grid .product-card {
  flex: 0 0 auto !important;
  width: 180px;              /* подбери под “6 влезает” */
  scroll-snap-align: start;  /* опционально */
}

/* если у тебя есть max-width у карточки — убери/перебей */
.products-grid .product-card {
  max-width: none !important;
}

.eco-slider-track{
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}
.eco-slider-track::-webkit-scrollbar{
  display:none;              /* Chrome/Safari */
}

/* ДЕСКТОП: подбери ширину под 6 в видимой области */
.eco-slider-track .product-card{
  flex: 0 0 auto;
  width: 190px;
}

/* МОБИЛКА: 3 карточки в экран */
@media (max-width: 768px){
  .eco-slider-track{ gap: 10px; }
  .eco-slider-track .product-card{
    width: calc((100% - 20px) / 3); /* 2 gap по 10px */
  }
}
/* Ограничение названия: максимум 3 строки */
.product-name{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eco-slider{ position: relative; }

/* можно, чтобы кнопки слегка вылезали, но без поломки ширины */
.eco-slider{ overflow: visible; }

.eco-slider-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;

  width: 30px;
  height: 30px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #8f8f8f;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  background: #f2f2f2;
}

.eco-prev{ left: -40px; }
.eco-next{ right: -40px; }

.eco-slider-btn:hover{ background:#e9e9e9; }
/* ===== ECO Catalog (no sidebar) ===== */
.eco-catalog { padding: 15px 0 28px;
  min-height: 500px; }

.eco-breadcrumbs{
  display:flex; flex-wrap:wrap; gap:8px;
  font-size:13px; color:#666;
  margin: 6px 0 12px;
}
.eco-breadcrumbs a{ color: inherit; text-decoration:none; }
.eco-breadcrumbs a:hover{ text-decoration:underline; }
.eco-breadcrumbs .sep{ opacity:.55; }

.eco-catalog-head{ margin: 4px 0 12px; }
.eco-catalog-title{ margin:0; font-size:24px; line-height:1.15; }
.eco-catalog-desc{ margin-top:10px; color:#666; }

.eco-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin: 10px 0 14px;
}
.eco-total{ color:#666; }
.eco-toolbar-right{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.eco-select{ display:flex; align-items:center; gap:8px; }
.eco-select-label{ font-size:13px; color:#666; }
.eco-select-control{
  height:36px;
  border:1px solid var(--border-color);
  border-radius:10px;
  padding:0 10px;
  background:#fff;
}

/* ЖЁСТКО: каталог = GRID (перебиваем слайдерные flex-стили) */
.eco-catalog .eco-products-grid{
  display:grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:10px;
  overflow: visible !important;
}
.eco-catalog .eco-products-grid .product-card{
  width:auto !important;
  flex:none !important;
}

/* Pagination */
.eco-pagination{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-top:18px;
}
.eco-pagination .pagination{
  margin:0;
  display:flex; gap:6px;
  list-style:none; padding:0;
}
.eco-pagination .pagination li a,
.eco-pagination .pagination li span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px; height:36px;
  padding:0 10px;
  border:1px solid var(--border-color);
  border-radius:10px;
  text-decoration:none;
  color:inherit;
  background:#fff;
}
.eco-pagination .pagination li.active span{ font-weight:700; }

/* Responsive */
@media (max-width: 1200px){
  .eco-catalog .eco-products-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 992px){
  .eco-catalog .eco-products-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 576px){
  .eco-catalog .eco-products-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}