/* Cart Page Styles */
.cart-main {
    padding: 6rem 2rem 4rem;
    min-height: 100vh;
    background-color: #FAF8F5;
}

.cart-title {
    font-size: 2.5rem;
    color: #5A4A3A;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cart Items */
.cart-items {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #E5E5E5;
}

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

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details h3 {
    font-size: 1.2rem;
    color: #5A4A3A;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cart-item-details .material {
    color: #8B7355;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-details .price {
    color: #5A4A3A;
    font-size: 1.1rem;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #F5F5F5;
    border-radius: 8px;
    padding: 0.5rem;
}

.quantity-btn {
    background: #8B7355;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background: #73614A;
}

.quantity-btn:disabled {
    background: #CCC;
    cursor: not-allowed;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #5A4A3A;
}

.remove-btn {
    background: none;
    border: none;
    color: #DC3545;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background: #FFE6E6;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.cart-summary h2 {
    font-size: 1.5rem;
    color: #5A4A3A;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #666;
}

.total-row {
    border-top: 2px solid #E5E5E5;
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #5A4A3A;
}

.checkout-btn {
    width: 100%;
    background: #8B7355;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background: #73614A;
}

.checkout-btn:disabled {
    background: #CCC;
    cursor: not-allowed;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.empty-cart h2 {
    font-size: 2rem;
    color: #5A4A3A;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.continue-shopping-btn {
    display: inline-block;
    background: #8B7355;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.continue-shopping-btn:hover {
    background: #73614A;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-main {
        padding: 5rem 1rem 2rem;
    }
    
    .cart-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .quantity-controls {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 1rem;
    }
    
    .remove-btn {
        grid-column: 1 / -1;
        justify-self: end;
        margin-top: -2rem;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cart-item-image {
        justify-self: center;
        width: 100px;
        height: 100px;
    }
    
    .quantity-controls {
        justify-self: center;
        margin-top: 1rem;
    }
    
    .remove-btn {
        justify-self: center;
        margin-top: 1rem;
    }
}