/* ===== CART PAGE STYLES ===== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(212, 84, 122, 0.15);
}

.cart-card-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 30px; /* Softer, more organic corners */
    padding: 24px;
    box-shadow: 0 10px 30px rgba(212, 84, 122, 0.05);
}

/* Luxury button styling */
.btn-checkout {
    background: var(--text-dark);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.4s ease;
}

.btn-checkout:hover {
    background: var(--pink-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 84, 122, 0.3);
}

.cart-page-container {
    padding: 140px 60px 80px; /* Space for fixed navbar */
    max-width: 1100px;
    margin: 0 auto;
    min-height: 80vh;
    position: relative;
    z-index: 2;
}

/* Table Styling */
.cart-table-wrapper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-radius: var(--radius);
    border: 1px solid rgba(212, 84, 122, 0.1);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-top: 40px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: rgba(212, 84, 122, 0.05);
    padding: 20px;
    text-align: left;
    font-family: var(--ff-serif);
    font-size: 1.2rem;
    color: var(--pink-deep);
    font-weight: 400;
    letter-spacing: 1px;
}

.cart-table td {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(212, 84, 122, 0.05);
    vertical-align: middle;
    color: var(--text-dark);
}

/* Product Column */
.cart-item-detail {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-emoji {
    font-size: 2.2rem;
    background: var(--pink-pale);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: inset 0 0 10px rgba(212, 84, 122, 0.1);
}

.cart-item-name {
    font-family: var(--ff-sans);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
}

/* Quantity Controls */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 5px 12px;
    border-radius: 50px;
    width: fit-content;
    border: 1px solid var(--pink-light);
}

.qty-btn {
    background: none;
    border: none;
    color: var(--pink-deep);
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
}

.qty-btn:hover {
    transform: scale(1.3);
}

.qty-val {
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* Summary Section */
.cart-summary {
    margin-top: 50px;
    padding: 40px;
    background: white;
    border-radius: var(--radius);
    text-align: right;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--pink-pale);
}

.summary-label {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
}

.total-amount {
    font-family: var(--ff-serif);
    font-size: 2.8rem;
    color: var(--pink-deep);
    margin-bottom: 25px;
}

.checkout-btn {
    min-width: 280px;
    padding: 20px 50px;
    font-size: 1rem;
}

/* Trash Icon */
.remove-btn {
    color: var(--text-light);
    transition: color 0.3s;
}

.remove-btn:hover {
    color: var(--rose);
}

/* Mobile Responsiveness for Table */
@media (max-width: 768px) {
    .cart-page-container { padding: 100px 20px 60px; }
    
    .cart-table thead { display: none; } /* Hide headers on mobile */
    
    .cart-table td {
        display: block;
        text-align: right;
        padding: 15px 20px;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        float: left;
        font-family: var(--ff-sans);
        font-weight: 500;
        text-transform: uppercase;
        font-size: 0.7rem;
        color: var(--pink-mid);
    }
    
    .cart-item-detail { justify-content: flex-end; }
    .qty-controls { margin-left: auto; }
}

/* Layout Positioning */
.cart-main-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.cart-header-top {
    border-bottom: 1px solid var(--pink-pale);
    padding-bottom: 20px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Individual Item Cards (Instead of Table Rows) */
.cart-card-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 84, 122, 0.1);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.cart-card-item:hover {
    transform: translateX(10px);
    border-color: var(--pink-light);
}

.item-img-box {
    width: 100px;
    height: 100px;
    background: var(--pink-pale);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.item-info-box {
    flex: 1;
}

.item-info-box h4 {
    font-family: var(--ff-serif);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.item-price-tag {
    color: var(--pink-deep);
    font-weight: 500;
}

/* Sidebar Summary */
.cart-summary-sidebar {
    background: white;
    padding: 35px;
    border-radius: 30px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--pink-pale);
    position: sticky;
    top: 120px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-mid);
    font-size: 0.95rem;
}

.summary-total {
    border-top: 1px solid var(--pink-pale);
    margin-top: 20px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-total strong {
    font-family: var(--ff-serif);
    font-size: 2rem;
    color: var(--pink-deep);
}

/* Mobile Fix */
@media (max-width: 992px) {
    .cart-main-wrapper {
        grid-template-columns: 1fr;
    }
    .cart-summary-sidebar {
        position: static;
    }
}

.cart-card-item.removing {
    transform: translateX(-50px);
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}





