/* style.css */
/* === БАЗОВЫЕ СТИЛИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #FFFFFF;
    color: #2D3748;
    line-height: 1.6;
}

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

/* === ЦВЕТА === */
:root {
    --primary: #2563EB;
    --accent: #DC2626;
    --secondary: #059669;
    --background: #FFFFFF;
    --text: #1F2937;
    --light-gray: #F9FAFB;
    --border: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* === ШАПКА === */
header {
    background: var(--background);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo-nav-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.logo-nav-section .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.logo-nav-section .catalog-link-btn {
    position: relative;
    z-index: 2;
}

.header-right {
    flex: 0 0 auto;
    margin-left: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    padding: 8px 20px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    background: var(--primary);
    color: white;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Новый класс для кнопки-ссылки */
.catalog-link-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
    font-weight: 500;
}

.catalog-link-btn:hover {
    background: #1D4ED8;
    text-decoration: none;
    color: white;
}

.catalog-link-btn i {
    font-size: 1.2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.catalog-link-btn span,
.catalog-link-btn::after {
    margin: 0;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


.compare-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
}

.compare-btn i {
    font-size: 1.3rem;
}

.compare-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.header-icon {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
}

.header-icon i {
    font-size: 1.2rem;
}

.header-icon:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.header-icon span:not(#cart-count):not(#compare-count) {
    margin-left: 0;
}

.header-icon #cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    white-space: nowrap;
    line-height: 1;
}

/* === ГЕРОЙ БЛОК (для главной страницы) === */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"></polygon></svg>');
    background-size: cover;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* === УСЛУГИ (для главной страницы) === */
.services {
    padding: 5rem 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--background);
    padding: 2.2rem 1.8rem;
    border-radius: 25px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text);
    opacity: 0.8;
    line-height: 1.6;
}


.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--accent);
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* === ХЛЕБНЫЕ КРОШКИ (для страниц категорий) === */
.breadcrumbs {
    background: var(--light-gray);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #3182CE;
}

.breadcrumbs span {
    color: var(--text);
}

/* === ЗАГОЛОВОК КАТЕГОРИИ === */
.category-header {
    padding: 3rem 0 2rem;
    text-align: center;
}

.category-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.category-header p {
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* === ОСНОВНОЙ КОНТЕНТ КАТЕГОРИИ === */
.category-layout {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 2.125rem;
    padding: 1.7rem 0 3.4rem;
}

/* === ФИЛЬТРЫ === */
.filters {
    background: var(--background);
    padding: 1.7rem;
    border-radius: 21.25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky;
    top: 102px;
    font-size: 0.85rem;
}

.filters h3 {
    color: var(--primary);
    margin-bottom: 1.275rem;
    font-size: 1.19rem;
    display: flex;
    align-items: center;
    gap: 8.5px;
}

.filter-group {
    margin-bottom: 1.7rem;
    padding-bottom: 1.275rem;
    border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group h4 {
    margin-bottom: 0.85rem;
    color: var(--text);
    font-size: 0.935rem;
    display: flex;
    align-items: center;
    gap: 6.8px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8.5px;
    margin-bottom: 0.68rem;
    cursor: pointer;
    padding: 0.425rem;
    border-radius: 6.8px;
    transition: background 0.3s ease;
    font-size: 0.85rem;
}

.filter-group label:hover {
    background: var(--light-gray);
}

.price-range {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.price-range input {
    flex: 1;
    padding: 8.5px;
    border: 1px solid var(--border);
    border-radius: 6.8px;
    font-size: 0.85rem;
}

.filter-group input[type="range"] {
    width: 100%;
    height: 5.1px;
    border-radius: 8.5px;
    background: var(--border);
    outline: none;
    margin-bottom: 0.425rem;
}

.filter-group select {
    width: 100%;
    padding: 10.2px;
    border: 1px solid var(--border);
    border-radius: 10.2px;
    background: var(--background);
    font-size: 0.85rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.apply-filters {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10.2px 20.4px;
    border-radius: 10.2px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 0.85rem;
}

.apply-filters:hover {
    background: #3182CE;
    transform: translateY(-2px);
}

/* === СЕТКА ТОВАРОВ === */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.7rem;
}

.products-count {
    color: var(--text);
    font-size: 0.935rem;
}

.sort-select {
    padding: 8.5px 12.75px;
    border: 1px solid var(--border);
    border-radius: 6.8px;
    background: var(--background);
    font-size: 0.85rem;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1.7rem;
    align-items: stretch;
}

.product-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 0.9rem;
}

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

/* Верхняя часть - белая, для изображения */
.product-image {
    background: #FFFFFF;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #FFFFFF;
}

/* Иконка в правом верхнем углу - кнопка "Добавить в сравнение" */
.product-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.product-icon::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M4 6h2v12H4zm4 0h2v12H8zm4 0h2v12h-2zm4 0h2v12h-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-icon:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.product-icon:active::before {
    transform: scale(0.95);
}

/* Tooltip для кнопки сравнения */
.product-icon::after {
    content: 'Добавить в сравнение';
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.75rem;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-5px);
    z-index: 1000;
}

.product-icon:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация при добавлении */
.product-icon.adding {
    animation: comparePulse 0.3s ease;
}

@keyframes comparePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.product-icon.adding::before {
    opacity: 1;
}

/* Нижняя часть - светло-серая, для информации */
.product-info {
    background: #F5F5F5;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

/* Название товара */
.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.3;
    font-weight: 500;
    flex-shrink: 0;
}

.product-title-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.product-title-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Модель/артикул */
.product-model {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-shrink: 0;
}

/* Теги/метки (R32, мощность) */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.product-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border: 1px solid #DDD;
    border-radius: 4px;
    background: #FFFFFF;
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Цена */
.product-price-section {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.price-label {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.25rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.product-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    opacity: 0.7;
    font-weight: 500;
}

.promotion-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.product-price-section .product-price {
    color: var(--accent);
}


/* Кнопка "Получить условия" */
.product-description {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.8;
    line-height: 1.5;
    margin: 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-action-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    line-height: 1.5;
    min-height: 2.5rem;
}

.product-action-link:hover {
    color: #3182CE;
    text-decoration: underline;
}

.product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.5rem;
}

.product-add-to-cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    min-height: 2.5rem;
    line-height: 1.5;
}

.product-add-to-cart-btn:hover:not(:disabled) {
    background: #3182CE;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.product-add-to-cart-btn:disabled {
    background: var(--light-gray);
    color: var(--text);
    opacity: 0.5;
    cursor: not-allowed;
}

.product-add-to-cart-btn.adding {
    background: var(--secondary);
    transform: scale(0.95);
}

.product-add-to-cart-btn i {
    font-size: 1rem;
}

.buy-btn {
    background: linear-gradient(135deg, var(--accent), #F56565);
    color: white;
    border: none;
    padding: 11.9px 17px;
    width: 100%;
    border-radius: 12.75px;
    cursor: pointer;
    font-size: 0.935rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6.8px;
    box-shadow: 0 3.4px 12.75px rgba(252, 129, 129, 0.3);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 129, 129, 0.4);
}

/* === ПОДВАЛ === */
footer {
    background: var(--background);
    color: var(--text);
    padding: 3rem 0 1.5rem 10px;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.75rem;
    color: var(--text);
    opacity: 0.8;
    transition: opacity 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section p:hover {
    opacity: 1;
}

.footer-section a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1024px) {
    .category-layout {
        display: flex;
        flex-direction: column;
        gap: 1.7rem;
        padding: 1.7rem 0 3.4rem;
    }
    
    .filters {
        position: static;
        order: 1;
        padding: 1.7rem;
    }
    
    .category-layout > main {
        order: 2;
    }
    
    .products-grid {
        order: 1;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 968px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .logo-nav-section {
        flex: 0 0 auto;
    }

    .logo-nav-section .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.2rem;
        padding: 6px 16px;
    }

    .header-right {
        flex: 0 0 auto;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.25rem;
        padding: 0 10px;
        position: relative;
    }

    .logo-nav-section {
        order: 1;
        flex: 0 0 auto;
        justify-content: flex-start;
        gap: 0.25rem;
        min-width: 0;
    }

    .logo-nav-section .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1rem;
        padding: 6px 10px;
        white-space: nowrap;
        z-index: 1;
    }

    .logo {
        margin: 0;
        font-size: 1rem;
        padding: 6px 10px;
        white-space: nowrap;
    }

    .catalog-link-btn {
        padding: 0;
        min-width: 40px;
        max-width: 40px;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        font-size: 0;
        flex-shrink: 0;
        position: relative;
    }

    .catalog-link-btn > *:not(i) {
        display: none !important;
    }

    .catalog-link-btn i {
        font-size: 1.2rem !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .header-right {
        order: 2;
        flex-direction: row;
        gap: 0.25rem;
        flex: 0 0 auto;
        flex-shrink: 0;
    }

    .header-icon {
        padding: 8px;
        min-width: 40px;
        max-width: 40px;
        justify-content: center;
        flex-shrink: 0;
    }

    .header-icon i {
        font-size: 1.2rem;
    }

    .header-icon span:not(#cart-count):not(#compare-count) {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin: 0.5rem 0;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .product-add-to-cart-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .product-action-link {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }

    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

}

@media (max-width: 480px) {
    .header-content {
        padding: 0 5px;
        gap: 0.15rem;
    }

    .logo-nav-section .logo {
        font-size: 0.9rem;
        padding: 5px 8px;
    }

    .logo {
        font-size: 0.9rem;
        padding: 5px 8px;
    }

    .header-icon {
        padding: 6px;
        min-width: 36px;
        max-width: 36px;
    }

    .header-icon i {
        font-size: 1rem;
    }

    .catalog-link-btn {
        padding: 0;
        min-width: 36px;
        max-width: 36px;
        width: 36px;
        height: 36px;
        justify-content: center;
        align-items: center;
        display: flex;
        position: relative;
    }

    .catalog-link-btn > *:not(i) {
        display: none !important;
    }

    .catalog-link-btn i {
        font-size: 1rem !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 1.8rem;
    }

    .category-header h1 {
        font-size: 2rem;
    }
}


/* Добавьте в конец файла style.css */

/* Стиль для кнопки-ссылки каталога */
.catalog-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    gap: 10px;
    box-shadow: var(--shadow);
}

.catalog-btn:hover {
    background: #3182CE;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.catalog-btn i {
    font-size: 1.3rem;
}

/* === КОРЗИНА === */
.cart-btn {
    position: relative;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
}

.cart-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.cart-btn i {
    font-size: 1.3rem;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(252, 129, 129, 0.4);
    white-space: nowrap;
    line-height: 1;
}

/* Уведомление о добавлении в корзину */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.cart-notification::before {
    content: '✓';
    background: white;
    color: var(--primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

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

.cart-header {
    margin-bottom: 2rem;
}

.cart-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light-gray);
    border-radius: 25px;
    margin: 2rem 0;
}

.cart-empty i {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.cart-empty h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.cart-empty p {
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 2rem;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--light-gray), #E2E8F0);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--primary);
    font-weight: 600;
    overflow: hidden;
    padding: 0.5rem;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 10px;
}

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

.cart-item-info h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.cart-item-image-link {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

.cart-item-image-link:hover {
    transform: scale(1.05);
}

.cart-item-title-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.cart-item-title-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.cart-item-sku {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-brand {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.cart-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem;
}

.quantity-btn {
    background: var(--light-gray);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--text);
}

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

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.remove-item-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-item-btn:hover {
    background: var(--accent);
    color: white;
}

.cart-summary {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 120px;
}

.cart-summary h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.summary-label {
    color: var(--text);
    opacity: 0.8;
}

.summary-value {
    font-weight: 600;
    color: var(--text);
}

.summary-total {
    font-size: 1.3rem;
    color: var(--accent);
}

.summary-total .summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), #F56565);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(252, 129, 129, 0.3);
    margin-bottom: 1rem;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 129, 129, 0.4);
}

.continue-shopping-btn {
    width: 100%;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 14px 24px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.continue-shopping-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1.2rem;
}

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

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

@media (max-width: 968px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-controls {
        align-items: center;
        width: 100%;
    }
}

/* === СРАВНЕНИЕ ТОВАРОВ === */
.compare-btn {
    position: relative;
}

#compare-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(252, 129, 129, 0.4);
    white-space: nowrap;
    line-height: 1;
}

.compare-product-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.product-info .buy-btn,
.product-info .compare-product-btn {
    margin-top: 0;
    flex-shrink: 0;
}

.product-info > .buy-btn:first-of-type {
    margin-top: auto;
}

.product-info > .compare-product-btn {
    margin-top: 0.5rem;
}

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

.compare-product-btn.added {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.compare-product-btn.added:hover {
    background: #48BB78;
    border-color: #48BB78;
}

.compare-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), #3182CE);
    color: white;
    padding: 18px 28px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.compare-notification.warning {
    background: linear-gradient(135deg, #F6AD55, #ED8936);
}

.compare-notification i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.compare-notification.success i {
    color: rgba(255, 255, 255, 0.95);
}

.compare-notification.warning i {
    color: rgba(255, 255, 255, 0.95);
}

/* Страница сравнения */
.compare-page {
    padding: 3rem 0;
    min-height: 60vh;
}

.compare-header {
    margin-bottom: 3rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1), rgba(104, 211, 145, 0.1));
    border-radius: 25px;
    border: 1px solid var(--border);
}

.compare-header h1 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.compare-header p {
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.8;
}

.compare-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--light-gray), #E2E8F0);
    border-radius: 30px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border: 2px dashed var(--border);
}

.compare-empty i {
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 2rem;
    display: block;
}

.compare-empty h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
}

.compare-empty p {
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.compare-table {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
}


.compare-row {
    display: grid;
    grid-template-columns: 220px repeat(auto-fill, minmax(280px, 1fr));
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* Обеспечиваем правильное отображение до 4 товаров */
.compare-table[data-items="1"] .compare-row {
    grid-template-columns: 220px minmax(280px, 1fr);
}

.compare-table[data-items="2"] .compare-row {
    grid-template-columns: 220px repeat(2, minmax(280px, 1fr));
}

.compare-table[data-items="3"] .compare-row {
    grid-template-columns: 220px repeat(3, minmax(280px, 1fr));
}

.compare-table[data-items="4"] .compare-row {
    grid-template-columns: 220px repeat(4, minmax(250px, 1fr));
}

/* Обеспечиваем горизонтальную прокрутку для 4 товаров на средних экранах */
@media (max-width: 1400px) {
    .compare-table[data-items="4"] {
        overflow-x: auto;
    }
    
    .compare-table[data-items="4"] .compare-row {
        min-width: 1400px;
    }
}


.compare-row:last-child {
    border-bottom: none;
}

.compare-header-row {
    background: #f1f5f9;
    color: var(--text);
    border-bottom: 3px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.compare-cell {
    padding: 1.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: all 0.3s ease;
}

.compare-cell:last-child {
    border-right: none;
}

.compare-label-cell {
    background: linear-gradient(135deg, var(--light-gray), #F0F4F8);
    font-weight: 600;
    color: var(--text);
    justify-content: flex-start;
    text-align: left;
    font-size: 0.95rem;
    position: sticky;
    left: 0;
    z-index: 20;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.compare-header-row .compare-label-cell {
    background: transparent;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
}

.compare-product-cell {
    flex-direction: column;
    align-items: center;
    padding: 1.8rem 1.2rem;
    position: relative;
    background: white;
    transition: all 0.3s ease;
    overflow: visible;
}


.compare-product {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-height: 320px;
    justify-content: flex-start;
}

.remove-compare-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    z-index: 1;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(252, 129, 129, 0.4);
}

.remove-compare-btn:hover {
    background: #F56565;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(252, 129, 129, 0.6);
}

.compare-product-header {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.compare-product-image-small {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(135deg, var(--light-gray), #E2E8F0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0.3rem;
}

.compare-product-image-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 8px;
}


.compare-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.compare-product-title {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
    text-align: center;
    line-height: 1.4;
    font-weight: 600;
    min-height: 4.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    word-wrap: break-word;
    hyphens: auto;
}

.compare-product-sku {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
}

.compare-product-brand {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.8rem;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 20px;
}

.compare-product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
    text-shadow: 0 2px 4px rgba(252, 129, 129, 0.2);
}

.compare-buy-btn {
    width: 100%;
    max-width: 220px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(252, 129, 129, 0.3);
}

.compare-buy-btn:hover {
    box-shadow: 0 8px 25px rgba(252, 129, 129, 0.4);
}

.compare-value-cell {
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.compare-actions-container {
    background: linear-gradient(135deg, var(--light-gray), #F0F4F8);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.compare-actions-row {
    display: none;
}

.compare-actions-cell {
    display: none;
}

.clear-compare-btn {
    background: linear-gradient(135deg, var(--accent), #F56565);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(252, 129, 129, 0.3);
}

.clear-compare-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(252, 129, 129, 0.5);
}

@media (max-width: 1024px) {
    .compare-row {
        grid-template-columns: 150px repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .compare-table[data-items="4"] .compare-row {
        grid-template-columns: 150px repeat(4, minmax(200px, 1fr));
        min-width: 950px;
    }
    
    .compare-table[data-items="3"] .compare-row {
        grid-template-columns: 150px repeat(3, minmax(200px, 1fr));
    }
    
    .compare-table[data-items="2"] .compare-row {
        grid-template-columns: 150px repeat(2, minmax(200px, 1fr));
    }
    
    .compare-table[data-items="1"] .compare-row {
        grid-template-columns: 150px minmax(200px, 1fr);
    }
}

@media (max-width: 768px) {
    .compare-page {
        padding: 1.5rem 0;
    }

    .compare-header {
        margin-bottom: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .compare-header h1 {
        font-size: 1.8rem;
    }

    .compare-header p {
        font-size: 1rem;
    }

    .container {
        padding: 0 10px;
    }

    .compare-table {
        border-radius: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }

    .compare-row {
        display: grid;
        grid-template-columns: 120px repeat(auto-fit, minmax(180px, 1fr));
        min-width: max-content;
    }

    .compare-header-row {
        display: grid;
        grid-template-columns: 120px repeat(auto-fit, minmax(180px, 1fr));
        min-width: max-content;
    }
    
    .compare-cell {
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 1rem 0.75rem;
        min-width: 180px;
    }
    
    .compare-label-cell {
        background: linear-gradient(135deg, var(--light-gray), #F0F4F8);
        font-weight: 600;
        padding: 0.75rem;
        font-size: 0.85rem;
        position: sticky;
        left: 0;
        z-index: 20;
        min-width: 120px;
        max-width: 120px;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    }

    .compare-actions-container {
        position: sticky;
        bottom: 0;
        z-index: 100;
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .compare-header-row .compare-label-cell {
        background: #f1f5f9;
        font-weight: 700;
        font-size: 1rem;
    }
    
    .compare-product-cell {
        border-bottom: 1px solid var(--border);
        padding: 1rem 0.75rem;
        min-width: 180px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .compare-product {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        min-height: 280px;
    }
    
    .compare-product-header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .compare-product-image-small {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 1rem;
    }
    
    .compare-product-title {
        font-size: 0.85rem;
        text-align: center;
        min-height: 2.5em;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .compare-product-brand {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .compare-product-price {
        font-size: 1.4rem;
    }

    .compare-buy-btn {
        max-width: 100%;
        font-size: 0.9rem;
        padding: 10px 16px;
    }

    .compare-value-cell {
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .compare-actions-container {
        position: sticky;
        bottom: 0;
        z-index: 100;
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .compare-page {
        padding: 1rem 0;
    }

    .compare-header {
        margin-bottom: 1rem;
        padding: 1rem 0.75rem;
        border-radius: 15px;
    }

    .compare-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .compare-header p {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 5px;
    }

    .compare-cell {
        padding: 0.75rem 0.5rem;
    }

    .compare-label-cell {
        padding: 0.6rem;
        font-size: 0.85rem;
        z-index: 20;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    }

    .compare-actions-container {
        position: sticky;
        bottom: 0;
        z-index: 100;
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .compare-product-cell {
        padding: 0.75rem 0.5rem;
    }

    .compare-product-image-small {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 0.9rem;
    }

    .compare-product-title {
        font-size: 0.8rem;
    }

    .compare-product-brand {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .compare-product-price {
        font-size: 1.2rem;
    }

    .compare-buy-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .compare-value-cell {
        font-size: 0.85rem;
    }

    .compare-empty {
        padding: 2rem 0.75rem;
    }

    .compare-empty i {
        font-size: 3rem;
    }

    .compare-empty h2 {
        font-size: 1.2rem;
    }

    .compare-empty p {
        font-size: 0.9rem;
    }

    .compare-empty {
        padding: 3rem 1rem;
        margin: 1rem 0;
    }

    .compare-empty i {
        font-size: 4rem;
        margin-bottom: 1rem;
    }

    .compare-empty h2 {
        font-size: 1.5rem;
    }

    .compare-empty p {
        font-size: 1rem;
    }
}