/* ============================================================
   Fuego BBQ — responsive laag (mobiel / tablet / iPad / desktop)
   Wordt als laatste geladen en overschrijft style.css waar nodig.
   ============================================================ */
:root { --fuego-max: 1120px; }

/* ---------- Header: merknaam + badge ---------- */
.header-inner { max-width: var(--fuego-max); }
.app-header .header-title { align-items: center; gap: 12px; }
.app-header .header-title strong {
  display: inline-block !important;
  font-size: 20px; font-weight: 800; letter-spacing: .4px;
  color: #111; white-space: nowrap;
}
.menu-page .app-header .header-title strong::before { content: "🔥 "; }
.taal-switch { font-size: 22px; line-height: 1; padding: 6px; }
.app-header .tafel-badge { white-space: nowrap; }
@media (min-width: 960px) {
  .header-inner { padding: 0 24px; }
  .cat-nav { padding-left: 10px; }
}
@media (max-width: 420px) {
  .app-header .header-title { gap: 8px; }
  .app-header .header-title strong { font-size: 17px; }
  .app-header .tafel-badge { font-size: 11.5px !important; padding: 5px 10px !important; }
}
@media (max-width: 440px) {
  .menu-page .app-header .tafel-badge { display: none !important; }
}

/* ---------- Categorie-balk: uitgelijnd met de inhoud ---------- */
@media (min-width: 1160px) {
  .cat-nav { padding-left: calc((100% - var(--fuego-max)) / 2 + 10px); }
}

/* ---------- Productkaarten: foto vult altijd de volledige hoogte ---------- */
.product { align-items: stretch; }
.product img, .product-img-placeholder {
  height: auto !important;
  min-height: 100%;
  align-self: stretch;
  object-fit: cover;
  object-position: center;
}

/* ---------- Tablet & iPad ---------- */
@media (min-width: 640px) {
  .menu { max-width: var(--fuego-max); padding-left: 20px; padding-right: 20px; }
  .product { grid-template-columns: 120px 1fr; min-height: 130px; }
  .product img, .product-img-placeholder { width: 120px !important; flex-basis: 120px !important; }
  .product-body h3 { font-size: 16px; }
  .product-body p { font-size: 13px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .menu { padding-left: 24px; padding-right: 24px; }
  .product { grid-template-columns: 130px 1fr; min-height: 140px; transition: transform .15s, box-shadow .15s; }
  .product img, .product-img-placeholder { width: 130px !important; flex-basis: 130px !important; }
  .product:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
  .cat-block h2 { font-size: 24px; }
}
@media (min-width: 1280px) {
  .product-list { gap: 16px; }
}

/* ---------- Cart-balk onderaan: niet over de volle breedte op desktop ---------- */
.cart-bar {
  left: 0 !important; right: 0 !important; margin: 0 auto !important;
  width: calc(100% - 32px) !important; max-width: 640px !important;
  transform: none;
}

/* ---------- Pop-up (opmerking/aantal): gecentreerd venster op tablet/desktop ---------- */
@media (min-width: 640px) {
  .opm-modal { display: flex; align-items: center; justify-content: center; }
  .opm-modal[hidden] { display: none; }
  .opm-sheet { max-width: 520px; width: calc(100% - 48px); border-radius: 18px !important; position: relative !important; bottom: auto !important; }
}

/* ---------- Checkout & bedankt ---------- */
.checkout { max-width: 760px; }
@media (min-width: 960px) {
  .checkout { max-width: 1000px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
  .checkout > * { grid-column: 1 / -1; }
  .checkout > .cart-items, .checkout > section.cart-items { grid-column: 1; grid-row: 1 / span 30; }
  .checkout > .online-form, .checkout > .alert { grid-column: 2; }
  .online-form { position: sticky; top: calc(var(--header-h) + 12px); }
}
.online-form .of-input { font-size: 16px; } /* geen inzoomen op iPhone */
@media (max-width: 380px) {
  .of-keuze { flex-direction: column; }
}
.bedankt { max-width: 560px; }

/* ---------- Footer ---------- */
.ac-credit, .menu-foot { text-align: center; }

/* ---------- Brede schermen: iets meer lucht ---------- */
@media (min-width: 1600px) {
  :root { --fuego-max: 1280px; }
  .product-list { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ---------- Afrekenknop ---------- */
.online-form button[type="submit"] {
  display: flex !important; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 20px !important; border-radius: 14px !important; font-size: 17px;
  min-height: 56px; width: 100%;
}
.online-form .btn-icon { all: unset; font-size: 20px; line-height: 1; }
.of-optie span small { white-space: nowrap; }
@media (max-width: 420px) {
  .of-optie span { padding: 12px 6px; font-size: 15px; }
}

/* ---------- Taalknop (tekst i.p.v. vlag: Windows toont vlaggen als "GB") ---------- */
.taal-switch {
  font-size: 13px !important; font-weight: 800; letter-spacing: .5px;
  border: 2px solid #e5e7eb; border-radius: 999px; padding: 6px 12px !important; color: #111;
}

/* ---------- Gekozen afhalen/bezorgen in de kop ---------- */
.type-chip { text-decoration: none; gap: 6px; cursor: pointer; }
.type-chip .type-wijzig { opacity: .8; font-size: .85em; }
@media (max-width: 440px) {
  .menu-page .app-header .type-chip { display: inline-flex !important; font-size: 11.5px !important; padding: 5px 10px !important; }
  .menu-page .app-header .header-title strong { font-size: 16px; }
}

/* ---------- Keuze-scherm bij binnenkomst ---------- */
.type-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(17, 10, 7, .72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.type-kaart {
  background: #fff; border-radius: 22px; width: 100%; max-width: 520px;
  padding: 28px 22px 22px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35);
  max-height: calc(100dvh - 32px); overflow-y: auto;
}
.type-logo { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.type-kaart h2 { font-size: 20px; margin: 0 0 14px; }
.type-melding { background: #fef3c7; color: #92400e; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.type-fout { background: #fee2e2; color: #991b1b; border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.type-knoppen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.type-knoppen form { display: contents; }
.type-knop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%;
  padding: 20px 10px; border: 2px solid #e5e7eb; border-radius: 16px; background: #fff;
  cursor: pointer; font: inherit; color: #111; transition: border-color .15s, background .15s, transform .1s;
}
.type-knop:hover, .type-knop:focus-visible { border-color: #c8102e; background: #fef2f2; }
.type-knop:active { transform: scale(.98); }
.type-icoon { font-size: 34px; line-height: 1.1; }
.type-knop strong { font-size: 18px; }
.type-knop small { font-size: 12px; color: #6b7280; min-height: 1em; }
.type-postcode { margin-top: 16px; text-align: left; }
.type-postcode label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 6px; }
.type-pc-rij { display: flex; gap: 8px; }
.type-pc-rij input {
  flex: 1; min-width: 0; padding: 13px 14px; font-size: 16px; text-transform: uppercase;
  border: 1px solid #d1d5db; border-radius: 12px;
}
.type-pc-rij button {
  padding: 0 20px; border: 0; border-radius: 12px; background: #c8102e; color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.type-sluit { display: inline-block; margin-top: 14px; font-size: 13px; color: #6b7280; text-decoration: underline; }
@media (max-width: 360px) { .type-knoppen { grid-template-columns: 1fr; } }

/* ---------- Pop-up: per stuk een eigen opmerking ---------- */
body.modal-open { overflow: hidden; }
.opm-sheet { overscroll-behavior: contain; }
.opm-body { display: block; }
#opmItems { display: flex; flex-direction: column; gap: 12px; }
.opm-item { border: 1px solid #eee; border-radius: 12px; padding: 10px 12px; background: #fafafa; }
.opm-item:only-child { border: 0; padding: 0; background: none; }
.opm-item-kop { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.opm-nr { background: #c8102e; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.opm-item .opm-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; }
.opm-item textarea {
  width: 100%; box-sizing: border-box; font-size: 16px; font-family: inherit;
  padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; resize: vertical; background: #fff;
}
.opm-item textarea:focus { outline: 2px solid #c8102e; outline-offset: 1px; }
.opm-chips { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.opm-chip {
  padding: 8px 16px; border-radius: 999px; border: 2px solid #e5e7eb; background: #fff;
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.opm-chip.active { border-color: #c8102e; background: #c8102e; color: #fff; }
.opm-qty-btn { touch-action: manipulation; user-select: none; }
@media (min-width: 640px) {
  .opm-sheet { max-height: 86vh !important; display: flex; flex-direction: column; }
  .opm-body { overflow-y: auto; }
}
body.type-open { overflow: hidden; }

/* ---------- Geen lege ruimte onderaan; alleen ruimte als de bestel-balk zichtbaar is ---------- */
body.menu-page { padding-bottom: 0 !important; }
.menu { padding-bottom: 8px !important; }
body.menu-page:has(#cartBar:not([hidden])) { padding-bottom: 92px !important; }
.ac-credit, .menu-foot { margin-bottom: 0 !important; padding-bottom: 16px !important; }

/* ---------- iPhone: niet inzoomen bij typen in opmerking-velden ---------- */
.ci-opm-veld, .checkout input, .checkout textarea, .checkout select { font-size: 16px !important; }

/* ============================================================
   NIEUWE KOP: merk · zoekbalk · taal (vlaggen)
   ============================================================ */
.fuego-header { height: auto !important; padding: 0 !important; display: block !important; }
.fuego-header .header-inner {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "merk zoek taal";
  align-items: center; gap: 16px; padding: 10px 24px; max-width: var(--fuego-max); margin: 0 auto; height: auto;
}
.header-merk {
  grid-area: merk; font-size: 20px; font-weight: 800; color: #111; white-space: nowrap;
  text-decoration: none; letter-spacing: .3px; display: flex; align-items: center; gap: 6px;
}
.fuego-header .zoekbalk {
  grid-area: zoek; margin: 0; width: 100%; max-width: 520px; justify-self: center;
  background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 999px; height: 44px; padding: 0 14px;
}
.fuego-header .zoekbalk:focus-within { border-color: #c8102e; background: #fff; box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.fuego-header .zoekbalk .zoek-icon { color: #6b7280; opacity: 1; }
.fuego-header .zoekbalk input[type="search"] { color: #111; font-size: 16px; }
.fuego-header .zoekbalk input::placeholder { color: #9ca3af; }
.fuego-header .zoek-clear { background: #e5e7eb; color: #374151; }
.taal-keuze { grid-area: taal; display: flex; gap: 4px; background: #f3f4f6; border-radius: 999px; padding: 4px; }
.taal-keuze a { display: flex; align-items: center; padding: 6px 8px; border-radius: 999px; opacity: .45; transition: opacity .15s, background .15s; }
.taal-keuze a:hover { opacity: .8; }
.taal-keuze a.actief { background: #fff; opacity: 1; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.taal-keuze .vlag { width: 26px; height: 17px; border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
@media (max-width: 720px) {
  .fuego-header .header-inner {
    grid-template-columns: 1fr auto; grid-template-areas: "merk taal" "zoek zoek";
    padding: 8px 14px 10px; gap: 8px 10px;
  }
  .fuego-header .zoekbalk { max-width: none; height: 42px; }
  .header-merk { font-size: 18px; }
  .taal-keuze .vlag { width: 24px; height: 16px; }
}

/* ---------- Logo ---------- */
.header-merk img { height: 46px; width: auto; display: block; }
@media (max-width: 720px) { .header-merk img { height: 38px; } }
.type-logo { margin: -6px -4px 12px; }
.type-logo img { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; border-radius: 16px; }
