@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary: #facc15;
    --dark: #18181b;
    --theme-primary: #facc15;
    --theme-primary-hover: #eab308;
    --theme-primary-soft: #fef3c7;
    --theme-primary-soft-strong: #fde68a;
    --theme-primary-border-soft: #fcd34d;
    --theme-primary-text-strong: #92400e;
    --theme-primary-rgb: 250 204 21;
    --theme-dark: #18181b;
    --theme-dark-soft: #27272a;
    --theme-dark-surface: #3f3f46;
    --theme-dark-border: #52525b;
    --theme-dark-deep: #09090b;
    --theme-on-primary: #111111;
}

body {
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

.login-bg {
    background: linear-gradient(135deg, var(--theme-dark) 0%, var(--theme-dark-soft) 50%, var(--theme-dark) 100%);
}

.bg-yellow-400 { background-color: var(--theme-primary) !important; }
.bg-yellow-50 { background-color: var(--theme-primary-soft) !important; }
.bg-yellow-100 { background-color: var(--theme-primary-soft-strong) !important; }
.hover\:bg-yellow-500:hover,
.hover\:bg-yellow-300:hover { background-color: var(--theme-primary-hover) !important; }

.text-yellow-400,
.text-yellow-500 { color: var(--theme-primary) !important; }
.text-yellow-600,
.text-yellow-700,
.text-yellow-800 { color: var(--theme-primary-text-strong) !important; }
.hover\:text-yellow-300:hover,
.hover\:text-yellow-400:hover { color: var(--theme-primary-hover) !important; }

.border-yellow-100 { border-color: var(--theme-primary-soft-strong) !important; }
.border-yellow-200 { border-color: var(--theme-primary-border-soft) !important; }
.border-yellow-400 { border-color: var(--theme-primary) !important; }
.border-yellow-400\/30 { border-color: rgb(var(--theme-primary-rgb) / 0.30) !important; }
.hover\:border-yellow-400\/50:hover { border-color: rgb(var(--theme-primary-rgb) / 0.50) !important; }

.focus\:border-yellow-400:focus { border-color: var(--theme-primary) !important; }
.focus\:ring-yellow-400:focus { --tw-ring-color: var(--theme-primary) !important; }
.focus\:border-zinc-900:focus { border-color: var(--theme-dark) !important; }
.focus\:ring-zinc-900:focus { --tw-ring-color: var(--theme-dark) !important; }

.peer:checked ~ .peer-checked\:bg-yellow-400 { background-color: var(--theme-primary) !important; }
.peer:checked ~ .peer-checked\:border-yellow-400 { border-color: var(--theme-primary) !important; }

.bg-zinc-950 { background-color: var(--theme-dark-deep) !important; }
.bg-zinc-900 { background-color: var(--theme-dark) !important; }
.bg-zinc-800 { background-color: var(--theme-dark-soft) !important; }
.bg-gray-900 { background-color: var(--theme-dark) !important; }
.hover\:bg-zinc-700:hover { background-color: var(--theme-dark-surface) !important; }

.border-zinc-900 { border-color: var(--theme-dark) !important; }
.border-zinc-800,
.border-zinc-700 { border-color: var(--theme-dark-border) !important; }
.border-zinc-600 { border-color: var(--theme-dark-surface) !important; }

.text-zinc-900 { color: var(--theme-dark) !important; }

.bg-yellow-400.text-black,
.bg-yellow-400 .text-black,
.bg-yellow-400.text-zinc-900,
.bg-yellow-400 .text-zinc-900,
.bg-yellow-400.text-gray-900,
.bg-yellow-400 .text-gray-900 {
    color: var(--theme-on-primary) !important;
}

.font-brand {
    font-family: 'Oswald', sans-serif;
}

/* BANNER COM EFEITO DE REVELAÇÃO LETRA POR LETRA */
.delivery-banner {
    position: relative;
    overflow: hidden;
    background-color: var(--theme-primary);
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.delivery-text-container {
    position: relative;
    width: 100%;
    text-align: center;
    color: var(--theme-on-primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    mask-image: linear-gradient(to right, black var(--progress, 0%), transparent var(--progress, 0%));
    -webkit-mask-image: linear-gradient(to right, black var(--progress, 0%), transparent var(--progress, 0%));
    animation: reveal-progress 6s linear infinite;
}

.truck-icon {
    position: absolute;
    left: 0;
    font-size: 20px;
    z-index: 10;
    transform: translateX(-50%);
    animation: truck-progress 6s linear infinite, chomp 0.5s infinite;
    pointer-events: none;
    display: inline-block;
}

@keyframes reveal-progress {
    0%, 10% { --progress: 0%; }
    80%, 100% { --progress: 100%; }
}

@keyframes truck-progress {
    0%, 10% { left: 0%; opacity: 0; }
    11% { opacity: 1; }
    80% { left: 100%; opacity: 1; }
    81%, 100% { left: 100%; opacity: 0; }
}

@keyframes chomp {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
    100% { transform: translateX(-50%) scale(1); }
}

@property --progress {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: false;
}

@media (min-width: 640px) {
    .delivery-text-container { font-size: 13px; }
    .delivery-banner { height: 42px; }
}

/* Customizações de UI */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.events-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84%, 1fr);
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.125rem;
    padding-bottom: 0.25rem;
}

.events-carousel-slide {
    min-width: 0;
    scroll-snap-align: start;
}

.events-carousel-button {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 1px solid var(--theme-dark-border);
    background: rgba(39, 39, 42, 0.92);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.events-carousel-button:hover:not(:disabled) {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: var(--theme-on-primary);
    transform: translateY(-1px);
}

.events-carousel-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.events-carousel-indicator {
    width: 0.75rem;
    height: 0.35rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    background: rgba(161, 161, 170, 0.45);
    transition: all 0.2s ease;
}

.events-carousel-indicator.is-active {
    width: 2.1rem;
    background: var(--theme-primary);
    border-color: var(--theme-primary);
}

@media (min-width: 640px) {
    .events-carousel-track {
        grid-auto-columns: minmax(48%, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-carousel-track {
        grid-auto-columns: minmax(calc((100% - 2rem) / 3), 1fr);
    }
}

.product-card { transition: all 0.3s ease; }
#cart-sidebar { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

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