@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; }

.desktop-category-nav {
    position: relative;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.desktop-category-button,
.desktop-category-more-button {
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    padding: 0.55rem 0.8rem;
    color: #d4d4d8;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.desktop-category-button:hover,
.desktop-category-more-button:hover,
.desktop-category-more[open] .desktop-category-more-button {
    border-color: var(--theme-dark-surface);
    background: var(--theme-dark-surface);
    color: #ffffff;
}

.desktop-category-button:focus-visible,
.desktop-category-more-button:focus-visible,
.desktop-category-dropdown-button:focus-visible {
    outline: 2px solid var(--theme-primary);
    outline-offset: 2px;
}

.desktop-category-button.is-active,
.desktop-category-more-button.is-active {
    border-color: var(--theme-primary);
    background: var(--theme-primary);
    color: var(--theme-on-primary);
}

.desktop-category-more-button svg {
    width: 0.95rem;
    height: 0.95rem;
    transition: transform 0.18s ease;
}

.desktop-category-more[open] .desktop-category-more-button svg {
    transform: rotate(180deg);
}

.desktop-category-more {
    position: static;
}

.desktop-category-more-button {
    cursor: pointer;
    list-style: none;
}

.desktop-category-more-button::-webkit-details-marker {
    display: none;
}

.desktop-category-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    z-index: 70;
    width: min(46rem, calc(100vw - 2rem));
    max-height: min(28rem, calc(100vh - 11rem));
    overflow-y: auto;
    transform: translateX(-50%);
    border: 1px solid #e4e4e7;
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.8rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.desktop-category-dropdown.hidden {
    display: none;
}

.desktop-category-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0.35rem 0.75rem;
    color: #71717a;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.desktop-category-dropdown-count {
    min-width: 1.7rem;
    border-radius: 9999px;
    background: #f4f4f5;
    padding: 0.25rem 0.5rem;
    color: #52525b;
    text-align: center;
}

.desktop-category-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.desktop-category-dropdown-button {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.75rem;
    background: #fafafa;
    padding: 0.75rem 0.85rem;
    color: #27272a;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.desktop-category-dropdown-button::after {
    content: '\2192';
    flex: 0 0 auto;
    color: #a1a1aa;
}

.desktop-category-dropdown-button:hover,
.desktop-category-dropdown-button.is-active {
    border-color: var(--theme-primary);
    background: var(--theme-primary-soft);
    transform: translateY(-1px);
}

@media (max-width: 1023px) {
    .desktop-category-nav {
        gap: 0.2rem;
    }

    .desktop-category-button,
    .desktop-category-more-button {
        padding-inline: 0.6rem;
        font-size: 0.69rem;
    }

    .desktop-category-dropdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-modal-swipe-area {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.report-table-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.report-table {
    width: 100%;
    min-width: 720px;
}

.report-category-table {
    min-width: 640px;
}

.report-table th,
.report-table td {
    white-space: nowrap;
}

.report-table th:first-child,
.report-table td:first-child {
    min-width: 220px;
    white-space: normal;
}

.report-cell-wrap,
.report-card-value {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.report-card-value {
    line-height: 1.12;
}

.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;
}
