﻿
.cart-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.cart-title {
    font-size: 22px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}
/* Empty Cart Styles */
.empty-cart-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.empty-cart-wrapper {
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-visual {
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.cart-icon {
    width: 160px;
    height: 160px;
    transition: transform 0.4s ease;
}

.empty-cart-wrapper:hover .cart-icon {
    transform: rotate(5deg) scale(1.1);
}

.cart-title-empty {
    font-size: 2.7rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff6b6b, #ffe66d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.cart-subtitle {
    font-size: 1.2rem;
    color: #2d3436;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.6s forwards;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
    border: none;
}

    .btn-primary:hover {
        background: #ff6b6b;
        color: white;
        border: none;
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    }

.btn-secondary {
    background: #ffe66d;
    color: #2d3436;
    border: none;
}

    .btn-secondary:hover {
        background: #ffef99;
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 20px rgba(255, 230, 109, 0.4);
    }

.arrow {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .empty-cart-wrapper {
        padding: 2rem;
    }

    .cart-title-empty {
        font-size: 2.2rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-visual {
        width: 140px;
        height: 140px;
    }

    .cart-icon {
        width: 120px;
        height: 120px;
    }
}


/* Your existing styles remain unchanged */
:root {
    --gold: #b89778;
    --gold-dark: #9c7a5a;
    --text: #2d2d2d;
    --bg: #faf8f6;
    --border: #eaeaea;
    --accent: #562f59; /* Purple accent for buttons and highlights, inspired by luxury jewelry sites */
    --white: #ffffff;
    --gray: #777777;
    --light-gray: #f5f5f5;
    --secondary: #1F3747;
    --primary: #5D1143;
}

body {
    background: var(--bg);
    font-family: 'Playfair Display', serif; /* Elegant serif font for premium feel */
    color: var(--text);
    line-height: 1.6;
}

.cl-cart-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.cl-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.cl-items {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.cl-header {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--accent);
}

.cl-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

    .cl-item:hover {
        background: var(--light-gray);
        border-radius: 8px;
    }

    .cl-item:last-child {
        border-bottom: none;
    }

.cl-img img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

    .cl-img img:hover {
        transform: scale(1.05);
    }

.cl-details {
    flex: 1;
}

.cl-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.cl-meta {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
}

.cl-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
}

.cl-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cl-qty {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

    .cl-qty button {
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        font-size: 18px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .cl-qty button:hover {
            background: var(--light-gray);
        }

    .cl-qty span {
        width: 50px;
        text-align: center;
        font-weight: 600;
        font-size: 16px;
        line-height: 40px;
    }

.cl-remove {
    color: var(--gray);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

    .cl-remove:hover {
        color: #c00;
    }

.cl-summary {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 120px;
}

    .cl-summary h3 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 24px;
        color: var(--primary);
    }

.cl-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: var(--secondary);
}

.cl-total {
    font-weight: 700;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
    margin-bottom: 14px;
    color: var(--primary);
}

.cl-checkout {
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .cl-checkout:hover {
        background: var(--primary);
        color: var(--white);
        box-shadow: 0 4px 12px rgba(86, 47, 89, 0.2);
    }

.cl-empty {
    text-align: center;
    padding: 100px 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.cl-empty-image {
    max-width: 200px;
    margin-bottom: 40px;
}

.cl-empty-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.cl-empty-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
}

.cl-shop-now-btn {
    background: var(--gold);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

    .cl-shop-now-btn:hover {
        background: var(--gold-dark);
        box-shadow: 0 4px 12px rgba(184, 151, 120, 0.2);
    }

.brand-banners-section {
    background: var(--white);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border);
}

.brand-banners-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.brand-banner {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

    .brand-banner:hover {
        filter: grayscale(0%);
        transform: scale(1.1);
    }

@media (max-width: 992px) {
   .cl-wrapper {
        grid-template-columns: 1fr;
    }

    .cl-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .cl-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cl-actions {
        justify-content: center;
    }
}
/* Pincode Styles - Premium Look */
.pincode-wrapper {
    position: relative;
}

.pincode-input {
    padding-left: 40px;
    height: 48px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 11px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .pincode-input:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 2px rgba(184,151,120,0.2);
    }

.pincode-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 20px;
}

.pincode-locate-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    padding: 6px 5px;
    border-radius: 6px;
    font-size: 11px;
    transition: background 0.2s;
}

    .pincode-locate-btn:hover {
        /* background: var(--gold-dark);*/
    }
/* Modal Styles */
.pincode-modal {
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.modal-input {
    padding-left: 40px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

    .modal-input:focus {
        border-color: var(--gold);
    }

.modal-check-btn {
    background: var(--gold);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
}

    .modal-check-btn:hover {
        background: var(--gold-dark);
    }
/*   Empty Cart Styling */
.cl-empty-modern {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #faf8f6 0%, #fffdf9 100%);
    padding: 0px 20px;
}

.empty-title {
    font-weight: 700 !important;
}

.btn-empty-cta {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn-empty-cta::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.6s;
        z-index: -1;
    }

    .btn-empty-cta:hover::before {
        left: 100%;
    }

    .btn-empty-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(184, 151, 120, 0.3);
    }

.text-gold {
    color: #b89778;
}
/* Responsive */
@media (max-width: 768px) {
    .cl-empty-modern {
        min-height: 70vh;
        padding: 40px 20px;
    }

    .empty-gif img {
        max-height: 220px;
    }

    .empty-title {
        font-size: 20px !important;
    }

    .trust-badges {
        gap: 20px !important;
    }
}

.cl-check {
    font-size: 10px;
    color: #562f59 !important;
}
/*  Exact Pincode Modal Enhancements */
#pincodeModal .modal-content {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

#pincodeModal input:focus {
    border-color: #b89778 !important;
    box-shadow: 0 0 0 4px rgba(184, 151, 120, 0.2);
    outline: none;
}

#pincodeModal .btn-close-white {
    filter: invert(1);
    opacity: 0.9;
}

#pincodeModal .bxs-map-pin {
    color: #b89778;
}

#pincodeModal .text-gold {
    color: #b89778;
}
/* Premium Remove Loading Overlay – Works for BOTH session & server cart */
.item-removing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 50;
    animation: fadeIn 0.3s ease;
}

.loading-dots {
    display: flex;
    gap: 12px;
}

    .loading-dots span {
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: var(--primary);
        animation: pulse 1.4s infinite ease-in-out both;
    }

        .loading-dots span:nth-child(1) {
            animation-delay: -0.32s;
        }

        .loading-dots span:nth-child(2) {
            animation-delay: -0.16s;
        }

        .loading-dots span:nth-child(3) {
            animation-delay: 0s;
        }

@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.7;
    }

    40% {
        transform: scale(1.4);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.coupon-wrapper {
    position: relative;
}

.coupon-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.coupon-input {
    padding-left: 40px;
}

.coupon-apply-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.empty-cart-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
}
