/* Cart-specific styles to complement the main theme */

.cart-section {
    min-height: 100vh;
    background: #1a1a1a;
    color: white;
}

.cart-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.cart-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    overflow: hidden; /* ensure children (hover transforms) stay within rounded box */
    position: relative;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.3);
}

.cart-item-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    color: #ff6b35;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.item-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.item-price {
    color: #f7931e;
    font-weight: bold;
    font-size: 1.1rem;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.3rem;
}

.quantity-btn {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #f7931e;
    transform: scale(1.1);
}

.quantity {
    color: white;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b35;
    border: 1px solid #ff6b35;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.remove-btn:hover {
    background: #ff6b35;
    color: white;
    transform: scale(1.03);
}

.cart-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.1);
    margin-top: 2rem;
}

.total-section {
    text-align: center;
    margin-bottom: 2rem;
}

.total-section h3 {
    color: #ff6b35;
    font-size: 2rem;
    margin: 0;
}

.cart-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #ff6b35;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .cart-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .item-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .cart-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Empty cart styling */
#empty-cart-message {
    text-align: center;
    padding: 4rem 2rem;
}

#empty-cart-message i {
    font-size: 4rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

#empty-cart-message h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

#empty-cart-message p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}
