/* SupMenu — quick wins: buscador, horario, mesa, carrito abandonado */

/* Contenedor solo-buscador (menú especial): evitar recorte del dropdown */
.nav-container.nav-container--search-only {
    overflow: visible !important;
    position: relative;
    z-index: 90;
}

body.menu-especial .nav-container--search-only {
    position: sticky;
    top: 0;
    z-index: 120;
    background: var(--bg-color, var(--color-bg-nav, #fff));
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.menu-especial .nav-container--search-only:has(.menu-search-bar--open) {
    z-index: 400;
    padding-bottom: min(50vh, 326px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.menu-especial .menu-content {
    position: relative;
    z-index: 1;
}

.menu-search-bar {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 12px;
    padding: 0 4px;
    z-index: 1;
}

.menu-search-bar--open {
    z-index: 401;
}

.nav-container--search-only {
    padding-top: 12px;
    padding-bottom: 12px;
}

.menu-search-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    z-index: 1;
}

.menu-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 40px 12px 42px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.menu-search-input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.menu-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
}

.menu-search-results {
    position: absolute;
    left: 4px;
    right: 4px;
    top: calc(100% + 6px);
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    max-height: min(50vh, 320px);
    overflow-y: auto;
    z-index: 402;
}

.menu-search-result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.menu-search-result:hover,
.menu-search-result:focus {
    background: rgba(0, 0, 0, 0.04);
}

.menu-search-result--category .menu-search-result-name {
    font-weight: 700;
}

.menu-search-result--category .menu-search-result-cat {
    color: var(--accent-color, #0d6efd);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.menu-search-result-name {
    font-weight: 600;
    color: #222;
}

.menu-search-result-cat {
    font-size: 0.82rem;
    color: #777;
}

.menu-search-empty {
    padding: 12px 14px;
    color: #666;
    font-size: 0.92rem;
}

.venue-status-banner {
    max-width: 640px;
    margin: 10px auto 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
}

.venue-status-banner--closed {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
}

.venue-status-banner strong {
    display: block;
    margin-bottom: 4px;
}

.venue-status-hours {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.table-label-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
}

.cart-resume-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 640px;
    margin: 12px auto 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eef6ff;
    border: 1px solid #cfe2ff;
    color: #084298;
    font-size: 0.92rem;
}

.cart-resume-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-resume-btn {
    border: 1px solid #9ec5fe;
    background: #fff;
    color: #084298;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.88rem;
    cursor: pointer;
}

.cart-resume-btn--primary {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.order-cart-closed-hint {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff3cd;
    color: #664d03;
    font-size: 0.9rem;
    line-height: 1.4;
}

.product-card--highlight,
.featured-product-card.product-card--highlight,
.super-featured-card.product-card--highlight {
    animation: product-highlight-pulse 2.2s ease-out;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.35);
}

@keyframes product-highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.45); }
    40% { box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Link a ficha de producto */
.product-name-link {
    color: inherit;
    text-decoration: none;
}
.product-name-link:hover {
    text-decoration: underline;
}

/* ── Nav hamburguesa (mobile, optativo; convive con botonera) ── */
.nav-hamburger-bar {
    display: none;
}
.nav-drawer-overlay,
.nav-drawer {
    display: none;
}

.menu-header {
    position: relative;
}

@media (max-width: 900px) {
    .nav-hamburger-enabled .menu-header {
        padding-right: 56px;
    }
    .nav-hamburger-enabled .nav-hamburger-bar {
        display: flex;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1200;
        padding: 0;
        margin: 0;
    }
    /* Por encima del overlay para poder cerrar con el mismo botón */
    .nav-hamburger-enabled .nav-hamburger-bar.is-open {
        z-index: 8002;
    }
    /* Botonera mobile se mantiene visible (como en otros menús) */
    .nav-hamburger-enabled .nav-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(11, 42, 74, 0.45);
        z-index: 8000;
    }
    .nav-hamburger-enabled .nav-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(320px, 88vw);
        background: #fff;
        z-index: 8001;
        box-shadow: -8px 0 28px rgba(0,0,0,0.18);
        padding: 16px;
        overflow-y: auto;
    }
}

.nav-hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 44px;
    min-height: 44px;
    background: #0B2A4A;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(11, 42, 74, 0.2);
}
.nav-hamburger-label {
    display: none;
}
.nav-hamburger-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.nav-drawer-close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.nav-drawer-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nav-drawer-link {
    text-align: left;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fafafa;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
}
.nav-drawer-link.active {
    font-weight: 700;
    border-color: currentColor;
}
