/* ==========================================================
   UBER MINI-SHOP - TEMA ESPECIAL DE NATAL (CHRISTMAS EDITION)
   Cores Oficiais de Natal: Vermelho Rubi, Vinho Aveludado,
   Dourado Ouro, Verde Esmeralda e Flocos de Neve Brancos.
   ========================================================== */

:root {
    /* Paleta Natalina Vibrante e Acolhedora */
    --xmas-bg-dark: #1E0307;
    --xmas-wine: #3E050D;
    --xmas-crimson: #6B0B17;
    --xmas-ruby: #8E0F20;
    --xmas-bright-red: #DC2626;
    
    --xmas-emerald: #059669;
    --xmas-emerald-bright: #10B981;
    --xmas-emerald-glow: rgba(16, 185, 129, 0.45);
    
    --xmas-gold: #F59E0B;
    --xmas-gold-light: #FEF08A;
    --xmas-gold-glow: rgba(245, 158, 11, 0.4);
    
    --text-primary: #FFFFFF;
    --text-secondary: #FEF3C7;
    --text-muted: #FCA5A5;
    
    /* Gradiente Natalino Oficial para Fundos */
    --bg-main: #2A0409;
    --bg-gradient: radial-gradient(130% 120% at 50% 0%, #850F1B 0%, #540812 40%, #2B0409 80%, #170205 100%);
    --bg-card: linear-gradient(145deg, rgba(110, 15, 26, 0.85) 0%, rgba(55, 6, 12, 0.92) 100%);
    --bg-card-hover: linear-gradient(145deg, rgba(140, 20, 32, 0.9) 0%, rgba(75, 8, 16, 0.95) 100%);
    
    --border-color: rgba(245, 158, 11, 0.35);
    --border-focus: #F59E0B;
    --uber-green: #10B981;
    --uber-green-hover: #059669;
    --uber-green-glow: rgba(16, 185, 129, 0.45);
}

/* ==========================================================
   ESTRUTURA GLOBAL & FUNDO DE NATAL
   ========================================================== */

html, body {
    background: var(--bg-gradient) !important;
    background-attachment: fixed !important;
    background-color: #2A0409 !important;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-height: 100vh;
}

/* Sobrescreve classes escuras legadas para garantir a cor de Natal */
.bg-uber-dark,
body.bg-uber-dark,
.bg-slate-900,
.bg-slate-950,
.bg-black {
    background: var(--bg-gradient) !important;
    background-attachment: fixed !important;
}

/* ==========================================================
   CARDS, CABEÇALHOS & MODAIS NATALINOS
   ========================================================== */

/* Cabeçalho de Vidro com Brilho Natalino */
.glass-header {
    background: linear-gradient(180deg, rgba(90, 10, 20, 0.95) 0%, rgba(55, 6, 12, 0.92) 100%) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(185, 28, 28, 0.25);
}

/* Card Principal Festivo */
.glass-card {
    background: var(--bg-card) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.4) !important;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 25px rgba(185, 28, 28, 0.3) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    border-color: rgba(245, 158, 11, 0.7) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(245, 158, 11, 0.25) !important;
}

/* Modal de Confirmação & Checkout */
.glass-modal {
    background: linear-gradient(160deg, rgba(80, 10, 18, 0.98) 0%, rgba(35, 4, 8, 0.98) 100%) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px solid rgba(245, 158, 11, 0.5) !important;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(220, 38, 38, 0.4) !important;
}

/* Barra Flutuante de Carrinho Inferior */
.bottom-cart-bar {
    background: linear-gradient(180deg, rgba(95, 12, 22, 0.98) 0%, rgba(48, 5, 10, 0.99) 100%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 2px solid rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(185, 28, 28, 0.35) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================
   BOTÕES FESTIVOS (VERDE ESMERALDA & VERMELHO PAPAI NOEL)
   ========================================================== */

/* Botão Principal: Verde Esmeralda Natalino com Ouro */
.btn-uber-primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    border: 1px solid rgba(254, 240, 138, 0.5) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5), 0 0 12px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-uber-primary:hover {
    background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #059669 100%) !important;
    box-shadow: 0 6px 26px rgba(16, 185, 129, 0.65), 0 0 18px rgba(245, 158, 11, 0.45) !important;
    transform: translateY(-1px);
}

.btn-uber-primary:active {
    transform: scale(0.97);
}

/* Botão Vermelho Noel */
.btn-xmas-red {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #991B1B 100%) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    border: 1px solid rgba(254, 240, 138, 0.4) !important;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.5) !important;
    transition: all 0.2s ease;
}

.btn-xmas-red:hover {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 50%, #B91C1C 100%) !important;
    transform: translateY(-1px);
}

/* Botões de Quantidade (+ e -) */
.qty-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 18px;
    transition: all 0.15s ease;
}

.qty-btn:active {
    transform: scale(0.88);
}

.qty-btn-minus {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FDE68A !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.qty-btn-minus:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #FFFFFF !important;
}

.qty-btn-plus {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5) !important;
}

.qty-btn-plus:hover {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%) !important;
}

/* ==========================================================
   INPUTS & FORMULÁRIOS NATALINOS
   ========================================================== */

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
    background: rgba(30, 4, 8, 0.65) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
    color: #FFFFFF !important;
    border-radius: 12px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #F59E0B !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.45) !important;
    outline: none !important;
}

/* ==========================================================
   BANNERS, BADGES & DECORAÇÕES DE NATAL
   ========================================================== */

.xmas-banner {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.55) 0%, rgba(85, 10, 20, 0.85) 50%, rgba(4, 120, 87, 0.5) 100%) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 10px 35px rgba(185, 28, 28, 0.3) !important;
    border-radius: 20px;
}

.xmas-badge {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.5) !important;
    border: 1px solid rgba(254, 240, 138, 0.4) !important;
}

.xmas-gold-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border: 1px solid #FEF08A !important;
}

/* Card do Produto no Catálogo */
.product-card {
    background: linear-gradient(145deg, rgba(95, 12, 22, 0.8) 0%, rgba(48, 5, 10, 0.9) 100%) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    border-color: rgba(245, 158, 11, 0.65) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(220, 38, 38, 0.3) !important;
    transform: translateY(-2px);
}

.product-card:active {
    transform: scale(0.98);
}

/* ==========================================================
   CORDÃO DE LUZINHAS DE NATAL BRILHANTES
   ========================================================== */

.christmas-lights {
    display: flex;
    justify-content: space-around;
    padding: 3px 0 6px 0;
    pointer-events: none;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.christmas-lights::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(245, 158, 11, 0.4);
    z-index: 1;
}

.christmas-light-bulb {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    z-index: 2;
    animation: blinkLight 1.3s infinite alternate ease-in-out;
}

.christmas-light-bulb:nth-child(4n+1) { background: #EF4444; box-shadow: 0 0 12px #EF4444, 0 0 20px #EF4444; animation-delay: 0s; }
.christmas-light-bulb:nth-child(4n+2) { background: #10B981; box-shadow: 0 0 12px #10B981, 0 0 20px #10B981; animation-delay: 0.35s; }
.christmas-light-bulb:nth-child(4n+3) { background: #FBBF24; box-shadow: 0 0 12px #FBBF24, 0 0 20px #FBBF24; animation-delay: 0.7s; }
.christmas-light-bulb:nth-child(4n+4) { background: #38BDF8; box-shadow: 0 0 12px #38BDF8, 0 0 20px #38BDF8; animation-delay: 1.05s; }

@keyframes blinkLight {
    0% { opacity: 0.35; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.25); filter: brightness(1.3); }
}

/* ==========================================================
   FLOCOS DE NEVE PERFEITOS (FIXOS NO VIEWPORT)
   Nunca quebram o layout flex ou a tela
   ========================================================== */

.snowfall-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 99999 !important;
    overflow: hidden !important;
    display: block !important;
}

.snowflake {
    position: absolute !important;
    top: -30px;
    color: #FFFFFF;
    font-size: 14px;
    opacity: 0.8;
    user-select: none;
    pointer-events: none !important;
    animation: fallLinear infinite linear;
}

@keyframes fallLinear {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.9;
    }
    100% {
        transform: translateY(105vh) rotate(360deg);
        opacity: 0.15;
    }
}

.snowflake:nth-child(1) { left: 4%; animation-duration: 9s; font-size: 12px; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 14%; animation-duration: 13s; font-size: 16px; animation-delay: 1.5s; opacity: 0.65; }
.snowflake:nth-child(3) { left: 26%; animation-duration: 11s; font-size: 11px; animation-delay: 3s; }
.snowflake:nth-child(4) { left: 39%; animation-duration: 14s; font-size: 18px; animation-delay: 0.5s; opacity: 0.55; }
.snowflake:nth-child(5) { left: 51%; animation-duration: 10s; font-size: 13px; animation-delay: 2s; }
.snowflake:nth-child(6) { left: 63%; animation-duration: 12s; font-size: 15px; animation-delay: 4s; opacity: 0.75; }
.snowflake:nth-child(7) { left: 75%; animation-duration: 15s; font-size: 20px; animation-delay: 1s; opacity: 0.5; }
.snowflake:nth-child(8) { left: 86%; animation-duration: 11s; font-size: 12px; animation-delay: 2.5s; }
.snowflake:nth-child(9) { left: 94%; animation-duration: 13s; font-size: 14px; animation-delay: 3.5s; opacity: 0.65; }

/* ==========================================================
   SCROLLBAR & TOAST NOTIFICATION
   ========================================================== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1E0307;
}

::-webkit-scrollbar-thumb {
    background: #8E0F20;
    border-radius: 3px;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

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

#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 90%;
    width: 380px;
}

.toast-msg {
    pointer-events: auto;
    background: linear-gradient(135deg, #6B0B17 0%, #3E050D 100%);
    color: #FFFFFF;
    border: 1px solid rgba(245, 158, 11, 0.6);
    border-left: 5px solid #10B981;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================
   IMPRESSÃO DA PLACA DO BANCO
   ========================================================== */

@media print {
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .no-print {
        display: none !important;
    }
    .print-sheet {
        box-shadow: none !important;
        border: 2px dashed #CBD5E1 !important;
        page-break-inside: avoid;
        margin: auto !important;
    }
}
