/* =========================
   CART PAGE STYLES
========================= */
.cart-page {
    max-width: 1350px;
    margin: 40px auto 60px;
    padding: 0 20px;
    font-family: 'Exo 2', Arial, sans-serif;
}

.cart-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 30px;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.empty-cart-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 30px;
}

.btn_primary {
    background: #ff7a00;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn_primary:hover {
    background: #e56e00;
}

.cart-page-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.cart-items-section {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    padding: 24px;
}

.cart-items-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    gap: 15px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.3s ease;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: #fafafa;
}

.cart-item-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: #fafafa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.cart-item-variant {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #ff7a00;
    color: #fff;
    border-color: #ff7a00;
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.cart-item-total {
    font-size: 15px;
    font-weight: 600;
    color: #ff7a00;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
    padding: 5px;
}

.remove-btn:hover {
    color: #e53935;
    transform: scale(1.1);
}

.cart-summary-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-summary-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    padding: 24px;
    position: sticky;
    top: 140px;
}

.cart-summary-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    color: #444;
}

.summary-divider {
    border-top: 1px solid #f0f0f0;
    margin: 12px 0;
}

.summary-total {
    font-size: 18px;
    color: #111827;
}

.checkout-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    margin-top: 10px;
    text-align: center;
    display: block;
    box-sizing: border-box;
}

.secure-checkout {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

.continue-shopping {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 0;
}

.continue-shopping:hover {
    color: #ff7a00;
}

/* Loading state for buttons */
.qty-btn.loading {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty state animations */
.empty-cart {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .cart-page-grid {
        grid-template-columns: 1fr;
    }
    .cart-summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-items-header {
        display: none;
    }
    .cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px 0;
        text-align: center;
    }
    .cart-item-product {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .cart-item-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    .cart-page-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .cart-page {
        padding: 0 10px;
        margin: 20px auto;
    }
    .cart-items-section {
        padding: 15px;
    }
}