/* Cart Page Styles */

.cart-page {
    padding: 40px 0 80px;
    min-height: 60vh;
}

.cart-page h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-weight: 700;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

/* Cart Items */
.cart-items {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.cart-item-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.qty-btn {
    background: var(--bg-light);
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

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

.qty-display {
    padding: 8px 20px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.remove-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

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

/* Cart Summary */
.cart-summary {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-row span:first-child {
    color: var(--text-light);
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
}

.summary-total span:first-child {
    color: var(--text-dark);
}

.summary-total span:last-child {
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    background: var(--accent-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #e55a2a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.continue-shopping:hover {
    text-decoration: underline;
}

.shipping-note {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-note i {
    color: var(--secondary-color);
    font-size: 18px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 25px;
}

.empty-cart h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.empty-cart p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page h1 {
        font-size: 28px;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    
    .cart-item-actions {
        justify-content: space-between;
    }
}

