/* Cart Styles */

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-cart h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.cart-items {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
}

.cart-items h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--surface-light);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 14px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: var(--primary-hover);
}

.qty-value {
    min-width: 30px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
}

.cart-item-subtotal {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 100px;
    text-align: right;
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-item-remove:hover {
    background: #ef4444;
    color: white;
}

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.cart-summary h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.summary-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 10px;
    padding-top: 20px;
}

.summary-total span:last-child {
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    text-align: center;
    display: block;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-details {
        flex: 1 1 100%;
    }
    
    .cart-item-quantity {
        flex: 1;
    }
    
    .cart-item-subtotal {
        flex: 1;
        text-align: left;
    }
}
