/*cart.css*/
    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .cart-page .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .cart-page .header {
        margin-bottom: 48px;
        animation: slideDown 0.8s ease;
        position: relative;
        padding-bottom: 9px;
        /* border-bottom: 3px solid transparent; */
        background: linear-gradient(135deg, #FF9800 0%, #E91E63 100%);
        border-image: linear-gradient(90deg, #F97316, #FB923C, transparent) 1;
        padding: 11px 12px;
        border-radius: 17px;
        display: flex;
        justify-content: space-between;
        margin-top: 33px;

    }

    @keyframes slideDown {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .cart-page .header h1 {
        /* font-family: 'Bebas Neue', sans-serif; */
        font-size: 38px;
        letter-spacing: 0px;
        color: #fff;
        margin-bottom: -5px;
        text-transform: uppercase;
    }


    .cart-page .header p {
        color: #fff;
        font-size: 15px;
        margin-bottom: 0;
        padding-top: 8px;
    }

    .cart-page .header h1 i {
        font-size: 26px;
    }

    .cart-page .cart-layout {
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 32px;
        animation: slideUp 0.8s ease 0.2s both;
    }

    @keyframes slideUp {
        from {
            transform: translateY(30px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

/* ═══════════════════════════════════════════════════════════════
   CART PAGE — UPGRADED STYLES
   ═══════════════════════════════════════════════════════════════ */

.cart-page .header {
    margin-bottom: 36px;
}

.cart-page .header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.cart-page .header h1 i {
    color: #F97316;
    margin-right: 10px;
}

.cart-page .header p {
    font-size: 15px;
    color: #64748B;
    margin: 0;
}

.cart-page .cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 991px) {
    .cart-page .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Cart Items Container ─────────────────────────────────────── */
.cart-page .cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Individual Cart Item ─────────────────────────────────────── */
.cart-page .cart-item {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    gap: 20px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    animation: cartItemIn 0.4s ease backwards;
    border: 1.5px solid #F1F5F9;
    position: relative;
    overflow: hidden;
}

.cart-page .cart-item:nth-child(1) { animation-delay: 0.05s; }
.cart-page .cart-item:nth-child(2) { animation-delay: 0.10s; }
.cart-page .cart-item:nth-child(3) { animation-delay: 0.15s; }
.cart-page .cart-item:nth-child(4) { animation-delay: 0.20s; }
.cart-page .cart-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes cartItemIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Left accent bar on hover */
.cart-page .cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #F97316 0%, #FDBA74 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.cart-page .cart-item:hover::before {
    transform: scaleY(1);
}

.cart-page .cart-item:hover {
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.10), 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-2px);
    border-color: #FED7AA;
}

/* ── Item Image ───────────────────────────────────────────────── */
.cart-page .item-image {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1.5px solid #F1F5F9;
    background: #F8FAFC;
}

.cart-page .item-image svg {
    width: 48px;
    height: 48px;
    fill: #CBD5E1;
}

/* ── Item Details ─────────────────────────────────────────────── */
.cart-page .item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.cart-page .item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cart-page .item-name {
    font-size: 18px;
    font-weight: 800;
    color: #dde7ff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.cart-page .item-category {
    font-size: 13px;
    color: #94A3B8;
    letter-spacing: 0.3px;
}

/* ── Price ────────────────────────────────────────────────────── */
.cart-page .item-price {
    font-size: 26px;
    font-weight: 700;
    color: #F97316;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Item Actions Row ─────────────────────────────────────────── */
.cart-page .item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Quantity Control ─────────────────────────────────────────── */
.cart-page .quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 50px;
    overflow: hidden;
    height: 38px;
}

.cart-page .quantity-btn {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 18px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.cart-page .quantity-btn:hover {
    background: #FED7AA;
    color: #C2410C;
}

.cart-page .quantity-btn:active {
    background: #FDBA74;
}

.cart-page .quantity {
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    min-width: 28px;
    text-align: center;
}

/* ── Action Buttons (Save / Remove) ──────────────────────────── */
.cart-page .item-actions-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cart-page .action-btn,
.cart-page .remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 50px;
    border: 1.5px solid;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.cart-page .action-btn {
    background: transparent;
    border-color: #E2E8F0;
    color: #475569;
}

.cart-page .action-btn:hover {
    background: #FEF3C7;
    border-color: #FCD34D;
    color: #92400E;
    transform: translateY(-1px);
}

.cart-page .remove-btn {
    background: transparent;
    border-color: #FEE2E2;
    color: #EF4444;
}

.cart-page .remove-btn:hover {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #B91C1C;
    transform: translateY(-1px);
}

.cart-page .remove-btn:active,
.cart-page .action-btn:active {
    transform: scale(0.97);
}

/* ── Responsive helpers ───────────────────────────────────────── */
.cart-page .desktop-hide { display: none; }
.cart-page .mobile-hide  { display: inline-flex; }

@media (max-width: 576px) {
    .cart-page .cart-item {
        flex-direction: column;
        padding: 16px;
    }

    .cart-page .item-image {
        width: 80px;
        height: 80px;
    }

    .cart-page .item-name {
        font-size: 15px;
        max-width: 100%;
    }

    .cart-page .item-price {
        font-size: 22px;
    }

    .cart-page .desktop-hide { display: inline-flex; }
    .cart-page .mobile-hide  { display: none; }

    .cart-page .item-actions {
        flex-wrap: nowrap;
        gap: 8px;
    }
}

/* ── Checkout Card ────────────────────────────────────────────── */
.cart-page .checkout-section {
    position: sticky;
    top: 24px;
    background: transparent;
}

.cart-page .checkout-card {
    position: relative;
    overflow: hidden;

    padding: 28px;
    border-radius: 20px;

    background: transparent !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* subtle cosmic glow */
.cart-page .checkout-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.05),
        rgba(139, 92, 246, 0.04),
        rgba(6, 182, 212, 0.04)
    );

    pointer-events: none;
}

/* Header */
.cart-page .checkout-header {
    position: relative;
    z-index: 1;

    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;

    margin-bottom: 24px;
    padding-bottom: 16px;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Rows */
.cart-page .price-row {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 0;
}

.cart-page .price-label {
    font-size: 13px;
    color: #b0b7c2;
    letter-spacing: 0.02em;
}

.cart-page .price-value {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
}

/* Divider */
.cart-page .divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 12px 0;
}

/* Total Row */
.cart-page .total-row {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 0 20px;
}

.cart-page .total-label {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.cart-page .total-value {
    font-size: 24px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: -0.5px;

    text-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* Discount */
.cart-page .discount-row .price-value {
    color: #22c55e;
    font-weight: 700;
}

/* optional hover */
.cart-page .checkout-card:hover {
    transform: translateY(-3px);
    transition: all 0.3s ease;

    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.24),
        0 0 18px rgba(56, 189, 248, 0.10);
}

/* ── Coupon / Promo ───────────────────────────────────────────── */
.cart-page .promo-section {
    margin-bottom: 20px;
}

.cart-page .promo-input-group {
    display: flex;
    gap: 8px;
}

.cart-page .promo-input {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 14px;
    color: #0F172A;
    background: #F8FAFC;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-page .promo-input:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
    background: #fff;
}

.cart-page .promo-input::placeholder {
    color: #94A3B8;
}

.cart-page .apply-btn {
    height: 42px;
    padding: 0 18px;
    background: #0F172A;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.cart-page .apply-btn:hover  { background: #1E293B; transform: translateY(-1px); }
.cart-page .apply-btn:active { background: #0F172A; transform: scale(0.97); }

/* ── Checkout Button ──────────────────────────────────────────── */
.cart-page .checkout-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 16px;
    display: block;
}

.cart-page .checkout-btn:hover:not(.disabled) {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249,115,22,0.35);
}

.cart-page .checkout-btn:active:not(.disabled) {
    transform: scale(0.98);
    box-shadow: none;
}

.cart-page .checkout-btn.disabled,
.cart-page .checkout-btn:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

/* ── Secure Badge ─────────────────────────────────────────────── */
.cart-page .secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #94A3B8;
}

.cart-page .secure-badge svg {
    width: 14px;
    height: 14px;
    fill: #94A3B8;
}

/* ── Empty Cart ───────────────────────────────────────────────── */
.cart-page .empty-cart {
    text-align: center;
    padding: 64px 32px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(100,160,255,0.1);
    border-radius: 16px;
}

.cart-page .empty-cart-icon {
    width: 80px; height: 80px;
    background: rgba(79,143,255,0.1);
    border: 1px solid rgba(100,160,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cart-page .empty-cart-icon svg {
    width: 36px; height: 36px;
    fill: #6fb3ff;
}

.cart-page .empty-cart h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #c8d8f0;
    margin-bottom: 8px;
}

.cart-page .empty-cart p {
    font-size: 14px;
    color: #5a7099;
    margin-bottom: 24px;
}
/* ── Stock Status ─────────────────────────────────────────────── */
.stock-status              { font-weight: 600; font-size: 12px; }
.stock-status.in-stock     { color: #16A34A; }
.stock-status.out-of-stock { color: #DC2626; }

/* ── Section Titles (Related / Recent) ───────────────────────── */
.cart-page .section-title,
.recent-order-products .section-title,
.related-products .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F1F5F9;
    position: relative;
}

.cart-page .section-title::after,
.recent-order-products .section-title::after,
.related-products .section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #F97316, #FDBA74);
}

/* ── Recent Empty State ───────────────────────────────────────── */
.cart-page .recent-empty {
    text-align: center;
    padding: 40px 24px;
    background: #F8FAFC;
    border-radius: 16px;
    border: 1.5px dashed #E2E8F0;
}

.cart-page .recent-empty-icon {
    width: 56px;
    height: 56px;
    background: #F1F5F9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.cart-page .recent-empty-icon svg {
    width: 26px;
    height: 26px;
    fill: #94A3B8;
}

.cart-page .recent-empty h3 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.cart-page .recent-empty p {
    font-size: 13px;
    color: #94A3B8;
    margin: 0;
}

/* ── Slide-out animation ──────────────────────────────────────── */
@keyframes slideOut {
    to { transform: translateX(60px); opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

    .cart-page .quantity-btn {
        background: #FFFFFF;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 18px;
        font-weight: 600;
        color: #0F172A;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .cart-page .quantity-btn:hover {
        background: linear-gradient(135deg, #F97316, #FB923C);
        color: white;
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    }

    .cart-page .quantity-btn:active {
        transform: scale(0.95);
    }

    .cart-page .quantity {
        font-size: 18px;
        font-weight: 600;
        min-width: 30px;
        text-align: center;
    }

    .item-actions-buttons .action-btn,
    .cart-page .remove-btn {
        background: linear-gradient(135deg, #FF9800 0%, #E91E63 100%);
        color: #fff;
        padding: 5px;
        border: 1px solid #000;
        border-radius: 10px;
    }

    .item-actions-buttons .action-btn {
        background: linear-gradient(135deg, #006700 0%, green 100%);
        color: #fff;
        padding: 5px;
        border: 1px solid #000;
        border-radius: 10px;
    }

    .item-actions-buttons .action-btn:hover {
        background: red;
    }

    /* .cart-page .remove-btn {
                background: linear-gradient(135deg, #FF9800 0%, #E91E63 100%);
            border: none;
            cursor: pointer;
            font-size: 14px;
            text-decoration: underline;
            transition: color 0.2s ease;
            font-weight: 500;
            padding: 4px 8px;
            border-radius: 6px;
            transition: all 0.2s ease;
            color: #fff;
            padding: 5px;
            border: 1px solid #000;
            border-radius: 10px;
        } */

    .cart-page .remove-btn:hover {
        /* color: #EF4444; */
        background: red;
    }

    /* Right Side - Checkout */
    .cart-page .checkout-section {
        position: sticky;
        top: 40px;
        height: fit-content;
    }

    .cart-page .checkout-card {
        background: #FFFFFF;
        border-radius: 20px;
        padding: 32px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        animation: slideLeft 0.8s ease 0.4s both;
    }

    @keyframes slideLeft {
        from {
            transform: translateX(30px);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .cart-page .checkout-header {
        /* font-family: 'Bebas Neue', sans-serif; */
        font-size: 32px;
        letter-spacing: 1px;
        margin-bottom: 24px;
        text-transform: uppercase;
        border-bottom: 2px solid #E2E8F0;
        padding-bottom: 16px;
    }

    .cart-page .price-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .cart-page .price-label {
        color: #cad0da;
        font-size: 15px;
    }

.cart-page .price-value {
    font-size: 14px;
    font-weight: 600;
    color: #a8c4f0;
}

    .cart-page .divider {
        height: 1px;
        background: #E2E8F0;
        margin: 20px 0;
    }

    .cart-page .total-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .cart-page .total-label {
        /* font-family: 'Bebas Neue', sans-serif; */
        font-size: 24px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .cart-page .total-value {
        /* font-family: 'Bebas Neue', sans-serif; */
        font-size: 36px;
        color: #F97316;
        letter-spacing: 1px;
    }

    .cart-page .promo-section {
        margin-bottom: 24px;
    }

    .cart-page .promo-input-group {
        display: flex;
        gap: 8px;
    }

    .cart-page .promo-input {
        flex: 1;
        padding: 14px 16px;
        border: 2px solid #E2E8F0;
        border-radius: 12px;
        font-size: 15px;
        font-family: 'Karla', sans-serif;
        transition: all 0.3s ease;
        background: #F8FAFC;
    }

    .cart-page .promo-input:focus {
        outline: none;
        border-color: #F97316;
        background: #FFFFFF;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
    }

    .cart-page .apply-btn {
        padding: 14px 24px;
        background: #0F172A;
        color: white;
        border: none;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .cart-page .apply-btn:hover {
        background: linear-gradient(135deg, #F97316, #FB923C);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.25);
    }

    .cart-page .checkout-btn {
        width: 100%;
        padding: 18px;
        background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.25);
    }

    .cart-page .checkout-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .cart-page .checkout-btn:hover::before {
        left: 100%;
    }

    .cart-page .checkout-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(249, 115, 22, 0.35);
    }

    .cart-page .checkout-btn:active {
        transform: translateY(-1px);
    }

    .cart-page .secure-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
        color: #64748B;
        font-size: 13px;
    }

    .cart-page .secure-badge svg {
        width: 16px;
        height: 16px;
        fill: #10B981;
    }

    /* Modal Styles */
    .cart-page .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(12px);
        z-index: 1000;
        animation: fadeIn 0.3s ease;
    }

    .cart-page .modal-overlay.active {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .cart-page .modal {
        background: #FFFFFF;
        border-radius: 24px;
        width: 100%;
        max-width: 700px;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
        animation: modalSlideUp 0.4s ease;
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    @keyframes modalSlideUp {
        from {
            transform: translateY(50px) scale(0.95);
            opacity: 0;
        }

        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }

    .cart-page .modal-header {
        padding: 32px 32px 24px;
        border-bottom: 2px solid #E2E8F0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-page .modal-title {
        /* font-family: 'Bebas Neue', sans-serif; */
        font-size: 36px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #0F172A;
    }

    .cart-page .modal-close {
        background: none;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        color: #64748B;
        font-size: 28px;
        line-height: 1;
        hover-opacity: 0.8;
    }

    .cart-page .modal-close:hover {
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(251, 146, 60, 0.15));
        color: #F97316;
        transform: rotate(90deg) scale(1.1);
    }

    .cart-page .modal-body {
        padding: 32px;
    }

    .cart-page .address-section {
        margin-bottom: 32px;
    }

    .cart-page .section-title {
        font-size: 18px;
        font-weight: 600;
        color: #0F172A;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .cart-page .section-title svg {
        width: 20px;
        height: 20px;
        fill: #F97316;
    }

    .cart-page .saved-addresses {
        display: grid;
        gap: 16px;
        margin-bottom: 24px;
    }

.cart-page .address-card {
    position: relative;
    cursor: pointer;

    padding: 20px;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.05);

    transition: all 0.3s ease;
    overflow: hidden;
}

/* subtle glow overlay */
.cart-page .address-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.04),
        rgba(139, 92, 246, 0.03),
        rgba(6, 182, 212, 0.03)
    );

    pointer-events: none;
}

/* Hover */
.cart-page .address-card:hover {
    transform: translateY(-4px);

    border-color: rgba(56, 189, 248, 0.35);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.24),
        0 0 16px rgba(56, 189, 248, 0.12);
}
/* Selected address card */
.cart-page .address-card.selected {
    position: relative;
    border: 1.5px solid rgba(56, 189, 248, 0.5);

    background: linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.08) 0%,
        rgba(139, 92, 246, 0.06) 100%
    );

    box-shadow:
        0 0 18px rgba(56, 189, 248, 0.14),
        inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* Selected checkmark badge */
.cart-page .address-card.selected::after {
    content: '✓';
    position: absolute;

    /* moved from top-right */
    bottom: 14px;
    left: 14px;

    width: 34px;
    height: 34px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    font-weight: 700;
    color: #fff;

    background: linear-gradient(
        135deg,
        #38bdf8 0%,
        #8b5cf6 100%
    );

    border: 2px solid rgba(255,255,255,0.15);

    box-shadow:
        0 0 18px rgba(56, 189, 248, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.25);

    z-index: 5;
}

 /* ═══════════════════════════════════════════════════════════════
   CART PAGE — ADDRESS, MODAL & EMPTY STATES — SPACE THEME
   ═══════════════════════════════════════════════════════════════ */

/* ── Address Label ────────────────────────────────────────────── */
.cart-page .address-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cart-page .address-type {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: #c8d8f0;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.cart-page .address-badge {
    background: rgba(79, 143, 255, 0.12);
    color: #6fb3ff;
    border: 1px solid rgba(79, 143, 255, 0.28);
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.cart-page .address-details {
    color: #4e6a9a;
    font-size: 12px;
    line-height: 1.7;
}

/* ── Add New Address Button ───────────────────────────────────── */
.cart-page .add-new-address {
    border: 1px dashed rgba(79, 143, 255, 0.28);
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    cursor: pointer;
    background: transparent;
    width: 100%;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
    position: relative;
    overflow: hidden;
}

.cart-page .add-new-address::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 143, 255, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-page .add-new-address:hover {
    border-color: rgba(79, 143, 255, 0.5);
    background: rgba(79, 143, 255, 0.05);
    transform: translateY(-2px);
}

.cart-page .add-new-address:hover::before { opacity: 1; }

.cart-page .add-new-address svg {
    width: 36px;
    height: 36px;
    fill: #4f8fff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.cart-page .add-new-text {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: #c8d8f0;
    margin-bottom: 3px;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.cart-page .add-new-subtext {
    font-size: 11px;
    color: #3a5070;
    position: relative;
    z-index: 1;
}

/* ── Form Group ───────────────────────────────────────────────── */
.cart-page .form-group { margin-bottom: 16px; }

.cart-page .form-label {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4f8fff;
    margin-bottom: 6px;
}

.cart-page .form-input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(79, 143, 255, 0.06);
    border: 1px solid rgba(79, 143, 255, 0.2);
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Space Mono', monospace;
    color: #c8d8f0;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.cart-page .form-input::placeholder { color: #2a3a55; }

.cart-page .form-input:focus {
    border-color: rgba(79, 143, 255, 0.45);
    background: rgba(79, 143, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(79, 143, 255, 0.1);
}

.cart-page .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Address Form (hidden/shown) ──────────────────────────────── */
.cart-page .address-form {
    display: none;
    animation: slideDown 0.3s ease;
    background: rgba(79, 143, 255, 0.04);
    border: 1px solid rgba(79, 143, 255, 0.14);
    border-radius: 10px;
    padding: 14px;
    margin-top: 8px;
}

.cart-page .address-form.active { display: block; }

/* ── Modal Footer ─────────────────────────────────────────────── */
.cart-page .modal-footer {
    padding: 16px 24px 22px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(79, 143, 255, 0.12);
}

/* ── Buttons ──────────────────────────────────────────────────── */
.cart-page .btn-secondary {
    flex: 1;
    padding: 13px;
    background: rgba(255, 255, 255, 0.04);
    color: #7a9ac0;
    border: 1px solid rgba(79, 143, 255, 0.18);
    border-radius: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.cart-page .btn-secondary:hover {
    background: rgba(79, 143, 255, 0.1);
    color: #a8c4ff;
    transform: translateY(-1px);
}

.cart-page .btn-primary {
    flex: 2;
    padding: 13px;
    background: rgba(79, 143, 255, 0.14);
    color: #a8d0ff;
    border: 1px solid rgba(79, 143, 255, 0.35);
    border-radius: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

/* shimmer sweep on primary */
.cart-page .btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    transition: left 0.5s ease;
}

.cart-page .btn-primary:hover::before { left: 100%; }

.cart-page .btn-primary:hover {
    background: rgba(79, 143, 255, 0.24);
    color: #c8e4ff;
    transform: translateY(-1px);
}

.cart-page .btn-primary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* ── Item Price ───────────────────────────────────────────────── */
.cart-page .item-price {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #6fb3ff;
    letter-spacing: 0.02em;
    position: relative;
}

.cart-page .item-price::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, #4f8fff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-page .cart-item:hover .item-price::after { opacity: 1; }

/* ── Empty Cart ───────────────────────────────────────────────── */
.cart-page .empty-cart {
    text-align: center;
    padding: 60px 40px;
    background: #0f1628;
    border: 1px solid rgba(79, 143, 255, 0.15);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* top glow */
.cart-page .empty-cart::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f8fff, #9b6dff, transparent);
}

/* nebula bg */
.cart-page .empty-cart::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%,   rgba(79, 143, 255, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(155, 109, 255, 0.04) 0%, transparent 55%);
    pointer-events: none;
}

.cart-page .empty-cart > * { position: relative; z-index: 1; }

.cart-page .empty-cart-icon {
    width: 88px;
    height: 88px;
    background: rgba(79, 143, 255, 0.1);
    border: 1px solid rgba(79, 143, 255, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.4s ease;
}

.cart-page .empty-cart-icon svg {
    width: 40px;
    height: 40px;
    fill: #4f8fff;
}

.cart-page .empty-cart h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #e8f0ff;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.cart-page .empty-cart p {
    color: #4e6a9a;
    font-size: 13px;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* ── Recent Empty State ───────────────────────────────────────── */
.recent-empty {
    text-align: center;
    padding: 44px 28px;
    background: #0f1628;
    border: 1px solid rgba(79, 143, 255, 0.15);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

/* top glow bar */
.recent-empty::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f8fff, #9b6dff, transparent);
}

/* nebula wash */
.recent-empty::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 143, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.recent-empty > * { position: relative; z-index: 1; }

.recent-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 143, 255, 0.1);
    border: 1px solid rgba(79, 143, 255, 0.22);
    animation: scaleIn 0.4s ease;
}

.recent-empty-icon svg {
    width: 36px;
    height: 36px;
    fill: #4f8fff;
}

.recent-empty h3 {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #e8f0ff;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.recent-empty p {
    color: #4e6a9a;
    font-size: 12px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.recent-empty-cta {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(79, 143, 255, 0.12);
    color: #6fb3ff;
    border: 1px solid rgba(79, 143, 255, 0.3);
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.recent-empty-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transition: left 0.5s ease;
}

.recent-empty-cta:hover::before { left: 100%; }

.recent-empty-cta:hover {
    background: rgba(79, 143, 255, 0.22);
    color: #a8d0ff;
    transform: translateY(-2px);
}

/* ── Pulse Keyframe ───────────────────────────────────────────── */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

    /* Smooth scrollbar */
    .cart-page .modal::-webkit-scrollbar {
        width: 8px;
    }

    .cart-page .modal::-webkit-scrollbar-track {
        background: #F8FAFC;
        border-radius: 10px;
    }

    .cart-page .modal::-webkit-scrollbar-thumb {
        background: #E2E8F0;
        border-radius: 10px;
        transition: background 0.3s ease;
    }

    .cart-page .modal::-webkit-scrollbar-thumb:hover {
        background: #F97316;
    }

    .cartitemsection {
        height: 542px;
        overflow-y: scroll;
    }
    .product-section .btn-add-cart-2 {
        background: #d84315;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        font-weight: bold;
        width: 100%;
        margin-bottom: 10px;
        transition: all 0.3s ease;
    }
    
    .mobile-hide{
        display: inline-block;
    }
    .desktop-hide{
        display: none;
    }
    
    /* Enhanced Responsive Design */
    @media (max-width: 1200px) {
        
        .cart-page .container {
            max-width: 100%;
            padding: 30px 15px;
        }
        
        .cart-page .cart-layout {
            grid-template-columns: 1fr 380px;
            gap: 24px;
        }
        
        .cart-page .checkout-card {
            padding: 24px;
        }
    }

    @media (max-width: 1024px) {
        .cart-page .cart-layout {
            grid-template-columns: 1fr;
            gap: 32px;
        }

        .cart-page .checkout-section {
            position: static;
            order: -1;
        }
        
        .cart-page .checkout-card {
            max-width: 500px;
            margin: 0 auto;
        }
        
        .cartitemsection {
            height: auto;
            max-height: 600px;
        }
        
        .cart-page .cart-item {
            padding: 20px;
        }
        
        .cart-page .item-image {
            width: 100px;
            height: 100px;
        }
        
        .cart-page .item-image svg {
            width: 50px;
            height: 50px;
        }
    }
    
    @media (max-width: 768px) {
        .mobile-hide{
            display: none;
        }
        .desktop-hide{
            display: inline-block;
        }
        
        .cart-page .cart-layout {
            display: block;
        }
        
        .cart-page .container {
            padding: 20px 10px;
        }
        
        .cart-page .header {
            display: block;
            padding: 8px 10px;
            margin-top: 20px;
            margin-bottom: 30px;
        }
        
        .cart-page .header h1 {
            font-size: 24px;
            margin-bottom: 5px;
        }
        
        .cart-page .header p {
            font-size: 14px;
            padding-top: 4px;
        }
        
        .cart-page .header h1 i {
            font-size: 20px;
        }
        
        .cartitemsection {
            height: auto;
            max-height: 70vh;
            margin-bottom: 20px;
        }
        
        .cart-page .cart-item {
            padding: 16px;
            gap: 16px;
        }
        
        .cart-page .item-image {
            width: 80px;
            height: 80px;
            flex-shrink: 0;
        }
        
        .cart-page .item-image svg {
            width: 40px;
            height: 40px;
        }
    }
    
    @media (max-width: 640px) {
        
        .cart-page .header h1 {
            font-size: 22px;
        }
        
        .cart-page .header p {
            font-size: 13px;
        }

        .cart-page .cart-item {
            flex-direction: row;
            text-align: left;
            padding: 12px;
            gap: 12px;
            align-items: flex-start;
        }
        
        .cart-page .item-image {
            width: 80px;
            height: 80px;
            margin: 0;
            flex-shrink: 0;
        }
        
        .cart-page .item-details {
            flex: 1;
            min-width: 0;
        }

        .cart-page .item-header {
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
            gap: 4px;
            margin-bottom: 8px;
        }
        
        .cart-page .item-name {
            font-size: 15px;
            margin-bottom: 2px;
            line-height: 1.3;
        }
        
        .cart-page .item-category {
            font-size: 11px;
            line-height: 1.2;
        }
        
        .cart-page .item-price {
            font-size: 18px;
            margin-top: 4px;
        }

        .cart-page .item-actions {
            flex-direction: row;
            gap: 8px;
            align-items: center;
            justify-content: space-between;
            margin-top: 8px;
        }
        
        .cart-page .quantity-control {
            width: auto;
            flex-shrink: 0;
            gap: 8px;
            padding: 4px 8px;
        }
        
        .cart-page .quantity-btn {
            width: 28px;
            height: 28px;
            font-size: 14px;
        }
        
        .cart-page .quantity {
            font-size: 14px;
            min-width: 25px;
        }
        
        .item-actions-buttons {
            display: flex;
            gap: 6px;
            flex-shrink: 0;
        }
        
        .item-actions-buttons .mobile-hide {
            flex: none;
            width: 32px;
            height: 32px;
            padding: 0;
            font-size: 14px;
            text-align: center;
            display: none;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            min-width: auto;
        }
        
        .item-actions-buttons .desktop-hide {
            flex: 1;
            padding: 6px 8px;
            font-size: 11px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            min-width: auto;
            gap: 4px;
        }
        
        /* Hide text in buttons, show only icons */
        .item-actions-buttons .action-btn i,
        .cart-page .remove-btn i {
            margin: 0;
        }
        
        .item-actions-buttons .action-btn {
            background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
        }
        
        .item-actions-buttons .action-btn:hover {
            background: linear-gradient(135deg, #059669 0%, #10B981 100%);
        }

        .cart-page .modal {
            border-radius: 16px;
            margin: 10px;
        }

        .cart-page .modal-header {
            padding: 20px 16px 12px;
        }

        .cart-page .modal-title {
            font-size: 22px;
        }

        .cart-page .modal-body {
            padding: 16px;
        }

        .cart-page .form-row {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .cart-page .modal-footer {
            flex-direction: column;
            padding: 12px 16px 20px;
            gap: 10px;
        }
        
        .cart-page .btn-secondary,
        .cart-page .btn-primary {
            padding: 14px;
            font-size: 14px;
        }
        
        /* Related products mobile */
        #relatedProductsContainer .col-12 {
            flex: 0 0 100%;
            max-width: 100%;
        }
        
        .product-card {
            max-width: 280px;
            margin: 0 auto;
        }
    }
    
    @media (max-width: 480px) {
        .cart-page .container {
            padding: 15px 8px;
        }
        
        .cart-page .header {
            padding: 6px 8px;
            margin-bottom: 25px;
        }
        
        .cart-page .header h1 {
            font-size: 20px;
        }
        
        .cart-page .header h1 i {
            font-size: 18px;
        }
        
        .cart-page .cart-item {
            padding: 10px;
            gap: 10px;
        }
        
        .cart-page .item-image {
            width: 70px;
            height: 70px;
        }
        
        .cart-page .item-name {
            font-size: 14px;
        }
        
        .cart-page .item-category {
            font-size: 10px;
        }
        
        .cart-page .item-price {
            font-size: 16px;
        }
        
        .cart-page .quantity-control {
            gap: 6px;
            padding: 3px 6px;
        }
        
        .cart-page .quantity-btn {
            width: 26px;
            height: 26px;
            font-size: 12px;
        }
        
        .cart-page .quantity {
            font-size: 13px;
            min-width: 20px;
        }
        
        .item-actions-buttons .action-btn,
        .cart-page .remove-btn {
            width: 28px;
            height: 28px;
            font-size: 12px;
        }
        
        .cart-page .checkout-card {
            padding: 16px;
        }
        
        .cart-page .checkout-header {
            font-size: 20px;
        }
        
        .cart-page .total-label {
            font-size: 18px;
        }
        
        .cart-page .total-value {
            font-size: 24px;
        }
        
        .cart-page .checkout-btn {
            padding: 14px;
            font-size: 15px;
        }
    }
    
    @media (max-width: 360px) {
        .cart-page .container {
            padding: 10px 5px;
        }
        
        .cart-page .header {
            padding: 5px 6px;
        }
        
        .cart-page .header h1 {
            font-size: 18px;
        }
        
        .cart-page .cart-item {
            padding: 8px;
            gap: 8px;
        }
        
        .cart-page .item-image {
            width: 60px;
            height: 60px;
        }
        
        .cart-page .item-name {
            font-size: 13px;
        }
        
        .cart-page .item-price {
            font-size: 15px;
        }
        
        .item-actions-buttons .action-btn,
        .cart-page .remove-btn {
            width: 26px;
            height: 26px;
            font-size: 11px;
        }
        
        .cart-page .checkout-card {
            padding: 12px;
        }
        
        .cart-page .quantity-control {
            gap: 4px;
            padding: 2px 4px;
        }
        
        .cart-page .quantity-btn {
            width: 24px;
            height: 24px;
            font-size: 11px;
        }
        
        .cart-page .quantity {
            font-size: 12px;
            min-width: 18px;
        }
        
    }

    @keyframes slideOut {
        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }
    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }
    .stock-status {
        font-weight: 600;
        font-size: 12px;
    }
    .stock-status.in-stock {
        color: #10B981;
    }
    .stock-status.out-of-stock {
        color: #EF4444;
    }
    button.checkout-btn.disabled {
        background: #c5c5c5;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .cart-page .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .cart-page .header {
        margin-bottom: 48px;
        animation: slideDown 0.8s ease;
        position: relative;
        padding-bottom: 9px;
        /* border-bottom: 3px solid transparent; */
        background: linear-gradient(135deg, #FF9800 0%, #E91E63 100%);
        border-image: linear-gradient(90deg, #F97316, #FB923C, transparent) 1;
        padding: 11px 12px;
        border-radius: 17px;
        display: flex;
        justify-content: space-between;
        margin-top: 33px;

    }

    @keyframes slideDown {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .cart-page .header h1 {
        /* font-family: 'Bebas Neue', sans-serif; */
        font-size: 38px;
        letter-spacing: 0px;
        color: #fff;
        margin-bottom: -5px;
        text-transform: uppercase;
    }


    .cart-page .header p {
        color: #fff;
        font-size: 15px;
        margin-bottom: 0;
        padding-top: 8px;
    }

    .cart-page .header h1 i {
        font-size: 26px;
    }

    .cart-page .cart-layout {
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 32px;
        animation: slideUp 0.8s ease 0.2s both;
    }

    @keyframes slideUp {
        from {
            transform: translateY(30px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* Left Side - Cart Items */
    .cart-page .cart-items {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom:5px;
    }

   /* ── Cart Item ───────────────────────────────────────────────── */
.cart-page .cart-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(100,160,255,0.1);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, background 0.25s;
    animation: cartItemIn 0.4s ease backwards;
}

.cart-page .cart-item:nth-child(1) { animation-delay: 0.05s; }
.cart-page .cart-item:nth-child(2) { animation-delay: 0.10s; }
.cart-page .cart-item:nth-child(3) { animation-delay: 0.15s; }
.cart-page .cart-item:nth-child(4) { animation-delay: 0.20s; }
.cart-page .cart-item:nth-child(5) { animation-delay: 0.25s; }

.cart-page .cart-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, #4f8fff, #9b6dff);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.cart-page .cart-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, #4f8fff, #9b6dff, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.cart-page .cart-item:hover::before { transform: scaleY(1); }
.cart-page .cart-item:hover::after  { transform: scaleX(1); }

.cart-page .cart-item:hover {
    border-color: rgba(111,179,255,0.25);
    background: rgba(79,143,255,0.05);
    transform: translateY(-2px);
}

/* ── Item Image ───────────────────────────────────────────────── */
.cart-page .item-image {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(79,143,255,0.08);
    border: 1px solid rgba(100,160,255,0.12);
    position: relative;
}

.cart-page .item-image::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(111,179,255,0.08), transparent 70%);
    animation: shimmer 4s infinite;
}

.cart-page .item-image svg {
    width: 48px; height: 48px;
    fill: #4f8fff;
    z-index: 1;
}

/* ── Item Details ─────────────────────────────────────────────── */
.cart-page .item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cart-page .item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cart-page .item-name {
    font-size: 16px;
    font-weight: 600;
    color: #c8d8f0;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
    letter-spacing: 0.01em;
}

.cart-page .item-category {
    font-size: 12px;
    color: #5a7099;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Price ────────────────────────────────────────────────────── */
.cart-page .item-price {
    font-size: 24px;
    font-weight: 700;
    color: #6fb3ff;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    align-items:center;
     display: inline-flex;
     gap: 6px;
}

.cart-page .item-price::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f8fff, #9b6dff, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-page .cart-item:hover .item-price::after { opacity: 1; }

/* ── Item Actions ─────────────────────────────────────────────── */
.cart-page .item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Quantity Control ─────────────────────────────────────────── */
.cart-page .quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(100,160,255,0.07);
    border: 1px solid rgba(100,160,255,0.15);
    padding: 6px 14px;
    border-radius: 50px;
    height: 40px;
}

.cart-page .quantity-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(100,160,255,0.2);
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #a8c4f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-page .quantity-btn:hover {
    background: linear-gradient(135deg, #4f8fff, #9b6dff);
    border-color: transparent;
    color: #fff;
    transform: scale(1.15);
}

.cart-page .quantity-btn:active { transform: scale(0.95); }

.cart-page .quantity {
    font-size: 15px;
    font-weight: 600;
    color: #c8d8f0;
    min-width: 28px;
    text-align: center;
}

/* ── Action Buttons ───────────────────────────────────────────── */
.cart-page .item-actions-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.item-actions-buttons .action-btn {
    background: rgba(79,200,140,0.1);
    border: 1px solid rgba(79,200,140,0.25);
    color: #4fc88c;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.item-actions-buttons .action-btn:hover {
    background: rgba(79,200,140,0.2);
    border-color: rgba(79,200,140,0.4);
    transform: translateY(-1px);
}

.cart-page .remove-btn {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #f08080;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.cart-page .remove-btn:hover {
    background: rgba(239,68,68,0.18);
    border-color: rgba(239,68,68,0.4);
    transform: translateY(-1px);
}

.cart-page .remove-btn:active,
.item-actions-buttons .action-btn:active { transform: scale(0.97); }

    /* .cart-page .remove-btn {
                background: linear-gradient(135deg, #FF9800 0%, #E91E63 100%);
            border: none;
            cursor: pointer;
            font-size: 14px;
            text-decoration: underline;
            transition: color 0.2s ease;
            font-weight: 500;
            padding: 4px 8px;
            border-radius: 6px;
            transition: all 0.2s ease;
            color: #fff;
            padding: 5px;
            border: 1px solid #000;
            border-radius: 10px;
        } */

    .cart-page .remove-btn:hover {
        /* color: #EF4444; */
        background: red;
    }

    /* Right Side - Checkout */
    .cart-page .checkout-section {
        position: sticky;
        top: 40px;
        height: fit-content;
    }

    .cart-page .checkout-card {
        background: #FFFFFF;
        border-radius: 20px;
        padding: 32px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        animation: slideLeft 0.8s ease 0.4s both;
    }

    @keyframes slideLeft {
        from {
            transform: translateX(30px);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .cart-page .checkout-header {
        /* font-family: 'Bebas Neue', sans-serif; */
        font-size: 32px;
        letter-spacing: 1px;
        margin-bottom: 24px;
        text-transform: uppercase;
        border-bottom: 2px solid #E2E8F0;
        padding-bottom: 16px;
    }

    .cart-page .price-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .cart-page .price-label {
        color: #f5f6f8;
        font-size: 15px;
    }

    .cart-page .price-value {
    font-size: 14px;
    font-weight: 600;
    color: #a8c4f0;
}

    .cart-page .divider {
        height: 1px;
        background: #E2E8F0;
        margin: 20px 0;
    }

    .cart-page .total-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .cart-page .total-label {
        /* font-family: 'Bebas Neue', sans-serif; */
        font-size: 24px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .cart-page .total-value {
        /* font-family: 'Bebas Neue', sans-serif; */
        font-size: 36px;
        color: #F97316;
        letter-spacing: 1px;
    }

    .cart-page .promo-section {
        margin-bottom: 24px;
    }

    .cart-page .promo-input-group {
        display: flex;
        gap: 8px;
    }

    .cart-page .promo-input {
        flex: 1;
        padding: 14px 16px;
        border: 2px solid #E2E8F0;
        border-radius: 12px;
        font-size: 15px;
        font-family: 'Karla', sans-serif;
        transition: all 0.3s ease;
        background: #F8FAFC;
    }

    .cart-page .promo-input:focus {
        outline: none;
        border-color: #F97316;
        background: #FFFFFF;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
    }

    .cart-page .apply-btn {
        padding: 14px 24px;
        background: #0F172A;
        color: white;
        border: none;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .cart-page .apply-btn:hover {
        background: linear-gradient(135deg, #F97316, #FB923C);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.25);
    }

    .cart-page .checkout-btn {
        width: 100%;
        padding: 18px;
        background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.25);
    }

    .cart-page .checkout-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .cart-page .checkout-btn:hover::before {
        left: 100%;
    }

    .cart-page .checkout-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(249, 115, 22, 0.35);
    }

    .cart-page .checkout-btn:active {
        transform: translateY(-1px);
    }

    .cart-page .secure-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
        color: #64748B;
        font-size: 13px;
    }

    .cart-page .secure-badge svg {
        width: 16px;
        height: 16px;
        fill: #10B981;
    }

    /* Modal Styles */
    .cart-page .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(12px);
        z-index: 1000;
        animation: fadeIn 0.3s ease;
    }

    .cart-page .modal-overlay.active {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .cart-page .modal {
        background: #FFFFFF;
        border-radius: 24px;
        width: 100%;
        max-width: 700px;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
        animation: modalSlideUp 0.4s ease;
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    @keyframes modalSlideUp {
        from {
            transform: translateY(50px) scale(0.95);
            opacity: 0;
        }

        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }

    .cart-page .modal-header {
        padding: 32px 32px 24px;
        border-bottom: 2px solid #E2E8F0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-page .modal-title {
        /* font-family: 'Bebas Neue', sans-serif; */
        font-size: 36px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #0F172A;
    }

    .cart-page .modal-close {
        background: none;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        color: #64748B;
        font-size: 28px;
        line-height: 1;
        hover-opacity: 0.8;
    }

    .cart-page .modal-close:hover {
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(251, 146, 60, 0.15));
        color: #F97316;
        transform: rotate(90deg) scale(1.1);
    }

    .cart-page .modal-body {
        padding: 32px;
    }

    .cart-page .address-section {
        margin-bottom: 32px;
    }

    .cart-page .section-title {
        font-size: 18px;
        font-weight: 600;
        color: #0F172A;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: space-between;
    }

    .cart-page .section-title svg {
        width: 20px;
        height: 20px;
        fill: #F97316;
    }

    .cart-page .saved-addresses {
        display: grid;
        gap: 16px;
        margin-bottom: 24px;
    }

    /* 3-per-row grid for address list (responsive) */
    #addressList.saved-addresses {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    @media (max-width: 991.98px) {
        #addressList.saved-addresses { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 575.98px) {
        #addressList.saved-addresses { grid-template-columns: 1fr; }
    }
    .cart-page .address-label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    .cart-page .address-type {
        font-weight: 600;
        color: #0F172A;
        font-size: 16px;
    }

    .cart-page .address-badge {
        background: #F97316;
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .cart-page .address-details {
        color: #64748B;
        font-size: 14px;
        line-height: 1.6;
    }

    .cart-page .add-new-address {
        border: 2px dashed #E2E8F0;
        border-radius: 16px;
        padding: 24px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background: transparent;
        width: 100%;
    }

    .cart-page .add-new-address:hover {
        border-color: #F97316;
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(251, 146, 60, 0.08));
        transform: translateY(-2px);
    }

    .cart-page .add-new-address svg {
        width: 40px;
        height: 40px;
        fill: #F97316;
        margin-bottom: 12px;
    }

    .cart-page .add-new-text {
        font-weight: 600;
        color: #0F172A;
        margin-bottom: 4px;
    }

    .cart-page .add-new-subtext {
        font-size: 14px;
        color: #64748B;
    }

    .cart-page .form-group {
        margin-bottom: 20px;
    }

    .cart-page .form-label {
        display: block;
        font-weight: 600;
        color: #0F172A;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .cart-page .form-input {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid #E2E8F0;
        border-radius: 12px;
        font-size: 15px;
        font-family: 'Karla', sans-serif;
        transition: all 0.3s ease;
        background: #F8FAFC;
    }

    .cart-page .form-input:focus {
        outline: none;
        border-color: #F97316;
        background: #FFFFFF;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
    }

    .cart-page .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .cart-page .address-form {
        display: none;
        animation: slideDown 0.3s ease;
    }

    .cart-page .address-form.active {
        display: block;
    }

    .cart-page .modal-footer {
        padding: 24px 32px 32px;
        display: flex;
        gap: 12px;
    }

    .cart-page .btn-secondary {
        flex: 1;
        padding: 16px;
        background: #E2E8F0;
        color: #0F172A;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .cart-page .btn-secondary:hover {
        background: #64748B;
        color: white;
        transform: translateY(-2px);
    }

    .cart-page .btn-primary {
        flex: 2;
        padding: 16px;
        background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
    }

    .cart-page .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
    }

    .cart-page .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

    /* Additional modern styles */
    .cart-page .item-price {
        /* font-family: 'Bebas Neue', sans-serif; */
        font-size: 28px;
        color: #F97316;
        letter-spacing: 1px;
        position: relative;
    }

    .cart-page .item-price::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #F97316, #FB923C, transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .cart-page .cart-item:hover .item-price::after {
        opacity: 1;
    }

    .cart-page .empty-cart {
        text-align: center;
        padding: 60px 40px;
        background: #FFFFFF;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .cart-page .empty-cart-icon {
        width: 100px;
        height: 100px;
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 146, 60, 0.1));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 24px;
    }

    .cart-page .empty-cart-icon svg {
        width: 50px;
        height: 50px;
        fill: #F97316;
    }

    .cart-page .empty-cart h3 {
        font-size: 24px;
        color: #0F172A;
        margin-bottom: 12px;
    }

    .cart-page .empty-cart p {
        color: #64748B;
        margin-bottom: 32px;
    }

    /* Recent Orders - modern empty state */
    .recent-empty {
        text-align: center;
        padding: 48px 32px;
        background: #FFFFFF;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        position: relative;
        overflow: hidden;
        animation: fadeIn 0.4s ease;
    }

    .recent-empty::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #F97316, #FB923C, transparent);
        opacity: 0.85;
    }

    .recent-empty-icon {
        width: 90px;
        height: 90px;
        margin: 0 auto 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(233, 30, 99, 0.12));
        box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15);
        animation: scaleIn 0.4s ease;
    }

    .recent-empty-icon svg {
        width: 44px;
        height: 44px;
        fill: #F97316;
    }

    .recent-empty h3 {
        font-size: 22px;
        color: #0F172A;
        margin-bottom: 8px;
    }

    .recent-empty p {
        color: #64748B;
        margin-bottom: 20px;
        font-size: 14px;
    }

    .recent-empty-cta {
        display: inline-block;
        padding: 12px 20px;
        border-radius: 10px;
        background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
        color: #fff;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.25);
        transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    }

    .recent-empty-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(249, 115, 22, 0.35);
        opacity: 0.95;
    }

    /* Loading animation */
    @keyframes pulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.5;
        }
    }

    /* Smooth scrollbar */
    .cart-page .modal::-webkit-scrollbar {
        width: 8px;
    }

    .cart-page .modal::-webkit-scrollbar-track {
        background: #F8FAFC;
        border-radius: 10px;
    }

    .cart-page .modal::-webkit-scrollbar-thumb {
        background: #E2E8F0;
        border-radius: 10px;
        transition: background 0.3s ease;
    }

    .cart-page .modal::-webkit-scrollbar-thumb:hover {
        background: #F97316;
    }

    .cartitemsection {
        /* height: 542px; */
        /* overflow-y: scroll; */
    }

    .product-section .btn-add-cart-2 {
        background: #d84315;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        font-weight: bold;
        width: 100%;
        margin-bottom: 10px;
        transition: all 0.3s ease;
    }

    /* Address cards and panel */
    .addresses-panel h3,
    .addresses-panel h4 {
        margin: 0 0 12px;
        color: #dcdde0;
    }

    .addresses-panel {
        background: transparent;
        border-radius: 16px;
        border: 1px solid #E2E8F0;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

    .saved-addresses {
        display: grid;
        gap: 12px;
        margin-bottom: 12px;
    }

/* ── Address Card ─────────────────────────────────────────────── */
.address-card {
    border: 1.5px solid rgba(100, 160, 255, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Subtle top-edge star shimmer */
.address-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.5), rgba(0, 229, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.address-card:hover {
    border-color: rgba(124, 77, 255, 0.45);
    background: rgba(79, 143, 255, 0.06);
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(76, 0, 180, 0.2),
        0 0 12px rgba(0, 229, 255, 0.08);
}

.address-card:hover::before {
    opacity: 1;
}

.address-card.selected {
    border-color: rgba(124, 77, 255, 0.6);
    background: linear-gradient(
        135deg,
        rgba(74, 20, 140, 0.12) 0%,
        rgba(13, 71, 161, 0.1) 100%
    );
    box-shadow:
        0 0 0 3px rgba(124, 77, 255, 0.12),
        0 8px 24px rgba(76, 0, 180, 0.25);
}

.address-card.selected::before {
    opacity: 1;
}

/* Selected indicator — left accent bar */
.address-card.selected::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, #7c4dff, #00e5ff);
    border-radius: 14px 0 0 14px;
}

.address-card .name {
    font-weight: 700;
    color: #c8d8f0;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.address-card .lines {
    color: #5a7099;
    font-size: 14px;
    line-height: 1.6;
}

/* ── Add Address Button ───────────────────────────────────────── */
.add-address-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 18px;
    margin-bottom: 12px;

    border-radius: 12px;
    cursor: pointer;

    font-weight: 600;
    font-size: 14px;
    color: #a8c4f0;
    letter-spacing: 0.02em;

    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1.5px dashed rgba(124, 77, 255, 0.35);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Nebula shimmer sweep on hover */
.add-address-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(124, 77, 255, 0.08) 50%,
        transparent 65%
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.add-address-btn:hover::before {
    transform: translateX(100%);
}

.add-address-btn:hover {
    transform: translateY(-2px);
    background: rgba(124, 77, 255, 0.08);
    border-color: rgba(124, 77, 255, 0.6);
    color: #e8eaff;
    box-shadow:
        0 8px 22px rgba(76, 0, 180, 0.2),
        0 0 14px rgba(124, 77, 255, 0.12);
}

.add-address-btn:active {
    transform: translateY(0);
}

.add-address-btn i {
    color: #7c4dff;
    font-size: 15px;
    transition: color 0.3s, transform 0.3s;
}

.add-address-btn:hover i {
    color: #00e5ff;
    transform: rotate(90deg);
}

    .address-form {
        background: #ffffff00;
        border: 1px solid #e2e8f049;
        border-radius: 12px;
        padding: 14px;
        margin-top: 8px;
    }

    .address-form .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .address-form .form-grid .full {
        grid-column: 1 / -1;
    }

    .address-form label {
        font-size: 13px;
        color: #e3e9f2;
        font-weight: 600;
        margin-bottom: 4px;
        display: block;
    }

    .address-form input,
    .address-form select {
        width: 100%;
        color: #a8d0ff;
        padding: 10px 12px;
        border: 1px solid #072e5530;
        border-radius: 10px;
        font-size: 14px;
        transition: border-color .2s ease, box-shadow .2s ease;
        background: #f8fafc0e;
    }

    .address-form input:focus,
    .address-form select:focus {
        outline: none;
        border-color: #ffffff5e;
        box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
        background: #03796c80;
    }

    .address-form .checkbox {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
        font-size: 14px;
        color: #f0f2f4;
        font-weight: 600;
    }

    /* Simple modal for Add Address */
    .sb-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .55);
        backdrop-filter: blur(6px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1050;
        padding: 16px;
    }

    .sb-modal-overlay.active {
        display: flex;
    }

    .sb-modal {
        width: 100%;
        max-width: 640px;
        background: transparent;
        border-radius: 16px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, .25);
        overflow: hidden;
        animation: modalIn .25s ease;
    }

    @keyframes modalIn {
        from {
            transform: translateY(20px);
            opacity: .6
        }

        to {
            transform: none;
            opacity: 1
        }
    }

/* ── Modal Header ─────────────────────────────────────────────── */
.sb-modal .modelHeader {
    padding: 12px 18px;
    background: rgba(0, 0, 255, 0.248);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #e8eaff;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(124, 77, 255, 0.3);
}

/* Star scatter */
.sb-modal .modelHeader::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 25%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 45% 70%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 88% 55%, rgba(200,220,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 85%, rgba(255,255,255,0.4) 0%, transparent 100%);
    pointer-events: none;
}

/* ── Modal Body ───────────────────────────────────────────────── */
.sb-modal .sb-body {
    padding: 16px;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ── Modal Actions ────────────────────────────────────────────── */
.sb-modal .sb-actions {
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid rgba(100, 160, 255, 0.1);
    background: rgba(10, 10, 26, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
}

.btn-secondary-lite {
    background: rgba(255, 255, 255, 0.05);
    color: #a8c4f0;
    border: 1px solid rgba(100, 160, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary-lite:hover {
    background: rgba(100, 160, 255, 0.1);
    border-color: rgba(100, 160, 255, 0.4);
    color: #e8eaff;
    transform: translateY(-1px);
}

.btn-primary-lite {
    background: linear-gradient(
        135deg,
        rgba(74, 20, 140, 0.9)  0%,
        rgba(13, 71, 161, 0.9) 100%
    );
    color: #e8eaff;
    border: 1px solid rgba(124, 77, 255, 0.4);
    box-shadow: 0 4px 14px rgba(74, 20, 140, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-primary-lite:hover {
    background: linear-gradient(
        135deg,
        rgba(94, 30, 170, 0.95) 0%,
        rgba(21, 101, 192, 0.95) 100%
    );
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.35);
    transform: translateY(-1px);
    color: #fff;
}

.btn-primary-lite:active,
.btn-secondary-lite:active {
    transform: scale(0.97);
}

/* ── Form ─────────────────────────────────────────────────────── */
.sb-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sb-form .row .full {
    grid-column: 1 / -1;
}

.sb-form label {
    font-size: 13px;
    color: #9e9ecc;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    letter-spacing: 0.02em;
}

.sb-form input,
.sb-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(100, 160, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #c8d8f0;
    font-size: 14px;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.sb-form select option {
    background: #0e0e2a;
    color: #c8d8f0;
}

.sb-form input::placeholder {
    color: rgba(100, 130, 180, 0.5);
}

.sb-form input:focus,
.sb-form select:focus {
    outline: none;
    border-color: rgba(124, 77, 255, 0.6);
    box-shadow:
        0 0 0 3px rgba(124, 77, 255, 0.15),
        0 0 8px rgba(0, 229, 255, 0.08);
    background: rgba(124, 77, 255, 0.06);
    color: #e8eaff;
}

    /* Disable Continue until address is selected */
    .checkout-btn[disabled] {
        opacity: .5;
        cursor: not-allowed;
    }
    .iti.iti--allow-dropdown {
        width: 100%;
    }

    .sb-modal-close {
        font-size: 35px;
        height: 10px;
        margin-top: -45px;
    }

    .field-error {
        color: #b91c1c;
        font-size: 12px;
        margin-top: 4px;
    }

    .has-error {
        border-color: #ef4444 !important;
        box-shadow: 0 0 0 3px rgba(239,68,68,.15) !important;
    }
.cart-layout {
    margin-bottom: 37px;
}
    /* Action icons inside address card */
    .address-card .addr-actions {
        position: absolute;
        top: 10px;
        right: 10px;
        display: flex;
        gap: 6px;
    }
    .address-card .icon-btn {
        border: none;
        background: #fff;
        color: #334155;
        width: 28px;
        height: 28px;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0,0,0,.12);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    .address-card .icon-btn:hover { background: #f1f5f9; }
    .address-card .icon-btn.danger { color: #b91c1c; }
      .payment-summary { background: #f8fafc;
          padding: 16px;
                 border-radius: 8px;
                      border: 1px solid #e2e8f0;
                            margin-bottom: 20px;
                           }
    
    .payment-summary .price-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }
    
    .payment-form {
        margin-top: 20px;
    }
    
    #card-element {
        padding: 12px;
        border: 2px solid #E2E8F0;
        border-radius: 8px;
        background: #F8FAFC;
        min-height: 40px;
    }
    
    #card-element:focus {
        border-color: #F97316;
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
        outline: none;
    }
    
    #card-errors {
        color: #ef4444;
        font-size: 14px;
        margin-top: 8px;
    }
    @media (max-width: 768px) {
      .cart-page .cart-layout {
            display: block;
           
        }
        .cart-page .header {
            display: block;
            /* font-size: 17px; */
        }
        .cart-page .header h1 {
            font-size: 21px;
        }
        .cart-page .header p {
            font-size: 14px;
        }
        .addresses-panel h3 {
            font-size: 20px;
        }
        .add-address-btn {
            padding: 1px -1px;
            font-size: 10px;
            padding:5px 10px;
        }
        .sb-form .row div {
            padding: 1px;
        }
    }
    /* ── 1024px and below ────────────────────────────────────── */
@media (max-width: 1024px) {
    .cart-page .cart-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cart-page .checkout-section {
        position: static;
        order: -1; /* summary shows above cart items */
    }

    .cart-page .checkout-card {
        max-width: 520px;
        margin: 0 auto;
        padding: 24px;
    }

    .cartitemsection {
        height: auto;
        max-height: 600px;
        overflow-y: auto;
    }

    .cart-page .item-image {
        width: 100px;
        height: 100px;
    }
}

/* ── 768px and below ─────────────────────────────────────── */
@media (max-width: 768px) {

    /* Layout */
    .cart-page .cart-layout {
        display: block;
        margin-bottom: 20px;
    }

    .cart-page .container {
        padding: 15px 10px;
    }

    /* Header */
    .cart-page .header {
        display: block;
        padding: 10px 12px;
        margin-top: 15px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .cart-page .header h1 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .cart-page .header h1 i {
        font-size: 18px;
    }

    .cart-page .header p {
        font-size: 13px;
        padding-top: 2px;
    }

    /* Cart items section */
    .cartitemsection {
        height: auto;
        max-height: 65vh;
        overflow-y: auto;
        margin-bottom: 20px;
    }

    /* Cart item */
    .cart-page .cart-item {
        padding: 14px;
        gap: 12px;
        flex-direction: row;
        align-items: flex-start;
    }

    .cart-page .item-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .cart-page .item-image svg {
        width: 36px;
        height: 36px;
    }

    .cart-page .item-name {
        font-size: 14px;
        max-width: 100%;
        white-space: normal;
        line-height: 1.3;
        margin-bottom: 3px;
    }

    .cart-page .item-category {
        font-size: 11px;
        line-height: 1.3;
    }

    .cart-page .item-price {
        font-size: 18px;
        letter-spacing: 0;
    }

    .cart-page .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cart-page .item-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
        margin-top: 8px;
    }

    /* Quantity control */
    .cart-page .quantity-control {
        padding: 4px 10px;
        gap: 8px;
    }

    .cart-page .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .cart-page .quantity {
        font-size: 14px;
        min-width: 22px;
    }

    /* Action buttons — icon-only on mobile */
    .mobile-hide { display: none !important; }
    .desktop-hide { display: inline-flex !important; }

    .item-actions-buttons {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
    }

    .item-actions-buttons .action-btn,
    .item-actions-buttons .remove-btn,
    .cart-page .remove-btn {
        width: 34px;
        height: 34px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 13px;
        min-width: unset;
    }

    /* Checkout card */
    .cart-page .checkout-section {
        position: static;
    }

    .cart-page .checkout-card {
        max-width: 100%;
        padding: 18px;
        border-radius: 14px;
    }

    .cart-page .checkout-header {
        font-size: 22px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .cart-page .total-label {
        font-size: 18px;
    }

    .cart-page .total-value {
        font-size: 26px;
    }

    .cart-page .checkout-btn {
        padding: 14px;
        font-size: 15px;
    }

    .cart-page .promo-input {
        padding: 11px 12px;
        font-size: 14px;
    }

    .cart-page .apply-btn {
        padding: 11px 16px;
        font-size: 13px;
    }

    /* Address panel */
    .addresses-panel h3 {
        font-size: 18px;
    }

    #addressList.saved-addresses {
        grid-template-columns: 1fr 1fr;
    }

    /* Related / recent products */
    #relatedProductsContainer .col-md-4,
    #recentOrderProductsContainer .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Address form modal */
    .sb-form .row {
        grid-template-columns: 1fr;
    }

    .sb-form .row .full {
        grid-column: 1;
    }

    .cart-page .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cart-page .modal-footer {
        flex-direction: column;
        padding: 12px 16px 20px;
    }

    .cart-page .btn-secondary,
    .cart-page .btn-primary {
        padding: 13px;
        font-size: 14px;
    }
}

/* ── 576px and below ─────────────────────────────────────── */
@media (max-width: 576px) {

    .cart-page .container {
        padding: 10px !important;
    }

    .cart-page .header {
        padding: 8px 10px;
        margin-bottom: 16px;
    }

    .cart-page .header h1 {
        font-size: 19px;
    }

    .cart-page .header h1 i {
        font-size: 16px;
    }

    /* Cart item tighter */
    .cart-page .cart-item {
        padding: 10px;
        gap: 10px;
    }

    .cart-page .item-image {
        width: 68px;
        height: 68px;
    }

    .cart-page .item-name {
        font-size: 13px;
    }

    .cart-page .item-category {
        font-size: 10px;
    }

    .cart-page .item-price {
        font-size: 16px;
    }

    .cart-page .quantity-btn {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    .cart-page .quantity {
        font-size: 13px;
        min-width: 20px;
    }

    .item-actions-buttons .action-btn,
    .item-actions-buttons .remove-btn,
    .cart-page .remove-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    /* Checkout card */
    .cart-page .checkout-card {
        padding: 14px;
        border-radius: 12px;
    }

    .cart-page .checkout-header {
        font-size: 18px;
    }

    .cart-page .price-label { font-size: 13px; }
    .cart-page .price-value { font-size: 14px; }

    .cart-page .total-label { font-size: 16px; }
    .cart-page .total-value { font-size: 22px; }

    .cart-page .checkout-btn {
        padding: 13px;
        font-size: 14px;
    }

    /* Address list single column */
    #addressList.saved-addresses {
        grid-template-columns: 1fr;
    }

     #relatedProductsContainer,
    #recentOrderProductsContainer {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: #F97316 #F1F5F9;
    }

    #relatedProductsContainer::-webkit-scrollbar,
    #recentOrderProductsContainer::-webkit-scrollbar {
        height: 4px;
    }

    #relatedProductsContainer::-webkit-scrollbar-track,
    #recentOrderProductsContainer::-webkit-scrollbar-track {
        background: #F1F5F9;
        border-radius: 2px;
    }

    #relatedProductsContainer::-webkit-scrollbar-thumb,
    #recentOrderProductsContainer::-webkit-scrollbar-thumb {
        background: #F97316;
        border-radius: 2px;
    }

    /* Each card column — fixed width, no wrap */
    #relatedProductsContainer .col-12,
    #relatedProductsContainer .col-md-4,
    #relatedProductsContainer .col-lg-3,
    #recentOrderProductsContainer .col-12,
    #recentOrderProductsContainer .col-md-4,
    #recentOrderProductsContainer .col-lg-3 {
        flex: 0 0 220px !important;
        width: 220px !important;
        max-width: 220px !important;
        padding: 0 !important;
        scroll-snap-align: start;
    }

    /* Card itself */
    #relatedProductsContainer .product-card,
    #recentOrderProductsContainer .product-card {
        max-width: 100% !important;
        margin: 0 !important;
        width: 100%;
        height: 100%;
    }

    /* Product image in card */
    #relatedProductsContainer .product-section .product-image,
    #recentOrderProductsContainer .product-section .product-image {
        height: 100px;
        object-fit: contain;
    }

    /* Product title in card */
    #relatedProductsContainer .product-section .product-title,
    #recentOrderProductsContainer .product-section .product-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    /* Address add form */
    .address-form .form-grid {
        grid-template-columns: 1fr;
    }

    .cart-page .modal {
        border-radius: 14px;
        margin: 8px;
    }

    .cart-page .modal-header {
        padding: 16px 14px 12px;
    }

    .cart-page .modal-title {
        font-size: 20px;
    }

    .cart-page .modal-body {
        padding: 14px;
    }
}

/* ── 400px and below ─────────────────────────────────────── */
@media (max-width: 400px) {

    .cart-page .header h1 {
        font-size: 17px;
    }

    .cart-page .cart-item {
        padding: 8px;
        gap: 8px;
    }

    .cart-page .item-image {
        width: 58px;
        height: 58px;
    }

    .cart-page .item-name { font-size: 12px; }
    .cart-page .item-price { font-size: 14px; }

    .cart-page .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .cart-page .quantity {
        font-size: 12px;
        min-width: 18px;
    }

    .item-actions-buttons .action-btn,
    .item-actions-buttons .remove-btn,
    .cart-page .remove-btn {
        width: 27px;
        height: 27px;
        font-size: 11px;
    }

    .cart-page .checkout-card {
        padding: 12px;
    }

    .cart-page .total-value { font-size: 20px; }
    .cart-page .checkout-btn {
        padding: 12px;
        font-size: 13px;
    }
}
    