/* Order page — Speed Lane shell, Clean Counter item rows.
   Loaded only by order-online.html. System font stack so the first paint
   does not wait on a web font. */

:root {
  --navy: #0b1f4d;
  --red: #c8102e;
  --gold: #f5b700;
  --cream: #f6f4ef;
  --ink: #0b1f4d;
  --muted: #3d4a63;
  --line: #e4e2dc;
  --card: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
}
body.has-cart-bar { padding-bottom: 96px; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.site-header {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px 14px;
  border-bottom: 4px solid var(--red);
}
.site-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  color: #fff;
  text-decoration: none;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  flex: none;
}
.brand-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.sign-in, .menu-toggle {
  background: transparent;
  color: #fff;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 8px;
}
.menu-toggle { font-size: 1.35rem; line-height: 1; cursor: pointer; }
.site-menu {
  display: none;
  position: absolute;
  right: 12px;
  top: 58px;
  z-index: 40;
  background: #fff;
  color: var(--navy);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(11, 31, 77, 0.2);
  min-width: min(240px, calc(100vw - 24px));
  padding: 6px;
}
.site-menu.open { display: flex; flex-direction: column; }
.site-menu a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
}
.site-menu a:hover { background: #f1f3f8; }
.site-header { position: relative; }

.pickup-pill {
  margin-top: 12px;
  background: #fff;
  color: var(--navy);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}
.pickup-pill b { font-weight: 800; }
#pickup-edit {
  background: none;
  border: 0;
  color: var(--red);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.store-banner {
  position: sticky;
  top: 0;
  z-index: 45;
  height: 56px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px;
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--red);
}
.site-header .store-banner {
  position: static;
  height: auto;
  margin-top: 12px;
  padding: 8px 12px;
  background: #fff;
  color: var(--navy);
  border: 0;
  border-radius: 12px;
}
#store-switch { scroll-margin-top: 64px; }
.store-banner-text {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.store-banner-text strong {
  font-size: 0.95rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-banner-text span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header .store-banner-text span { color: var(--muted); }
.change-store {
  flex: none;
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.site-header .change-store { color: var(--red); text-decoration: none; }

.order-top { padding: 14px 16px 0; }
.store-switch {
  display: flex;
  background: #f1f3f8;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.store-switch .otb-loc {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  padding: 10px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4a5568;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.store-seg-name { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.store-seg-addr { font-weight: 600; font-size: 0.75rem; line-height: 1.25; }
.store-switch .otb-loc[aria-pressed="true"] {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(11, 31, 77, 0.08);
}
.service-choice {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.service-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.service-block[hidden] { display: none; }
.service-kicker { margin: 0; font-weight: 800; color: var(--navy); }
.service-copy { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; }
.delivery-links { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.delivery-link {
  display: block;
  text-align: center;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-radius: 10px;
  padding: 10px 12px;
}
.store-line {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
a.phone-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

.status-card {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7e0;
  border: 1px solid var(--gold);
  color: var(--navy);
  font-size: 0.92rem;
}
.status-card.is-open {
  background: #eef8ef;
  border-color: #8fbf96;
}
.status-headline { margin: 0; font-weight: 800; }
.status-note { margin: 4px 0 0; color: var(--muted); }
.schedule-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.schedule-row label { font-weight: 800; color: var(--red); }
#schedule-pickup-select {
  flex: 1;
  min-width: 180px;
  background: #fff;
  color: var(--navy);
  border: 1.5px solid #d9dbe3;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 1rem;
}

.most-ordered { padding-top: 16px; }
.most-ordered h2, .menu-section h2 {
  margin: 0;
  padding: 4px 16px 10px;
  color: var(--navy);
  font-size: 1.2rem;
}
.most-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.most-card {
  flex: 0 0 min(250px, 78%);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(11, 31, 77, 0.1);
  cursor: pointer;
}
.most-card .item-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.most-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
}
.most-card h3 { margin: 0; font-size: 1rem; color: var(--navy); }
.most-card .item-price { margin: 2px 0 0; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.most-card .most-add {
  position: static;
  width: auto;
  height: auto;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: none;
  cursor: pointer;
}

.category-nav {
  position: sticky;
  top: 56px;
  z-index: 30;
  background: var(--cream);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
}
.category-nav-inner {
  display: flex;
  gap: 8px;
  width: max-content;
  padding: 10px 16px;
}
.cat-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  border: 1.5px solid #d9dbe3;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.cat-link.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.menu-page { background: #fff; }
.menu-section { scroll-margin-top: 58px; }
.menu-section h2 { background: var(--cream); padding-top: 16px; }
.section-desc, .section-sub {
  margin: 0;
  padding: 0 16px 8px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.86rem;
}
.lane-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
  cursor: pointer;
}
.lane-copy { flex: 1; min-width: 0; }
.lane-copy h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--navy); }
.item-desc {
  margin: 4px 0 6px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}
.lane-copy .item-price { margin: 0; font-weight: 800; color: #111; }
.lane-photo { position: relative; flex: none; width: 96px; height: 96px; }
.lane-photo .item-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #f1f3f8;
}
.quick-add {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--red);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.lane-row.no-photo .quick-add {
  position: static;
  flex: none;
}
.lane-row.no-photo { align-items: center; }

.cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.cart-bar[hidden] { display: none; }
body:has(.cart-drawer.open) .cart-bar { visibility: hidden; }

.site-footer {
  background: var(--navy);
  color: #dbe4f5;
  padding: 32px 20px 28px;
  font-size: 0.86rem;
}
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a.phone-link { color: #fff; }
.footer-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.footer-grid h2 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-grid a, .footer-grid p { display: block; margin: 0 0 8px; color: #fff; }
.footer-grid p { color: #dbe4f5; line-height: 1.6; }
.footer-base {
  max-width: 1040px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #dbe4f5;
}
.footer-base a { color: #fff; }

.sold-out { opacity: 0.45; pointer-events: none; position: relative; }
.sold-out::after {
  content: "86d";
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

@media (min-width: 800px) {
  body > .store-banner {
    padding-left: max(16px, calc((100vw - 760px) / 2 + 16px));
    padding-right: max(16px, calc((100vw - 760px) / 2 + 16px));
  }
}
@media (min-width: 800px) {
  .order-top, .status-card, .most-ordered h2, .menu-section h2, .section-desc, .section-sub { max-width: 760px; }
  .most-row, .lane-row, .category-nav-inner { max-width: 760px; }
  .menu-page, .most-ordered, .order-top, .status-card { margin-left: auto; margin-right: auto; }
  .most-ordered { max-width: 792px; }
  .category-nav-inner { margin: 0 auto; }
  .lane-row { margin: 0 auto; }
}
