/* OnlineFoodies CartaTV — estilos aislados para pantallas de señalización */
:root { color-scheme: dark; }
html, body.ofctv-body { width: 100%; height: 100%; margin: 0 !important; padding: 0 !important; overflow: hidden !important; background: #101318; }
body.ofctv-body { font-family: Inter, "Segoe UI", Arial, sans-serif; }
.ofctv-screen, .ofctv-screen * { box-sizing: border-box; }
.ofctv-screen { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; background-color: var(--ofctv-bg-color, #121820); background-position: center; background-size: cover; background-repeat: no-repeat; color: var(--ofctv-text, #fff); padding: clamp(20px, 2.3vw, 56px); isolation: isolate; }
.ofctv-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ofctv-slide { position: absolute; inset: clamp(20px, 2.3vw, 56px); display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 28px); opacity: 0; visibility: hidden; transform: translateX(1.5%); transition: opacity .65s ease, transform .65s ease, visibility .65s; }
.ofctv-slide.is-active { opacity: 1; visibility: visible; transform: translateX(0); }
.ofctv-slide-header { flex: 0 0 auto; display: flex; align-items: end; justify-content: space-between; gap: 24px; min-height: 9%; border-bottom: 2px solid color-mix(in srgb, var(--ofctv-text) 28%, transparent); padding-bottom: clamp(10px, 1vw, 22px); }
.ofctv-screen-brand { font-size: clamp(13px, 1.2vw, 27px); font-weight: 700; opacity: .78; max-width: 32%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofctv-category-heading { text-align: right; }
.ofctv-category-heading h1 { margin: 0; font-size: clamp(30px, 3.3vw, 78px); font-weight: 900; line-height: 1.02; letter-spacing: -.025em; color: var(--ofctv-text); }
.ofctv-part-label { display: block; margin-top: 6px; font-size: clamp(12px, .9vw, 21px); opacity: .75; }
.ofctv-items { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 26px); }
.ofctv-item { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--ofctv-text); background: color-mix(in srgb, var(--ofctv-text) 7%, transparent); border: 1px solid color-mix(in srgb, var(--ofctv-text) 15%, transparent); border-radius: clamp(12px, 1.2vw, 26px); }
.ofctv-item-image { flex: 0 1 52%; min-height: 0; overflow: hidden; background: rgba(0,0,0,.12); }
.ofctv-item-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ofctv-item-body { min-width: 0; flex: 1 1 auto; padding: clamp(12px, 1.1vw, 26px); display: flex; flex-direction: column; gap: .55em; }
.ofctv-item-topline { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.ofctv-item h2 { margin: 0; font-size: clamp(18px, 1.45vw, 34px); font-weight: 850; line-height: 1.13; color: var(--ofctv-text); overflow-wrap: anywhere; }
.ofctv-price { flex: 0 0 auto; font-size: clamp(19px, 1.6vw, 38px); font-weight: 900; white-space: nowrap; color: var(--ofctv-text); }
.ofctv-item p { margin: 0; opacity: .8; font-size: clamp(13px, .95vw, 23px); line-height: 1.35; overflow-wrap: anywhere; }
.ofctv-slide-footer { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; opacity: .6; font-size: clamp(11px, .8vw, 18px); }
.ofctv-page-counter { font-variant-numeric: tabular-nums; }
.ofctv-progress { position: absolute; height: 4px; left: 0; bottom: 0; width: 100%; background: color-mix(in srgb, var(--ofctv-text) 10%, transparent); }
.ofctv-progress span { display: block; height: 100%; width: 0; background: var(--ofctv-text); opacity: .8; }
.ofctv-empty-state { position: absolute; inset: 10%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ofctv-text); }
.ofctv-empty-state h1 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 86px); }
.ofctv-empty-state p { font-size: clamp(22px, 2vw, 42px); }
.ofctv-empty-state small { font-size: clamp(14px, 1vw, 22px); opacity: .75; }

/* Layout 1: Clásico — tarjetas equilibradas */
.layout-classic .ofctv-item { box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.layout-classic .ofctv-item.no-image { justify-content: center; }
.layout-classic .ofctv-item.no-image .ofctv-item-body { justify-content: center; }

/* Layout 2: Galería — fotografía dominante */
.layout-gallery .ofctv-items { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 34px); }
.layout-gallery .ofctv-item { position: relative; border: 0; background: rgba(0,0,0,.4); }
.layout-gallery .ofctv-item-image { position: absolute; inset: 0; flex: none; }
.layout-gallery .ofctv-item-image img { filter: saturate(1.04); }
.layout-gallery .ofctv-item::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.88)); pointer-events: none; }
.layout-gallery .ofctv-item-body { position: relative; z-index: 1; margin-top: auto; padding: clamp(18px, 1.8vw, 40px); justify-content: end; }
.layout-gallery .ofctv-item h2, .layout-gallery .ofctv-price { color: #fff; text-shadow: 0 2px 9px rgba(0,0,0,.3); }
.layout-gallery .ofctv-item p { color: #fff; opacity: .92; }
.layout-gallery .ofctv-item.no-image { background: color-mix(in srgb, var(--ofctv-text) 9%, transparent); }
.layout-gallery .ofctv-item.no-image::after { display: none; }

/* Layout 3: Minimalista — lista de lectura a distancia */
.layout-minimal .ofctv-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 0 clamp(20px, 2vw, 44px); }
.layout-minimal .ofctv-item { flex-direction: row; align-items: center; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ofctv-text) 25%, transparent); border-radius: 0; background: transparent; }
.layout-minimal .ofctv-item-image { flex: 0 0 18%; height: 80%; border-radius: 10px; }
.layout-minimal .ofctv-item-body { justify-content: center; padding: clamp(8px, .7vw, 16px); }
.layout-minimal .ofctv-item h2 { font-size: clamp(19px, 1.6vw, 37px); }
.layout-minimal .ofctv-item p { font-size: clamp(12px, .85vw, 20px); }
.layout-minimal .ofctv-price { font-size: clamp(18px, 1.55vw, 36px); }
.layout-minimal .ofctv-item.no-image .ofctv-item-body { padding-left: 0; }

/* Portrait screens (1080 × 1920): reflow is based on the selected screen orientation. */
.ofctv-screen.is-portrait { padding: clamp(18px, 3vw, 42px); }
.is-portrait .ofctv-slide { inset: clamp(18px, 3vw, 42px); gap: clamp(12px, 2vw, 25px); }
.is-portrait .ofctv-slide-header { align-items: start; flex-direction: column; gap: 8px; min-height: 12%; }
.is-portrait .ofctv-screen-brand { max-width: 100%; font-size: clamp(14px, 1.8vw, 25px); }
.is-portrait .ofctv-category-heading { text-align: left; width: 100%; }
.is-portrait .ofctv-category-heading h1 { font-size: clamp(30px, 4.4vw, 65px); }
.is-portrait .ofctv-items { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.is-portrait .ofctv-item h2 { font-size: clamp(17px, 2.3vw, 33px); }
.is-portrait .ofctv-price { font-size: clamp(18px, 2.6vw, 36px); }
.is-portrait .ofctv-item p { font-size: clamp(13px, 1.6vw, 22px); }
.is-portrait.layout-gallery .ofctv-items { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.is-portrait.layout-minimal .ofctv-items { grid-template-columns: 1fr; grid-template-rows: repeat(6, minmax(0, 1fr)); }
.is-portrait.layout-minimal .ofctv-item-image { flex-basis: 15%; }

@media (prefers-reduced-motion: reduce) { .ofctv-slide { transition: none; } }

/* Typography controls — defaults resolve to the original Inter/Segoe UI stack. */
.ofctv-category-heading h1,
.ofctv-item h2 { font-family: var(--ofctv-font-title, Inter, "Segoe UI", Arial, sans-serif); }
.ofctv-item p { font-family: var(--ofctv-font-desc, Inter, "Segoe UI", Arial, sans-serif); }
.ofctv-price { font-family: var(--ofctv-font-price, Inter, "Segoe UI", Arial, sans-serif); }
.ofctv-screen-brand { display: flex; align-items: center; gap: clamp(8px, .8vw, 18px); }
.ofctv-screen-logo { display: block; max-width: clamp(55px, 7vw, 150px); max-height: clamp(35px, 5vw, 100px); width: auto; height: auto; object-fit: contain; }

/* Layout 4: Burger — irregular product-photo rhythm for burger/pizza menus. */
.layout-burger .ofctv-slide-header { align-items: center; border-bottom: 0; }
.layout-burger .ofctv-category-heading h1 {
    display: inline-block;
    padding: .18em .48em .22em;
    color: #ffe14b;
    background: #e52d24;
    clip-path: polygon(2% 7%, 13% 2%, 21% 7%, 32% 1%, 44% 5%, 56% 0, 68% 5%, 80% 2%, 98% 6%, 96% 27%, 100% 42%, 97% 60%, 99% 78%, 89% 83%, 76% 96%, 61% 90%, 48% 100%, 35% 92%, 20% 97%, 10% 89%, 1% 92%, 4% 69%, 0 52%, 3% 31%);
    text-align: center;
    letter-spacing: -.015em;
    text-shadow: 0 1px 1px rgba(0,0,0,.12);
}
.layout-burger .ofctv-items {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1vw, 24px);
}
.layout-burger .ofctv-item {
    background: rgba(0,0,0,.32);
    border: 1px solid color-mix(in srgb, var(--ofctv-text) 12%, transparent);
    border-radius: clamp(2px, .45vw, 10px);
    box-shadow: 0 5px 18px rgba(0,0,0,.18);
}
.layout-burger .ofctv-item:nth-child(1) { grid-column: span 2; flex-direction: row; }
.layout-burger .ofctv-item:nth-child(1) .ofctv-item-image { flex: 0 0 48%; height: auto; }
.layout-burger .ofctv-item:nth-child(1) .ofctv-item-body { justify-content: center; }
.layout-burger .ofctv-item-image { flex: 0 0 43%; min-height: 0; }
.layout-burger .ofctv-item-body { padding: clamp(10px, 1vw, 22px); gap: .35em; }
.layout-burger .ofctv-item h2 { font-size: clamp(18px, 1.5vw, 35px); font-weight: 900; }
.layout-burger .ofctv-price { color: #ffcf32; font-size: clamp(19px, 1.55vw, 37px); }
.layout-burger .ofctv-item p { font-size: clamp(12px, .8vw, 19px); line-height: 1.24; }
.layout-burger .ofctv-item.no-image { justify-content: center; }
.layout-burger .ofctv-item.no-image .ofctv-item-body { justify-content: center; }

/* Layout 5: Bocatería — high-contrast, photo-free two-column list. */
.layout-bocateria .ofctv-slide-header {
    min-height: 10%;
    align-items: center;
    margin: calc(clamp(20px, 2.3vw, 56px) * -1) calc(clamp(20px, 2.3vw, 56px) * -1) 0;
    padding: clamp(12px, 1.2vw, 28px) clamp(20px, 3.2vw, 68px);
    background: #b96b46;
    color: #fff;
    border: 0;
}
.layout-bocateria .ofctv-screen-brand { color: #fff; opacity: 1; }
.layout-bocateria .ofctv-category-heading h1 { color: #fff; font-size: clamp(28px, 3vw, 72px); letter-spacing: .015em; }
.layout-bocateria .ofctv-part-label { color: #fff; opacity: .88; }
.layout-bocateria .ofctv-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--ofctv-item-rows, 8), minmax(0, 1fr));
    gap: clamp(3px, .35vw, 8px) clamp(16px, 1.7vw, 38px);
}
.layout-bocateria .ofctv-item {
    flex-direction: column;
    background: rgba(255,255,255,.96);
    border: 0;
    border-bottom: 1px solid rgba(116,47,59,.2);
    border-radius: 0;
    color: #79333f;
    box-shadow: none;
}
.layout-bocateria .ofctv-item-image { display: none !important; }
.layout-bocateria .ofctv-item-body { padding: clamp(5px, .48vw, 11px) clamp(7px, .6vw, 14px); gap: .12em; justify-content: center; }
.layout-bocateria .ofctv-item-topline { align-items: baseline; gap: 10px; }
.layout-bocateria .ofctv-item h2 { color: #79333f; font-size: clamp(17px, 1.42vw, 32px); line-height: 1.12; font-weight: 850; }
.layout-bocateria .ofctv-price { color: #79333f; font-size: clamp(17px, 1.45vw, 33px); font-weight: 900; }
.layout-bocateria .ofctv-item p { color: #4a3c3b; font-size: clamp(11px, .72vw, 17px); line-height: 1.16; opacity: .82; }
.layout-bocateria .ofctv-slide-footer { color: var(--ofctv-text); }

/* Portrait-specific reflow for the two new layouts. */
.is-portrait.layout-burger .ofctv-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 24px);
}
.is-portrait.layout-burger .ofctv-item:nth-child(1) { grid-column: auto; flex-direction: column; }
.is-portrait.layout-burger .ofctv-item:nth-child(1) .ofctv-item-image { flex: 0 0 45%; height: auto; }
.is-portrait.layout-burger .ofctv-item-image { flex-basis: 42%; }
.is-portrait.layout-burger .ofctv-item h2 { font-size: clamp(18px, 2.25vw, 33px); }
.is-portrait.layout-burger .ofctv-price { font-size: clamp(18px, 2.4vw, 35px); }
.is-portrait.layout-burger .ofctv-item p { font-size: clamp(12px, 1.5vw, 22px); }
.is-portrait.layout-bocateria .ofctv-slide-header {
    margin: calc(clamp(18px, 3vw, 42px) * -1) calc(clamp(18px, 3vw, 42px) * -1) 0;
    padding: clamp(12px, 2vw, 28px) clamp(18px, 3vw, 42px);
    min-height: 10%;
    flex-direction: row;
}
.is-portrait.layout-bocateria .ofctv-category-heading { text-align: right; }
.is-portrait.layout-bocateria .ofctv-category-heading h1 { font-size: clamp(24px, 3.4vw, 46px); }
.is-portrait.layout-bocateria .ofctv-items { grid-template-columns: 1fr; grid-template-rows: repeat(var(--ofctv-item-rows, 10), minmax(0, 1fr)); gap: 3px; }
.is-portrait.layout-bocateria .ofctv-item h2 { font-size: clamp(18px, 2vw, 29px); }
.is-portrait.layout-bocateria .ofctv-price { font-size: clamp(18px, 2vw, 29px); }
.is-portrait.layout-bocateria .ofctv-item p { font-size: clamp(11px, 1.2vw, 17px); }

@media (max-width: 1000px) {
    .layout-bocateria .ofctv-item h2 { font-size: clamp(14px, 1.2vw, 24px); }
    .layout-bocateria .ofctv-price { font-size: clamp(14px, 1.2vw, 24px); }
}

/* Keep small categories well-proportioned rather than leaving half a screen empty. */
.layout-burger .ofctv-items.ofctv-count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.layout-burger .ofctv-items.ofctv-count-1 .ofctv-item:nth-child(1) { grid-column: auto; }
.layout-burger .ofctv-items.ofctv-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.layout-burger .ofctv-items.ofctv-count-2 .ofctv-item:nth-child(1),
.layout-burger .ofctv-items.ofctv-count-3 .ofctv-item:nth-child(1),
.layout-burger .ofctv-items.ofctv-count-4 .ofctv-item:nth-child(1) { grid-column: auto; }
.layout-burger .ofctv-items.ofctv-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr; }
.layout-burger .ofctv-items.ofctv-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.is-portrait.layout-burger .ofctv-items.ofctv-count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.is-portrait.layout-burger .ofctv-items.ofctv-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.is-portrait.layout-burger .ofctv-items.ofctv-count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.is-portrait.layout-burger .ofctv-items.ofctv-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }


/* Full-screen promotional slides are shared by all CartaTV layouts. */
.ofctv-slide.ofctv-promo-slide { inset: 0; padding: 0; display: block; gap: 0; transform: none; background: #101318; }
.ofctv-promo-background { position: absolute; inset: 0; background-image: var(--ofctv-promo-image); background-position: center; background-repeat: no-repeat; background-size: cover; }
.ofctv-promo-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.06) 25%, rgba(0,0,0,.5) 100%); }
.ofctv-promo-copy { position: absolute; left: 6%; right: 6%; bottom: 7%; max-width: 82%; padding: clamp(16px, 2vw, 42px) clamp(18px, 2.6vw, 56px); border-radius: clamp(8px, .8vw, 18px); background: rgba(0,0,0,.56); color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.ofctv-promo-copy h1 { margin: 0 0 .25em; font-family: var(--ofctv-font-title, Inter, "Segoe UI", Arial, sans-serif); font-size: clamp(32px, 4.2vw, 92px); line-height: 1.04; font-weight: 900; overflow-wrap: anywhere; }
.ofctv-promo-copy p { margin: 0; font-family: var(--ofctv-font-desc, Inter, "Segoe UI", Arial, sans-serif); font-size: clamp(19px, 2vw, 44px); line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
.is-portrait .ofctv-slide.ofctv-promo-slide { inset: 0; }
.is-portrait .ofctv-promo-copy { left: 5%; right: 5%; bottom: 5%; max-width: 90%; padding: clamp(18px, 4vw, 50px); }
.is-portrait .ofctv-promo-copy h1 { font-size: clamp(36px, 7vw, 88px); }
.is-portrait .ofctv-promo-copy p { font-size: clamp(21px, 4vw, 48px); }


/* Layout 6: Fast Food 4 — four hero dishes, dark charcoal, red brush headings and yellow prices. */
.layout-four.ofctv-screen {
    background-color: var(--ofctv-bg-color, #080909);
    background-image: radial-gradient(ellipse at 20% 8%, rgba(255,255,255,.045), transparent 35%),
        radial-gradient(ellipse at 88% 92%, rgba(255,255,255,.035), transparent 32%),
        repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 2px, transparent 2px 7px);
}
.layout-four .ofctv-slide-header {
    align-items: center;
    border-bottom: 2px solid rgba(230, 48, 34, .7);
    padding-bottom: clamp(8px, .8vw, 18px);
}
.layout-four .ofctv-category-heading h1 {
    display: inline-block;
    padding: .18em .58em .22em;
    color: #ffe34d;
    background: #e52d24;
    clip-path: polygon(2% 7%, 13% 2%, 21% 7%, 32% 1%, 44% 5%, 56% 0, 68% 5%, 80% 2%, 98% 6%, 96% 27%, 100% 42%, 97% 60%, 99% 78%, 89% 83%, 76% 96%, 61% 90%, 48% 100%, 35% 92%, 20% 97%, 10% 89%, 1% 92%, 4% 69%, 0 52%, 3% 31%);
    font-size: clamp(26px, 2.7vw, 64px);
    letter-spacing: -.012em;
    text-align: center;
}
.layout-four .ofctv-screen-brand { color: #f9f4ed; opacity: .95; }
.layout-four .ofctv-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--ofctv-item-rows, 2), minmax(0, 1fr));
    gap: clamp(12px, 1.2vw, 28px);
}
.layout-four .ofctv-item {
    flex-direction: row;
    align-items: stretch;
    color: #f7f2eb;
    background: linear-gradient(105deg, rgba(20,20,20,.88), rgba(0,0,0,.50));
    border: 0;
    border-bottom: 2px solid rgba(226, 42, 28, .74);
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0,0,0,.26);
}
.layout-four .ofctv-item-image { flex: 0 0 42%; height: auto; align-self: stretch; background: transparent; }
.layout-four .ofctv-item-image img { object-fit: contain; padding: clamp(2px, .25vw, 6px); }
.layout-four .ofctv-item-body { justify-content: center; padding: clamp(10px, 1vw, 24px); gap: .35em; }
.layout-four .ofctv-item h2 { color: #ffe34d; font-size: clamp(20px, 1.8vw, 42px); font-weight: 900; line-height: 1.05; }
.layout-four .ofctv-price { color: #ffd12e; font-size: clamp(21px, 1.8vw, 42px); }
.layout-four .ofctv-item p { color: #f3eee6; font-size: clamp(12px, .88vw, 21px); line-height: 1.22; opacity: .9; }
.layout-four .ofctv-item.no-image .ofctv-item-body { padding-left: clamp(16px, 1.5vw, 34px); }
.layout-four .ofctv-items.ofctv-count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.layout-four .ofctv-items.ofctv-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.layout-four .ofctv-items.ofctv-count-3 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.layout-four .ofctv-items.ofctv-count-3 .ofctv-item:nth-child(3) { grid-column: 1 / -1; }
.layout-four .ofctv-items.ofctv-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.layout-four .ofctv-item.no-image { justify-content: center; }
.layout-four .ofctv-slide-footer { color: #f3eee6; }

/* Layout 7: Indian restaurant — warm cream, saffron, curry red and deep green accents. */
.layout-indian.ofctv-screen { background-color: var(--ofctv-bg-color, #fff3dc); }
.layout-indian .ofctv-slide-header {
    align-items: center;
    min-height: 10%;
    margin: calc(clamp(20px, 2.3vw, 56px) * -1) calc(clamp(20px, 2.3vw, 56px) * -1) 0;
    padding: clamp(12px, 1.25vw, 30px) clamp(20px, 2.8vw, 62px);
    color: #fff7e7;
    background: linear-gradient(110deg, #8f261c, #b94524 65%, #c96a22);
    border: 0;
    border-bottom: clamp(4px, .45vw, 10px) solid #e8af38;
    box-shadow: 0 4px 0 rgba(28, 100, 52, .55);
}
.layout-indian .ofctv-screen-brand { color: #fff7e7; opacity: 1; }
.layout-indian .ofctv-category-heading h1 {
    display: inline-block;
    padding: .12em .36em .16em;
    color: #6f2119;
    background: #f1b83e;
    border: 2px solid rgba(255,246,222,.7);
    border-radius: .18em;
    font-size: clamp(28px, 2.75vw, 66px);
    letter-spacing: .01em;
    text-shadow: none;
}
.layout-indian .ofctv-part-label { color: #fff6df; }
.layout-indian .ofctv-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--ofctv-item-rows, 4), minmax(0, 1fr));
    gap: clamp(10px, .9vw, 22px) clamp(16px, 1.5vw, 34px);
}
.layout-indian .ofctv-item {
    flex-direction: row;
    align-items: stretch;
    color: #4e2a20;
    background: rgba(255, 252, 242, .95);
    border: 1px solid #e1c17c;
    border-left: clamp(4px, .35vw, 8px) solid #b63a27;
    border-radius: clamp(5px, .5vw, 12px);
    box-shadow: 0 3px 10px rgba(91, 43, 26, .10);
}
.layout-indian .ofctv-item-image { flex: 0 0 31%; height: auto; align-self: stretch; background: #f6e8c8; }
.layout-indian .ofctv-item-image img { object-fit: cover; }
.layout-indian .ofctv-item-body { justify-content: center; padding: clamp(8px, .8vw, 18px); gap: .3em; }
.layout-indian .ofctv-item h2 { color: #7b251b; font-size: clamp(18px, 1.48vw, 35px); font-weight: 900; line-height: 1.1; }
.layout-indian .ofctv-price { color: #21653b; font-size: clamp(19px, 1.55vw, 36px); }
.layout-indian .ofctv-item p { color: #5b4233; font-size: clamp(11px, .78vw, 18px); line-height: 1.2; opacity: .92; }
.layout-indian .ofctv-item.no-image .ofctv-item-body { padding-left: clamp(12px, 1vw, 24px); }
.layout-indian .ofctv-slide-footer { color: #693328; }

/* Portrait adaptations keep the selected screen ratio and four visible dishes for Fast Food 4. */
.is-portrait.layout-four .ofctv-slide-header {
    align-items: center;
    flex-direction: row;
    min-height: 9%;
}
.is-portrait.layout-four .ofctv-category-heading { text-align: right; width: auto; }
.is-portrait.layout-four .ofctv-category-heading h1 { font-size: clamp(24px, 3.4vw, 48px); }
.is-portrait.layout-four .ofctv-items {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--ofctv-item-rows, 4), minmax(0, 1fr));
    gap: clamp(10px, 1.1vw, 22px);
}
.is-portrait.layout-four .ofctv-item { flex-direction: row; }
.is-portrait.layout-four .ofctv-item-image { flex-basis: 34%; }
.is-portrait.layout-four .ofctv-item h2 { font-size: clamp(19px, 2.3vw, 32px); }
.is-portrait.layout-four .ofctv-price { font-size: clamp(20px, 2.4vw, 34px); }
.is-portrait.layout-four .ofctv-item p { font-size: clamp(12px, 1.45vw, 21px); }
.is-portrait.layout-four .ofctv-items.ofctv-count-1,
.is-portrait.layout-four .ofctv-items.ofctv-count-2,
.is-portrait.layout-four .ofctv-items.ofctv-count-3,
.is-portrait.layout-four .ofctv-items.ofctv-count-4 { grid-template-columns: 1fr; }
.is-portrait.layout-four .ofctv-items.ofctv-count-3 .ofctv-item:nth-child(3) { grid-column: auto; }
.is-portrait.layout-indian .ofctv-slide-header {
    margin: calc(clamp(18px, 3vw, 42px) * -1) calc(clamp(18px, 3vw, 42px) * -1) 0;
    padding: clamp(12px, 2vw, 28px) clamp(18px, 3vw, 42px);
    flex-direction: row;
    align-items: center;
    min-height: 10%;
}
.is-portrait.layout-indian .ofctv-category-heading { text-align: right; width: auto; }
.is-portrait.layout-indian .ofctv-category-heading h1 { font-size: clamp(23px, 3.4vw, 44px); }
.is-portrait.layout-indian .ofctv-items {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--ofctv-item-rows, 6), minmax(0, 1fr));
    gap: clamp(7px, .8vw, 14px);
}
.is-portrait.layout-indian .ofctv-item-image { flex-basis: 26%; }
.is-portrait.layout-indian .ofctv-item h2 { font-size: clamp(17px, 2.1vw, 29px); }
.is-portrait.layout-indian .ofctv-price { font-size: clamp(18px, 2.15vw, 30px); }
.is-portrait.layout-indian .ofctv-item p { font-size: clamp(11px, 1.2vw, 17px); }


/* Sponsor/promotional logo overlay applies exclusively to menu slides, never to full-screen promo slides. */
.ofctv-sponsor-logo { position: absolute; z-index: 12; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ofctv-sponsor-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.ofctv-sponsor-logo-watermark { top: 50%; left: 50%; width: min(48%, 700px); height: 58%; transform: translate(-50%, -50%) scale(var(--ofctv-sponsor-watermark-scale, 1)); opacity: var(--ofctv-sponsor-watermark-opacity, .13); }
.ofctv-sponsor-logo-watermark img { width: 100%; height: 100%; object-fit: contain; }
.ofctv-sponsor-logo-center { top: 50%; left: 50%; width: min(30%, 460px); height: 38%; transform: translate(-50%, -50%); opacity: .92; filter: drop-shadow(0 3px 12px rgba(0,0,0,.23)); }
.ofctv-sponsor-logo-top-left { top: 0; left: 0; width: clamp(72px, 9vw, 180px); height: clamp(40px, 7vh, 84px); }
.ofctv-sponsor-logo-top-right { top: 0; right: 0; width: clamp(72px, 9vw, 180px); height: clamp(40px, 7vh, 84px); }
.ofctv-sponsor-logo-top-left img, .ofctv-sponsor-logo-top-right img { max-width: 100%; max-height: 100%; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.ofctv-menu-slide.sponsor-logo-top-left, .ofctv-menu-slide.sponsor-logo-top-right { padding-top: clamp(42px, 6.5vh, 88px); }
.is-portrait .ofctv-sponsor-logo-watermark { width: 70%; height: 42%; transform: translate(-50%, -50%) scale(var(--ofctv-sponsor-watermark-scale, 1)); }
.is-portrait .ofctv-sponsor-logo-center { width: 48%; height: 28%; }
.is-portrait .ofctv-sponsor-logo-top-left, .is-portrait .ofctv-sponsor-logo-top-right { width: clamp(90px, 22vw, 245px); height: clamp(46px, 8vh, 112px); }
.is-portrait .ofctv-menu-slide.sponsor-logo-top-left, .is-portrait .ofctv-menu-slide.sponsor-logo-top-right { padding-top: clamp(50px, 8vh, 122px); }


/* Per-promotion transitions: existing menu-slide transitions remain unchanged. */
.ofctv-slide.ofctv-promo-slide.promo-transition-fade { transform: none; transition: opacity .65s ease, visibility .65s ease; }
.ofctv-slide.ofctv-promo-slide.promo-transition-fade.is-active { opacity: 1; visibility: visible; transform: none; }
.ofctv-slide.ofctv-promo-slide.promo-transition-slide-left { transform: translateX(5%); transition: opacity .65s ease, transform .65s ease, visibility .65s ease; }
.ofctv-slide.ofctv-promo-slide.promo-transition-slide-left.is-active { opacity: 1; visibility: visible; transform: translateX(0); }
.ofctv-slide.ofctv-promo-slide.promo-transition-slide-up { transform: translateY(5%); transition: opacity .65s ease, transform .65s ease, visibility .65s ease; }
.ofctv-slide.ofctv-promo-slide.promo-transition-slide-up.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.ofctv-slide.ofctv-promo-slide.promo-transition-zoom { transform: scale(.94); transition: opacity .65s ease, transform .65s ease, visibility .65s ease; }
.ofctv-slide.ofctv-promo-slide.promo-transition-zoom.is-active { opacity: 1; visibility: visible; transform: scale(1); }
.ofctv-slide.ofctv-promo-slide.promo-transition-none { transform: none; transition: none !important; }
.ofctv-slide.ofctv-promo-slide.promo-transition-none.is-active { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .ofctv-slide.ofctv-promo-slide.promo-transition-fade,
    .ofctv-slide.ofctv-promo-slide.promo-transition-slide-left,
    .ofctv-slide.ofctv-promo-slide.promo-transition-slide-up,
    .ofctv-slide.ofctv-promo-slide.promo-transition-zoom { transition-duration: .01ms; }
}
