/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

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

/* Шапка сайта */
.header {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

/* Корзина в шапке */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.cart-btn:hover,
.cart-btn.active {
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

.cart-btn.active {
    color: #007bff;
}

.cart-icon {
    width: 24px;
    height: 24px;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.2s ease;
    border: 2px solid white;
}

.cart-count.show {
    transform: scale(1);
    opacity: 1;
}



/* Основной контент */
.main {
    min-height: calc(100vh - 140px);
    padding: 10px 0;
}

/* Секции */
section {
    margin-bottom: 60px;
}

section h1, section h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 32px;
    text-align: center;
}



/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 250px);
    gap: 30px;
    justify-content: center;
}

.product-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 250px;
    height: 350px;
    display: flex;
    flex-direction: column;
}

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

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    flex-shrink: 0;
}

.product-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-info > div:first-child {
    flex: 1;
    min-height: 0;
}

.product-info h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-info p {
    color: #6c757d;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    height: 34px;
    text-overflow: ellipsis;
}

.product-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.price-and-category {
    flex: 1;
}

/* Кнопка добавления в корзину */
.add-to-cart-btn {
    background: #28a745;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    flex-shrink: 0;
}

.add-to-cart-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn svg {
    width: 18px;
    height: 18px;
}

.add-to-cart-btn.added {
    background: #dc3545;
}

.add-to-cart-btn.added:hover {
    background: #c82333;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Страница корзины */
.cart-page {
    padding: 1.5rem 0;
    min-height: 60vh;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cart-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.clear-cart-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: #f56565;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-cart-btn:hover {
    background: #e53e3e;
}

.clear-cart-btn svg {
    width: 14px;
    height: 14px;
}

.cart-content {
    max-width: 600px;
    margin: 0 auto;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #f7fafc;
    border-radius: 0.5rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.cart-empty h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.cart-items {
    width: 100%;
}

.cart-list {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto auto;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.cart-item-header {
    display: contents;
}

.quantity-controls {
    display: contents;
}

.cart-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 0.375rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.item-info {
    flex: 1;
    min-width: 0;
}

.item-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.125rem;
    line-height: 1.3;
}

.item-price {
    color: #718096;
    font-size: 0.8rem;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-self: end;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #cbd5e0;
    background: white;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4a5568;
}

.quantity-btn:hover {
    border-color: #a0aec0;
    background: #f7fafc;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity {
    font-weight: 600;
    color: #2d3748;
    min-width: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
}

.item-total {
    font-weight: 700;
    color: #38a169;
    font-size: 1.125rem;
    min-width: 70px;
    text-align: right;
    justify-self: end;
}

.remove-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #feb2b2;
    background: #fed7d7;
    color: #e53e3e;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    justify-self: end;
}

.remove-btn:hover {
    background: #fbb6ce;
    border-color: #f56565;
}

.remove-btn svg {
    width: 12px;
    height: 12px;
}

.cart-summary {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.summary-label {
    color: #718096;
    font-weight: 500;
    font-size: 0.9rem;
}

.summary-row.total .summary-label {
    color: #2d3748;
    font-weight: 600;
}

.summary-value {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.summary-row.total .summary-value {
    color: #38a169;
    font-weight: 700;
    font-size: 1.125rem;
}

.checkout-btn {
    width: 100%;
    background: #38a169;
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn:hover {
    background: #2f855a;
}

.checkout-btn svg {
    width: 16px;
    height: 16px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
}

.category {
    color: #495057;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Современная страница товара 2025 */
.product-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: calc(100vh - 200px);
    padding: 0 0 80px;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 8px;
}

.breadcrumb-modern a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-modern a:hover {
    color: #2c3e50;
}

.breadcrumb-modern .separator {
    color: #dee2e6;
    font-weight: 300;
}

.breadcrumb-modern .current {
    color: #2c3e50;
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-hero {
    display: flex;
    gap: 0;
    max-width: 1024px;
    margin: 0 auto;
    align-items: flex-start;
    height: 500px;
}

/* Медиа блок */
.product-media {
    position: sticky;
    top: 40px;
    width: 500px;
    flex-shrink: 0;
}

.main-image-container {
    position: relative;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 500px;
    height: 500px;
    flex-shrink: 0;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.main-image-container:hover .main-product-image {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #2c3e50;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.thumbnail-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thumbnail-btn {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-btn:hover {
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.thumbnail-btn.active {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.no-image-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    color: #6c757d;
    text-align: center;
}

.no-image-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Детали товара */
.product-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    height: 500px;
    background: #f8f9fa;
    border-radius: 0 16px 16px 0;
}

.product-details .product-header {
    flex-shrink: 0;
}

.product-details .description-section {
    flex: 1;
    min-height: 0;
}

.product-details .price-container {
    flex-shrink: 0;
}

.product-header {
    margin-bottom: 16px;
}

.category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(44, 62, 80, 0.08);
    color: #2c3e50;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 16px;
    margin-bottom: 12px;
}

.product-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.02em;
}

.description-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 16px 0 40px 0;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    min-height: 200px;
}

.description-title {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.product-description {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    min-height: 150px;
}



.product-description::-webkit-scrollbar {
    width: 4px;
}

.product-description::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.product-description::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.product-description::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.product-description p {
    font-size: 16px;
    line-height: 1.5;
    color: #4a5568;
    margin: 0;
    font-weight: 400;
    white-space: pre-wrap;
}

.price-container {
    margin: 0;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-main {
    font-size: 32px;
    font-weight: 800;
    color: #28a745;
    margin: 0;
}



.btn-add-to-cart-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.btn-add-to-cart-modern:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.btn-add-to-cart-modern:active {
    transform: translateY(0);
}

.btn-add-to-cart-modern svg {
    width: 20px;
    height: 20px;
}

.btn-add-to-cart-modern span {
    position: relative;
    z-index: 1;
}



/* Модальное окно для изображения */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close:hover {
    opacity: 0.7;
}



/* Страница категории */
.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-description {
    color: #6c757d;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-category {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

/* Футер */
.footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .categories-nav-list {
        gap: 20px;
    }

    .category-nav-item {
        padding: 6px 12px;
        font-size: 14px;
    }

    .product-hero {
        flex-direction: column;
        gap: 24px;
        max-width: none;
        padding: 0 20px;
        height: auto;
    }

    .product-media {
        position: static;
        width: 100%;
    }

    .main-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        border-radius: 16px 16px 0 0;
        margin-bottom: 0;
    }

    .product-details {
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 24px;
        border-radius: 0 0 16px 16px;
        margin-top: 0;
    }

    .main-product-image {
        height: 100%;
    }

    .product-title {
        font-size: 28px;
    }

    .price-main {
        font-size: 24px;
    }

    .breadcrumb-modern {
        margin-bottom: 12px;
        max-width: none;
        padding: 5px 20px 0 20px;
    }
    
    .thumbnail-btn {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }
    
    .thumbnail-grid {
        gap: 6px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, 250px);
        justify-content: center;
        gap: 20px;
    }

    section h1, section h2 {
        font-size: 24px;
    }

    .product-page {
        padding: 0 0 40px;
    }

    .product-details {
        padding: 24px;
        margin-top: 16px;
    }

    .product-title {
        font-size: 28px;
    }

    .product-description p {
        font-size: 16px;
    }

    .breadcrumb-modern {
        font-size: 13px;
        gap: 10px;
        margin-bottom: 12px;
        padding: 8px 20px 0 20px;
    }

    .price-main {
        font-size: 28px;
    }

    .description-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .description-section {
        margin: 12px 0 20px 0;
        padding-bottom: 20px;
    }

    .price-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }



    
    .thumbnail-btn {
        width: 50px;
        height: 50px;
    }

    /* Корзина на мобильных */
    .cart-page {
        padding: 1rem 0;
    }
    
    .cart-content {
        max-width: none;
    }
    
    .cart-item {
        display: grid;
        grid-template-columns: 50px 1fr auto auto auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0.5rem 0.75rem;
        padding: 0.875rem;
    }
    
    .cart-item-header {
        display: contents;
    }
    
    .item-image {
        width: 50px;
        height: 50px;
        grid-row: 1 / 3;
    }
    
    .item-info {
        grid-column: 2;
        grid-row: 1 / 3;
        min-width: 0;
    }
    
    .item-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.125rem;
        line-height: 1.2;
    }
    
    .item-price {
        color: #718096;
        font-size: 0.75rem;
    }
    
    .item-total {
        font-size: 1.125rem;
        font-weight: 700;
        color: #38a169;
        text-align: right;
        white-space: nowrap;
        grid-column: 5;
        grid-row: 1;
    }
    
    .item-controls {
        grid-column: 3 / 6;
        grid-row: 2;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 0.25rem;
    }
    
    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-width: 1.5px;
    }
    
    .quantity-btn svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.5;
    }
    
    .quantity {
        font-size: 0.9rem;
        min-width: 1.5rem;
        font-weight: 700;
    }
    
    .remove-btn {
        width: 22px;
        height: 22px;
    }
    
    .remove-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .cart-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .cart-header h1 {
        font-size: 1.5rem;
    }
}

/* Средние мобильные экраны */
@media (max-width: 600px) {
    .breadcrumb-modern {
        font-size: 12px;
        gap: 8px;
        padding: 6px 18px 0 18px;
    }

    .breadcrumb-modern a {
        max-width: 100px;
    }

    .breadcrumb-modern .current {
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .categories-nav-list {
        gap: 15px;
    }

    .logo a {
        font-size: 20px;
        gap: 6px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .category-nav-item {
        padding: 5px 10px;
        font-size: 13px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .product-card {
        width: 100%;
        height: 280px;
        font-size: 0.85rem;
    }
    
    .product-card-image img {
        height: 140px;
        object-fit: cover;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .product-info p {
        font-size: 11px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }
    
    .price {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .add-to-cart-btn {
        width: 28px;
        height: 28px;
    }
    
    .add-to-cart-btn svg {
        width: 14px;
        height: 14px;
    }
    
    /* Страница товара на очень маленьких экранах */
    .breadcrumb-modern {
        font-size: 12px;
        gap: 8px;
        margin-bottom: 8px;
        padding: 8px 16px 0 16px;
        flex-wrap: wrap;
    }

    .breadcrumb-modern a,
    .breadcrumb-modern .current {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }

    .breadcrumb-modern .separator {
        flex-shrink: 0;
    }

    .product-hero {
        padding: 0 16px;
        gap: 0;
    }

    .main-image-container {
        border-radius: 16px 16px 0 0;
        margin-bottom: 0;
    }

    .product-details {
        padding: 20px;
        margin-top: 0;
        border-radius: 0 0 16px 16px;
    }

    .product-title {
        font-size: 22px;
        line-height: 1.2;
    }
    
    .price-main {
        font-size: 22px;
    }
    
    .product-description p {
        font-size: 14px;
        line-height: 1.5;
    }

    .description-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .description-section {
        margin: 10px 0 16px 0;
        padding-bottom: 16px;
    }

    .price-container {
        margin: 16px 0;
        padding-top: 16px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .btn-add-to-cart-modern {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .btn-add-to-cart-modern svg {
        width: 18px;
        height: 18px;
    }
    
    .thumbnail-btn {
        width: 40px;
        height: 40px;
    }

    .product-page {
        padding: 0 0 32px;
    }
}

/* Уведомления */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    background: #10b981;
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: auto;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.notification-text {
    font-weight: 500;
    font-size: 14px;
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification-warning {
    background: #f59e0b;
}

/* Мобильная адаптация уведомлений */
@media (max-width: 768px) {
    .notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification.hide {
        transform: translateY(-100px);
    }
}

/* Страница О нас */
.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

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

.service-icon {
    color: #667eea;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card li {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-card li:before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.service-card li:last-child {
    margin-bottom: 0;
}

/* Секция стоимости */
.pricing-section {
    margin-bottom: 60px;
}

.pricing-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.pricing-icon {
    color: #667eea;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.pricing-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.pricing-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 8px;
}

.pricing-card p:last-child {
    margin-bottom: 0;
}

/* Секция преимуществ */
.advantages-section {
    margin-bottom: 60px;
}

.advantages-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.advantage-item svg {
    color: #667eea;
    flex-shrink: 0;
}

.advantage-item span {
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

/* Секция контактов */
.contact-cta {
    text-align: center;
    padding: 50px 30px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    background: #fff;
}

.contact-cta h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 600;
    color: #2c3e50;
}

.whatsapp-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.whatsapp-contact svg {
    color: #25d366;
    flex-shrink: 0;
}

.phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-number:hover {
    color: #25d366;
    transform: scale(1.05);
}

.contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #6c757d;
}

.cta-text {
    font-size: 1.2rem;
    margin-top: 20px;
    color: #2c3e50;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Мобильная адаптация для страницы О нас */
@media (max-width: 768px) {
    .about-page {
        padding: 20px 10px;
    }
    
    .about-header h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .pricing-section h2,
    .advantages-section h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .advantage-item {
        padding: 15px;
    }
    
    .contact-cta {
        padding: 40px 20px;
    }
    
    .contact-cta h3 {
        font-size: 1.6rem;
    }
    
    .whatsapp-contact {
        flex-direction: column;
        gap: 8px;
    }
    
    .phone-number {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
}

/* Страница контактов */
.contacts-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
}

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

.contacts-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 700;
}

.contacts-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

.contacts-content {
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-info p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

.contacts-cta {
    text-align: center;
    background-color: #f8f9fa;
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.contacts-cta h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Мобильная адаптация для контактов */
@media (max-width: 768px) {
    .contacts-page {
        padding: 20px 0;
    }
    
    .contacts-header h1 {
        font-size: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 25px 0;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .contacts-cta {
        padding: 25px 15px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Планшеты */
@media (max-width: 1024px) and (min-width: 769px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
        max-width: 900px !important;
        padding: 10px !important;
    }
    
    .category-info h3 {
        font-size: 0.95rem !important;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    /* Убираем горизонтальный скролл */
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
    }
    

    
    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px 0;
    }
    
    .burger-menu span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform-origin: center;
    }
    
    .burger-menu:hover span {
        background-color: #007bff;
    }
    
    .burger-menu.active span:first-child {
        transform: translateY(8px) rotate(45deg);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .burger-menu.active span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .mobile-cart-header {
        position: relative;
    }
    
    /* Мобильное боковое меню */
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .mobile-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100%;
        background: white;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .mobile-sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
    }
    
    .mobile-sidebar-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #333;
    }
    
    .mobile-sidebar-close {
        background: none;
        border: none;
        cursor: pointer;
        color: #666;
        padding: 4px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
    
    .mobile-sidebar-close:hover {
        background-color: #e9ecef;
    }
    
    .mobile-sidebar-nav {
        padding: 1rem 0;
    }
    
    .mobile-sidebar-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
    }
    
    .mobile-sidebar-link:hover,
    .mobile-sidebar-link.active {
        background-color: #f8f9fa;
        color: #007bff;
        border-left-color: #007bff;
    }
    

    
    /* Показываем мобильные контролы */
    .mobile-header-controls {
        display: flex !important;
        align-items: center;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Убираем отступы контейнера на мобильных */
    .container {
        padding: 0 20px;
    }
    
    /* Скрываем десктопную навигацию */
    .desktop-nav {
        display: none !important;
    }
    
    /* Мобильная навигация на мобильных */
    .mobile-nav {
        display: flex !important;
    }
    
    /* Отступ снизу для мобильной навигации */
    .main {
        padding-bottom: 80px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
        margin-bottom: 20px !important;
    }
    
    .category-card {
        aspect-ratio: 1;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .category-info {
        padding: 10px;
    }
    
    .category-info h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    /* Скрываем футер в мобильной версии */
    .footer {
        display: none !important;
    }
    
    .page-header {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
}

/* Мобильные контролы скрыты на десктопе */
.mobile-header-controls {
    display: none;
}

/* Десктопная навигация */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* На больших экранах показываем десктопную навигацию и скрываем мобильные контролы */
@media (min-width: 769px) {
    .desktop-nav {
        display: flex !important;
    }
    
    .mobile-header-controls {
        display: none !important;
    }
    
    .mobile-nav {
        display: none !important;
    }
    
    .mobile-sidebar {
        display: none !important;
    }
    
    .mobile-sidebar-overlay {
        display: none !important;
    }
}



/* Мобильная навигация */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    min-width: 60px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: #007bff;
}

.mobile-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-cart-count {
    position: absolute;
    top: -2px;
    right: 8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-cart-count.show {
    transform: scale(1);
    opacity: 1;
}

/* Страница категорий */
.page-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.page-header p {
    font-size: 1rem;
    color: #666;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 1;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

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

.category-placeholder {
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-info {
    padding: 12px;
    text-align: center;
    background: white;
}

.category-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.2;
}

 