/* Product Card Styles */
:root {
    --primary: #4ABDAC;
    --secondary: #FC4A1A; 
    --warning: #F7B733;
    --light: #FFFFFF;
    --dark: #000000;
}

.product-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-control-modern {
    position: relative;
}

.btn-add-modern {
    background: linear-gradient(45deg, var(--primary), #3a9d94);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(74, 189, 172, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-add-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-add-modern:hover::before {
    left: 100%;
}

.btn-add-modern:hover {
    background: linear-gradient(45deg, #3a9d94, var(--primary));
    box-shadow: 0 6px 20px rgba(74, 189, 172, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-add-modern:active {
    transform: translateY(0);
}

.btn-add-modern i {
    font-size: 1rem;
}

.quantity-stepper-modern {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 25px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 189, 172, 0.2);
    transition: all 0.3s ease;
}

.quantity-stepper-modern:hover {
    border-color: var(--secondary);
    box-shadow: 0 6px 20px rgba(74, 189, 172, 0.3);
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: bold;
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn i {
    font-size: 1rem;
    font-weight: bold;
}

.decrease-btn:hover {
    background: var(--secondary);
    color: white;
}

.increase-btn:hover {
    background: var(--primary);
    color: white;
}

.quantity-display {
    background: linear-gradient(45deg, var(--primary), #3a9d94);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 0 20px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .btn-add-modern {
        font-size: 0.8rem;
        padding: 10px 18px;
    }
    
    .btn-text {
        font-size: 0.85rem;
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
    }
    
    .quantity-btn i {
        font-size: 0.9rem;
    }
    
    .quantity-display {
        height: 36px;
        padding: 0 16px;
        font-size: 0.9rem;
        min-width: 50px;
    }
}

/* Animation for quantity changes */
@keyframes quantityPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.quantity-display {
    animation: quantityPulse 0.3s ease-out;
}

/* Loading state for buttons */
.btn-add-modern:disabled,
.quantity-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Smooth transitions for Livewire updates */
[wire\:loading] {
    opacity: 0.7;
    pointer-events: none;
}

/* Spinning animation for loading icons */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin-animation {
    animation: spin 1s linear infinite;
}
