﻿.cart-page {
    background: #f5f6f8;
    padding: 28px;
    min-height: 70vh;
}

    .cart-page h1 {
        font-size: 34px;
        font-weight: 600;
        margin-bottom: 20px;
        color: #111827;
    }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: flex-start;
}

.cart-items {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.cart-head {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 14px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

    .cart-head a {
        color: #2563eb;
        text-decoration: none;
    }

.cart-card {
    display: grid;
    grid-template-columns: 130px 1fr 150px;
    gap: 22px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

    .cart-card:last-child {
        border-bottom: none;
    }

.cart-img-box {
    width: 130px;
    height: 130px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cart-img-box img {
        max-width: 115px;
        max-height: 115px;
        object-fit: contain;
    }

.cart-info h2 {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 8px;
    color: #111827;
}

.cart-sku {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.stock-ok {
    color: #15803d;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.qty-form {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
}

    .qty-form button {
        width: 34px;
        height: 32px;
        border: none;
        background: #f3f4f6;
        font-size: 18px;
        cursor: pointer;
    }

    .qty-form span {
        min-width: 36px;
        text-align: center;
        font-weight: 600;
    }

.remove-btn,
.save-btn {
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 14px;
    cursor: pointer;
}

.remove-btn {
    color: #dc2626;
}

.cart-price {
    text-align: right;
}

    .cart-price strong {
        font-size: 21px;
        color: #111827;
    }

    .cart-price small {
        display: block;
        color: #6b7280;
        margin-top: 6px;
    }

.cart-summary {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

    .cart-summary h2 {
        font-size: 22px;
        margin-bottom: 18px;
        color: #111827;
    }

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
}

.summary-total {
    border-bottom: none;
    font-size: 20px;
    font-weight: 700;
    margin-top: 8px;
}

.coupon-box {
    margin: 18px 0;
}

    .coupon-box label {
        font-weight: 600;
        display: block;
        margin-bottom: 8px;
    }

    .coupon-box div {
        display: flex;
        gap: 8px;
    }

    .coupon-box input {
        flex: 1;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        padding: 10px;
    }

    .coupon-box button {
        border: none;
        background: #2563eb;
        color: #fff;
        border-radius: 8px;
        padding: 0 14px;
    }
.coupon-card {
    margin: 25px 0;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
}

    .coupon-card h4 {
        margin-bottom: 14px;
        font-size: 17px;
        font-weight: 600;
        color: #222;
    }

.coupon-input {
    display: flex;
    gap: 10px;
}

    .coupon-input input {
        flex: 1;
        height: 44px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        padding: 0 14px;
        font-size: 15px;
    }

        .coupon-input input:focus {
            border-color: #2563eb;
            outline: none;
        }

    .coupon-input button {
        min-width: 120px;
        border: none;
        border-radius: 8px;
        background: #2563eb;
        color: #fff;
        font-weight: 600;
        cursor: pointer;
        transition: .2s;
    }

        .coupon-input button:hover {
            background: #1d4ed8;
        }

.coupon-message {
    margin-top: 12px;
    font-size: 14px;
    color: #15803d;
}
.checkout-btn {
    display: block;
    text-align: center;
    background: #ff8c00;
    color: #111;
    padding: 14px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 16px;
}

    .checkout-btn:hover {
        background: #f59e0b;
        color: #111;
    }

.secure-text {
    text-align: center;
    margin: 12px 0;
    color: #4b5563;
    font-size: 14px;
}

.cart-trust {
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px;
    margin-top: 14px;
}

    .cart-trust p {
        margin: 8px 0;
        font-size: 14px;
    }

.empty-cart {
    background: #fff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.empty-icon {
    font-size: 54px;
    margin-bottom: 15px;
}

.continue-btn {
    display: inline-block;
    margin-top: 15px;
    background: #2563eb;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}
.cart-item-options {
    margin-top: 6px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

    .cart-item-options strong {
        color: #111;
    }
.cart-price-breakup {
    text-align: right;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

    .cart-price-breakup div {
        margin-bottom: 4px;
    }

    .cart-price-breakup strong {
        font-size: 14px;
        font-weight: 600;
        color: #111;
    }

    .cart-price-breakup hr {
        margin: 8px 0;
        border: 0;
        border-top: 1px solid #ddd;
    }

    .cart-price-breakup div:last-child {
        font-size: 18px;
        font-weight: 700;
        color: #000;
    }

        .cart-price-breakup div:last-child strong {
            font-size: 24px;
            font-weight: 800;
            color: #001833;
        }
@media (max-width: 900px) {
    .cart-page {
        padding: 15px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-card {
        grid-template-columns: 95px 1fr;
    }

    .cart-img-box {
        width: 95px;
        height: 95px;
    }

        .cart-img-box img {
            max-width: 85px;
            max-height: 85px;
        }

    .cart-price {
        grid-column: 2;
        text-align: left;
    }

    .cart-summary {
        position: static;
    }
}
/* ==========================================
   SAVED FOR LATER
========================================== */

.saved-later-section {
    margin-top: 30px;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
}

.saved-later-head {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
    margin-bottom: 5px;
}

    .saved-later-head h2 {
        margin: 0;
        font-size: 24px;
    }

.saved-later-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

    .saved-later-card:last-child {
        border-bottom: 0;
    }

.saved-later-image {
    width: 120px;
    min-width: 120px;
    height: 120px;
}

    .saved-later-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.saved-later-info {
    flex: 1;
}

    .saved-later-info h3 {
        margin: 0 0 7px;
        font-size: 18px;
    }

.saved-later-sku {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.saved-later-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.saved-later-actions {
    display: flex;
    gap: 10px;
}

.move-cart-btn,
.remove-saved-btn {
    border: 0;
    border-radius: 6px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
}

.move-cart-btn {
    background: #1769e0;
    color: #fff;
}

.remove-saved-btn {
    background: #f1f1f1;
    color: #333;
}

@media (max-width: 600px) {
    .saved-later-section {
        padding: 15px;
    }

    .saved-later-card {
        align-items: flex-start;
    }

    .saved-later-image {
        width: 90px;
        min-width: 90px;
        height: 90px;
    }

    .saved-later-actions {
        flex-wrap: wrap;
    }
}