* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Montserrat', sans-serif;
            scroll-behavior: smooth;
        }

        :root {
            --bg-main: #ffffff;
            --bg-section: #f8f9fa;
            --card-bg: #ffffff;
            --accent-orange: #e06a3b;
            --accent-pink: #ff2e93;
            --text-main: #131622;
            --text-muted: #5a6075;
            --border-color: rgba(0, 0, 0, 0.08);
            --gradient-primary: linear-gradient(135deg, #e06a3b 0%, #ff2e93 100%);
        }

        body {
            background-color: var(--bg-main);
            color: var(--text-main);
            overflow-x: hidden;
            padding-top: 80px;
        }

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


        /* --- УВЕДОМЛЕНИЕ О ЗАКАЗЕ --- */
        .cart-notice {
            background: rgba(224, 106, 59, 0.05);
            border-left: 4px solid var(--accent-orange);
            padding: 20px;
            border-radius: 12px;
            font-size: 14px;
            line-height: 1.6;
            color: var(--text-main);
            margin-bottom: 40px;
        }

        .cart-notice a {
            color: var(--accent-pink);
            text-decoration: none;
            font-weight: 700;
        }

        .cart-notice a:hover {
            text-decoration: underline;
        }

        /* --- ЛЕЙАУТ КОРЗИНЫ --- */
        .cart-layout {
            display: grid;
            grid-template-columns: 1.3fr 0.7fr;
            gap: 40px;
            align-items: start;
        }

        /* --- СПИСОК ТОВАРОВ --- */
        .cart-items-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .cart-item {
            position: relative;
            display: flex;
            align-items: center;
            background: #ffffff;
            border: 1px solid var(--border-color);
            padding: 20px;
            padding-right: 45px; /* Запас под кнопку удаления */
            border-radius: 16px;
            gap: 20px;
            transition: border-color 0.2s ease;
        }

        .cart-item-img {
            width: 90px;
            height: 90px;
            border-radius: 12px;
            background: #fafafa;
            border: 1px solid var(--border-color);
            object-fit: cover;
            flex-shrink: 0;
        }

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

        .cart-item-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 6px;
            color: var(--text-main);
        }

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

        /* Управление количеством */
        .cart-item-qty {
            display: flex;
            align-items: center;
            gap: 12px;
            border: 1px solid var(--border-color);
            padding: 6px 12px;
            border-radius: 8px;
            background: #f8f9fa;
        }

        .qty-btn {
            background: none;
            border: none;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-main);
            cursor: pointer;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
        }

        .qty-val {
            font-size: 14px;
            font-weight: 700;
            min-width: 20px;
            text-align: center;
        }

        .cart-item-price {
            font-size: 18px;
            font-weight: 800;
            color: var(--text-main);
            min-width: 110px;
            text-align: right;
        }

        /* Кнопка удаления товара */
        .cart-item-remove {
            position: absolute;
            top: 15px;
            right: 15px;
        }

        .remove-item {
            background: none;
            border: none;
            font-size: 18px;
            color: #a0a5b5;
            cursor: pointer;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .remove-item:hover {
            color: var(--accent-pink);
            background: rgba(255, 46, 147, 0.1);
        }

        /* Общая строчка под списком */
        .cart-list-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            font-size: 15px;
            font-weight: 700;
            margin-top: 20px;
        }

        /* --- РАСЧЕТ И ОПЛАТА (SIDEBAR) --- */
        .cart-sidebar {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .sidebar-block {
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.01);
        }

        .sidebar-block h3 {
            font-size: 18px;
            font-weight: 800;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 12px;
        }

        /* Опрос */
        .survey-box {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #f1f3f5;
            padding: 12px 16px;
            border-radius: 10px;
            margin-bottom: 20px;
            font-size: 13px;
            font-weight: 600;
        }

        .survey-box input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--accent-orange);
            flex-shrink: 0;
        }

        .survey-box a {
            color: var(--accent-pink);
            text-decoration: none;
        }

        /* Строки скидок */
        .calc-line {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            margin-bottom: 12px;
            color: var(--text-muted);
        }

        .calc-line.total-line {
            border-top: 1px solid var(--border-color);
            padding-top: 15px;
            margin-top: 15px;
            font-size: 18px;
            font-weight: 800;
            color: var(--text-main);
        }

        /* Способы оплаты */
        .payment-methods {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .payment-option {
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .payment-option:hover {
            border-color: var(--accent-orange);
            background: rgba(224, 106, 59, 0.02);
        }

        .payment-option input[type="radio"] {
            width: 18px;
            height: 18px;
            accent-color: var(--accent-orange);
            cursor: pointer;
            flex-shrink: 0;
        }

        .payment-text {
            display: flex;
            flex-direction: column;
            font-size: 14px;
            font-weight: 600;
        }

        .payment-text span {
            font-size: 11px;
            color: var(--text-muted);
            font-weight: 500;
            margin-top: 2px;
        }

        /* Кнопка заказа */
        .btn-checkout {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 16px;
            border-radius: 12px;
            background: var(--gradient-primary);
            color: white;
            border: none;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(224, 106, 59, 0.15);
            transition: all 0.3s ease;
            text-decoration: none;
            margin-top: 20px;
        }

        .btn-checkout:hover {
            box-shadow: 0 6px 18px rgba(224, 106, 59, 0.3);
            transform: translateY(-2px);
        }
        /* ===================================================
           АДАПТИВНАЯ ВЕРСТКА (MEDIA QUERIES)
           =================================================== */

        /* Планшеты и небольшие ноутбуки (до 992px) */
        @media (max-width: 992px) {
            .cart-layout {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            .cart-sidebar {
                gap: 20px;
            }
        }

        /* Мобильные устройства (до 768px) */
        @media (max-width: 768px) {
            body {
                padding-top: 70px;
            }
            .cart-notice {
                padding: 15px;
                font-size: 13px;
                margin-bottom: 25px;
            }
            .container {
                padding: 0 15px;
            }
        }

        /* Маленькие смартфоны (до 576px) */
        @media (max-width: 576px) {
            /* Оформление карточки товара в компактную сетку */
            .cart-item {
                display: grid;
                grid-template-columns: 75px 1fr;
                gap: 12px;
                padding: 15px;
                padding-right: 35px; /* Сохраняем место для крестика */
            }

            .cart-item-img {
                width: 75px;
                height: 75px;
                grid-row: span 2;
            }

            .cart-item-info {
                grid-column: 2;
            }

            .cart-item-title {
                font-size: 14px;
                line-height: 1.3;
            }

            .cart-item-meta {
                font-size: 12px;
            }

            .cart-item-qty {
                grid-column: 2;
                justify-self: start;
                padding: 4px 8px;
            }

            .cart-item-price {
                grid-column: 1 / -1;
                text-align: right;
                width: 100%;
                border-top: 1px dashed var(--border-color);
                padding-top: 10px;
                margin-top: 4px;
                font-size: 16px;
            }

            .cart-list-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                padding: 15px;
                font-size: 14px;
            }

            .sidebar-block {
                padding: 20px 16px;
                border-radius: 16px;
            }

            .survey-box {
                font-size: 12px;
                padding: 10px;
                gap: 8px;
            }

            .calc-line {
                font-size: 13px;
            }

            .calc-line.total-line {
                font-size: 16px;
            }

            .payment-option {
                padding: 12px;
            }

            .payment-text {
                font-size: 13px;
            }
        }

        /* Узкие экраны (до 380px) */
        @media (max-width: 380px) {
            .cart-item {
                grid-template-columns: 1fr;
                text-align: center;
                justify-items: center;
                padding-right: 15px;
                padding-top: 35px; /* Кнопка удаления уходит наверх */
                gap: 5px;
            }

            .cart-item-img {
                grid-row: auto;
                width: 90px;
                height: 90px;
            }

            .cart-item-info, 
            .cart-item-qty {
                grid-column: auto;
            }

            .cart-item-price {
                text-align: center;
            }

            .cart-item-remove {
                top: 10px;
                right: 10px;
            }
        }

        /* Блок контактов вместо кнопки */
.contact-block {
    margin-top: 20px;
}

.contact-block h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.contact-list li svg {
    flex-shrink: 0;
    color: var(--accent-orange);
}

.contact-list a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-list a:hover {
    color: var(--accent-pink);
}
/* --- СТИЛИ ДЛЯ КНОПОК СВЯЗИ В КОРЗИНЕ --- */
.contact-block {
    margin-top: 25px;
}



/* Базовый стиль кнопки-ссылки */
.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.btn-contact svg {
    flex-shrink: 0;
}

/* WhatsApp (Зеленый) */
.btn-whatsapp {
    background-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* Telegram (Синий) */
.btn-telegram {
    background-color: #24A1DE;
}

.btn-telegram:hover {
    background-color: #1d8ec5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(36, 161, 222, 0.35);
}

/* Телефон и Email (Нейтральный светлый стиль) */
.btn-phone, .btn-email {
    background-color: #f1f3f5;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
}

.btn-phone:hover, .btn-email:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}