/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

input {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

textarea {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 15px;
}

.header-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 30px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin-right: 15px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.logo img {
    width: 150px;
}

.logo-image {
    width: 40px;
    height: auto;
    object-fit: contain;
}

/* Search Bar */
.search-bar {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-suggest-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    overflow: hidden;
}

.search-suggest-section-title {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggest-list {
    display: flex;
    flex-direction: column;
}

.search-suggest-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-suggest-item:hover {
    background: #f6f9ff;
}

.search-suggest-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-suggest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-suggest-thumb-placeholder {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: #d9dde3;
}

.search-suggest-query-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.search-suggest-meta {
    min-width: 0;
}

.search-suggest-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggest-price {
    font-size: 13px;
    color: #0072d2;
    font-weight: 700;
    margin-top: 2px;
}

.search-bar:focus-within {
    border-color: #0072d2;
    background: white;
    box-shadow: 0 4px 12px rgba(0,114,210,0.15);
}

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

.search-dropdown {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.search-dropdown:hover {
    color: #0072d2;
}

.search-btn {
    background: #0072d2;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}

.search-btn:hover {
    background: #005ba3;
}

/* Header Icons */
.header-icons {
    display: flex;
    gap: 25px;
    flex-shrink: 0;
}

.header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.header-icon:hover {
    transform: translateY(-2px);
}

.header-icon i {
    font-size: 24px;
    color: #333;
}

.header-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.header-icon span {
    font-size: 12px;
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    background: #ff4757;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

/* Favorites badge */
.favorites-badge {
    position: absolute;
    top: -5px;
    right: 2px;
    background: #ff4757;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

a:hover {
    text-decoration: none;
}

/* Navigation Menu */
.nav-menu-wrapper {
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 5px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.nav-scroll-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-scroll-btn.left {
    left: 0;
}

.nav-scroll-btn.right {
    right: 0;
}

.nav-scroll-btn i {
    font-size: 14px;
    color: #333;
}

.nav-scroll-btn:hover i {
    color: #0072d2;
}

.nav-scroll-btn.visible {
    display: flex;
}

.nav-item {
    padding: 8px 16px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #0072d2;
}

.nav-item.active {
    background: #0072d2;
    color: white;
    font-weight: 600;
}

.nav-item i {
    font-size: 12px;
}

/* Main Slider */
.main-slider {
    margin: 20px 0;
    padding: 20px 0;
    display: block !important;
    visibility: visible !important;
    min-height: 350px;
    background: transparent;
    width: 100%;
    position: relative;
    z-index: 1;
}

.slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
    min-height: 350px;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
}

.slider-track {
    display: flex !important;
    gap: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: stretch;
    height: 100%;
    width: max-content;
    padding: 0;
    margin: 0;
}

.slide {
    flex-shrink: 0;
    position: relative;
    height: 350px;
    min-height: 350px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box;
    margin-right: 20px;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1 !important;
    transition: transform 0.3s ease;
}

.slide-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 50px 40px 100px;
    background: transparent;
    color: white !important;
    border-radius: 12px;
    text-align: left;
    pointer-events: none;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100%;
    box-sizing: border-box;
}

.slide-content h2 {
    font-size: 64px !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
    text-shadow: none;
    line-height: 1.2;
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: normal;
    word-wrap: break-word;
}

.slide-content p {
    font-size: 36px !important;
    opacity: 1 !important;
    text-shadow: none;
    line-height: 1.4;
    color: #ffffff !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    white-space: normal;
    word-wrap: break-word;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

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

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

.slide-products {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.slide-products img {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slide-decoration {
    position: absolute;
    right: 100px;
    bottom: 0;
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

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

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

.slider-pause {
    position: absolute;
    bottom: 20px;
    right: 30px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-pause:hover {
    background: rgba(0,0,0,0.7);
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: white;
}

/* Categories Section */
.categories {
    padding: 40px 0;
    background: white;
    margin: 20px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.category-item:hover .category-icon {
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

.category-item span {
    font-size: 13px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

.promo-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #7c3aed;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

/* Deals Section */
.deals-section {
    padding: 40px 0;
    background: white;
    margin: 20px 0;
}

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

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.section-title .highlight {
    color: #7c3aed;
}

.see-all {
    display: none !important;
}

.see-all:hover {
    color: #0072d2;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Categories Section */
.categories-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #0072d2;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: #0072d2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.category-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f8f9fa;
}

.product-card.no-image::before {
    content: "📷 Нет фото";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
    text-align: center;
    z-index: 1;
}

.product-info {
    padding: 5px 16px;
}

.product-brand {
    display: none;
}

.product-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 42px; /* 1.4 line-height * 2 lines * 15px font-size */
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.discount {
    color: #ff4757;
    font-weight: 700;
    font-size: 14px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #0072d2;
}

.product-price.has-discount .price {
    color: #ff4757;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.product-rating-count {
    color: #000;
    margin-right: 5px;
}

.product-rating-dot {
    margin-right: 5px;
}

.rating-star-icon-small {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 5px;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: space-between;
}


.btn-cart {
    background: #0072d2;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    transition: background 0.3s;
}

.btn-cart:hover {
    background: #005ba3;
}

.btn-cart i {
    font-size: 11px;
}

.btn-cart.out-of-stock,
.btn.out-of-stock {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    color: white !important;
}

.btn-cart.out-of-stock:hover,
.btn.out-of-stock:hover {
    background: #6c757d !important;
}


.btn-cart.in-cart:hover {
    background: #218838;
}


.btn-favorite {
    background: none;
    border: none;
    color: #6c757d;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-favorite:hover {
    background: #f8f9fa;
    border-color: #0072d2;
}

.btn-favorite.active {
    background: #ff4757;
    border-color: #ff4757;
    color: white;
}

.btn-favorite.active:hover {
    background: #ff3742;
    border-color: #ff3742;
}

.btn-favorite img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.stars {
    color: #ffd700;
}

.product-badges {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-delivery {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-coupon {
    background: #fff3e0;
    color: #e65100;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0072d2;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,114,210,0.3);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background: #005ba3;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,114,210,0.4);
}

.back-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .header-left {
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .header-left {
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .header-left {
        gap: 10px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        position: relative;
        align-items: flex-start;
    }
    
    .header-left {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        position: relative;
        flex: 1;
        min-width: 0;
        gap: 0;
        margin-right: 0;
    }
    
    .header-left .logo {
        flex-shrink: 0;
        order: 1;
    }
    
    .header-left .search-bar {
        width: 100%;
        order: 2;
        margin-top: 15px;
        display: flex !important;
        flex-basis: 100%;
    }
    
    .header-icons {
        flex-shrink: 0;
        order: 1;
        align-self: center;
        margin-left: auto;
    }
    
    .header-top {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        position: relative;
        align-items: flex-start;
    }
    
    .header-left {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        position: relative;
    }
    
    .header-left .logo {
        flex-shrink: 0;
        order: 1;
    }
    
    .header-left .search-bar {
        width: 100%;
        order: 3;
        margin-top: 15px;
        display: flex !important;
        flex-basis: 100%;
    }
    
    .header-icons {
        flex-shrink: 0;
        order: 2;
        align-self: center;
        margin-left: auto;
        position: absolute;
        right: 0;
        top: 15px;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .header-icons .mobile-menu-toggle {
        align-self: center;
        display: flex;
        align-items: center;
    }
    
    .header-icons .header-icon {
        display: flex;
        align-items: center;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
        background: #f8f9fa;
        box-shadow: none;
        border-radius: 12px;
        padding: 0 8px;
        display: flex !important;
        align-items: center;
        z-index: 1;
        transform: none;
        opacity: 1;
        transition: all 0.3s ease;
        margin: 0;
        border: 2px solid transparent;
    }
    
    .search-bar:focus-within {
        border-color: #0072d2;
        background: white;
        box-shadow: 0 4px 12px rgba(0,114,210,0.15);
    }

    .search-bar.active {
        display: flex !important;
        transform: none;
        opacity: 1;
    }

    .search-input {
        flex: 1;
        width: 100% !important;
        padding: 12px 16px;
        border: none;
        background: transparent;
        border-radius: 0;
        font-size: 15px;
    }

    .search-input:focus {
        outline: none;
    }
    
    .search-btn {
        position: static;
        background: #0072d2;
        border: none;
        color: white;
        padding: 8px 16px;
        border-radius: 12px;
        cursor: pointer;
        transition: background 0.3s;
        font-size: 14px;
        margin-left: 8px;
    }
    
    .search-btn:hover {
        background: #005ba3;
    }

    .search-dropdown {
        display: none;
    }

    .search-btn {
        position: static;
        background: #0072d2;
        border: none;
        color: white;
        padding: 8px 16px;
        border-radius: 12px;
        cursor: pointer;
        transition: background 0.3s;
        font-size: 14px;
        margin-left: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-search-toggle {
        display: none !important;
    }

    .nav-menu-wrapper {
        position: relative;
    }
    
    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 12px 0;
        border-top: 1px solid #eee;
        gap: 5px;
        white-space: nowrap;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-scroll-btn {
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
    }
    
    .nav-scroll-btn i {
        font-size: 12px;
    }

    .nav-item {
        padding: 8px 16px;
        border-bottom: none;
        text-align: center;
        color: #333;
        font-size: 14px;
        transition: background-color 0.2s;
        white-space: nowrap;
        flex-shrink: 0;
        text-decoration: none;
    }

    .nav-item:hover {
        background-color: #f8f9fa;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

}

/* Desktop styles - hide mobile buttons on larger screens */
@media (min-width: 769px) {
    .mobile-search-toggle,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Mobile styles - show mobile buttons on smaller screens */
@media (max-width: 768px) {
    .header-icons {
        gap: 15px;
    }

    /* Скрываем только текст под иконками, не бейджи */
    .header-icon > span:not(.cart-badge):not(.favorites-badge) {
        display: none;
    }

    .header-icon i {
        font-size: 20px;
    }
    
    /* Бейджи остаются видимыми, но меньше */
    .header-icon .cart-badge,
    .header-icon .favorites-badge {
        width: 14px;
        height: 14px;
        font-size: 9px;
        top: -3px;
        right: -14px;
    }
    
    .header-icon .favorites-badge {
        right: -14px;
    }
    
    .main-slider {
        height: 200px;
        min-height: 200px;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0;
    }
    
    .slider-container {
        height: 200px;
        min-height: 200px;
    }
    
    .slider-track {
        height: 200px;
    }
    
    .slide {
        min-width: calc(50% - 10px);
        height: 200px;
        min-height: 200px;  
    }
    
    .slide-image {
        object-fit: cover;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .slide-content p {
        font-size: 12px;
    }
    
    .slider-btn {
        display: none !important;
    }
    
    .slider-btn.prev {
        display: none !important;
    }
    
    .slider-btn.next {
        display: none !important;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .header-icons {
        gap: 15px;
    }

    /* Скрываем только текст под иконками, не бейджи */
    .header-icon > span:not(.cart-badge):not(.favorites-badge) {
        display: none;
    }
    
    /* Бейджи ещё меньше на очень маленьких экранах */
    .header-icon .cart-badge,
    .header-icon .favorites-badge {
        width: 12px;
        height: 12px;
        font-size: 8px;
        top: -2px;
        right: -12px;
    }
    
    .header-icon .favorites-badge {
        right: -12px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-info {
        padding: 8px 10px !important;
    }
    
    .product-name {
        font-size: 12px !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
        min-height: 32px !important;
    }
    
    .price {
        font-size: 14px !important;
    }
    
    .original-price {
        font-size: 11px !important;
    }
    
    .discount {
        font-size: 11px !important;
    }
    
    .product-rating {
        font-size: 10px !important;
    }
    
    .product-actions {
        gap: 5px !important;
    }
    
    .btn-cart {
        font-size: 11px !important;
        padding: 6px 8px !important;
        min-height: 28px !important;
        height: 28px !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    .btn-cart i {
        margin-right: 4px !important;
    }
    
    .btn-favorite {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
    
    .main-slider {
        height: 200px;
        min-height: 200px;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0;
    }
    
    .slider-container {
        height: 200px;
        min-height: 200px;
    }
    
    .slider-track {
        height: 200px;
    }
    
    .slide {
        height: 200px;
        min-height: 200px;
    }
    
    .slide-image {
        object-fit: cover;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 375px) {
    .logo img {
        width: 100px !important;
    }
    
    .logo-image {
        width: 35px !important;
    }
    
    .header-icons {
        gap: 12px !important;
    }
    
    .header-icon img {
        width: 20px !important;
        height: 20px !important;
    }
    
    .header-icon i {
        font-size: 18px !important;
    }
    
    .btn-cart {
        font-size: 8px !important;
        padding: 4px 6px !important;
        min-height: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
    }
    
    .btn-cart i {
        margin-right: 3px !important;
    }
    
    .btn-favorite {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }
}

@media (max-width: 320px) {
    .product-info {
        padding: 6px 8px !important;
    }
    
    .product-name {
        font-size: 10px !important;
        margin-bottom: 4px !important;
        line-height: 1.2 !important;
        min-height: 24px !important;
    }
    
    .price {
        font-size: 12px !important;
    }
    
    .original-price {
        font-size: 9px !important;
    }
    
    .discount {
        font-size: 9px !important;
    }
    
    .product-rating {
        font-size: 8px !important;
    }
    
    .product-actions {
        gap: 4px !important;
    }
    
    .btn-cart {
        font-size: 8px !important;
        padding: 4px 6px !important;
        min-height: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
    }
    
    .btn-cart i {
        margin-right: 3px !important;
    }
    
    .btn-favorite {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }
    
    .products-grid {
        gap: 8px !important;
    }
    
    .section-header {
        margin-bottom: 12px;
    }
    
    .section-title {
        font-size: 16px;
    }
}

/* Footer */
.footer {
    background-color: #f0f0f0;
    color: #333;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.contact-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-info i {
    color: #007bff;
    margin-right: 10px;
    width: 16px;
}

.footer-nav,
.footer-docs {
    list-style: none;
}

.footer-nav li,
.footer-docs li {
    margin-bottom: 8px;
}

.footer-nav a,
.footer-docs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-nav a:hover,
.footer-docs a:hover {
    color: #007bff;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Document Pages */
.document-page {
    padding: 50px 0;
    min-height: calc(100vh - 200px);
}

.document-header {
    text-align: center;
    margin-bottom: 50px;
}

.document-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.document-meta {
    color: #666;
    font-size: 14px;
}

.document-meta p {
    margin-bottom: 5px;
}

.document-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.document-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.document-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-column h3 {
        border: none;
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        gap: 25px;
    }

    .document-page {
        padding: 30px 0;
    }

    .document-header h1 {
        font-size: 28px;
    }

    .document-content {
        padding: 20px;
        margin: 0 15px;
    }
}
