/* assets/styles/cart.css */

/* Drawer Container */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
    transform: translateX(0);
}

/* Glass Panel */
.cart-content {
    width: 100%;
    height: 100%;
    background: var(--glass-container-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

/* Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.cart-title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cart-close:hover {
    opacity: 1;
}

/* Items List */
.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--glass-border);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 500;
}

.cart-item-price {
    font-size: 13px;
    color: var(--text-muted);
}

.remove-btn {
    align-self: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
}

.remove-btn:hover {
    color: #ff4d4d;
}

/* Footer (Checkout) */
.cart-footer {
    margin-top: 20px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

.checkout-btn:hover {
    opacity: 0.9;
}

/* Empty State */
.cart-empty {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50%;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
    }
}