.menu-shell {
    min-height: 100vh;
    --menu-top-tabs-height: 74px;
    --menu-sticky-filters-height: 126px;
    --menu-visible-top-offset: var(--menu-top-tabs-height);
    --menu-scroll-offset: calc(var(--menu-visible-top-offset) + var(--menu-sticky-filters-height) + 14px);
}

.store-panel,
.menu-category,
#categoria-todas,
#pedido {
    scroll-margin-top: var(--menu-scroll-offset);
}

.top-tabs {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(83, 0, 0, 0.25);
    box-shadow: 0 8px 28px rgba(107, 12, 12, 0.16);
    transform: translateY(0);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    will-change: transform;
}

.menu-shell.is-top-tabs-hidden {
    --menu-visible-top-offset: 0px;
}

.menu-shell.is-top-tabs-hidden .top-tabs {
    box-shadow: none;
    transform: translateY(-100%);
}

.top-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 74px;
    padding: 16px 8px;
    background: var(--brand-red);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
}

.top-tab--button {
    border: 0;
    cursor: pointer;
}

.top-tab.is-active,
.top-tab:hover {
    background: var(--brand-red-dark);
}

.top-tab svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex: 0 0 auto;
}

.store-panel,
.search-panel,
.category-tabs,
.menu-layout {
    width: min(1180px, calc(100% - 22px));
    margin: 0 auto;
}

.menu-sticky-filters {
    position: sticky;
    top: var(--menu-visible-top-offset);
    z-index: 35;
    background: linear-gradient(180deg, var(--page-bg) 0%, rgba(250, 245, 235, 0.96) 78%, rgba(250, 245, 235, 0));
    transition: top 0.24s ease, box-shadow 0.24s ease;
}

.menu-sticky-filters.is-stuck {
    box-shadow: 0 12px 24px rgba(77, 46, 10, 0.08);
}

.store-panel {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid rgba(199, 154, 24, 0.16);
    border-radius: 0 0 22px 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.store-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(199, 154, 24, 0.12), transparent 28%),
        radial-gradient(circle at right top, rgba(8, 163, 32, 0.08), transparent 28%);
    pointer-events: none;
}

.store-panel__media,
.store-panel__content {
    position: relative;
    z-index: 1;
}

.store-panel__logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 22px rgba(117, 72, 11, 0.14);
}

.store-panel__logo--fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1b1b1b, #4c4c4c);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
}

.store-panel h1 {
    margin: 0;
    color: var(--brand-green);
    font-size: clamp(1.2rem, 3.4vw, 2rem);
    line-height: 1.05;
}

.store-panel__status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.status-badge,
.store-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.82rem;
}

.status-badge {
    border: 1px solid transparent;
    color: #fff;
    cursor: pointer;
}

.status-badge--open {
    background: var(--brand-green);
}

.status-badge--closed {
    background: #fff1f1;
    border-color: rgba(196, 35, 45, 0.22);
    color: #9a1c24;
}

.status-badge--paused {
    background: #fff7df;
    border-color: rgba(199, 154, 24, 0.32);
    color: #7c570b;
}

.status-badge:focus-visible {
    outline: 3px solid rgba(199, 154, 24, 0.24);
    outline-offset: 2px;
}

.store-panel__status-note,
.store-panel__status-reason {
    position: relative;
    z-index: 1;
    margin: 6px 0 0;
    color: #6a4f12;
    line-height: 1.4;
}

.store-panel__status-note {
    font-size: 0.92rem;
    font-weight: 700;
}

.store-panel__status-reason {
    font-size: 0.82rem;
}

.store-pill {
    background: #fff8e6;
    color: #87600a;
    border: 1px solid rgba(199, 154, 24, 0.35);
}

.store-mode-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #111, #2f2f2f);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.cart-order-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 16px;
    background: var(--paper-soft);
    border: 1px solid rgba(199, 154, 24, 0.14);
}

.cart-order-mode span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.cart-address-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff0cf;
    border: 1px solid rgba(199, 154, 24, 0.38);
}

.cart-address-alert strong {
    display: block;
    margin-bottom: 6px;
    color: #7a5000;
}

.cart-address-alert p {
    margin: 0 0 12px;
    color: #6e561d;
    line-height: 1.45;
}

.cart-address-alert button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--brand-red);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.cart-address-alert--drawer {
    margin: 0 24px 0;
}

.cart-table-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #eef7eb;
    border: 1px solid rgba(8, 163, 32, 0.2);
}

.cart-table-alert strong {
    color: #236629;
    font-size: 0.95rem;
}

.cart-table-alert button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--brand-green);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.cart-table-alert--drawer {
    margin: 0 24px 0;
}

.cart-store-alert,
.cart-customer-card {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
}

.cart-store-alert {
    background: #ffe6e6;
    border: 1px solid rgba(187, 19, 19, 0.22);
}

.cart-store-alert strong {
    display: block;
    margin-bottom: 6px;
    color: #9c1515;
}

.cart-store-alert p {
    margin: 0;
    color: #7a2c2c;
    line-height: 1.45;
}

.cart-store-alert--drawer,
.cart-customer-card--drawer {
    margin: 0 24px 0;
}

.cart-customer-card {
    background: #fff;
    border: 1px solid rgba(199, 154, 24, 0.18);
    box-shadow: 0 8px 22px rgba(77, 46, 10, 0.06);
}

.cart-customer-card__eyebrow {
    margin: 0 0 6px;
    color: #9a6c08;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cart-customer-card h3 {
    margin: 0;
    font-size: 1rem;
}

.search-panel {
    padding: 18px 0 14px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    background: var(--paper);
    border: 2px solid var(--brand-gold);
    border-radius: 999px;
    box-shadow: var(--shadow);
    cursor: text;
}

.search-box svg {
    width: 20px;
    height: 20px;
    fill: #9f9f9f;
    flex: 0 0 auto;
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
}

.search-box input::-webkit-search-cancel-button {
    display: none;
}

.search-box__clear {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(196, 35, 45, 0.2);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-red);
    flex: 0 0 auto;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.search-box__clear[hidden] {
    display: none;
}

.search-box__clear:focus-visible {
    outline: 3px solid rgba(196, 35, 45, 0.18);
    outline-offset: 2px;
}

.search-box__filter {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #f3ede2;
    border: 1px solid rgba(199, 154, 24, 0.24);
    flex: 0 0 auto;
}

.search-box__filter svg {
    width: 16px;
    height: 16px;
    fill: #7d6530;
}

.category-tabs {
    display: flex;
    gap: 9px;
    padding: 6px 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex: 0 0 auto;
    min-width: auto;
    min-height: 40px;
    padding: 10px 16px;
    border: 1px solid #f1d7a6;
    border-radius: 999px;
    background: #fff7e6;
    color: #5b4636;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    box-shadow: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.category-tab.is-active {
    border-color: #a80000;
    background: #a80000;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(168, 0, 0, 0.18);
}

@media (hover: hover) {
    .category-tab:not(.is-active):hover {
        border-color: #e8c780;
        background: #fff0cc;
        color: #4b3829;
    }
}

.category-tab:active {
    transform: scale(0.98);
}

