/* Site-level additions to the design system: page ground, hero, footer, responsive rules.
   Uses only tokens from gmb.css. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); }
.gmb { font-size: 17px; line-height: 28px; min-height: 100vh; display: flex; flex-direction: column; }
.gmb main { flex: 1; padding-bottom: var(--space-12); }
.gmb img { max-width: 100%; }
.gmb-skip { position: absolute; left: -9999px; }
.gmb-skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 16px; border-radius: var(--radius-sm); }
.gmb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.gmb-header__bar { max-width: 1200px; margin: 0 auto; }
.gmb-cats { scrollbar-width: none; }
.gmb-cats::-webkit-scrollbar { display: none; }
.gmb-cats__inner { display: flex; gap: var(--space-2); max-width: 1136px; margin: 0 auto; width: 100%; }
.gmb-menu-btn { display: none; margin-left: auto; background: transparent; color: var(--surface); border: 2px solid var(--surface); border-radius: var(--radius-pill); font: 700 14px/20px var(--font-body); padding: 6px 14px; cursor: pointer; }

/* Hero */
.gmb-hero { background: var(--sky); padding: var(--space-12) 0; }
.gmb-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-12); align-items: center; }
.gmb-hero__text { display: grid; gap: var(--space-4); justify-items: start; }
.gmb-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-2); }
.gmb-hero__coupon { transform: rotate(-3deg); box-shadow: var(--shadow-sticker); border: 2px solid var(--ink); border-radius: var(--radius-md); }
.gmb-hero .gmb-deal__stub::before, .gmb-hero .gmb-deal__stub::after { background: var(--sky); }
.gmb-tag--plain { background: var(--surface); color: var(--ink); }

/* Sections */
.gmb-section__head { align-items: center; gap: var(--space-4); }
.gmb-chips { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.gmb-stack { display: grid; gap: var(--space-6); }
.gmb-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.gmb-panel { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-6); }

/* Flyer cover: follows the real page ratio (set inline as --ratio), capped so tall
   phone-format flyers are cropped from the top instead of stretching the card. */
.gmb-flyer__cover--real { aspect-ratio: var(--ratio, 210 / 297); max-height: 168px; }
.gmb-flyer__cover--real img { object-position: top center; }

/* Newsletter band and footer */
.gmb-news { background: var(--brand-blue); color: var(--surface); border-radius: var(--radius-md); padding: var(--space-12); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-6); align-items: center; }
.gmb-footer { background: var(--ink); color: var(--surface); padding: var(--space-6) 0; }
.gmb-footer__bar { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; }
.gmb .gmb-footer a:not(.gmb-logo) { color: var(--surface); font: 500 14px/20px var(--font-body); text-decoration: none; }
.gmb .gmb-footer a:not(.gmb-logo):hover { text-decoration: underline; }
.gmb-footer .gmb-logo { font-size: 20px; }
.gmb-footer .gmb-logo__tick::before, .gmb-footer .gmb-logo__tick::after { background: var(--ink); }
.gmb-footer__links { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 500 14px/20px var(--font-body); }

/* Styleguide */
.gmb-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-4); }
.gmb-swatch { border-radius: var(--radius-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); font: 500 14px/20px var(--font-body); }
.gmb-swatch__color { height: 72px; border-bottom: 1px solid var(--line); }
.gmb-swatch__name { padding: 8px 12px; }

/* Tablet */
@media (max-width: 960px) {
  .gmb-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gmb-hero__grid, .gmb-news { grid-template-columns: 1fr; }
  .gmb-hero__coupon { transform: none; }
  .display-xl { font-size: 48px; line-height: 50px; }
}

/* Mobile: one column, nav folds into a menu button, search takes its own row */
@media (max-width: 767px) {
  .gmb-wrap { padding: 0 16px; }
  .gmb-header__bar { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .gmb-logo { font-size: 20px; }
  .gmb-menu-btn { display: inline-flex; }
  .gmb-nav { display: none; order: 3; width: 100%; margin: 0; flex-direction: column; gap: 0; }
  .gmb-nav.is-open { display: flex; }
  .gmb .gmb-nav a { padding: 12px 0; border-top: 1px solid var(--brand-blue-700); }
  .gmb-search { order: 4; width: 100%; margin-left: 0; }
  .gmb-cats { padding: 10px 16px; }
  .gmb-grid-2, .gmb-grid-3, .gmb-grid-4 { grid-template-columns: 1fr; }
  .gmb-hero { padding: 32px 0; }
  .display-xl { font-size: 38px; line-height: 40px; }
  .h1 { font-size: 32px; line-height: 36px; }
  .h2 { font-size: 25px; line-height: 30px; }
  .gmb-flyer { padding: var(--space-4); gap: var(--space-4); }
  .gmb-flyer__cover { width: 80px; }
  .gmb-flyer__head { flex-wrap: wrap; }
  .gmb-deal { grid-template-columns: 1fr 96px; }
  .gmb-deal__main { padding: var(--space-4); }
  .gmb-deal__value { font-size: 28px; line-height: 28px; }
  .gmb-news { padding: var(--space-6); }
  .gmb-section__head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .gmb *, .gmb *::before, .gmb *::after { transition: none !important; }
}

/* ---- Public website (milestone 4) ---- */
.gmb-deal__go { color: var(--brand-blue); font-weight: 700; text-decoration: none; }
.gmb-deal__go:hover { text-decoration: underline; }
.gmb-code--hidden ~ .gmb-deal__go { display: none; }

/* OfferCard: a coupon for an in-store offer, with an optional photo */
.gmb-offer__body { display: flex; gap: var(--space-4); align-items: flex-start; }
.gmb-offer__photo { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.gmb-offer__price { margin: 4px 0 0; display: flex; gap: var(--space-2); align-items: baseline; flex-wrap: wrap; }
.gmb-offer__price strong { font: 800 21px/28px var(--font-display); }
.gmb-offer .gmb-deal__value { font-size: 30px; line-height: 32px; }

/* Page heads and filters */
.gmb-pagehead { padding: var(--space-12) 0 var(--space-6); display: grid; gap: var(--space-2); }
.gmb-pagehead p { max-width: 680px; }
.gmb-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font: 500 14px/20px var(--font-body); color: var(--ink-muted); margin: 0; padding: 0; list-style: none; }
.gmb-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.gmb .gmb-crumbs a { color: var(--ink-muted); }
.gmb-filters { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.gmb-filters__row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.gmb-field { display: inline-flex; flex-direction: column; gap: 4px; font: 700 13px/16px var(--font-body); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }
.gmb-select, .gmb-input { font: 500 15px/20px var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 14px; min-height: 40px; }
.gmb-select:hover, .gmb-input:hover, .gmb-select:focus, .gmb-input:focus { border-color: var(--line-strong); }
.gmb-chip--near::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-blue); margin-right: 6px; display: inline-block; }
.gmb-chip[aria-current].gmb-chip--near::before { background: var(--surface); }
.gmb-empty { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-12) var(--space-6); text-align: center; display: grid; gap: var(--space-4); justify-items: center; box-shadow: var(--shadow-card); }
.gmb-count { font: 500 14px/20px var(--font-body); color: var(--ink-muted); margin: 0 0 var(--space-4); }

/* Pagination */
.gmb-pager { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-12); flex-wrap: wrap; }
.gmb-pager span[aria-current] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.gmb-pager .gmb-chip[aria-disabled] { opacity: .5; }

/* Proof band (Bespaartip with one number) */
.gmb-proof { background: var(--lemon); border-radius: var(--radius-md); padding: var(--space-6); display: flex; gap: var(--space-6); align-items: center; }
.gmb-proof__value { background: var(--sun); border-radius: var(--radius-md); padding: 8px 20px; font: 800 36px/44px var(--font-display); white-space: nowrap; }
.gmb-proof p { margin: 0; }

/* Folder page */
.gmb-folder { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-12); align-items: start; }
.gmb-folder__aside { display: grid; gap: var(--space-4); position: sticky; top: var(--space-6); }
.gmb-folder__cover { display: block; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); background: var(--surface); }
.gmb-folder__cover img { display: block; width: 100%; height: auto; }
.gmb-facts { margin: 0; display: grid; gap: var(--space-2); font: 500 15px/22px var(--font-body); }
.gmb-facts div { display: flex; justify-content: space-between; gap: var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-2); }
.gmb-facts dt { color: var(--ink-muted); }
.gmb-facts dd { margin: 0; font-weight: 700; text-align: right; }

/* Article (blog, folder summary, static pages): 680px reading column */
.gmb-article { max-width: 680px; }
.gmb .gmb-article > * + * { margin-top: var(--space-4); }
.gmb .gmb-prose { font: 400 17px/28px var(--font-body); }
.gmb .gmb-prose > * + * { margin-top: var(--space-4); }
.gmb .gmb-prose h2 { font: 800 30px/36px var(--font-display); margin-top: var(--space-12); }
.gmb .gmb-prose h3 { font: 600 21px/28px var(--font-display); margin-top: var(--space-6); }
.gmb .gmb-prose ul, .gmb-prose ol { padding-left: 1.3em; }
.gmb .gmb-prose li + li { margin-top: 6px; }
.gmb .gmb-prose blockquote { margin: var(--space-6) 0; padding: 0 0 0 var(--space-4); font-style: italic; color: var(--ink-muted); }
.gmb .gmb-prose img { border-radius: var(--radius-md); height: auto; }
.gmb .gmb-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gmb .gmb-prose th, .gmb-prose td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.gmb .gmb-prose tr:nth-child(even) td { background: var(--sky-100); }
.gmb .gmb-prose .gmb-callout p { margin: 0; }
.gmb-summary h2:first-child { margin-top: 0; }
.gmb-article__image { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--sky); }
.gmb-article__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Stores */
.gmb-stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4); }
.gmb-store { display: flex; gap: var(--space-4); align-items: center; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-4); text-decoration: none; color: var(--ink); }
.gmb .gmb-store:hover .gmb-store__name { text-decoration: underline; }
.gmb-store__logo { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--sky-100); display: grid; place-items: center; font: 800 18px/1 var(--font-display); color: var(--brand-blue-700); overflow: hidden; }
.gmb-store__logo img { width: 100%; height: 100%; object-fit: contain; }
.gmb-store__name { font: 600 17px/22px var(--font-display); display: block; }
.gmb-branches { columns: 3 220px; gap: var(--space-6); margin: 0; padding: 0; list-style: none; font: 400 15px/22px var(--font-body); }
.gmb-branches li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 960px) {
  .gmb-folder { grid-template-columns: 1fr; gap: var(--space-6); }
  .gmb-folder__aside { position: static; grid-template-columns: 160px 1fr; align-items: start; }
}
@media (max-width: 767px) {
  .gmb-pagehead { padding: var(--space-6) 0 var(--space-4); }
  .gmb-proof { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .gmb-folder__aside { grid-template-columns: 1fr; }
  .gmb-folder__cover { max-width: 220px; }
  .gmb .gmb-prose h2 { font-size: 25px; line-height: 30px; }
}
.gmb-hero__deal { position: relative; padding: var(--space-6) 0; }
.gmb-hero__deal::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--lemon); right: -32px; top: -40px; }
.gmb-hero__deal .gmb-deal { position: relative; }
@media (max-width: 960px) { .gmb-hero__deal::before { display: none; } .gmb-hero__deal { padding: 0; } }
.gmb .gmb-deal__title a { color: inherit; text-decoration: none; }
.gmb .gmb-deal__title a:hover { text-decoration: underline; }

.gmb-mark { white-space: nowrap; }

/* Ads (AdSense). Space is kept so the page does not jump when an ad loads. */
.gmb .gmb-ad { margin: 24px auto; text-align: center; min-height: 120px; }
.gmb .gmb-ad__label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.gmb .gmb-ad--sidebar { margin: 0 0 24px; min-height: 250px; }
.gmb .gmb-ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* Folder summary: product name and deal price bold, normal price struck through, saving as a badge. */
.gmb .gmb-summary strong { font-weight: 700; color: var(--ink); }
.gmb .gmb-summary .gmb-now { color: var(--brand-blue); white-space: nowrap; }
.gmb .gmb-summary .gmb-was { color: var(--ink-muted); text-decoration-thickness: 1.5px; white-space: nowrap; }
.gmb .gmb-summary .gmb-save { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #FFD444; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 20px; vertical-align: 1px; white-space: nowrap; }
.gmb .gmb-summary p { margin-bottom: 14px; }
.gmb .gmb-summary h2 { margin-top: 32px; }

/* Contact form */
.gmb .gmb-contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.gmb .gmb-contact h2 { margin-top: 0; }
.gmb .gmb-contact__form { display: grid; gap: 16px; margin-top: 12px; }
.gmb .gmb-contact__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .gmb .gmb-contact__row { grid-template-columns: 1fr; } }
.gmb .gmb-contact__field { display: grid; gap: 6px; font: 700 14px/18px var(--font-body); color: var(--ink); }
.gmb .gmb-contact .gmb-input { width: 100%; box-sizing: border-box; border-radius: 12px; padding: 10px 14px; font-weight: 400; }
.gmb .gmb-contact textarea.gmb-input { resize: vertical; min-height: 140px; line-height: 1.5; }
.gmb .gmb-contact .gmb-input[aria-invalid="true"] { border-color: var(--danger); }
.gmb .gmb-contact__error { font-weight: 500; font-size: 13px; color: var(--danger); }
.gmb .gmb-contact__note { margin: 0; font-size: 14px; color: var(--ink-muted); }
.gmb .gmb-contact .gmb-btn { justify-self: start; }
.gmb .gmb-contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Week in short (home) */
.gmb .gmb-week__intro { margin: 0 0 16px; font-size: 17px; line-height: 1.55; }
.gmb .gmb-week__list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
.gmb .gmb-week__item + .gmb-week__item { border-top: 1px solid var(--line); }
.gmb .gmb-week__link { display: grid; grid-template-columns: 170px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.gmb .gmb-week__link:hover { background: var(--sky-100); }
.gmb .gmb-week__store { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.gmb .gmb-week__dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }
.gmb .gmb-week__deal { line-height: 1.5; }
.gmb .gmb-week__more { color: var(--brand-blue); font-weight: 600; white-space: nowrap; font-size: 14px; }
@media (max-width: 640px) {
  .gmb .gmb-week__link { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .gmb .gmb-week__deal { grid-column: 1 / -1; grid-row: 2; }
}

/* Uploaded logo: on a light tile so it stands out on the blue bar */
.gmb .gmb-logo__tile { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--sky); box-shadow: 0 2px 0 rgba(16, 40, 58, .25); overflow: hidden; }
.gmb .gmb-logo__tile img { width: 40px; height: 40px; object-fit: contain; display: block; }
@media (max-width: 767px) {
  .gmb .gmb-logo { font-size: 18px; gap: 8px; min-width: 0; }
  .gmb .gmb-logo__tile { width: 36px; height: 36px; border-radius: 9px; }
  .gmb .gmb-logo__tile img { width: 30px; height: 30px; }
  .gmb .gmb-menu-btn { padding: 5px 12px; }
}
@media (max-width: 379px) {
  .gmb .gmb-logo { font-size: 16px; }
}

/* Week label on folder cards */
.gmb .gmb-flyer__week { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; background: var(--sun); color: var(--ink); font: 700 12px/20px var(--font-body); letter-spacing: .02em; white-space: nowrap; }

/* Folder card status: last days and new */
.gmb .gmb-flyer__status--hot { color: var(--danger); }
.gmb .gmb-flyer__status--hot::before { background: var(--danger); }
.gmb .gmb-flyer__status--new { color: var(--ink); background: var(--sun); padding: 2px 9px; border-radius: 999px; }
.gmb .gmb-flyer__status--new::before { display: none; }

/* Share buttons */
.gmb .gmb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; }
.gmb .gmb-share__label { font: 700 14px/20px var(--font-body); color: var(--ink-muted); margin-right: 4px; }
.gmb .gmb-share__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px/20px var(--font-body); text-decoration: none; cursor: pointer; }
.gmb .gmb-share__btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.gmb .gmb-share__btn svg { width: 18px; height: 18px; fill: currentColor; }
.gmb .gmb-share__btn--wa svg { fill: #1ea952; }

/* Price history verdicts ("Laagste prijs in 12 weken", "Bij Lidl € 1,99") */
.gmb .gmb-verdict { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 20px; vertical-align: 1px; white-space: nowrap; }
.gmb .gmb-verdict--good { background: #DCF5E3; color: #14532D; }
.gmb .gmb-verdict--meh { background: #FDECEC; color: #7F1D1D; }
.gmb .gmb-verdict--flat { background: #EEF0F3; color: #374151; }
.gmb .gmb-compare { margin-top: 32px; }
.gmb .gmb-compare__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line, #E5E7EB); }
.gmb .gmb-compare__item { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line, #E5E7EB); }
.gmb .gmb-compare__item a { color: inherit; }
