﻿/* Cart Page Styling - BookSaw Design */

.cart-page {
    background: #fff;
    min-height: 100vh;
}

/* Header Section */
.cart-header {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
}

.cart-logo {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.divider {
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 300;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cart Content */
.cart-content {
    padding: 3rem 0;
}

/* Cart Table Header */
.cart-table-header {
    display: grid;
    grid-template-columns: 50px 2fr 120px 150px 120px 100px;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 2px solid #2c3e50;
    font-weight: bold;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.header-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-product {
    display: flex;
    align-items: center;
}

.header-price,
.header-quantity,
.header-total,
.header-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Items */
.cart-items {
    margin: 2rem 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 50px 2fr 120px 150px 120px 100px;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.item-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.item-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.item-price {
    text-align: center;
    font-weight: bold;
    color: #8e44ad;
    font-size: 1.1rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #e9ecef;
    background: #fff;
    color: #2c3e50;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    border-color: #8e44ad;
    color: #8e44ad;
    background: #f8f9fa;
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

.item-total {
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.item-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Cart Footer */
.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 2px solid #e9ecef;
    margin-top: 2rem;
}

.cart-footer-left {
    display: flex;
    gap: 2rem;
}

.select-all-link,
.delete-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.select-all-link:hover,
.delete-link:hover {
    color: #8e44ad;
    text-decoration: none;
}

.cart-footer-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.checkout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 0;
}

.empty-cart-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-cart-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.empty-cart-actions {
    margin-top: 2rem;
}

.continue-shopping-btn {
    display: inline-block;
    background: #8e44ad;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    background: #7d3c98;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-table-header,
    .cart-item {
        grid-template-columns: 40px 1fr 80px 100px 80px 60px;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .product-image {
        width: 60px;
        height: 80px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .cart-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cart-footer-left {
        justify-content: center;
    }
    
    .cart-logo {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cart-table-header,
    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .cart-table-header {
        display: none;
    }
    
    .cart-item {
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .item-product {
        flex-direction: column;
        text-align: center;
    }
    
    .product-image {
        width: 100px;
        height: 120px;
    }
    
    .item-quantity {
        justify-content: center;
    }
    
    .empty-cart-title {
        font-size: 2rem;
    }
}
