/* Cart Specific Styles */
.cart-main {
    background-color: #f4f4f4;
    min-height: 80vh;
}

.container-cart {
    max-width: 1100px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-brown);
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.cart-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.cart-items {
    flex: 2;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
    gap: 1.5rem;
}

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

.item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

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

.item-details {
    flex: 1;
}

.item-details h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.item-price {
    font-weight: bold;
    color: var(--primary-brown);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qty-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    color: #666;
    font-size: 1rem;
}

.qty-btn:hover {
    background-color: #f9f9f9;
}

.qty-value {
    padding: 0 0.5rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: var(--price-red);
}

.cart-summary {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 1.3rem;
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

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

.summary-row.total {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--primary-brown);
    font-size: 1.2rem;
}

.free-shipping {
    color: #4CAF50;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    background-color: var(--secondary-gold);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #b08d4a;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    text-decoration: underline;
}

.empty-cart-message {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-cart-message i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-cart-message p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.continue-shopping {
    display: inline-block;
    background-color: var(--primary-brown);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

.hidden {
    display: none;
}

/* Mobile Cart */
@media (max-width: 768px) {
    .cart-content {
        flex-direction: column;
    }
    
    .cart-summary {
        width: 100%;
        position: static;
    }
    
    .cart-item {
        flex-direction: row; /* Keep row layout */
    }
}
