/* client/css/cart.css */
:root {
    --primary-gradient: linear-gradient(135deg, #ff4d4d 0%, #d63031 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cart-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.cart-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--secondary);
    letter-spacing: -1px;
}

#cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    margin-top: -15px;
}

#cart-table thead th {
    padding: 15px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    text-align: center;
}

#cart-table tbody tr {
    background: white;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

#cart-table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

#cart-table td {
    padding: 20px;
    text-align: center;
    vertical-align: middle;
}

#cart-table td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    text-align: left;
    font-weight: 600;
}

#cart-table td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.cart-price {
    color: #2ecc71;
    font-weight: 700;
}

.qty-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

.qty-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.subtotal {
    font-weight: 700;
    color: var(--secondary);
}

.btn-remove {
    width: 40px;
    height: 40px;
    background: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4d4d;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove:hover {
    background: #ff4d4d;
    color: white;
    transform: rotate(90deg);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: #fdfdfd;
    border-radius: 15px;
    margin-top: 20px;
    border: 1px dashed #eee;
}

.total-label {
    font-size: 1.2rem;
    color: var(--text-light);
}

.total-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #27ae60;
}

.footer-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-checkout {
    background: var(--primary-gradient) !important;
    padding: 16px 48px !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important; /* Fully rounded elegant look */
    letter-spacing: 0.5px;
    box-shadow: 0 15px 35px rgba(255, 77, 77, 0.25) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.btn-checkout:hover {
    transform: scale(1.05) translateY(-3px) !important;
    box-shadow: 0 20px 45px rgba(255, 77, 77, 0.35) !important;
    filter: brightness(1.1);
}

.btn-checkout:active {
    transform: scale(0.98) translateY(0);
}

.btn-checkout::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-checkout:hover::after {
    left: 100%;
}

.btn-clear {
    background: white !important;
    border: 2px solid #eee !important;
    color: var(--text-light) !important;
}

.btn-clear:hover {
    border-color: #ff4d4d !important;
    color: #ff4d4d !important;
}

/* Empty State */
.empty-cart-visual {
    text-align: center;
    padding: 80px 0;
}

.empty-cart-visual i {
    font-size: 6rem;
    background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    #cart-table thead { display: none; }
    #cart-table tbody tr {
        display: block;
        margin-bottom: 20px;
        padding: 10px;
        border-radius: 12px;
    }
    #cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border: none !important;
    }
    #cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-light);
    }
    #cart-table td:first-child { text-align: center; font-size: 1.2rem; display: block; }
    #cart-table td:first-child::before { display: none; }
    .footer-btns { flex-direction: column; }
}
