/* =========================================================================
   styles.css — presentation for the demo "customer" site.
   Theme tokens (--brand, --accent, …) are injected per-industry by app.js.
   Two accessibility defects live in here and are tagged ISSUE H6 / H15.
   ========================================================================= */

:root {
  --brand: #16324f; --brand-dark: #0f2436; --brand-ink: #fff;
  --accent: #2a7; --bg: #f6f7f9; --surface: #fff; --ink: #1b2733;
  --muted: #5c6b7a; --border: #e4e9ee; --radius: 8px;
  --hero-from: #16324f; --hero-to: #2a7;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.font-serif { font-family: "Iowan Old Style", Georgia, "Times New Roman", serif; }
.font-sans  { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.font-geometric { font-family: "Avenir Next", "Segoe UI", "Century Gothic", system-ui, sans-serif; letter-spacing: .01em; }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* focus: strong, visible default for every real control on the site … */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -50px; z-index: 200; background: var(--brand);
  color: var(--brand-ink); padding: 10px 16px; border-radius: var(--radius);
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  padding: 11px 20px; border-radius: var(--radius); border: 1.5px solid transparent;
  transition: transform .04s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--outline { background: transparent; border-color: currentColor; color: var(--brand); }
.btn--ghost { background: transparent; color: inherit; padding: 8px 12px; }
.btn--lg { padding: 14px 24px; font-size: 1.02rem; width: 100%; margin-top: 8px; }

.icon-btn {
  display: inline-grid; place-items: center; position: relative;
  width: 40px; height: 40px; border: 0; background: transparent; color: inherit;
  cursor: pointer; border-radius: 8px;
}
.icon-btn:hover { background: rgba(0, 0, 0, .06); }
.cart-badge {
  position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 3px;
  font-size: 11px; line-height: 16px; text-align: center; border-radius: 8px;
  /* --brand (dark), not --accent: white text needs a dark fill to stay AA. */
  background: var(--brand); color: #fff;
}

/* ----------------------------------------------------------------- header --- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header__bar { display: flex; align-items: center; gap: 20px; height: 68px; }
.header__menu { display: none; }
.brand { text-decoration: none; font-weight: 800; letter-spacing: .02em; font-size: 1.32rem; color: var(--brand); }
.font-serif .brand { letter-spacing: 0; }
.header__nav { margin-left: 8px; }
.header__nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.header__nav a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.header__nav a:hover { border-color: var(--accent); }
.header__util { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* custom dropdown (deliberately keyboard-dead in JS) */
.combo { position: relative; display: inline-block; }
.combo__btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 12px; cursor: pointer; color: inherit;
}
/* ISSUE H15: focus outline stripped from the custom control with no replacement,
   so a keyboard user cannot see where they are. axe has no rule for focus
   visibility, so this never affects the Lighthouse score. */
.combo__btn:focus-visible { outline: none; }
.combo__list {
  position: absolute; left: 0; right: auto; top: calc(100% + 6px); min-width: 190px; z-index: 60;
  list-style: none; margin: 0; padding: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}
.combo__opt { padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.combo__opt:hover { background: var(--bg); }
.combo__opt[data-selected=true] { font-weight: 700; color: var(--brand); }

.search-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; }
.search-bar .field { max-width: 640px; }

/* ------------------------------------------------------------------- hero --- */
/* ISSUE H4: text sits over a gradient background-image. axe cannot resolve a
   background colour behind the text, so color-contrast returns "incomplete"
   (never a failure) and Lighthouse stays at 100 — while the faded eyebrow and
   sub-text are genuinely below 4.5:1 against the lighter half of the gradient. */
/* no overflow:hidden — it clipped the hero's date-picker/select popups. The bg
   image already clips to the element, and the scrim is inset:0, so this is safe. */
.hero { position: relative; background: linear-gradient(118deg, var(--hero-from) 0%, var(--hero-to) 100%); background-size: cover; background-position: center; color: #fff; }
/* Scrim so hero text clears AA over any background (gradient now, photos later). */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, rgba(8, 12, 20, .62) 0%, rgba(8, 12, 20, .4) 55%, rgba(8, 12, 20, .2) 100%); }
.hero > .wrap { position: relative; z-index: 1; }
/* Frosted dark box behind the hero text: guarantees AA contrast over ANY photo
   (a scrim alone can't, since some heroes are bright — clouds, bright clinics). */
.hero__inner { max-width: 620px; margin: 56px 0; padding: 40px 40px 44px; border-radius: 16px; background: rgba(14, 18, 26, .64); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .92); margin: 0 0 14px; }
.hero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 .35em; }
.hero__sub { font-size: 1.18rem; color: rgba(255, 255, 255, .95); max-width: 560px; }
.hero__picker { margin: 22px 0 4px; max-width: 300px; }
.hero__picker .field-label { color: rgba(255, 255, 255, .95); }
.hero__cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero .btn--primary { background: #fff; color: var(--brand); }
.hero .btn--outline { color: #fff; }

/* --------------------------------------------------------------- sections --- */
.block { padding: 62px 0; }
.block__h { font-size: 1.7rem; margin-bottom: 28px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.tile__label { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.tile__value { font-size: 2rem; font-weight: 700; margin: 0 0 4px; color: var(--brand); }
.tile__note { color: var(--muted); font-size: .88rem; margin: 0; }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.promo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.promo__img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius); margin: 0 0 16px; }
.promo__tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; }
.promo__title { font-size: 1.28rem; }
.promo__blurb { color: var(--muted); }
.promo__link { font-weight: 700; color: var(--brand); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* ISSUE H6: DOM source order is media → price → name, but flexbox `order` paints
   them media → name → price. Sighted users read name-then-price; a screen reader
   reads price-then-name. axe has no rule for reading-order mismatch. */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product { display: flex; flex-direction: column; position: relative; }
.product__media { order: 1; position: relative; border-radius: var(--radius); overflow: hidden; display: block; }
.product__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.product__name { order: 2; font-size: 1.02rem; font-weight: 600; margin: 12px 0 2px; }
.product__name a { text-decoration: none; }
.product__price { order: 3; font-weight: 700; color: var(--brand); margin: 0; }
.product__was { color: var(--muted); font-weight: 400; margin-left: 6px; }
.product__badge { position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: 14px; }
.step__title { font-size: 1.18rem; }
.step p { color: var(--muted); }

/* ------------------------------------------------------- search-widget hero --- */
.hero--search { padding-bottom: 46px; }
.hero__inner--search { padding-bottom: 26px; }
.hsearch {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px;
  background: var(--surface); color: var(--ink); border-radius: 12px;
  padding: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .22); align-items: end;
}
.hsearch .field-label { color: var(--ink); }
.hsearch__submit { display: flex; align-items: end; }
.hsearch__submit .btn { margin-top: 0; }
/* the search submit is inside .hero, so undo the white hero-CTA style — make it a filled brand button (was rendering white-on-white). */
.hero .hsearch .btn--primary { background: var(--brand); color: var(--brand-ink); }
.hero .hsearch .btn--primary:hover { background: var(--brand-dark); }

/* ----------------------------------------------------------------- pricing --- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; }
.tier--featured { border: 2px solid var(--brand); box-shadow: 0 16px 40px rgba(0, 0, 0, .1); }
.tier__flag { display: inline-block; background: var(--brand); color: var(--brand-ink); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; margin: 0 0 12px; }
.tier__name { font-size: 1.25rem; }
.tier__price { font-size: 2.3rem; font-weight: 800; color: var(--brand); margin: 6px 0 18px; }
.tier__price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.tier__feats { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.tier__feats li { padding-left: 26px; position: relative; color: var(--ink); }
.tier__feats li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.tier .btn { width: 100%; }

/* ---------------------------------------------------------------- features --- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature__img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 14px; margin: 0 0 14px; }
.feature__h { font-size: 1.18rem; }
.feature p { color: var(--muted); }

/* ------------------------------------------------------------------ banner --- */
.promo-banner { background-size: cover; background-position: center; padding: 62px 0; }
/* readable marketing band (contrast issues now live behind interactions instead) */
.promo-banner__h { font-size: 1.9rem; color: #fff; margin: 0 0 8px; }
.promo-banner__p { font-size: 1.05rem; color: rgba(255, 255, 255, .88); max-width: 560px; margin: 0; }

/* -------------------------------------------------------------- newsletter --- */
.newsletter { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 24px; flex-wrap: wrap; }
.newsletter__h { font-size: 1.5rem; margin: 0 0 6px; }
.newsletter__p { color: var(--muted); margin: 0; }
.newsletter__form { display: flex; gap: 10px; flex: 1; min-width: 300px; max-width: 460px; }

/* --------------------------------------------------------------- fields --- */
.field {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.field:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--brand); }
.field-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field-group { margin-bottom: 18px; }

/* ------------------------------------------------------------------ footer --- */
/* Footer bg = brand-dark with a 10% black overlay, so near-white footer text
   clears AA on every industry's palette (the light-brand themes failed otherwise). */
.site-footer { background-color: var(--brand-dark); background-image: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)); color: var(--brand-ink); margin-top: 40px; }
.foot__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 54px 24px; }
.foot__col h2, .foot__h { font-size: 1rem; margin: 0 0 14px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot__col a { color: #fff; text-decoration: none; font-size: .94rem; }
.foot__col a:hover { color: #fff; text-decoration: underline; }
.foot__tag { color: rgba(255, 255, 255, .9); font-size: .86rem; margin-top: 12px; }
/* readable (the planted issue is the ambiguous text + new tab, NOT contrast) */
.foot__legal { color: rgba(255, 255, 255, .85); font-size: .84rem; margin-top: 8px; }
.foot__legal a { color: #fff; text-decoration: underline; }
.site-footer .brand__mark { color: #fff; font-weight: 800; font-size: 1.25rem; }

/* --------------------------------------------------------------- checkout --- */
.checkout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 46px; padding: 46px 24px 20px; align-items: start; }
.checkout__h { font-size: 2rem; }
.checkout__intro { color: var(--muted); margin-bottom: 26px; }
.form__set { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px 6px; margin: 0 0 22px; }
.form__set legend { font-weight: 700; padding: 0 8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__err { background: #fdeceb; border: 1.5px solid #e6b3ad; color: #932018; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; }
.form__ok { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; text-align: center; }

.checkout__aside { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 88px; }
.sum__h { font-size: 1.2rem; }
.sum__qty { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius); padding: 2px; }
.stepper__val { min-width: 34px; text-align: center; font-weight: 700; }
.sum__list { list-style: none; margin: 0 0 8px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; gap: 12px; }
.sum__row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
/* ISSUE (manual-only, WCAG 1.4.1 Use of Color): stock status carried by colour alone.
   #B3261E is 6.5:1 on the surface, so it comfortably passes AA — the colour is perfectly
   legible, it's the MEANING that's inaccessible. No automated or semi-automated check
   detects this; it's the "Add Issue" demo. */
.sum__row--oos { color: #B3261E; font-weight: 600; }
.sum__legend { font-size: .82rem; color: var(--muted); margin: 0 0 10px; }
.sum__total { display: flex; justify-content: space-between; font-size: 1.28rem; font-weight: 800; padding-top: 16px; color: var(--brand); }
.sum__badge { display: block; width: 100%; height: 60px; object-fit: cover; border-radius: var(--radius); margin-top: 18px; opacity: .9; }

/* focus-trap support widget (keyboard trap — see app.js mountFocusTrap) */
.ftrap { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; gap: 8px; }
.ftrap__btn { background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.ftrap__btn:hover { background: var(--brand-dark); }

.accordion { margin: 6px 0 14px; }
.accordion__btn { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; background: transparent; border: 0; font: inherit; font-weight: 600; cursor: pointer; padding: 10px 0; color: var(--brand); }
.accordion__panel { padding: 6px 0 10px; }
.promo-apply { display: flex; gap: 10px; }

/* ---------------------------------------------------------------- modal --- */
/* Small centred panels; the page dim is a spread box-shadow ON the panel, so there is
   NO full-window overlay element — WFA skips full-window top-most layers, so this keeps
   the panel scannable as ordinary page content. */
.modal-root { position: static; }
.modal, .lm-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 130;
  width: min(440px, calc(100vw - 32px)); background: var(--surface); border-radius: 12px;
  padding: 26px; box-shadow: 0 0 0 100vmax rgba(15, 23, 32, .5), 0 30px 80px rgba(0, 0, 0, .35);
}
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal__h { font-size: 1.4rem; margin: 0; }
.modal__form .field-group { margin-bottom: 16px; }
.lm-modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--muted); }
.lm-modal__close:hover { background: var(--bg); }
.lm-modal__h { font-size: 1.4rem; margin: 2px 0 6px; padding-right: 34px; }
.lm-modal__sub { font-size: .95rem; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.lm-modal p { color: var(--muted); }
.lm-modal .btn { margin-top: 6px; }
.lm-modal .lm-modal__fine { color: #b0b4ba; font-size: .82rem; margin: 12px 0 0; }   /* ~2:1 Serious contrast */
.modal__sub { font-size: .95rem; font-weight: 600; color: var(--muted); margin: 0 0 14px; } /* readable; the issue is the h2->h4 skip */
.modal__forgot { display: inline-block; color: #b0b4ba; font-size: .85rem; margin: 0 0 8px; text-decoration: none; } /* ~2:1 Serious contrast */

/* --------------------------------------------- interaction-revealed widgets --- */
.megamenu { position: absolute; top: 100%; left: 0; right: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px rgba(0, 0, 0, .1); }
.megamenu__inner { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 32px; padding: 28px 24px; }
/* ISSUE (Serious — colour contrast): faded headings in the revealed mega-menu, on a
   solid white bg (~2.2:1). It's interaction-revealed, so Lighthouse never scans it. */
.megamenu__h { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #aab0b6; margin-bottom: 12px; }
.megamenu__link { display: block; padding: 7px 0; font-weight: 600; color: var(--ink); text-decoration: none; }
.megamenu__link:hover { color: var(--brand); }
.megamenu__promo { display: grid; gap: 12px; align-content: start; }
.megamenu__img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); }
.megamenu__cta { justify-self: start; font-weight: 700; color: var(--brand); }

.pdrop { order: 4; align-self: start; position: relative; margin-top: 10px; }
.pdrop__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; font-weight: 600; color: var(--muted); background: transparent; }
.pdrop__list { position: absolute; left: 0; top: calc(100% + 4px); z-index: 20; min-width: 150px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 26px rgba(0, 0, 0, .14); padding: 6px; }
.pdrop__opt { padding: 8px 10px; border-radius: 6px; color: var(--ink); }
.pdrop__opt:hover { background: var(--bg); }

.datepick { position: relative; display: flex; align-items: center; }
.datepick .field { padding-right: 44px; }
.datepick__btn { position: absolute; right: 6px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--muted); }
.datepick__btn:hover { background: var(--bg); }
.cal { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 34px rgba(0, 0, 0, .16); padding: 14px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__title { font-weight: 700; }
.cal__nav { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: var(--muted); }
.cal__nav:hover { background: var(--bg); }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
/* ISSUE (Serious — colour contrast): faded weekday letters in the revealed calendar
   on solid white (~2.4:1). Interaction-revealed → invisible to Lighthouse. */
.cal__dow span { text-align: center; font-size: .72rem; color: #b4b9bf; padding: 4px 0; }
.cal__day { text-align: center; padding: 7px 0; border-radius: 6px; font-size: .9rem; }
.cal__day:hover { background: var(--brand); color: var(--brand-ink); }
.hsearch__field .field-group { margin: 0; }

/* search-widget custom select (keyboard-dead; bare-div options injected on open) */
.hsel { position: relative; }
.hsel__btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-weight: 500; }
.hsel__val { color: var(--ink); }
.hsel__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 26px rgba(0, 0, 0, .14); padding: 6px; max-height: 240px; overflow: auto; }
.hsel__opt { padding: 9px 12px; border-radius: 6px; color: var(--ink); }
.hsel__opt:hover { background: var(--bg); }

/* --------------------------------------------------------- SE demo controls --- */
.se-controls {
  position: fixed; left: 16px; bottom: 16px; z-index: 300; display: none;
  align-items: center; gap: 10px; background: #10151b; color: #fff;
  padding: 10px 12px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  font: 500 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.se-controls.is-visible { display: flex; }
/* dark text on the orange tag: 5.9:1 (white was 3.1:1 and failed AA) */
.se-controls__tag { background: #ff5a3c; color: #10151b; font-weight: 800; font-size: 10px; letter-spacing: .08em; padding: 3px 6px; border-radius: 4px; }
.se-controls label { color: #b9c2cc; }
/* lighter border so the select boundary clears the 3:1 UI-component bar */
.se-controls select { font: inherit; padding: 6px 8px; border-radius: 6px; border: 1px solid #77869a; background: #1c242d; color: #fff; }
.se-controls select:focus-visible { outline: 3px solid #ff5a3c; outline-offset: 1px; }
.se-controls__x { background: transparent; border: 0; color: #8b97a3; font-size: 20px; cursor: pointer; line-height: 1; }
.se-controls__x:hover { color: #fff; }

/* ------------------------------------------------- low-vision blur simulation ---
 * The blur is applied to body's CHILDREN, not body itself, so the demo panel and the
 * HUD stay sharp — you have to be able to read your way back out. Off by default, so
 * it never affects a Lighthouse or Evinced scan unless deliberately switched on.
 */
:root { --sim-blur: 0px; }
body.sim-blur > *:not(.se-controls):not(.sim-hud) {
  filter: blur(var(--sim-blur));
  transition: filter .25s ease;
}
.sim-hud {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 400;
  background: #10151b; color: #fff; padding: 8px 14px; border-radius: 999px;
  border: 1px solid #ffb02e; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  white-space: nowrap; pointer-events: none;
}

/* --- fake-interactive controls: they look clickable (but lack role/keyboard) --- */
[data-nav], [data-search], [data-wish], [data-combo-btn], [data-opt],
[data-accordion], [data-apply], [data-sub], .icon-btn,
[data-navitem], [data-learnmore], [data-pdrop-btn], [data-pdrop-opt], [data-datepicker],
[data-cal-day], [data-cal-prev], [data-cal-next], .megamenu__link, .megamenu__cta,
.lm-modal__close, .combo__opt, [data-hsel-btn], [data-hsel-opt] { cursor: pointer; }

.product__wish { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--muted); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.product__wish.is-on { color: #e0245e; }
.product__wish svg { pointer-events: none; }
.product:hover { transform: translateY(-2px); transition: transform .1s; }

/* delivery option tiles (selectable divs) */
.options { display: grid; gap: 12px; }
.option { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 13px 16px; }
.option.is-selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.option__main { font-weight: 600; }
.option__note { grid-column: 1; color: var(--muted); font-size: .9rem; }
.option__price { grid-row: 1 / span 2; font-weight: 700; color: var(--brand); }

/* --------------------------------------------------------------- responsive --- */
@media (max-width: 900px) {
  .tiles, .steps, .pricing, .feature-row { grid-template-columns: 1fr; }
  .hsearch { grid-auto-flow: row; grid-auto-columns: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .header__nav { position: absolute; left: 0; right: 0; top: 68px; background: var(--surface); border-bottom: 1px solid var(--border); display: none; }
  .header__nav ul { flex-direction: column; gap: 0; padding: 8px 24px; }
  .header__nav a { display: block; padding: 12px 0; }
  body.nav-open .header__nav { display: block; }
  .header__menu { display: inline-grid; }
  .header__nav { margin: 0; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr; }
  .header__util .btn--ghost { display: none; }
}
