/* Cart Container */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    justify-content: center;
}

/* Empty cart container */
.cart-container:has(.empty-cart) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

/* Cart Items */
.cart-items {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

.item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.item-price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1rem;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: #5a6fd8;
}

.quantity-display {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

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

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.summary-total {
    border-top: 2px solid #e1e5e9;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #28a745;
}

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

.checkout-btn:hover {
    background: #218838;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
    max-width: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-cart h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.empty-cart p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.continue-shopping {
    background: #667eea;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    transition: background 0.3s;
}

.continue-shopping:hover {
    background: #5a6fd8;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .quantity-controls {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .remove-btn {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: 1rem;
    }
} 