/*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
   ═══════════════════════════════════════════════════════════════ */

/* ── Layout ──────────────────────────────────────────────────── */
.cart-page {
    padding: 32px 0 64px;
}

.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: 17px;
    font-weight: 600;
    color: #0F172A;
    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;
}

.cart-page .checkout-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 28px;
    border: 1.5px solid #F1F5F9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.cart-page .checkout-header {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid #F1F5F9;
}

.cart-page .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.cart-page .price-label {
    font-size: 14px;
    color: #64748B;
}

.cart-page .price-value {
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
}

.cart-page .divider {
    height: 1.5px;
    background: #F1F5F9;
    margin: 12px 0;
}

.cart-page .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 20px;
}

.cart-page .total-label {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
}

.cart-page .total-value {
    font-size: 24px;
    font-weight: 700;
    color: #F97316;
    letter-spacing: -0.5px;
}

.cart-page .discount-row .price-value {
    color: #16A34A;
}

/* ── 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;
}

.cart-page .empty-cart-icon {
    width: 80px;
    height: 80px;
    background: #FFF7ED;
    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: #F97316;
}

.cart-page .empty-cart h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.cart-page .empty-cart p {
    font-size: 15px;
    color: #94A3B8;
    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: #64748B;
        font-size: 15px;
    }

    .cart-page .price-value {
        font-weight: 600;
        font-size: 16px;
        color: #0F172A;
    }

    .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 {
        border: 2px solid #E2E8F0;
        border-radius: 16px;
        padding: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        background: #FFFFFF;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .cart-page .address-card:hover {
        border-color: #F97316;
        box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15);
        transform: translateY(-3px);
    }

    .cart-page .address-card.selected {
        border-color: #F97316;
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(251, 146, 60, 0.05) 100%);
    }

    .cart-page .address-card.selected::after {
        content: '✓';
        position: absolute;
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        background: #F97316;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }

    .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;
    }
    
    .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;
    }

    .cart-page .cart-item {
        background: #FFFFFF;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        display: flex;
        gap: 24px;
        transition: all 0.3s ease;
        animation: scaleIn 0.5s ease backwards;
        border: 2px solid transparent;
        position: relative;
        overflow: hidden;
    }

    .cart-page .cart-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #F97316, #FB923C, transparent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .cart-page .cart-item:hover::before {
        transform: scaleX(1);
    }

    .cart-page .cart-item:nth-child(1) {
        animation-delay: 0.3s;
    }

    .cart-page .cart-item:nth-child(2) {
        animation-delay: 0.4s;
    }

    .cart-page .cart-item:nth-child(3) {
        animation-delay: 0.5s;
    }

    @keyframes scaleIn {
        from {
            transform: scale(0.95);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    .cart-page .cart-item:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .cart-page .item-image {
        width: 120px;
        height: 120px;
        border-radius: 12px;
        background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }

    .cart-page .item-image::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, transparent 30%, #ff980085, #e91e6370, 50%, transparent 70%);
        animation: shimmer 4s infinite;
    }

    @keyframes shimmer {
        0% {
            transform: translateX(-100%) translateY(-100%);
        }

        100% {
            transform: translateX(100%) translateY(100%);
        }
    }

    .cart-page .item-image svg {
        width: 60px;
        height: 60px;
        fill: white;
        z-index: 1;
    }

    .cart-page .item-details {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .cart-page .item-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .cart-page .item-name {
        font-size: 20px;
        font-weight: 600;
        color: #0F172A;
        margin-bottom: 4px;
    }

    .cart-page .item-category {
        font-size: 14px;
        color: #64748B;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .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 .item-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }

    .cart-page .quantity-control {
        display: flex;
        align-items: center;
        gap: 16px;
        background: #E2E8F0;
        padding: 8px 16px;
        border-radius: 50px;
    }

    .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: #64748B;
        font-size: 15px;
    }

    .cart-page .price-value {
        font-weight: 600;
        font-size: 16px;
        color: #0F172A;
    }

    .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-card {
        border: 2px solid #E2E8F0;
        border-radius: 16px;
        padding: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        background: #FFFFFF;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .cart-page .address-card:hover {
        border-color: #F97316;
        box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15);
        transform: translateY(-3px);
    }

    .cart-page .address-card.selected {
        border-color: #F97316;
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(251, 146, 60, 0.05) 100%);
    }

    .cart-page .address-card.selected::after {
        content: '✓';
        position: absolute;
        bottom: 11px;
        right: 16px;
        width: 32px;
        height: 32px;
        background: #F97316;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }

    .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: #0F172A;
    }

    .addresses-panel {
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

    .saved-addresses {
        display: grid;
        gap: 12px;
        margin-bottom: 12px;
    }

    .address-card {
        border: 2px solid #E2E8F0;
        border-radius: 14px;
        padding: 14px;
        cursor: pointer;
        background: #fff;
        transition: all .2s ease;
    }

    .address-card:hover {
        border-color: #F97316;
        box-shadow: 0 8px 20px rgba(249, 115, 22, .12);
    }

    .address-card.selected {
        border-color: #F97316;
        background: linear-gradient(135deg, rgba(249, 115, 22, .05), rgba(251, 146, 60, .05) 100%);
    }

    .address-card .name {
        font-weight: 700;
        color: #0F172A;
        margin-bottom: 4px;
    }

    .address-card .lines {
        color: #64748B;
        font-size: 14px;
        line-height: 1.5;
    }

    .add-address-btn {
        display: inline-block;
        border: 2px dashed #E2E8F0;
        background: #fafafa;
        color: #0F172A;
        border-radius: 12px;
        padding: 10px 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all .2s ease;
        margin-bottom: 12px;
    }

    .add-address-btn:hover {
        border-color: #F97316;
        background: rgba(249, 115, 22, .06);
    }

    .address-form {
        background: #fff;
        border: 1px solid #E2E8F0;
        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: #334155;
        font-weight: 600;
        margin-bottom: 4px;
        display: block;
    }

    .address-form input,
    .address-form select {
        width: 100%;
        padding: 10px 12px;
        border: 2px solid #E2E8F0;
        border-radius: 10px;
        font-size: 14px;
        transition: border-color .2s ease, box-shadow .2s ease;
        background: #F8FAFC;
    }

    .address-form input:focus,
    .address-form select:focus {
        outline: none;
        border-color: #F97316;
        box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
        background: #fff;
    }

    .address-form .checkbox {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
        font-size: 14px;
        color: #334155;
        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: #fff;
        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
        }
    }

    .sb-modal .modelHeader {
        padding: 11px 17px;
        background: linear-gradient(135deg, #FF9800, #E91E63);
        color: #fff;
        font-weight: 800;
        display: flex;
        justify-content: space-between;
    }

    .sb-modal .sb-body {
        padding: 16px;
    }

    .sb-modal .sb-actions {
        padding: 12px 16px;
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        border-top: 1px solid #eee;
    }

    .btn {
        padding: 10px 14px;
        border-radius: 10px;
        border: none;
        cursor: pointer;
        font-weight: 700;
    }

    .btn-secondary-lite {
        background: #E2E8F0;
        color: #0F172A;
    }

    .btn-primary-lite {
        background: linear-gradient(135deg, #F97316, #FB923C);
        color: #fff;
    }

    .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: #334155;
        font-weight: 600;
        margin-bottom: 4px;
        display: block;
    }

    .sb-form input,
    .sb-form select {
        width: 100%;
        padding: 10px 12px;
        border: 2px solid #E2E8F0;
        border-radius: 10px;
        background: #F8FAFC;
    }

    .sb-form input:focus,
    .sb-form select:focus {
        outline: none;
        border-color: #F97316;
        box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
        background: #fff;
    }

    /* 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: -17px;
    }

    .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: 17px;
        }
        .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;
    }
}
    