/* ================== BODY SCROLL LOCK ================== */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* ================== SIDEBAR LAYOUT ================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 360px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    transition: right 0.4s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cart-sidebar.active {
    right: 0;
}

/* ✅ MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 90%;
        max-width: 400px;
        right: -100%;
    }
    .cart-sidebar.active {
        right: 0;
    }
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 90%;
        max-width: 100%;
    }
}

/* ================== HEADER ================== */
.cart-header {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cart-header h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #111;
}

/* ================== SCROLLABLE CONTENT ================== */
.cart-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px;
    scrollbar-width: thin;
}

/* ================== CART ITEMS ================== */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #f2f2f2;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cart-item h6 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.cart-item p {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.cart-item .fw-bold {
    font-size: 13px;
}

.cart-item .text-success {
    font-size: 11px;
}

/* ================== SUMMARY & BENEFITS ================== */
.cart-summary {
    font-size: 12px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.cart-benefits {
    font-size: 12px;
    text-align: center;
    margin-bottom: 15px;
}

.cart-benefits i {
    font-size: 18px;
    margin-bottom: 5px;
}

.cart-benefits small {
    font-size: 11px;
    line-height: 1.2;
}

/* ================== FOOTER ================== */
.cart-footer {
    border-top: 1px solid #eee;
    padding: 15px 18px;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

.cart-footer .btn {
    font-size: 14px;
    padding: 12px 0;
    width: 100%;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 50px;
}

@media (max-width: 480px) {
    .cart-footer {
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
}

/* ================== BADGE ================== */
.cart-badge {
    background: rgb(255, 255, 255);
    color: #000000;
    border-radius: 50%;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -10px;
    font-weight: bold;
    border: 1px solid #fff;
}

/* ================== OVERLAY ================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1049;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================== CUSTOM MODAL ================== */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
}

.custom-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 360px;
    background: #fff;
    border-radius: 16px;
    z-index: 3001;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
