/* ========================================== */
/* RESET E CONFIGURAÇÕES BASE */
/* ========================================== */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #f8fafc;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================== */
/* GLASSMORPHISM */
/* ========================================== */
.glass {
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
    background: rgba(14, 14, 14, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(249, 115, 22, 0.12);
    box-shadow: 0 32px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
}

/* ========================================== */
/* EFEITOS ESPECIAIS */
/* ========================================== */
.neon-glow {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5), 0 0 40px rgba(249, 115, 22, 0.3);
}

.live-indicator {
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================== */
/* CARDS E INTERAÇÕES */
/* ========================================== */
.store-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.25);
}

.product-card {
    transition: all 0.28s cubic-bezier(.22,.68,0,1.2);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(249,115,22,0.18);
}

/* ========================================== */
/* SIDEBAR E NAVEGAÇÃO */
/* ========================================== */
.sidebar-item {
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(249, 115, 22, 0.1);
    border-left-color: #f97316;
}

.sidebar-item.active {
    background: rgba(249, 115, 22, 0.2);
    color: white;
}

/* ========================================== */
/* FORMULÁRIOS E INPUTS */
/* ========================================== */
.input-field {
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.input-field:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
    outline: none;
}

.input-field::placeholder {
    color: #6b7280;
}

/* Remove setas do input number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ========================================== */
/* BOTÕES E LOADING */
/* ========================================== */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.google-btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.google-btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

/* ========================================== */
/* MODAIS */
/* ========================================== */
.modal-content {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.modal-content.show {
    transform: scale(1);
    opacity: 1;
}

.modal-scroll {
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #f97316 #141414;
}

/* ========================================== */
/* SCROLLBAR CUSTOMIZADA */
/* ========================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #141414;
}

::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #fb923c;
}

/* ========================================== */
/* BADGES E LABELS */
/* ========================================== */
.promotion-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.delivery-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.pickup-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* ========================================== */
/* TOAST NOTIFICAÇÕES */
/* ========================================== */
.toast {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.toast.show {
    transform: translateX(0);
}

/* ========================================== */
/* UTILITÁRIOS */
/* ========================================== */
.hidden {
    display: none !important;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================== */
/* RESPONSIVO - MOBILE */
/* ========================================== */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
    
    .modal-scroll {
        max-height: 90vh;
    }
}

/* ========================================== */
/* ANIMAÇÕES ADICIONAIS */
/* ========================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ========================================== */
/* CHECKOUT ESPECÍFICO */
/* ========================================== */
.payment-tab-active {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* QR Code PIX */
#pixQRCode img {
    border-radius: 8px;
}

/* ========================================== */
/* STATUS PEDIDOS */
/* ========================================== */
.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-paid {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-preparing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-delivered {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}