/* The stage is drawn at a fixed 1920x1080 (or 1080x1920) and scaled to fit the TV. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; cursor: none; }
body {
  font-family: "Roboto", "Arial", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
#viewport { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; }
.stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
}
.stage.portrait { width: 1080px; height: 1920px; }

/* ---------- themes (one per store segment) ---------- */
.theme-acougue {
  --bg: radial-gradient(1100px 650px at 92% 105%, rgba(255,130,30,.55), rgba(255,130,30,0) 60%), linear-gradient(135deg, #3d0610 0%, #6f0a17 32%, #9a0f1d 62%, #c2241c 100%);
  --panel: rgba(0,0,0,.20);
  --panel-border: rgba(255,255,255,.10);
  --row: transparent;
  --row-sep: rgba(255,255,255,.14);
  --text: #ffffff;
  --muted: rgba(255,255,255,.72);
  --heading: #ffffff;
  --heading-bg: rgba(255,255,255,.12);
  --accent: #ffd23f;
  --price: #ffffff;
  --ticker-bg: rgba(0,0,0,.55);
  --ticker-text: #ffffff;
  --case: uppercase;
  --hl: rgba(255,255,255,.22);
}
.theme-hortifruti {
  --bg: radial-gradient(900px 600px at 10% -10%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%), linear-gradient(135deg, #2e7d32 0%, #3f9a45 50%, #5cb85f 100%);
  --panel: rgba(255,255,255,.20);
  --panel-border: rgba(255,255,255,.28);
  --row: transparent;
  --row-sep: rgba(11,61,23,.16);
  --text: #0b3d17;
  --muted: rgba(11,61,23,.68);
  --heading: #0b3d17;
  --heading-bg: rgba(255,255,255,.30);
  --accent: #0b3d17;
  --price: #0b3d17;
  --ticker-bg: #173d1f;
  --ticker-text: #ffffff;
  --case: uppercase;
  --hl: rgba(255,255,255,.42);
}
.theme-padaria {
  --bg: radial-gradient(900px 600px at 100% 0%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%), linear-gradient(135deg, #f7f1e3 0%, #ece2cb 55%, #dccdae 100%);
  --panel: rgba(120,90,50,.12);
  --panel-border: rgba(120,90,50,.18);
  --row: transparent;
  --row-sep: rgba(90,60,30,.15);
  --text: #3b2a1a;
  --muted: #7a6650;
  --heading: #3b2a1a;
  --heading-bg: rgba(120,90,50,.16);
  --accent: #8a3b12;
  --price: #3b2a1a;
  --ticker-bg: #4a3a2c;
  --ticker-text: #f7f1e3;
  --case: none;
  --hl: rgba(255,255,255,.55);
}
.theme-pastelaria {
  --bg: radial-gradient(900px 600px at 0% 100%, rgba(255,214,0,.45), rgba(255,214,0,0) 60%), linear-gradient(135deg, #e65100 0%, #f57c00 45%, #ffa000 100%);
  --panel: rgba(255,255,255,.18);
  --panel-border: rgba(255,255,255,.30);
  --row: transparent;
  --row-sep: rgba(80,30,0,.16);
  --text: #3a1600;
  --muted: rgba(58,22,0,.70);
  --heading: #3a1600;
  --heading-bg: rgba(255,255,255,.30);
  --accent: #b71c1c;
  --price: #3a1600;
  --ticker-bg: #4a1d00;
  --ticker-text: #ffffff;
  --case: none;
  --hl: rgba(255,255,255,.42);
}

/* ---------- layout grid ---------- */
.board { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; grid-gap: 24px; gap: 24px; padding: 24px; }
.layout-classico .board { grid-template-columns: 620px 1fr; }
.layout-tabela .board, .layout-oferta .board { grid-template-columns: 1fr; }
.with-ticker .board { bottom: 84px; }
.main { display: grid; grid-template-rows: 300px 1fr; grid-gap: 24px; gap: 24px; min-height: 0; min-width: 0; }
.portrait .main { grid-template-rows: 240px 1fr; }
/* Portrait classic: banner, then offer, then the price columns, stacked. */
.portrait.layout-classico .board { grid-template-columns: 1fr; grid-template-rows: 240px 760px 1fr; }
.portrait.layout-classico .offer-panel { grid-template-rows: 100px 1fr; }
.portrait.layout-classico .columns { min-height: 0; }

/* ---------- plank / headings ---------- */
.plank {
  background: var(--heading-bg);
  color: var(--heading);
  border: 3px solid var(--panel-border);
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.plank::before, .plank::after {
  content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #eee, #888);
}
.plank::before { left: 12px; } .plank::after { right: 12px; }

/* ---------- offer panel ---------- */
.offer-panel { display: grid; grid-template-rows: 120px 1fr; grid-gap: 24px; gap: 24px; min-height: 0; }
.offer-panel > .plank { font-size: 64px; line-height: 108px; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.offer-stack { position: relative; min-height: 0; }
.offer-card {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 55%, #fff6a8 0, #ffe33d 30%, rgba(255,214,0,0) 70%),
    url("/shared/sunburst.svg") center / cover no-repeat,
    #ffd400;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  border: 6px solid #fff;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 30px 30px;
  opacity: 0; transition: opacity .8s ease;
}
.offer-card.visible { opacity: 1; }
.offer-title {
  color: #d90f14; font-weight: 900; text-transform: uppercase; text-align: center;
  font-size: 84px; line-height: 1.05; letter-spacing: -1px; width: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  text-shadow: 0 3px 0 #fff, 0 -2px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff;
}
.offer-image { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.offer-image img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0,0,0,.35)); }
.offer-old { color: #333; font-weight: 800; font-size: 40px; }
.offer-old s { text-decoration-thickness: 4px; text-decoration-color: #d90f14; }
.price-big {
  display: flex; align-items: flex-start; color: #d90f14; font-weight: 900; line-height: .85;
  text-shadow: 4px 4px 0 #fff, -2px -2px 0 #fff, 4px -2px 0 #fff, -2px 4px 0 #fff, 0 10px 20px rgba(0,0,0,.25);
  align-self: flex-end;
}
.price-big .cur { font-size: 46px; margin: 16px 10px 0 0; }
.price-big .int { font-size: 200px; letter-spacing: -4px; }
.price-big .side { display: flex; flex-direction: column; align-items: flex-start; margin-left: 10px; }
.price-big .dec { font-size: 96px; }
.price-big .unit { font-size: 32px; color: #1d1d1d; text-shadow: none; margin-top: 14px; letter-spacing: 2px;
  background: #fff; padding: 4px 10px; border-radius: 6px; line-height: 1; }

.layout-oferta .offer-panel { grid-template-rows: 1fr; }
.layout-oferta .offer-panel > .plank { display: none; }
.layout-oferta .offer-card { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 60px; }
.layout-oferta .offer-title { width: 100%; font-size: 130px; }
.layout-oferta .offer-image { flex: 1 1 50%; height: 70%; }
.layout-oferta .offer-prices { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
.layout-oferta .price-big .int { font-size: 340px; }
.layout-oferta .price-big .dec { font-size: 150px; }
.layout-oferta .price-big .unit { font-size: 50px; }
.offer-prices { display: flex; flex-direction: column; align-items: flex-end; align-self: stretch; }

/* ---------- banner ---------- */
.banner {
  display: flex; align-items: stretch; overflow: hidden; border-radius: 6px;
  background: #fff; border: 4px solid var(--panel-border);
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
}
.banner .banner-img { flex: 1 1 50%; background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
          mask-image: linear-gradient(90deg, #000 70%, transparent); }
.banner .logo { flex: 1 1 50%; display: flex; align-items: center; justify-content: center; padding: 20px 30px; }
.banner .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.banner.no-image .logo { flex-basis: 100%; padding-bottom: 66px; }
.store-name {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 110px; line-height: 1.15; text-align: center; color: #1b3d93; text-transform: uppercase;
  letter-spacing: 2px; overflow: hidden;
}
.banner.no-image .logo { background: linear-gradient(180deg, #fff 0, #fff 82%, #d90f14 82%, #d90f14 88%, #fff 88%, #fff 91%, #1b3d93 91%); }
.clock { position: absolute; right: 40px; bottom: 18px; font-size: 40px; font-weight: 800; color: #1b3d93; }

/* ---------- price columns ---------- */
.columns { display: grid; grid-gap: 24px; gap: 24px; min-height: 0; grid-auto-columns: 1fr; grid-auto-flow: column; }
.column {
  display: grid; grid-template-rows: 84px 1fr auto; min-height: 0; min-width: 0;
  background: var(--panel);
  border: 4px solid var(--panel-border);
  border-radius: 6px; padding: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
}
.column > .plank { font-size: 52px; line-height: 64px; margin-bottom: 10px; border-width: 2px; }
.rows { position: relative; min-height: 0; overflow: hidden; }
.page { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; opacity: 0; transition: opacity .6s ease; }
.page.visible { opacity: 1; }
.row {
  flex: 0 0 var(--row-h, 66px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: var(--row);
  border-bottom: 3px solid var(--row-sep);
  font-weight: 800;
}
.row .name { font-size: var(--font-h, 40px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .unit { color: var(--muted); font-weight: 700; }
.row .price { margin-left: 16px; font-size: calc(var(--font-h, 40px) * 1.08); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .price { color: var(--price, inherit); }
.dots { display: flex; justify-content: center; padding-top: 8px; height: 22px; }
.dots i { margin: 0 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); opacity: .35; }
.dots i.on { opacity: 1; background: var(--accent); }

/* ---------- ticker ---------- */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; height: 84px;
  background: var(--ticker-bg); color: var(--ticker-text);
  display: flex; align-items: center; overflow: hidden;
  font-size: 44px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 -6px 16px rgba(0,0,0,.4);
}
.ticker .track { display: inline-block; padding-left: 100%; animation: ticker linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.ticker .time { position: absolute; right: 0; top: 0; bottom: 0; z-index: 1; padding: 0 30px; display: flex; align-items: center;
  background: var(--ticker-bg); box-shadow: -20px 0 20px var(--ticker-bg), inset 6px 0 0 rgba(0,0,0,.25); }

/* ---------- pairing / messages ---------- */
.center-msg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  background: radial-gradient(ellipse at center, #1f2b45, #0b0f18);
}
.center-msg > * + * { margin-top: 30px; }
.center-msg h1 { font-size: 64px; font-weight: 800; }
.center-msg p { font-size: 38px; color: #b9c2d6; max-width: 1400px; line-height: 1.4; }
.center-msg .code {
  font-size: 200px; font-weight: 900; letter-spacing: 16px; color: #ffd23f;
  background: rgba(255,255,255,.06); border: 4px dashed rgba(255,210,63,.6);
  padding: 20px 60px; border-radius: 30px; font-variant-numeric: tabular-nums;
}
.center-msg small { font-size: 28px; color: #7d879c; }

.identify {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.75); color: #ffd23f; font-size: 160px; font-weight: 900; text-align: center;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { color: #fff; } }

.toast {
  position: fixed; left: 16px; bottom: 16px; z-index: 20;
  background: rgba(0,0,0,.7); color: #fff; font: 600 14px sans-serif; padding: 6px 12px; border-radius: 6px;
}

/* ---------- layout "destaque": poster on the left, one big list on the right ---------- */
.layout-destaque .board { grid-template-columns: 540px 1fr; grid-gap: 32px; gap: 32px; padding: 28px 32px 92px; }
.hd {
  height: 66px; border-radius: 14px; background: var(--heading-bg); color: var(--heading);
  display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(0,0,0,.16); letter-spacing: .5px; white-space: nowrap; overflow: hidden; padding: 0 20px;
}
.dq { display: flex; flex-direction: column; min-height: 0; }
.dq .hd { margin-bottom: 20px; }
.dq-brand {
  height: 200px; margin-bottom: 20px; flex: none; border-radius: 20px; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 18px 26px; box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
.dq-brand img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.dq-brand.text { background: var(--heading-bg); }
.dq-brand span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; text-align: center;
  font-size: 60px; font-weight: 900; line-height: 1.15; color: var(--heading); overflow: hidden; }
.dq-stack { position: relative; height: 675px; flex: none; }
.dq-card {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 20px; overflow: hidden;
  opacity: 0; transition: opacity .8s ease; box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.dq-card.visible { opacity: 1; }
.dq-card.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dq-card.gen {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,196,0,.95) 0, rgba(255,120,0,.85) 26%, rgba(170,10,10,.95) 58%, #2a0303 100%);
  display: flex; flex-direction: column; align-items: center; padding: 34px 28px 30px; color: #fff;
}
.gen .kick { text-align: center; transform: rotate(-4deg); line-height: .92; font-weight: 900; font-style: italic; }
.gen .kick b { display: block; font-size: 70px; color: #ffd23f; text-shadow: 0 4px 0 #8a0000, 3px 3px 0 #8a0000, -2px -2px 0 #8a0000, 0 10px 18px rgba(0,0,0,.4); }
.gen .kick i { display: block; font-size: 52px; color: #fff; text-shadow: 0 3px 0 #8a0000, 2px 2px 0 #8a0000, -2px -2px 0 #8a0000; }
.gen .pic { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; padding: 18px 0 10px; }
.gen .pic img { max-width: 92%; max-height: 100%; object-fit: contain; border-radius: 16px; box-shadow: 0 16px 30px rgba(0,0,0,.45); }
.gen .pic img.svg { box-shadow: none; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); border-radius: 0; }
.gen .ttl {
  background: #ffd23f; color: #7a0000; font-weight: 900; font-size: 40px; text-transform: uppercase;
  padding: 4px 26px; transform: skew(-8deg); box-shadow: 0 6px 14px rgba(0,0,0,.35); white-space: nowrap; max-width: 100%; overflow: hidden;
}
.gen .tag {
  margin-top: 16px; background: #c62828; border: 5px solid #ffd23f; border-radius: 22px; padding: 6px 24px 10px;
  display: flex; align-items: flex-start; color: #ffd23f; font-weight: 900; line-height: .9; box-shadow: 0 10px 22px rgba(0,0,0,.4);
}
.gen .tag .cur { font-size: 34px; margin: 14px 8px 0 0; color: #fff; }
.gen .tag .int { font-size: 120px; letter-spacing: -3px; }
.gen .tag .side { display: flex; flex-direction: column; margin-left: 4px; }
.gen .tag .dec { font-size: 58px; }
.gen .tag .unit { font-size: 22px; color: #fff; margin-top: 8px; letter-spacing: 1px; }
.gen .old { font-size: 24px; color: #fff; margin-top: 8px; font-weight: 700; }
.gen .old s { text-decoration-color: #ffd23f; }
.dq-card.brand { background: var(--heading-bg); display: flex; align-items: center; justify-content: center; padding: 40px; }
.dq-card.brand img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dq-card.brand span { font-size: 64px; font-weight: 900; text-align: center; color: var(--heading); line-height: 1.1; }
.dq-logo { margin-top: auto; height: 130px; display: flex; align-items: flex-end; }
.dq-logo img { max-height: 130px; max-width: 100%; object-fit: contain; }
.dq-logo span { display: block; width: 100%; font-size: 44px; font-weight: 900; color: var(--heading); line-height: 1.35; }

.dl { display: flex; flex-direction: column; min-height: 0; }
.dl .hd { margin-bottom: 20px; }
.dl-box { flex: 1; min-height: 0; position: relative; background: var(--panel); border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.dl-page { position: absolute; top: 16px; right: 28px; bottom: 16px; left: 28px; opacity: 0; transition: opacity .6s ease; }
.dl-page.visible { opacity: 1; }
.dl-row {
  height: var(--row-h, 62px); display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--row-sep); color: var(--text); font-weight: 700;
  font-size: var(--font-h, 38px); text-transform: var(--case, none);
}
.dl-row:last-child { border-bottom: 0; }
.dl-row { margin: 0 -16px; padding: 0 16px; border-radius: 12px; transition: background .45s ease, box-shadow .45s ease; }
.dl-row.hl { background: var(--hl, rgba(255,255,255,.16)); box-shadow: inset 7px 0 0 var(--accent), 0 6px 16px rgba(0,0,0,.14); border-bottom-color: transparent; }
.dl-row.hl .n, .dl-row.hl .p { color: var(--hl-text, var(--text)); }
.dl-row .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 20px; }
.dl-row .n small { font-size: .78em; color: var(--muted); font-weight: 600; text-transform: none; margin-left: 6px; }
.dl-row .p { white-space: nowrap; font-weight: 800; color: var(--price, var(--text)); font-variant-numeric: tabular-nums; }
.dl-dots { position: absolute; bottom: -38px; left: 0; right: 0; display: flex; justify-content: center; }
.dl-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); opacity: .35; margin: 0 5px; }
.dl-dots i.on { opacity: 1; background: var(--heading); }
.dq-foot {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62px; background: var(--ticker-bg); color: var(--ticker-text);
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 600; white-space: nowrap; overflow: hidden; padding: 0 30px;
}
.dq-foot b { margin-right: 14px; font-variant-numeric: tabular-nums; }

/* portrait: poster on top, list below */
.portrait.layout-destaque .board { grid-template-columns: 1fr; grid-template-rows: 740px 1fr; padding: 28px 28px 92px; }
.portrait.layout-destaque .dq-brand { width: 100%; height: 150px; }
.portrait.layout-destaque .dq { align-items: center; }
.portrait.layout-destaque .dq-stack { width: 444px; height: 555px; }
.portrait.layout-destaque .dq-logo { display: none; }
.portrait.layout-destaque .gen .kick b { font-size: 56px; }
.portrait.layout-destaque .gen .kick i { font-size: 42px; }
.portrait.layout-destaque .gen .tag .int { font-size: 96px; }

.pair-logo { background: #fff; border-radius: 18px; padding: 16px 30px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.pair-logo img { height: 70px; display: block; }

/* ---------- modern look for the other layouts (classico / tabela / oferta) ---------- */
.modern .board { display: grid; padding: 28px 32px 92px; grid-gap: 28px; gap: 28px; }
.mc { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-gap: 24px; gap: 24px; min-height: 0; min-width: 0; }
.mc .dl { min-width: 0; }
.mc .hd { font-size: 34px; height: 60px; margin-bottom: 16px; }
.mc .dl-page { left: 16px; right: 16px; }
.mc .dl-row .n small { display: none; }

/* classico: logo + offer on the left, every category side by side */
.layout-classico.modern .board { grid-template-columns: 500px 1fr; }
.layout-classico.modern .dq-stack { height: 650px; }

/* tabela: logo bar on top, every category side by side */
.layout-tabela.modern .board { grid-template-columns: 1fr; grid-template-rows: 150px 1fr; }
.layout-tabela.modern .dq-brand { height: 150px; margin: 0; width: 520px; justify-self: center; }

/* oferta: logo bar on top, offer poster full screen (photo left, text right) */
.layout-oferta.modern .board { grid-template-columns: 1fr; grid-template-rows: 150px 1fr; }
.layout-oferta.modern .dq-brand { height: 150px; margin: 0; width: 520px; justify-self: center; }
.layout-oferta.modern .dq-stack { height: auto; min-height: 0; }
.layout-oferta.modern .dq-card.gen {
  display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: auto 1fr auto auto;
  grid-template-areas: "kick kick" "pic ttl" "pic tag" "pic old"; align-items: center; justify-items: center;
  padding: 36px 60px 44px; column-gap: 50px;
}
.layout-oferta.modern .gen .kick { grid-area: kick; }
.layout-oferta.modern .gen .kick b { font-size: 96px; display: inline; margin-right: 18px; }
.layout-oferta.modern .gen .kick i { font-size: 72px; display: inline; }
.layout-oferta.modern .gen .kick { margin-bottom: 26px; }
.layout-oferta.modern .gen .pic { grid-area: pic; height: 100%; min-height: 0; padding: 0; }
.layout-oferta.modern .gen .pic img { max-height: 520px; }
.layout-oferta.modern .gen .ttl { grid-area: ttl; font-size: 90px; align-self: end; padding: 6px 40px; }
.layout-oferta.modern .gen .tag { grid-area: tag; margin-top: 24px; padding: 10px 40px 16px; }
.layout-oferta.modern .gen .tag .cur { font-size: 60px; margin-top: 30px; }
.layout-oferta.modern .gen .tag .int { font-size: 240px; }
.layout-oferta.modern .gen .tag .dec { font-size: 110px; }
.layout-oferta.modern .gen .tag .unit { font-size: 40px; }
.layout-oferta.modern .gen .old { grid-area: old; font-size: 40px; align-self: start; }

/* portrait versions */
.portrait.layout-classico.modern .board { grid-template-columns: 1fr; grid-template-rows: 740px 1fr; }
.portrait.layout-classico.modern .dq { align-items: center; }
.portrait.layout-classico.modern .dq-brand { width: 100%; height: 150px; }
.portrait.layout-classico.modern .dq-stack { width: 444px; height: 555px; }
.portrait.modern .mc { grid-auto-flow: row; grid-auto-rows: 1fr; grid-auto-columns: auto; }
.portrait.layout-oferta.modern .dq-card.gen { grid-template-columns: 1fr; grid-template-areas: "kick" "pic" "ttl" "tag" "old"; grid-template-rows: auto 1fr auto auto auto; }
.portrait.layout-oferta.modern .gen .tag .int { font-size: 180px; }
.portrait.layout-tabela.modern .dq-brand, .portrait.layout-oferta.modern .dq-brand { width: 100%; }

/* ---------- lite mode (TV box app): same look, far less GPU/memory work ---------- */
.lite .theme-acougue { --bg: linear-gradient(135deg, #4a0812 0%, #8c0d1b 55%, #b81f1c 100%); }
.lite .theme-hortifruti { --bg: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%); }
.lite .theme-padaria { --bg: linear-gradient(135deg, #f4ecda 0%, #dfd0b2 100%); }
.lite .theme-pastelaria { --bg: linear-gradient(135deg, #e65100 0%, #ff9800 100%); }
.lite .hd, .lite .dq-brand, .lite .dq-card, .lite .dl-box, .lite .gen .tag, .lite .gen .ttl,
.lite .dl-row.hl, .lite .gen .pic img { box-shadow: none !important; }
.lite .dl-row.hl { box-shadow: inset 7px 0 0 var(--accent) !important; }
.lite .gen .pic img.svg { filter: none; }
.lite .dq-card, .lite .dl-page { transition: none; }
.lite .dq-card:not(.visible), .lite .dl-page:not(.visible) { visibility: hidden; }
.lite .dl-row { transition: none; }
.lite .gen .kick b, .lite .gen .kick i { text-shadow: 2px 3px 0 #8a0000; }

/* ---------- offer change animation ---------- */
.modern .dq-card { transition: none; }
.modern .dq-card.visible { animation: dq-in .7s cubic-bezier(.2, .9, .3, 1.25) both; }
.modern .dq-card.visible .tag { animation: dq-pop .55s .35s cubic-bezier(.2, .9, .3, 1.4) both; }
.modern .dq-card.visible .pic img { animation: dq-zoom .9s .1s ease-out both; }
@keyframes dq-in { from { opacity: 0; transform: translateX(-60px) scale(.92) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes dq-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes dq-zoom { from { transform: scale(1.18); } to { transform: scale(1); } }
/* TV box: same entrance, lighter (only the visible card animates; no image zoom) */
.lite .modern .dq-card.visible .pic img { animation: none; }

/* ---------- vertical layouts: shop banner on top ---------- */
.layout-banner-tabela.modern .board, .layout-banner-ofertas.modern .board { grid-template-columns: 1fr; grid-template-rows: 620px 1fr; }
.vb { position: relative; border-radius: 22px; overflow: hidden; min-height: 0; background: var(--heading-bg); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.vb > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vb-logo { position: absolute; left: 24px; bottom: 24px; background: #fff; border-radius: 16px; padding: 14px 22px; max-width: 46%; height: 130px; display: flex; align-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.vb-logo { width: 380px; }
.vb-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vb-empty { display: flex; align-items: center; justify-content: center; background: transparent; box-shadow: none; }
.vb-empty .dq-brand { width: 100%; height: 100%; margin: 0; }
.layout-banner-tabela.modern .dl .hd { font-size: 46px; height: 76px; }
.layout-banner-ofertas.modern .dq-stack { height: auto; min-height: 0; }
.layout-banner-ofertas.modern .gen { padding: 50px 40px 46px; }
.layout-banner-ofertas.modern .gen .kick b { font-size: 104px; }
.layout-banner-ofertas.modern .gen .kick i { font-size: 78px; }
.layout-banner-ofertas.modern .gen .ttl { font-size: 70px; padding: 6px 40px; }
.layout-banner-ofertas.modern .gen .tag { padding: 10px 40px 16px; margin-top: 26px; }
.layout-banner-ofertas.modern .gen .tag .cur { font-size: 56px; margin-top: 28px; }
.layout-banner-ofertas.modern .gen .tag .int { font-size: 210px; }
.layout-banner-ofertas.modern .gen .tag .dec { font-size: 100px; }
.layout-banner-ofertas.modern .gen .tag .unit { font-size: 36px; }
.layout-banner-ofertas.modern .gen .old { font-size: 38px; }
.lite .vb, .lite .vb-logo { box-shadow: none; }
.dq-foot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dq-foot b { flex: none; }
