/* Product Card Quantity Controls */
.product-cart-controls {
    position: relative;
    width: 100%;
}

.product-quantity-controls {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px;
    gap: 8px;
    width: 100%;
}

.product-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.product-qty-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
}

.product-qty-btn:active {
    transform: scale(0.95);
}

.product-qty-btn.minus:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.product-qty-display {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 0 8px;
}

/* Ensure add-to-cart button is visible by default */
.add-to-cart-btn {
    display: flex;
}

/* Mobile Responsive for Product Controls */
@media (max-width: 768px) {
    .product-qty-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .product-qty-display {
        min-width: 28px;
        font-size: 0.8rem;
    }
}

/* Cart Item Layout */
.cart-item-simple {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
    position: relative;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.cart-item-info .item-price {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.quantity-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn.minus:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 0 0.5rem;
}

.cart-item-total {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-align: center;
    white-space: nowrap;
}

.remove-item-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.remove-item-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-item-simple {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .cart-item-info h4 {
        font-size: 0.85rem;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .quantity-display {
        min-width: 35px;
        font-size: 0.8rem;
    }
    
    .cart-item-total {
        font-size: 0.8rem;
    }
}
