/* Shop Brew N Drink. Mobile-first: base rules are for phones, media queries widen. */
:root {
  /* layout: cream page, navy bars top and bottom, white cards, yellow for price and primary action */
  --navy: #0c1f5c;
  --navy-deep: #081643;
  --blue: #1552e0;
  --yellow: #ffcc1a;
  --cream: #fbf6ec;
  --card: #ffffff;
  --ink: #0c1a45;
  --muted: #4a5578;
  --line: #d6dcef;
  --danger: #b3261e;
  --display: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(12, 31, 92, .10);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.5 var(--body);
  padding-bottom: 64px; /* room for the phone tab bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; color: var(--navy); }
h1 { font-size: clamp(1.95rem, 1.3rem + 2.8vw, 3.35rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--navy); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px;
  border: 2px solid transparent; border-radius: 10px;
  font: 700 1rem/1.1 var(--display); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 50px; padding-inline: 24px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #0f44c4; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #f5bf00; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: #eef2ff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  display: inline-block; background: var(--yellow); color: var(--navy);
  font: 700 .95rem/1.2 var(--display); padding: 6px 14px; border-radius: 999px;
}
.count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--yellow); color: var(--navy);
  font: 700 .78rem/20px var(--body); text-align: center; font-variant-numeric: tabular-nums;
}
.mark { position: relative; white-space: nowrap; }
.mark::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.12em; height: .22em;
  border-bottom: .12em solid var(--yellow); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; }
.header-row { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 800 1.05rem/1 var(--display); min-width: 0; }
.brand img { width: 42px; height: 42px; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-nav { display: none; }
.header-actions { margin-left: auto; display: flex; gap: 8px; }
.header-actions .order-link { display: none; }
.header-actions .btn { min-height: 40px; padding-inline: 10px; font-size: .92rem; white-space: nowrap; }

/* Phone tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--navy-deep); border-top: 2px solid var(--yellow);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 60px; color: #c9d3f5; text-decoration: none; font: 700 .72rem/1 var(--body);
}
.tabbar .ic { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--yellow); }
.tabbar .count { position: absolute; top: 6px; left: calc(50% + 6px); }

/* Sections */
.section { padding-block: 26px 6px; }
.section-tight { padding-block: 14px 10px; }
.page-head { padding-block: 18px 6px; display: grid; gap: 12px; }
.lead { font-size: 1.08rem; color: var(--ink); max-width: 60ch; }
.lead .pill { margin-top: 6px; }
.crumbs { font-size: .92rem; color: var(--muted); }
.crumbs > ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs > ol > li { display: inline-flex; align-items: center; gap: 6px; }
/* The empty alt text after the slash hides the divider from screen readers; li + li skips the first item */
.crumbs > ol > li + li::before { content: "/" / ""; color: var(--muted); font-weight: 600; }
.crumbs > ol > li > a { font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; border-radius: 4px; }
.crumbs > ol > li > a:hover { color: var(--navy); }
.crumbs > ol > li > a[aria-current="page"] { color: var(--ink); font-weight: 800; text-decoration: none; }
.crumbs > ol > li > a:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (forced-colors: active) { .crumbs > ol > li > a[aria-current="page"] { text-decoration: underline; } }
.ruled { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ruled::after { content: ""; flex: 1; max-width: 300px; height: 3px; background: var(--yellow); border-radius: 2px; }
.more { margin-top: 16px; }

/* Hero */
.hero { background: #f8f4ee; border-bottom: 1px solid #eadfce; overflow: hidden; container-type: inline-size; }
.hero-stage { display: grid; gap: 14px; width: 100%; max-width: 1440px; margin-inline: auto; }
.hero-copy { min-width: 0; display: grid; gap: 12px; justify-items: start; padding: 20px 16px 0; }
.hero-copy .lead { max-width: 40ch; }
.hero-copy .btn-row { width: 100%; }
.hero-copy .btn { flex: 1 1 140px; min-height: 46px; padding-inline: 12px; font-size: 1rem; }
.hero-banner { min-width: 0; display: block; width: 100%; }
.hero-banner img { width: 100%; height: auto; aspect-ratio: 1024 / 439; object-fit: cover; object-position: center; }

/* Grids and cards */
.grid { display: grid; gap: 12px; }
.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cat {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); color: #fff; text-decoration: none; box-shadow: var(--shadow);
}
.cat img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cat span {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 6px; font: 700 .92rem/1.15 var(--display); text-align: center;
}

.card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.card-media { display: block; background: #eef1fa; }
.card-media img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; flex: 1; }
.card-body h3 { font-size: 1.12rem; }
.card-body .note { font-size: .9rem; color: var(--muted); }
.card-body .pill { align-self: flex-start; font-size: 1.05rem; font-weight: 800; }
.card-body .go { margin-top: auto; font: 700 .98rem/1.2 var(--display); text-decoration: none; }
.card-body .btn { margin-top: auto; min-height: 40px; font-size: .92rem; padding-inline: 10px; }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .cat:hover { transform: translateY(-2px); transition: transform .15s ease; }
.product .card-media img { aspect-ratio: 5 / 4; }

/* Product options and stock */
.card-media { position: relative; }
.stock-flag, .opt-count {
  position: absolute; top: 8px; padding: 3px 9px; border-radius: 999px;
  font: 700 .74rem/1.3 var(--body); box-shadow: 0 2px 6px rgba(12, 31, 92, .18);
}
.stock-flag { left: 8px; }
.stock-flag.out { background: #3b4361; color: #fff; }
.stock-flag.low { background: #fff1c2; color: #7a5200; }
.opt-count { right: 8px; background: rgba(255, 255, 255, .94); color: var(--navy); }
.product.is-soldout .card-media img { filter: grayscale(.85); opacity: .6; }

.product-sheet .sheet-body { gap: 12px; }
.sheet-note { color: var(--muted); }
.variant-pick { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.variant-pick legend { padding: 0; margin-bottom: 8px; font: 700 1rem/1.2 var(--display); color: var(--navy); }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.variant-opt {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 10px;
  border: 1.5px solid #c2cbe6; border-radius: 12px; background: #fff; cursor: pointer; min-width: 0;
}
.variant-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.variant-opt img { flex: none; width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #eef1fa; }
.variant-text { display: grid; gap: 1px; min-width: 0; }
.variant-text strong { font: 700 .95rem/1.2 var(--display); color: var(--navy); overflow-wrap: anywhere; }
.variant-text span { font-size: .88rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.variant-text small { font-size: .78rem; color: var(--muted); }
.variant-text small.low { color: #9a5b00; font-weight: 700; }
.variant-text small.out { color: var(--danger); font-weight: 700; }
.variant-opt:has(input:checked) { border-color: var(--blue); background: #edf3ff; box-shadow: 0 0 0 1.5px var(--blue); }
.variant-opt:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }
.variant-opt.is-out { opacity: .5; cursor: not-allowed; background: #f4f5f9; }
.variant-opt.is-out strong { text-decoration: line-through; }
.sheet-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stock-pill { padding: 3px 10px; border-radius: 999px; background: #e6f6ec; color: #13603a; font: 700 .8rem/1.3 var(--body); }
.stock-pill.low { background: #fff1c2; color: #7a5200; }
.stock-pill.out { background: #fde3e1; color: #8a1d16; }
.qty button:disabled { opacity: .4; cursor: not-allowed; }

/* Checkout money rows */
.item-option { font-size: .85rem; font-weight: 700; color: var(--blue); }
.item-limit { font-size: .78rem; font-weight: 700; color: #9a5b00; }
.money-rows { margin: 0; display: grid; gap: 6px; padding-top: 4px; }
.money-rows div { display: flex; justify-content: space-between; gap: 10px; }
.money-rows dt { color: var(--muted); }
.money-rows dd { margin: 0; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.free-ship-hint { padding: 8px 10px; border-radius: 10px; background: #e9f7ef; color: #13603a; font-size: .88rem; font-weight: 700; }
.track-opt { color: var(--blue); font-weight: 700; }
.track-items-sub { color: var(--muted); }

/* Filters */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; min-height: 42px; padding: 6px 18px; border-radius: 10px;
  border: 2px solid var(--navy); background: #fff; color: var(--navy);
  font: 700 1rem/1 var(--display); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Package detail */
.detail { display: grid; gap: 18px; }
.detail-media img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.detail-info { display: grid; gap: 14px; align-content: start; }
.detail-info .price { font-size: 1.5rem; font-weight: 800; justify-self: start; padding: 8px 20px; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.500 10.500l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.fine { font-size: .9rem; color: var(--muted); }

/* Branches */
.branches-head-main { display: grid; gap: 12px; }
.branches-head-copy { display: grid; gap: 8px; min-width: 0; }
.branch-grid { display: grid; gap: 16px; }
.map-col { min-width: 0; scroll-margin-top: 84px; }
.map-card {
  position: relative; isolation: isolate; z-index: 1;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: clip; display: flex; flex-direction: column;
}
.map-loading { min-height: 420px; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
.map-toolbar {
  display: flex; flex-wrap: wrap; flex-wrap: balance; align-items: safe center; gap: 6px;
  padding: 10px 12px; background: var(--navy);
}
.map-toolbar button {
  flex: none; min-height: 34px; padding: 4px 11px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .38); background: transparent; color: #fff;
  font: 700 .84rem/1.1 var(--display); cursor: pointer; white-space: nowrap;
}
.map-toolbar button:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.map-toolbar button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
@media (pointer: coarse) {
  .map-toolbar button { min-height: 44px; padding-inline: 13px; }
}
.ph-stage { position: relative; width: 100%; height: 450px; background: #bcd5ef; overflow: clip; }
.ph-svg { display: block; width: 100%; height: 100%; touch-action: manipulation; }
.map-caption { padding: 9px 14px; font-size: .85rem; color: var(--muted); background: #f7f9ff; border-top: 1px solid var(--line); }

.ph-region { fill: #ede7d6; stroke: #b9b09a; stroke-width: .9; stroke-linejoin: round; transition: fill .2s ease; }
.ph-region.is-r2 { fill: #ffe082; stroke: #cc9600; stroke-width: 1.45; cursor: pointer; }
.ph-region.is-r2:hover { fill: #ffd34e; }
.ph-provinces path { fill: transparent; stroke: #c3baa6; stroke-width: .9; stroke-dasharray: 3 3; }
.ph-prov-labels { pointer-events: none; }
.ph-prov-label { fill: #705100; font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-anchor: middle; pointer-events: none; }
.ph-prov-label.faint { fill: #756c58; font-weight: 600; }
.ph-island-label { fill: #8b97b8; font-family: var(--display); font-weight: 800; letter-spacing: .3em; text-anchor: middle; pointer-events: none; }
.ph-manila circle { fill: #8b97b8; }
.ph-manila text { fill: #5c6890; font: 700 11px var(--body); }

.ph-callout { cursor: pointer; outline: none; }
.ph-callout line { stroke: var(--navy); stroke-dasharray: 4 3; }
.ph-callout rect { fill: var(--navy); stroke: var(--yellow); stroke-width: 2; }
.ph-callout .c1 { fill: var(--yellow); font: 800 13px var(--display); }
.ph-callout .c2 { fill: #fff; font: 600 10.5px var(--body); }
.ph-callout:hover rect, .ph-callout:focus-visible rect { fill: var(--blue); }

.ph-pin { cursor: pointer; outline: none; }
.ph-pin-hit { fill: transparent; }
.ph-pin-dot { fill: var(--navy); stroke: var(--yellow); stroke-width: 3; transition: r .2s ease; }
.ph-pin.is-active .ph-pin-dot { fill: var(--blue); stroke: #fff; }
.ph-pin:focus-visible .ph-pin-dot { stroke: var(--blue); stroke-width: 4; }
.ph-pin-pulse { fill: var(--yellow); opacity: 0; transform-box: fill-box; transform-origin: center; animation: ph-pulse 2.2s ease-out infinite; pointer-events: none; }
.ph-pin.is-active .ph-pin-pulse { fill: var(--blue); }
.ph-pin-label rect { fill: var(--navy); stroke: #fff; stroke-width: 1.5; }
.ph-pin-label text { fill: #fff; font: 700 12px var(--display); text-anchor: middle; }
.ph-pin.is-active .ph-pin-label rect { fill: var(--yellow); stroke: var(--navy); }
.ph-pin.is-active .ph-pin-label text { fill: var(--navy); }
@keyframes ph-pulse { 0% { opacity: .55; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }

.ph-detail {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(12, 31, 92, .22);
  animation: sheet-up .22s ease-out;
}
.ph-detail strong { font: 800 1.12rem/1.2 var(--display); color: var(--navy); padding-right: 32px; }
.ph-detail-area { font-size: .88rem; color: var(--muted); }
.ph-detail-phones { font: 700 .98rem/1.3 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.ph-detail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ph-detail-actions .btn { flex: 1 1 90px; }
.ph-detail-close {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: #eef2fb; color: var(--navy); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.btn-sm { min-height: 38px; padding: 4px 12px; font-size: .9rem; border-radius: 9px; }
@media (prefers-reduced-motion: reduce) { .ph-pin-pulse { animation: none; } .ph-detail { animation: none; } }

.branch-list { min-width: 0; display: grid; gap: 14px; align-content: start; }
.branch {
  container: branch-card / inline-size;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; display: grid; gap: 12px;
}
.branch.is-selected { border-color: var(--blue); box-shadow: 0 4px 18px rgba(21, 82, 224, .15); }
.branch-top { display: flex; gap: 11px; align-items: flex-start; min-width: 0; }
.branch-pin-badge {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: #edf3ff; color: var(--blue); margin-top: 1px;
}
.branch-pin-badge .ic { width: 20px; height: 20px; }
.branch-info { min-width: 0; flex: 1; display: grid; gap: 2px; }
.branch h2 { font-size: clamp(1.24rem, 3.6cqi, 1.44rem); line-height: 1.15; }
.branch-area { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.branch-contacts {
  display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px;
  background: #f7f9ff; border: 1px solid #e2e8f7; min-width: 0;
}
.branch-contact-item { min-width: 0; }
.branch small { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.branch .num { font: 800 1.16rem/1.25 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.branch-email {
  display: inline-block; font: 700 .92rem/1.35 var(--body); color: var(--blue);
  text-decoration: none; overflow-wrap: anywhere;
}
.branch-email:hover { text-decoration: underline; }
.branch-footer { display: grid; gap: 8px; min-width: 0; }
.branch-actions-primary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.branch-actions-primary .btn { min-height: 42px; padding-inline: 12px; font-size: .93rem; }
.branch-actions-secondary { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.branch-actions-secondary .btn { min-height: 38px; padding-inline: 10px; font-size: .86rem; }
.branch-footer .btn .ic { width: 16px; height: 16px; }
@container branch-card (inline-size > 380px) {
  .branch-contacts:has(> :nth-child(2)) { grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; align-items: start; }
}
@container branch-card (inline-size > 620px) {
  .branch { grid-template-columns: minmax(0, 1.1fr) minmax(290px, 1fr); align-items: center; gap: 14px 20px; }
  .branch-top { grid-column: 1; }
  .branch-contacts { grid-column: 1; }
  .branch-footer { grid-column: 2; grid-row: 1 / span 2; }
}
.notice { background: #fdeeb0; color: var(--navy); border-radius: 10px; padding: 12px 16px; margin-block: 8px 20px; }

/* Checkout & Order Tracking (mobile-first, zero horizontal overflow) */
.visually-hidden {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.order-head-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-head-row > div { display: grid; gap: 10px; }
.checkout-grid { display: grid; gap: 16px; min-width: 0; }
#order-form { display: grid; gap: 16px; min-width: 0; }

.order-box {
  min-width: 0; min-inline-size: 0; width: 100%; margin: 0; padding: 0;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.order-box-legend, .order-box-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11px 16px; margin: 0;
  background: var(--navy); color: #fff; font: 700 1.08rem/1.25 var(--display);
}
.order-box-head h2 { color: #fff; font-size: 1.12rem; }
.summary-count {
  padding: 2px 10px; border-radius: 999px; background: var(--yellow); color: var(--navy);
  font: 800 .82rem/1.3 var(--body);
}
.order-box-body { display: grid; gap: 14px; padding: 14px 16px 16px; min-width: 0; }

.fields { display: grid; gap: 12px; min-width: 0; }
.field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-weight: 700; font-size: .95rem; min-width: 0; }
.f-group { display: grid; gap: 5px; min-width: 0; }
.f-group > label, .f-label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.req { color: var(--danger); }
.opt { font-weight: 400; font-size: .85rem; color: var(--muted); }
.field-err { font-size: .86rem; font-weight: 700; color: var(--danger); }

input, select, textarea {
  width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid #b3bddb; border-radius: 10px;
  font: 400 1rem/1.35 var(--body); color: var(--ink); background: #fff;
}
textarea { min-height: 76px; resize: vertical; }
input[aria-invalid="true"] { border-color: var(--danger); background: #fff9f9; }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--blue); flex: none; }

.radio-cards { display: grid; grid-template-columns: 1fr; gap: 8px; min-width: 0; }
.radio-card {
  display: flex; align-items: flex-start; gap: 10px; min-height: 52px; padding: 10px 12px;
  border: 1.5px solid #c2cbe6; border-radius: 12px; background: #fff; cursor: pointer; min-width: 0;
}
.radio-card input { margin-top: 2px; }
.radio-card-body { display: grid; gap: 2px; min-width: 0; }
.radio-card-body strong { font: 700 1rem/1.2 var(--display); color: var(--navy); }
.radio-card-body small { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.radio-card:has(input:checked) { border-color: var(--blue); background: #edf3ff; box-shadow: 0 0 0 1px var(--blue); }

.delivery-fields {
  display: grid; gap: 12px; padding: 12px; border-radius: 12px;
  background: #f7f9ff; border: 1px solid var(--line); min-width: 0;
}

.pay-cash-note {
  padding: 10px 12px; border-radius: 10px; background: #f4f7ff; border: 1px solid var(--line);
  font-size: .92rem; color: var(--ink);
}
.pay-transfer-box {
  display: grid; gap: 14px; padding: 14px; border-radius: 12px;
  background: #f6f8ff; border: 1.5px solid #c5d2f2; min-width: 0;
}
.pay-transfer-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pay-transfer-head strong { display: block; font: 800 1.08rem/1.2 var(--display); color: var(--navy); }
.pay-amount { font-size: .92rem; color: var(--muted); }
.pay-amount b { color: var(--navy); }
.pay-badge {
  padding: 3px 10px; border-radius: 999px; background: #fff3c4; color: var(--navy);
  font: 700 .78rem/1.3 var(--body);
}
.pay-qr-grid { display: grid; gap: 14px; align-items: center; min-width: 0; }
.pay-not-ready {
  display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px;
  background: #fff8db; border: 1.5px solid #f0d053; color: var(--navy); font-size: .92rem;
}
.pay-not-ready strong { font-family: var(--display); font-size: 1rem; }
.pay-qr-media { justify-self: center; }
.qr-zoom-btn {
  display: grid; justify-items: center; gap: 6px; padding: 8px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--line); cursor: zoom-in; font: 700 .82rem/1.2 var(--body); color: var(--blue);
}
.qr-zoom-btn img { width: 176px; height: 176px; object-fit: contain; border-radius: 6px; }
.qr-placeholder {
  display: grid; justify-items: center; gap: 6px; width: 176px; padding: 14px 10px;
  border-radius: 12px; background: #fff; border: 1.5px dashed #b3bddb; color: var(--navy); text-align: center;
}
.qr-placeholder svg { width: 96px; height: 96px; opacity: .75; }
.qr-placeholder span { font-size: .8rem; font-weight: 700; color: var(--muted); }

.pay-details { display: grid; gap: 8px; min-width: 0; }
.pay-kv { display: grid; gap: 2px; }
.pay-k { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pay-v { font-size: 1.02rem; color: var(--navy); overflow-wrap: anywhere; }
.num-mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pay-copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btn-copy {
  min-height: 32px; padding: 4px 10px; border-radius: 8px; border: 1.5px solid var(--blue);
  background: #fff; color: var(--blue); font: 700 .82rem/1 var(--display); cursor: pointer;
}
.btn-copy:hover { background: #eaf0ff; }
.pay-inst { font-size: .9rem; color: var(--muted); }

.pay-proof { display: grid; gap: 12px; padding-top: 10px; border-top: 1px solid #d5def5; min-width: 0; }
.receipt-drop { min-width: 0; }
.receipt-pick {
  display: grid; justify-items: center; gap: 4px; padding: 18px 12px; text-align: center;
  border: 2px dashed #9fb2e3; border-radius: 12px; background: #fff; color: var(--blue);
  font-weight: 700; cursor: pointer;
}
.receipt-pick small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.receipt-plus {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #e8efff; color: var(--blue); font-size: 1.35rem; line-height: 1;
}
.receipt-preview {
  display: grid; gap: 10px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
}
.receipt-preview img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 8px; background: #f3f5fc; }
.receipt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-link-danger { background: none; border: 0; padding: 6px 4px; color: var(--danger); font: 700 .9rem/1 var(--display); cursor: pointer; }

.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.form-error { color: var(--danger); font-weight: 700; }
.form-error-banner {
  padding: 12px 14px; border-radius: 12px; background: #fdecea; border: 1.5px solid #efb4ae;
  color: #8a1d16; font-weight: 700;
}
.submit-order-btn { min-height: 54px; font-size: 1.15rem; }

.summary { align-content: start; }
.cart-items { display: grid; }
.item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-block: 9px; border-bottom: 1px solid var(--line); }
.item:first-child { padding-top: 0; }
.item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.item-info { min-width: 0; }
.item-name { font: 700 1rem/1.2 var(--display); color: var(--navy); overflow-wrap: anywhere; }
.item-price { font-size: .88rem; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 5px; }
.qty button {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #b9c2dd; background: #fff;
  font: 700 1.1rem/1 var(--body); color: var(--navy); cursor: pointer;
}
.qty output { min-width: 20px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.grand-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; background: var(--navy); color: #fff; font: 800 1.1rem/1.2 var(--display);
}
.grand-bar b { color: var(--yellow); font-size: 1.38rem; font-variant-numeric: tabular-nums; }
.empty { display: grid; gap: 10px; justify-items: start; }

/* Order Tracking (/track) */
.track-page { padding-bottom: 24px; }
.track-search-row { display: grid; gap: 10px; align-items: end; }
.recent-orders {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 10px 16px; background: #f6f8ff; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted);
}
.recent-chip {
  min-height: 32px; padding: 4px 10px; border-radius: 999px; border: 1px solid #c2cbe6;
  background: #fff; color: var(--navy); font: 700 .82rem/1 var(--body); cursor: pointer;
}
.recent-chip.active { background: var(--navy); border-color: var(--navy); color: var(--yellow); }

.track-result { display: grid; gap: 14px; }
.placed-banner {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px;
  background: #dff5e8; border: 1.5px solid #8fd4ab; color: #0c4a28;
}
.cancelled-banner {
  padding: 12px 14px; border-radius: 12px; background: #fdecea; border: 1px solid #efb4ae; color: #8a1d16;
}
.track-top {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: #f6f8ff; border-bottom: 1px solid var(--line);
}
.track-eyebrow { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.track-no-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 2px; }
.muted { color: var(--muted); }

.track-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.track-step {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px;
  border-radius: 12px; border: 1.5px solid #e2e7f5; background: #fafbff;
}
.step-dot {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #dfe5f5; color: var(--muted); font: 800 .88rem/1 var(--body);
}
.step-text { display: grid; gap: 1px; min-width: 0; }
.step-text strong { font: 700 1rem/1.2 var(--display); color: var(--navy); }
.step-text span { font-size: .86rem; color: var(--muted); }
.track-step.is-done { border-color: #b7e3c9; background: #f1fbf5; }
.track-step.is-done .step-dot { background: #18864b; color: #fff; }
.track-step.is-current { border-color: var(--blue); background: #edf3ff; box-shadow: 0 2px 10px rgba(21, 82, 224, .12); }
.track-step.is-current .step-dot { background: var(--blue); color: #fff; }

.branch-update-note {
  padding: 12px 14px; border-radius: 12px; background: #fff6d1; border: 1.5px solid #f0d053; color: var(--navy);
}
.branch-update-note strong { display: block; margin-bottom: 2px; font-family: var(--display); }

.track-meta-grid { display: grid; gap: 10px; }
.track-meta-card {
  display: grid; gap: 3px; padding: 12px; border-radius: 12px; background: #f7f9ff; border: 1px solid var(--line);
}
.track-meta-card strong { font: 700 1.05rem/1.2 var(--display); color: var(--navy); }
.track-meta-card small { color: var(--muted); overflow-wrap: anywhere; }
.pay-pill {
  justify-self: start; padding: 3px 10px; border-radius: 999px; font: 700 .8rem/1.3 var(--body);
  background: #eef2fb; color: var(--navy);
}
.pay-pill.pay-submitted { background: #fff3c4; color: #705200; }
.pay-pill.pay-verified { background: #d9f2e3; color: #0c5a32; }

.track-items-box { display: grid; gap: 6px; }
.track-items { list-style: none; margin: 0; padding: 4px 12px; border-radius: 12px; background: #f7f9ff; border: 1px solid var(--line); }
.track-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.track-items li:last-child { border-bottom: 0; }
.track-items-total { font-weight: 800; color: var(--navy); }

.submitted-receipt { display: grid; gap: 6px; }
.submitted-receipt img { max-width: 240px; max-height: 220px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.late-receipt-form { display: grid; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--navy); color: #fff; margin-top: 24px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 18px 10px; }
.footer-cta { font: 800 1.3rem/1.15 var(--display); }
.footer-places { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.footer-legal { font-size: .85rem; color: #c9d3f5; padding-bottom: 16px; }

.toast {
  position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 10px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(12, 31, 92, .18); font-weight: 600; line-height: 1.3;
  animation: toast-in .22s ease-out;
}
.toast-icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #1f9d55; color: #fff;
}
.toast-icon.bad { background: var(--danger); }
.toast-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.toast-text { flex: 1; min-width: 0; }
.toast-action {
  flex: none; background: none; border: 0; padding: 8px 6px; color: var(--blue);
  font: 700 .95rem/1 var(--display); text-decoration: none; cursor: pointer;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Tablet */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .cat span { padding: 9px 8px; font-size: 1rem; }
  .fields.two { grid-template-columns: 1fr 1fr; }
  .radio-cards.two-up { grid-template-columns: 1fr 1fr; }
  .radio-cards.branches-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-cards.pay-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pay-qr-grid { grid-template-columns: auto minmax(0, 1fr); }
  .pay-qr-grid.no-qr { grid-template-columns: 1fr; }
  .pay-qr-media { justify-self: start; }
  .track-search-row { grid-template-columns: minmax(0, 1fr) auto; }
  .track-meta-grid { grid-template-columns: 1fr 1fr; }
  .track-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .track-step { flex-direction: column; padding: 12px 10px; }
  .hero-copy { padding: 26px 24px 2px; }
  .hero-copy .btn-row { width: auto; }
  .hero-copy .btn { flex: none; min-height: 50px; padding-inline: 24px; font-size: 1.1rem; }
  .detail { grid-template-columns: 1fr 1fr; align-items: start; }
  .ph-stage { height: 500px; }
}

/* Desktop */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .toast { left: auto; right: 24px; bottom: 24px; width: 380px; }
  .header-row { min-height: 72px; gap: 16px; }
  .brand { font-size: clamp(1.22rem, 1.38vw, 1.48rem); }
  .brand img { width: 52px; height: 52px; }
  .top-nav { display: flex; gap: clamp(14px, 1.8vw, 24px); padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .4); }
  .top-nav a { color: #fff; text-decoration: none; font: 700 1.02rem/1 var(--display); padding-block: 8px; border-bottom: 3px solid transparent; white-space: nowrap; }
  .top-nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
  .header-actions .order-link { display: inline-flex; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section { padding-block: 34px 8px; }
  .page-head { padding-block: 24px 8px; }
  .branches-head-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .branches-head-cta { flex: none; }
  .branch-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: 22px; }
  .map-col { position: sticky; top: 88px; }
  .ph-stage { height: clamp(440px, calc(100dvh - 220px), 560px); }
  .checkout-grid { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); align-items: start; gap: 22px; }
  #order-form { order: 1; }
  .summary { order: 2; position: sticky; top: 88px; }
}

@media (min-width: 960px) {
  .hero-stage { grid-template-columns: minmax(410px, 45%) 1fr; align-items: center; gap: 0; }
  .hero-copy {
    grid-row: 1; grid-column: 1; z-index: 2; gap: 14px;
    padding: 36px 16px 38px clamp(16px, calc((100cqw - 1180px) / 2 + 16px), 146px);
    background: linear-gradient(90deg, #f8f4ee 0%, #f8f4ee 82%, rgba(248, 244, 238, 0) 100%);
  }
  .hero-banner { grid-row: 1; grid-column: 1 / -1; justify-self: end; width: 78%; align-self: stretch; display: flex; }
  .hero-banner img { width: 100%; height: 100%; min-height: 340px; max-height: 450px; object-fit: cover; object-position: right center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* React version additions */
.loading { padding: 60px 16px; text-align: center; color: var(--muted); font-weight: 700; }
.no-photo {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 6 / 5; padding: 10px;
  background: var(--navy); color: #fff; font: 800 1.1rem/1.2 var(--display); text-align: center;
}
.product .no-photo { aspect-ratio: 5 / 4; }
.product-price { font: 700 1rem/1.2 var(--display); color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: default; }
.item-blank { width: 56px; height: 56px; border-radius: 8px; background: #e6eaf7; }
.thanks { padding: 18px 16px; max-width: 620px; gap: 10px; }
.thanks > h2 { margin: -18px -16px 4px; width: calc(100% + 32px); }
.order-no { font: 800 1.7rem/1.1 var(--display); color: var(--navy); letter-spacing: .02em; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; width: 100%; }
.field > span { width: 100%; }

/* Product preview sheet */
.card-tap { display: contents; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; }
.product .card-open { display: block; width: 100%; padding: 0; border: 0; background: #eef1fa; text-decoration: none; }
.product h3 a, .product h3 button { all: unset; cursor: pointer; color: var(--navy); font: inherit; }
.product h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.product h3 a:focus-visible, .product h3 button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sheet-back {
  position: fixed; inset: 0; z-index: 50; background: rgba(8, 22, 67, .55);
  display: flex; align-items: flex-end; justify-content: center; animation: fade-in .18s ease-out;
}
.sheet {
  width: 100%; max-width: 560px; max-height: 92%; overflow-y: auto; background: #fff;
  border-radius: 20px 20px 0 0; animation: sheet-up .24s ease-out;
}
.sheet-photo { position: relative; background: #eef1fa; }
.sheet-photo img { width: 100%; max-height: 52vh; object-fit: contain; }
.sheet-close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(8, 22, 67, .75); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.sheet-body { display: grid; gap: 10px; padding: 16px 16px 20px; }
.sheet-body h2 { font-size: 1.5rem; }
.sheet-price { font: 800 1.25rem/1.2 var(--display); color: var(--navy); }
.sheet-buy { display: flex; gap: 12px; align-items: center; }
.sheet-buy .btn { flex: 1; }
.sheet-buy .qty button { width: 44px; height: 44px; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 640px) {
  .sheet-back { align-items: center; padding: 24px; }
  .sheet { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .toast, .sheet, .sheet-back { animation: none; } }

/* Customer sign-in, locked product prices, and account modal (mobile-first) */
.header-actions .msg-head-btn span,
.header-actions .acct-sub { display: none; }
@media (min-width: 540px) {
  .header-actions .msg-head-btn span,
  .header-actions .acct-sub { display: inline; }
}

.price-locked {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 5px 10px; border-radius: 8px;
  border: 1.5px dashed #b5c3e8; background: #f3f6ff; color: var(--blue);
  font: 700 .86rem/1.2 var(--body); text-align: left; cursor: pointer;
}
.price-locked:hover { background: #e6edff; border-color: var(--blue); }
.price-locked .ic { width: 15px; height: 15px; }

.variant-text span.variant-locked { font-size: .8rem; font-weight: 700; color: var(--blue); }

.sheet-auth-box {
  display: grid; gap: 12px; padding: 14px; border-radius: 14px;
  background: #f4f7ff; border: 1.5px solid #c5d2f2;
}
.sheet-auth-head { display: flex; align-items: flex-start; gap: 10px; }
.sheet-auth-head > .ic {
  width: 28px; height: 28px; padding: 5px; border-radius: 50%;
  background: var(--yellow); color: var(--navy); margin-top: 2px;
}
.sheet-auth-head strong { display: block; font: 800 1.05rem/1.2 var(--display); color: var(--navy); }
.sheet-auth-head p { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.sheet-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-auth-actions .btn { min-height: 46px; padding-inline: 12px; font-size: 1rem; }

.products-auth-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--navy); color: #fff; box-shadow: var(--shadow);
}
.products-auth-copy { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1 1 240px; }
.products-auth-icon {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--yellow); color: var(--navy);
}
.products-auth-copy strong { display: block; font: 800 1.08rem/1.2 var(--display); color: var(--yellow); }
.products-auth-copy p { font-size: .9rem; color: #d7e0fa; margin-top: 2px; }
.products-auth-btns { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.products-auth-btns .btn { flex: 1 1 130px; min-height: 42px; }
@media (min-width: 640px) {
  .products-auth-btns { width: auto; }
  .products-auth-btns .btn { flex: none; }
}

.auth-gate-card {
  display: grid; gap: 16px; padding: 20px 18px; border-radius: var(--radius);
  background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); max-width: 620px;
}
.auth-gate-copy { display: grid; gap: 6px; }
.auth-gate-copy p { color: var(--muted); }

.auth-sheet { max-width: 460px; }
.auth-sheet-head {
  position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 16px 14px; background: var(--navy); color: #fff;
}
.auth-sheet-head h2 { color: #fff; font-size: 1.38rem; padding-right: 38px; }
.auth-sheet-head p { color: #d3dcf7; font-size: .9rem; margin-top: 3px; }
.auth-close { position: static; flex: none; background: rgba(255, 255, 255, .16); }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; background: #eef2fb;
  padding: 5px; gap: 5px; border-bottom: 1px solid var(--line);
}
.auth-tabs.three-tabs { grid-template-columns: repeat(3, 1fr); }
.auth-tabs button {
  min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  font: 800 .95rem/1 var(--display); cursor: pointer; padding-inline: 6px;
}
.auth-tabs button.is-active { background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgba(12, 31, 92, .10); }

.auth-form { gap: 12px; }
.pass-field { position: relative; display: flex; align-items: center; }
.pass-field input { padding-right: 68px; }
.pass-toggle {
  position: absolute; right: 8px; min-height: 34px; padding: 4px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #f4f7ff; color: var(--blue);
  font: 700 .84rem/1 var(--body); cursor: pointer;
}
.auth-switch { text-align: center; font-size: .92rem; color: var(--muted); padding-top: 2px; }
.auth-switch button {
  background: none; border: 0; padding: 2px 4px; color: var(--blue);
  font: 700 .95rem/1 var(--display); text-decoration: underline; cursor: pointer;
}

.acct-page { display: grid; gap: 16px; padding-bottom: 28px; }
.acct-hero-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 16px; border-radius: var(--radius); background: var(--navy); color: #fff; box-shadow: var(--shadow);
}
.acct-hero-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.acct-avatar {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--yellow); color: var(--navy); font: 800 1.25rem/1 var(--display);
}
.acct-hero-info { min-width: 0; }
.acct-hero-info h1 { color: #fff; font-size: clamp(1.35rem, 4.5vw, 1.85rem); line-height: 1.15; }
.acct-meta { color: #d3dcf7; font-size: .92rem; margin-top: 2px; word-break: break-word; }
.acct-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.acct-hero-actions .btn { flex: 1 1 130px; }
.acct-hero-actions .btn-outline { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.acct-hero-actions .btn-outline:hover { background: rgba(255, 255, 255, .2); }

.acct-layout { display: grid; gap: 14px; }
.acct-nav {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px;
  border-radius: 14px; background: #e8eefb; border: 1px solid var(--line);
}
.acct-nav button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font: 800 .92rem/1.15 var(--display);
  cursor: pointer; text-align: center;
}
.acct-nav button.is-active {
  background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgba(12, 31, 92, .12);
}
.acct-badge {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px;
  border-radius: 999px; background: var(--yellow); color: var(--navy); font: 800 .78rem/1 var(--display);
}

.acct-card {
  display: grid; gap: 16px; padding: 18px 16px; border-radius: var(--radius);
  background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow);
}
.acct-card-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.acct-card-head h2 { font-size: 1.35rem; }
.acct-card-head p { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.acct-card .auth-form { display: grid; gap: 14px; max-width: 520px; }

.acct-empty {
  display: grid; justify-items: start; gap: 10px; padding: 18px 16px;
  border-radius: 12px; background: #f8faff; border: 1.5px dashed var(--line); color: var(--muted);
}
.acct-orders-list { display: grid; gap: 10px; }
.acct-order-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #f8faff; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
}
.acct-order-item:hover { border-color: var(--blue); background: #edf3ff; }
.acct-order-item strong { display: block; font: 800 1.02rem/1.2 var(--display); color: var(--navy); }
.acct-order-item small { color: var(--muted); font-size: .86rem; }
.acct-order-right { text-align: right; display: grid; gap: 3px; }
.acct-order-right b { color: var(--navy); font-variant-numeric: tabular-nums; }
.acct-order-status {
  justify-self: end; padding: 3px 9px; border-radius: 999px; background: #e8efff;
  color: var(--blue); font: 700 .76rem/1.2 var(--body); text-transform: capitalize;
}

@media (min-width: 640px) {
  .acct-hero-card { padding: 22px 24px; }
  .acct-hero-actions { width: auto; }
  .acct-hero-actions .btn { flex: none; }
  .acct-card { padding: 22px 24px; }
}

@media (min-width: 900px) {
  .acct-layout { grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 20px; }
  .acct-nav { grid-template-columns: 1fr; padding: 8px; position: sticky; top: 88px; }
  .acct-nav button { justify-content: space-between; padding: 12px 14px; font-size: .98rem; text-align: left; }
}

/* Copy button (Invoker Commands + accessible live bubble), social sharing, product detail, search & FAQ */
.ic-fill { fill: currentColor; stroke: none; }
.copy-wrap { position: relative; display: inline-flex; align-items: center; }
.copy-button {
  min-inline-size: 24px; min-block-size: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.copy-button .copy-ic-done { display: none; }
.copy-button[data-copied] .copy-ic-default { display: none; }
.copy-button[data-copied] .copy-ic-done { display: block; color: #13804a; }
.copy-tip {
  position: absolute; inset-block-end: calc(100% + 6px); inset-inline-start: 50%; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 8px; background: var(--navy); color: #fff;
  font: 700 .78rem/1.2 var(--body); white-space: nowrap; pointer-events: none; z-index: 25;
  box-shadow: 0 4px 12px rgba(12, 31, 92, .22);
  opacity: 0; transition: opacity .15s ease;
}
.copy-button[data-copied] + .copy-tip,
.copy-button[data-failed] + .copy-tip { opacity: 1; }
.copy-button[data-failed] + .copy-tip { background: var(--danger); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.btn-fb { background: #1666d8; color: #fff; border-color: #1666d8; }
.btn-fb:hover { background: #1153b5; border-color: #1153b5; }
.fb-logo-on-btn {
  --fb-disc: #ffffff;
  --fb-glyph: #1666d8;
  width: 22px; height: 22px; flex: none; display: block; pointer-events: none;
}
.btn-sm .fb-logo-on-btn { width: 20px; height: 20px; }
.btn-lg .fb-logo-on-btn { width: 24px; height: 24px; }
.fb-logo-badge {
  --fb-disc: #1877f2;
  --fb-glyph: #ffffff;
  width: 52px; height: 52px; flex: none; display: block; pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(24, 119, 242, .26));
}
@media (forced-colors: active) {
  .fb-logo-badge { --fb-disc: LinkText; --fb-glyph: Canvas; filter: none; }
  .btn-fb .fb-logo-on-btn { --fb-disc: ButtonText; --fb-glyph: ButtonFace; }
}

@media (max-width: 599px), (min-width: 900px) and (max-width: 1119px) {
  .fb-compact-sm { min-inline-size: 42px; padding-inline: 10px; }
  .fb-compact-sm .fb-btn-label {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
  }
}

.hero-social-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%;
}
.hero-copy .hero-fb-btn { flex: 1 1 200px; min-block-size: 46px; }
.hero-fb-handle {
  font: 700 .88rem/1.3 var(--body); color: var(--muted); overflow-wrap: anywhere;
}
@media (min-width: 640px) {
  .hero-copy .hero-fb-btn { flex: none; min-block-size: 48px; padding-inline: 20px; font-size: 1.02rem; }
}

.page-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.fb-footer-wrap { padding-block: 22px 6px; container: fb-card / inline-size; }
.fb-follow-card {
  display: grid; gap: 14px; padding: 18px 16px; border-radius: 16px;
  background: #ffffff; color: var(--ink);
  border: 2px solid #c7d7fa; box-shadow: 0 8px 24px rgba(6, 16, 52, .22);
}
.fb-card-main { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.fb-card-copy { display: grid; gap: 4px; min-width: 0; }
.fb-card-handle {
  justify-self: start; display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: #eaf2ff; color: #1453b8; font: 700 .78rem/1.35 var(--body); overflow-wrap: anywhere;
}
.fb-card-title { font-size: clamp(1.2rem, 1.05rem + .8vw, 1.52rem); color: var(--navy); line-height: 1.15; }
.fb-card-desc { font-size: .95rem; color: var(--muted); max-width: 58ch; }
.fb-card-cta { display: flex; flex-wrap: wrap; }
.fb-card-cta .btn { width: 100%; }
@container fb-card (inline-size >= 40rem) {
  .fb-follow-card {
    grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    padding: 20px 24px; gap: 20px;
  }
  .fb-card-main { align-items: center; gap: 16px; }
  .fb-card-cta .btn { width: auto; }
}

.share-box {
  display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: #f5f8ff; border: 1.5px solid #d1dcf5;
}
.share-box.is-compact { padding: 0; background: none; border: 0; }
.share-head { display: grid; gap: 4px; }
.share-label { font: 700 .78rem/1.2 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.share-url-input {
  min-height: 38px; padding: 6px 10px; border-radius: 8px; border: 1px solid #c3d0ee;
  background: #fff; font: 600 .86rem/1.3 var(--body); color: var(--navy);
}
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.sheet-share-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.sheet-full-link { font: 700 .92rem/1.2 var(--display); color: var(--blue); text-decoration: none; }
.sheet-full-link:hover { text-decoration: underline; }

.product-page { padding-bottom: 24px; }
.product-detail-media {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; padding: 10px;
}
.product-detail-media img { border: 0; box-shadow: none; max-height: 460px; object-fit: contain; }
.product-eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cat-pill { text-decoration: none; font-size: .86rem; padding: 5px 12px; }
.cat-pill:hover { background: #f5bf00; }
.pd-buy-card {
  display: grid; gap: 10px; padding: 14px; border-radius: 14px;
  background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow);
}
.pd-price { font: 800 1.65rem/1.15 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.pd-selected-opt { padding: 3px 10px; border-radius: 999px; background: #edf3ff; color: var(--blue); font: 700 .84rem/1.3 var(--body); }
.pd-branches-note {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .92rem;
}
.pd-branches-note > .ic { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.pd-branches-note strong { display: block; font: 700 .98rem/1.2 var(--display); color: var(--navy); }
.pd-branches-note p { color: var(--muted); margin-top: 2px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-head-row .ruled { margin-bottom: 0; flex: 1 1 220px; }

.catalog-search { display: block; max-width: 520px; }
.catalog-search-box { position: relative; display: flex; align-items: center; }
.catalog-search-box > .ic { position: absolute; left: 13px; width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.catalog-search-box input { padding-left: 40px; padding-right: 40px; min-height: 46px; border-radius: 12px; border: 1.5px solid #b8c4e4; background: #fff; }
.search-clear {
  position: absolute; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: #eef2fb; color: var(--navy); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.empty-catalog { display: grid; justify-items: start; gap: 10px; padding: 18px 0; }

.faq-section { padding-bottom: 18px; }
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-list details {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-list summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; cursor: pointer; font: 700 1.04rem/1.3 var(--display); color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: #eef2fb; color: var(--blue); font: 800 1.15rem/1 var(--body);
}
.faq-list details[open] summary::after { content: "−"; background: var(--yellow); color: var(--navy); }
.faq-list details p { padding: 0 16px 15px; color: var(--ink); font-size: .96rem; line-height: 1.55; }

/* Storefront CMS top announcement bar */
.top-announce {
  background: var(--yellow); color: var(--navy); border-bottom: 1px solid rgba(12, 31, 92, .12);
  font: 800 .88rem/1.3 var(--display); text-align: center;
}
.top-announce-inner { padding-block: 7px; }
.top-announce a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.top-announce a:hover { color: var(--blue); }

/* Clickable variation photos & size chips on ProductCard, ProductSheet, and ProductDetail */
.product .card-cycle-media {
  position: relative; cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.product .card-cycle-media:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.card-var-strip {
  display: flex; flex-wrap: wrap; gap: 6px; margin-block: 2px 4px;
}
.card-var-chip {
  display: inline-flex; align-items: center; gap: 5px;
  min-block-size: 30px; min-inline-size: 28px; padding: 3px 9px;
  border-radius: 999px; border: 1.5px solid #c3cee9; background: #f6f8ff; color: var(--navy);
  font: 700 .8rem/1.2 var(--body); cursor: pointer;
}
.card-var-chip:hover { border-color: var(--blue); background: #edf3ff; }
.card-var-chip.is-active {
  background: var(--navy); border-color: var(--navy); color: var(--yellow);
  box-shadow: 0 2px 6px rgba(12, 31, 92, .16);
}
.card-var-chip.is-out { opacity: .55; text-decoration: line-through; }
.card-var-chip img {
  width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; background: #fff;
}
.card-price-opt { font: 600 .86rem/1.2 var(--body); color: var(--muted); }
.card-action-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: stretch; }
.btn-ghost-card {
  min-block-size: 42px; min-inline-size: 44px; padding: 6px 11px; border-radius: 10px;
  border: 1.5px solid #c4cfe9; background: #f6f8ff; color: var(--navy);
  font: 700 .86rem/1 var(--display); cursor: pointer;
}
.btn-ghost-card:hover { border-color: var(--blue); color: var(--blue); background: #eaf0ff; }

.sheet-photo-cycle, .pd-photo-cycle {
  display: grid; place-items: center; width: 100%; border: 0; padding: 0;
  background: transparent; cursor: pointer; position: relative; font: inherit; color: inherit;
}
.sheet-photo-cycle:focus-visible, .pd-photo-cycle:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.photo-cycle-pill {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px;
  background: rgba(12, 31, 92, .84); color: #fff; font: 700 .78rem/1.2 var(--body);
  pointer-events: none; box-shadow: 0 3px 10px rgba(12, 31, 92, .22);
}
.product-detail-media-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.pd-thumb-strip {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pd-thumb-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-block-size: 42px; padding: 5px 12px 5px 6px; border-radius: 12px;
  border: 1.5px solid #c5d1ec; background: #fff; color: var(--navy);
  font: 700 .86rem/1.2 var(--display); cursor: pointer;
}
.pd-thumb-btn:hover { border-color: var(--blue); background: #f3f7ff; }
.pd-thumb-btn.is-active {
  border-color: var(--blue); background: #edf3ff;
  box-shadow: inset 0 -3px 0 var(--blue);
}
.pd-thumb-btn.is-out { opacity: .55; }
.pd-thumb-btn img {
  width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: #eef1fa; flex: none;
}

/* Accurate Google Maps street mode & accessible single-row tab bars */
.auth-tabs button.is-active { border-bottom: 3px solid var(--blue); }
.map-mode-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 10px; background: #f4f7ff; border-bottom: 1px solid var(--line);
}
.map-mode-tabs {
  display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; scrollbar-width: none; min-width: 0;
}
.map-mode-tabs::-webkit-scrollbar { display: none; }
.map-mode-tabs button {
  flex: none; min-block-size: 40px; padding: 8px 12px; border: 0; border-bottom: 3px solid transparent;
  background: transparent; color: var(--muted); font: 800 .86rem/1.1 var(--display);
  white-space: nowrap; cursor: pointer;
}
.map-mode-tabs button.is-active { color: var(--navy); border-bottom-color: var(--blue); }
.map-back-btn {
  flex: none; min-block-size: 34px; padding: 5px 10px; border-radius: 8px;
  border: 1px solid #c2cee9; background: #fff; color: var(--blue);
  font: 700 .82rem/1 var(--display); white-space: nowrap; cursor: pointer;
}
.map-back-btn:hover { background: #eaf0ff; border-color: var(--blue); }

.ph-stage.is-street { background: #eef2fa; }
.street-stage { width: 100%; height: 100%; }
.branch-map-iframe { display: block; width: 100%; height: 100%; border: 0; }

.map-selected-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: #fff; border-top: 1px solid var(--line);
}
.map-selected-info { display: grid; gap: 2px; min-width: 0; flex: 1 1 200px; }
.map-selected-info strong { font: 800 1.05rem/1.2 var(--display); color: var(--navy); }
.map-selected-info span { font-size: .86rem; color: var(--muted); }
.map-selected-info .map-selected-phones { font: 700 .9rem/1.25 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.map-selected-actions { display: flex; flex-wrap: wrap; gap: 6px; }

@media (pointer: coarse) {
  .card-var-chip { min-block-size: 38px; padding: 6px 12px; }
  .pd-thumb-btn, .map-toolbar button, .map-mode-tabs button, .map-back-btn, .fb-compact-sm, .btn-sm { min-block-size: 44px; min-inline-size: 44px; }
}

/* Email confirmation, password recovery, and inline form hints */
.f-hint { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.f-label-row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px;
}
.f-link-btn {
  background: none; border: 0; padding: 2px 0; color: var(--blue);
  font: 700 .88rem/1.2 var(--display); text-decoration: underline; cursor: pointer;
}
.f-link-btn:hover { color: var(--navy); }

.acct-verify-pill {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px;
  font: 700 .76rem/1.3 var(--body); vertical-align: middle;
}
.acct-verify-pill.is-verified { background: #18864b; color: #fff; }
.acct-verify-pill.is-unverified { background: #fff3c4; color: var(--navy); }

.acct-verify-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius);
  background: #fff9db; border: 1.5px solid #edd058; color: var(--navy);
}
.acct-verify-copy { display: grid; gap: 3px; min-width: 0; flex: 1 1 240px; }
.acct-verify-copy strong { font: 800 1rem/1.25 var(--display); color: var(--navy); }
.acct-verify-copy span { font-size: .9rem; color: #364576; }
.acct-verify-copy .acct-verify-ok { color: #0c5a30; font-weight: 700; margin-top: 2px; }
.acct-verify-copy .acct-verify-err { color: var(--danger); font-weight: 700; margin-top: 2px; }


