/* ==========================================================================
   Tema Diner · Brasa en clave fast-food americana
   Rojo, amarillo, azul y letreros. Mantiene la estructura editorial de Brasa.
   ========================================================================== */

.theme-diner {
    --bg: #FFF7E6;
    --surface: #FFFFFF;
    --surface-2: #FFE8B3;
    --ink: #17120D;
    --muted: #6F5A45;
    --line: #17120D;
    --accent: #1D4ED8;
    --brand: #E63946;
    --radius: 16px;
    --radius-s: 11px;
    --radius-l: 22px;
    --font-display: 'Bungee', Impact, 'Arial Black', sans-serif;
    --font-body: 'Archivo', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --shadow-s: 3px 3px 0 var(--ink);
    --shadow: 6px 6px 0 var(--ink);

    --diner-red: #E63946;
    --diner-yellow: #FFD447;
    --diner-blue: #1D4ED8;
    --diner-cream: #FFF7E6;
}

body.theme-diner {
    background-color: var(--diner-cream);
    background-image:
        linear-gradient(90deg, rgba(230, 57, 70, .045) 50%, transparent 50%),
        linear-gradient(rgba(230, 57, 70, .045) 50%, transparent 50%);
    background-size: 26px 26px;
}

.theme-diner .pwa-shell {
    background: var(--diner-cream);
    border-left: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
}

/* ── Portada ─────────────────────────────────────────────────────────────── */

.theme-diner .hero-media {
    height: 248px;
    border-bottom: 2px solid var(--ink);
    background: linear-gradient(140deg, var(--diner-blue), #0B2A8A);
}

.theme-diner .hero-media::after {
    background: linear-gradient(180deg, rgba(10, 8, 5, .4) 0%, rgba(10, 8, 5, .04) 46%, rgba(10, 8, 5, .48) 100%);
}

.theme-diner .hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 230px;
    z-index: 1;
    height: 18px;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    background: repeating-linear-gradient(
        90deg,
        var(--diner-red) 0 18px,
        var(--diner-yellow) 18px 36px
    );
}

.theme-diner .topbar {
    padding-top: max(14px, env(safe-area-inset-top));
}

.theme-diner .topbar .icon-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--ink);
    border-radius: 10px;
    background: var(--diner-yellow);
    color: var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.theme-diner .topbar .icon-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--ink);
}

.theme-diner .table-chip {
    border: 2px solid var(--ink);
    border-radius: 9px;
    background: var(--diner-yellow);
    color: var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.theme-diner .table-chip::before {
    background: var(--diner-red);
    box-shadow: 0 0 0 1.5px var(--ink);
}

.theme-diner .hero-id {
    align-items: stretch;
    gap: 11px;
    margin: -38px 14px 0;
    padding: 10px;
    border: 2px solid var(--ink);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 4px 4px 0 var(--ink);
}

.theme-diner .hero-logo {
    width: 74px;
    height: 74px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: var(--diner-yellow);
    color: var(--diner-red);
    font-family: var(--font-display);
    font-size: 25px;
    box-shadow: 2px 2px 0 var(--ink);
}

.theme-diner .hero-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.theme-diner .hero-name h1 {
    font-family: var(--font-display);
    font-size: clamp(18px, 5.4vw, 25px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: uppercase;
}

.theme-diner .hero-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.theme-diner .hero-status {
    color: #147A3D;
}

/* ── Herramientas y categorías ───────────────────────────────────────────── */

.theme-diner .tools {
    padding: 18px 16px 10px;
}

.theme-diner .search-box {
    border: 2px solid var(--ink);
    border-radius: 11px;
    background: var(--surface);
    box-shadow: 2px 2px 0 var(--ink);
    color: var(--ink);
}

.theme-diner .search-box input::placeholder {
    color: var(--muted);
    font-weight: 600;
}

.theme-diner .tools .icon-btn.solid {
    border: 2px solid var(--ink);
    border-radius: 11px;
    background: var(--diner-blue);
    color: #fff;
    box-shadow: 2px 2px 0 var(--ink);
}

.theme-diner .lang-select {
    border: 2px solid var(--ink);
    border-radius: 10px;
    background: var(--diner-yellow);
    color: var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    font-weight: 800;
}

.theme-diner .cats {
    gap: 7px;
    padding: 6px 16px 13px;
    background: linear-gradient(180deg, var(--diner-cream) 74%, transparent);
}

.theme-diner .chip {
    border: 2px solid var(--ink);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    padding: 8px 13px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 var(--ink);
}

.theme-diner .chip.active {
    background: var(--diner-red);
    border-color: var(--ink);
    color: #fff;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--ink);
}

/* ── Destacados ──────────────────────────────────────────────────────────── */

.theme-diner .featured {
    padding-bottom: 22px;
}

.theme-diner .feat {
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 3px 3px 0 var(--ink);
}

.theme-diner .feat-img {
    height: 108px;
    border-bottom: 2px solid var(--ink);
    background: var(--diner-yellow);
}

.theme-diner .feat-tag {
    top: 7px;
    left: 7px;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    background: var(--diner-yellow);
    color: var(--ink);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .06em;
    box-shadow: 1px 1px 0 var(--ink);
}

.theme-diner .feat-body {
    padding: 9px 10px 11px;
}

.theme-diner .feat-body h3 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.theme-diner .feat-body p {
    color: var(--muted);
    font-size: 10px;
}

.theme-diner .feat-foot {
    margin-top: 7px;
    font-size: 12px;
    font-weight: 900;
}

/* ── Menú ────────────────────────────────────────────────────────────────── */

.theme-diner .cat-title {
    margin: 8px 0 12px;
    color: var(--diner-red);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1.2;
    text-transform: uppercase;
}

.theme-diner .cat-title small {
    padding: 3px 7px;
    border: 1.5px solid var(--ink);
    border-radius: 5px;
    background: var(--diner-yellow);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.theme-diner .sub-title {
    color: var(--diner-blue);
    font-size: 10px;
    letter-spacing: .14em;
}

.theme-diner .menu-list {
    gap: 11px;
}

.theme-diner .dish {
    gap: 10px;
    padding: 10px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 3px 3px 0 var(--ink);
}

.theme-diner .dish:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--ink);
}

.theme-diner .dish-media {
    width: 84px;
    height: 84px;
    border: 2px solid var(--ink);
    border-radius: 9px;
    background: var(--surface-2);
}

.theme-diner .dish-head {
    align-items: flex-start;
    gap: 8px;
}

.theme-diner .dish-head h3 {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.theme-diner .dish-price {
    flex: none;
    padding: 3px 7px;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    background: var(--diner-yellow);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    box-shadow: 1px 1px 0 var(--ink);
}

.theme-diner .dish-desc {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.theme-diner .tag {
    padding: 2px 6px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    background: var(--diner-cream);
    color: var(--ink);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.theme-diner .tag.veg {
    background: #DFF5D8;
    color: #145A22;
}

.theme-diner .tag.nonveg {
    background: #FFE0D6;
    color: #9E2A12;
}

.theme-diner .dish-foot {
    padding-top: 7px;
}

.theme-diner .dish-foot .hint {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.theme-diner .add {
    width: 33px;
    height: 33px;
    border: 2px solid var(--ink);
    border-radius: 9px;
    background: var(--diner-red);
    color: #fff;
    box-shadow: 2px 2px 0 var(--ink);
}

.theme-diner .add:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--ink);
}

/* ── Carrito y hojas ─────────────────────────────────────────────────────── */

.theme-diner .cartbar {
    border: 2px solid var(--ink);
    border-radius: 13px;
    background: var(--diner-blue);
    color: #fff;
    box-shadow: 4px 4px 0 var(--ink);
}

.theme-diner .cartbar-count {
    width: 32px;
    height: 32px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--diner-yellow);
    color: var(--ink);
    font-weight: 900;
}

.theme-diner .cartbar-text {
    color: rgba(255, 255, 255, .82);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.theme-diner .cartbar-text b {
    color: #fff;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.theme-diner .cartbar-go {
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--diner-yellow);
    color: var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    font-weight: 900;
}

.theme-diner .panel {
    border-top: 3px solid var(--ink);
    background: var(--diner-cream);
    box-shadow: 0 -14px 0 rgba(23, 18, 13, .08), 0 -22px 50px rgba(0, 0, 0, .28);
}

.theme-diner .panel-head {
    border-bottom: 2px solid var(--ink);
    background: var(--diner-yellow);
}

.theme-diner .panel-head h2 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.theme-diner .panel-head .icon-btn {
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 1px 1px 0 var(--ink);
}

.theme-diner .btn {
    border: 2px solid var(--ink);
    border-radius: 9px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 var(--ink);
}

.theme-diner .btn:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--ink);
}

.theme-diner .btn-primary {
    background: var(--diner-red);
    color: #fff;
    box-shadow: 3px 3px 0 var(--ink);
}

.theme-diner .btn-ghost {
    background: var(--surface);
    color: var(--ink);
}

.theme-diner .btn-dark {
    background: var(--diner-blue);
    color: #fff;
}

.theme-diner .field label {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: .06em;
}

.theme-diner .field input,
.theme-diner .field select,
.theme-diner .field textarea {
    border: 2px solid var(--ink);
    border-radius: 9px;
    background: var(--surface);
    box-shadow: 2px 2px 0 rgba(23, 18, 13, .12);
}

.theme-diner .field input:focus,
.theme-diner .field select:focus,
.theme-diner .field textarea:focus {
    border-color: var(--diner-blue);
    box-shadow: 2px 2px 0 var(--diner-blue);
}

.theme-diner .segmented label {
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 800;
}

.theme-diner .segmented label:has(input:checked) {
    border-color: var(--ink);
    background: var(--diner-yellow);
    color: var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
}

.theme-diner .pay-option {
    border: 2px solid var(--ink);
    border-radius: 9px;
    background: var(--surface);
    font-weight: 600;
}

.theme-diner .pay-option:has(input:checked) {
    border-color: var(--ink);
    background: var(--diner-yellow);
}

.theme-diner .pay-option input {
    accent-color: var(--diner-red);
}

.theme-diner .site-foot {
    position: relative;
    margin-top: 18px;
    padding-top: 28px;
    border-top: 2px solid var(--ink);
    background: var(--diner-cream);
    color: var(--ink);
}

.theme-diner .site-foot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    border-bottom: 2px solid var(--ink);
    background: repeating-linear-gradient(
        90deg,
        var(--diner-red) 0 16px,
        var(--diner-yellow) 16px 32px
    );
}

@media (min-width: 620px) {
    .theme-diner .pwa-shell {
        border: 2px solid var(--ink);
        box-shadow: 8px 8px 0 var(--ink);
        margin: 24px auto;
        min-height: calc(100dvh - 48px);
    }
}
