
@import url('style.css');
#cart-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

#cart-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#cart-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

#cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

#cart-items {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f9f9f9;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
}

.cart-item-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    font-size: 1rem;
}

.cart-item-total {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background: #ff3742;
}

#cart-summary {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

#cart-summary h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.summary-item.total {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #333;
}

#buy-now-btn {
    width: 100%;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

#buy-now-btn:hover {
    background: #45a049;
}

#continue-shopping {
    width: 100%;
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#continue-shopping:hover {
    background: #e0e0e0;
}

#empty-cart {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-cart-content img {
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-cart-content h2 {
    color: #333;
    margin-bottom: 10px;
}

.empty-cart-content p {
    color: #666;
    margin-bottom: 30px;
}

.empty-cart-content button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.empty-cart-content button:hover {
    background: #45a049;
}

@media (max-width: 768px) {
    #cart-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .cart-item img {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    #cart-header h1 {
        font-size: 2rem;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
