/* ========================================
   Cart Page Styles
======================================== */

.cart-section {
    padding: 40px 0 80px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 24px;
}

.empty-cart h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 24px;
}

/* Cart Container */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* Cart Items */
.cart-items {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-col.product {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cart-col.product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-col.product .product-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.cart-col.product .product-sku {
    font-size: 13px;
    color: #999;
}

.cart-col.price,
.cart-col.total {
    font-weight: 600;
    color: #333;
}

.cart-col.total {
    color: var(--primary-color, #f39c12);
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
}

.quantity-control .qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-control .qty-btn:hover {
    background: var(--primary-color, #f39c12);
    color: #fff;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
}

.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Remove Button */
.remove-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    color: #dc3545;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.summary-row.total {
    border-top: 2px solid #eee;
    margin-top: 12px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 700;
}

.summary-row.total span:last-child {
    color: var(--primary-color, #f39c12);
}

.free-shipping {
    color: #28a745;
    font-weight: 600;
}

.free-shipping-notice {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-checkout {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 16px;
}

.btn-secondary {
    width: 100%;
    margin-top: 12px;
    background: #f5f5f5;
    color: #333;
    padding: 14px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 992px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .cart-col.product {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-col::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        margin-left: 8px;
    }
}
