/* ResaFood - Front Client Styles */

/* Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ea580c;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Category buttons */
.category-btn {
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.category-btn:active,
.category-btn.active {
    background-color: #ea580c !important;
    color: white !important;
}

/* Product card */
.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.product-card:active {
    transform: scale(0.98);
}

/* Toast */
.toast {
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.toast-success { background-color: #22c55e; }
.toast-error { background-color: #ef4444; }
.toast-info { background-color: #3b82f6; }
.toast-warning { 
    background: linear-gradient(135deg, #f59e0b, #d97706);
    animation: slideUp 0.3s ease, pulse 0.5s ease 0.3s;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Quantity controls */
.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.qty-btn:active {
    transform: scale(0.9);
}

/* Modal animations */
#product-modal .bg-white {
    animation: slideUp 0.3s ease;
}

/* Establishment card */
.establishment-card {
    transition: all 0.2s;
    cursor: pointer;
}
.establishment-card:hover {
    border-color: #ea580c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}
.establishment-card.selected {
    border-color: #ea580c;
    background-color: #fff7ed;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

/* Size selector */
.size-option {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.size-option:hover {
    border-color: #fdba74;
}
.size-option.selected {
    border-color: #ea580c;
    background-color: #fff7ed;
}

/* Modifier checkbox */
.modifier-option {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.modifier-option:hover {
    border-color: #fdba74;
}
.modifier-option.selected {
    border-color: #ea580c;
    background-color: #fff7ed;
}

/* Cart item */
.cart-item {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Status badge */
.status-open {
    background-color: #dcfce7;
    color: #166534;
}
.status-closed {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Carousel */
.carousel-slide {
    position: relative;
}

/* Promo badge */
.promo-badge {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 640px) {
    #product-modal .bg-white {
        border-radius: 16px 16px 0 0;
    }
}
