/* ============================================================
   ALC Dealer Print Store — design system
   Palette drawn from the 2026 ALC brand refresh assets:
   deep teal + orange slash + warm paper. Edit tokens below.
   ============================================================ */

:root {
  --teal: #16323c;
  --teal-2: #1e4552;
  --teal-3: #0f242c;
  --orange: #f26c21;
  --orange-2: #f79433;
  --wine: #5a2136;
  --paper: #f5f4f0;
  --card: #ffffff;
  --ink: #15242b;
  --muted: #5c6b72;
  --line: #e4e1da;
  --ok: #2e7d4f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(21, 36, 43, 0.06), 0 8px 24px rgba(21, 36, 43, 0.07);
  --shadow-lg: 0 2px 4px rgba(21, 36, 43, 0.08), 0 16px 48px rgba(21, 36, 43, 0.14);
  --font-head: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
/* belt-and-suspenders: no element may drag the page wider than the viewport */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.hidden { display: none !important; }

/* ---------- header ---------- */
.site-header {
  background: var(--teal);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(15,36,44,0.35);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; user-select: none; min-width: 0; }
.brand-logo { height: 34px; width: auto; display: block; margin-top: 4px; }
.brand .wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: #fff;
  white-space: nowrap;
}
.brand .wordmark em { font-style: normal; color: var(--orange-2); }
.brand .sub {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 4px; }
.menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 40px; padding: 0 9px;
  background: rgba(255,255,255,0.08); border: none; border-radius: 8px; cursor: pointer;
}
.menu-btn span { display: block; height: 2px; border-radius: 2px; background: #fff; }
.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
}
.nav a:hover { background: rgba(255,255,255,0.09); color: #fff; text-decoration: none; }
.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--orange);
  color: #fff; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  padding: 9px 16px; border-radius: 8px;
  transition: background 0.15s ease;
}
.cart-btn:hover { background: var(--orange-2); }
.cart-btn .count {
  background: #fff; color: var(--teal);
  border-radius: 99px; font-size: 0.72rem; font-weight: 700;
  min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
}

/* ---------- access gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  background:
    linear-gradient(115deg, rgba(22,50,60,0.97) 55%, rgba(30,69,82,0.97) 55.2%),
    var(--teal);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.gate-card {
  width: 100%; max-width: 430px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 40px 36px 34px;
  position: relative;
  overflow: hidden;
}
.gate-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
}
.gate-card h1 { font-size: 1.45rem; margin-bottom: 6px; color: var(--teal); }
.gate-card .lede { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.gate-card label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.gate-row { display: flex; gap: 10px; }
.gate-row input {
  flex: 1; font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.gate-row input:focus { outline: none; border-color: var(--orange); }
.gate-err { color: #b3372c; font-size: 0.85rem; margin-top: 10px; min-height: 1.2em; }
.gate-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; text-decoration: none;
  padding: 12px 22px; border-radius: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); }
.btn-dark { background: var(--teal); color: #fff; }
.btn-dark:hover { background: var(--teal-2); }
.btn-ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(112deg, var(--teal) 0%, var(--teal) 58%, var(--teal-2) 58.15%, var(--teal-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; bottom: -40px; right: -6%;
  width: 46%; height: 130%;
  background: linear-gradient(112deg, transparent 44%, var(--orange) 44.2%, var(--orange-2) 78%, transparent 78.2%);
  opacity: 0.92;
  pointer-events: none;
}
.hero .wrap { padding: 72px 24px 78px; position: relative; z-index: 2; }
.hero .kicker {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange-2); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; max-width: 640px; margin-bottom: 16px; }
.hero p { font-size: 1.06rem; color: rgba(255,255,255,0.82); max-width: 560px; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.trust-strip { background: var(--teal-3); color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.trust-strip .wrap {
  display: flex; gap: 10px 34px; flex-wrap: wrap; align-items: center;
  padding: 13px 24px;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--orange); flex: none; }

/* ---------- sections ---------- */
.section { padding: 58px 0 26px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: 1.55rem; color: var(--teal); }
.section-head p { color: var(--muted); font-size: 0.94rem; max-width: 560px; }
.section-head .link { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card .art {
  height: 190px; display: flex; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(112deg, #eceae4 58%, #e5e2da 58.2%);
  padding: 18px 0;
}
.cat-card .art img { height: 100%; width: auto; border-radius: 3px; box-shadow: 0 4px 14px rgba(21,36,43,0.18); }
.cat-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-card h3 { font-size: 1.06rem; color: var(--teal); }
.cat-card p { font-size: 0.86rem; color: var(--muted); flex: 1; }
.cat-card .meta { font-size: 0.8rem; font-weight: 600; color: var(--orange); margin-top: 8px; }

/* ---------- product grid ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.prod-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.prod-card .art {
  height: 250px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #f0eee9, #e7e4dc);
  padding: 18px;
}
.prod-card .art img { height: 100%; width: auto; border-radius: 2px; box-shadow: 0 5px 16px rgba(21,36,43,0.2); }
.prod-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-card h3 { font-size: 0.99rem; color: var(--ink); }
.prod-card .kind { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.prod-card .price { font-weight: 700; color: var(--teal); margin-top: auto; padding-top: 10px; font-size: 0.98rem; }
.prod-card .price small { color: var(--muted); font-weight: 500; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: #fdeee3; color: var(--orange);
  padding: 3px 9px; border-radius: 99px; width: max-content;
}
.badge.teal { background: #e4edf0; color: var(--teal-2); }
.badge.wine { background: #f3e6ec; color: var(--wine); }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 0.84rem; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--orange); }
.crumbs .sep { margin: 0 7px; opacity: 0.5; }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 44px; padding: 30px 0 60px; align-items: start; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  /* stacked layout: the art must scroll away with the page, never pin over the info column */
  .pdp-art { position: static; min-height: 0; padding: 22px; }
  .pdp-art img { max-height: 380px; }
}
.pdp-art {
  background: linear-gradient(140deg, #f0eee9, #e7e4dc);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: 34px; min-height: 480px;
}
/* sticky art is a two-column luxury — stacked mobile layout must scroll normally */
@media (min-width: 861px) { .pdp-art { position: sticky; top: 92px; } }
.pdp-art img { max-height: 560px; width: auto; max-width: 100%; border-radius: 3px; box-shadow: 0 10px 34px rgba(21,36,43,0.25); }
.pdp-info h1 { font-size: 1.7rem; color: var(--teal); margin: 6px 0 8px; }
.pdp-info .lede { color: var(--muted); margin-bottom: 18px; max-width: 520px; }
.pdp-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.pdp-block h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.spec-list { list-style: none; font-size: 0.9rem; color: var(--ink); }
.spec-list li { padding: 5px 0 5px 20px; position: relative; }
.spec-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 3px; background: var(--orange); border-radius: 2px; }

/* price table */
.tier-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tier-table th, .tier-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tier-table th { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tier-table tr:last-child td { border-bottom: none; }
.tier-table td.p { font-weight: 700; color: var(--teal); }
.tier-table tr.active td { background: #fdf3ea; }

/* option pickers */
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .opt-cards { grid-template-columns: 1fr; } }
.opt-card {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; background: var(--card);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.opt-card:hover { border-color: var(--orange-2); }
.opt-card.selected { border-color: var(--orange); background: #fdf7f1; box-shadow: 0 0 0 1px var(--orange); }
.opt-card .t { font-weight: 700; font-size: 0.94rem; color: var(--teal); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.opt-card .t .price-note { color: var(--orange); font-size: 0.8rem; white-space: nowrap; }
.opt-card .d { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* material pills */
.mat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mat-pill {
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--card);
  padding: 10px 14px; cursor: pointer; font-size: 0.88rem;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.mat-pill:hover { border-color: var(--orange-2); }
.mat-pill.selected { border-color: var(--orange); background: #fdf7f1; box-shadow: 0 0 0 1px var(--orange); }
.mat-pill .m-name { font-weight: 600; color: var(--teal); }
.mat-pill .m-price { color: var(--orange); font-weight: 700; margin-left: 8px; }
.mat-pill .m-lead { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 2px; }

/* co-brand form */
.cb-form { display: grid; gap: 12px; margin-top: 12px; }
.cb-form .field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.cb-form .field input {
  width: 100%; font-family: var(--font-body); font-size: 0.94rem;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px;
}
.cb-form .field input:focus { outline: none; border-color: var(--orange); }
.cb-form .hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.note-box {
  background: #eef4f2; border: 1px solid #d5e4df; border-radius: 8px;
  font-size: 0.84rem; color: #24523f; padding: 12px 14px; line-height: 1.5;
}
.note-box.warn { background: #fdf3ea; border-color: #f3ddc8; color: #7a4a1c; }

/* qty stepper + buy row */
.buy-row { display: flex; gap: 14px; align-items: stretch; margin-top: 6px; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 8px; background: var(--card); overflow: hidden;
}
.qty button {
  width: 42px; height: 100%; min-height: 46px; border: none; background: transparent;
  font-size: 1.15rem; cursor: pointer; color: var(--teal); font-weight: 600;
}
.qty button:hover { background: var(--paper); }
.qty input {
  width: 54px; text-align: center; border: none; font-family: var(--font-body);
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
.qty input:focus { outline: none; }
.line-total { display: flex; flex-direction: column; justify-content: center; min-width: 130px; }
.line-total .amt { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--teal); }
.line-total .per { font-size: 0.78rem; color: var(--muted); }

/* ---------- cart ---------- */
.cart-page { padding: 30px 0 70px; display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
@media (max-width: 860px) { .cart-page { grid-template-columns: 1fr; } }
.cart-lines { display: flex; flex-direction: column; gap: 14px; }
.cart-line {
  display: grid; grid-template-columns: 86px 1fr auto; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; align-items: center;
}
.cart-line .thumb {
  height: 96px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #f0eee9, #e7e4dc); border-radius: 6px; padding: 8px;
}
.cart-line .thumb img { height: 100%; width: auto; }
.cart-line h4 { font-size: 0.96rem; color: var(--teal); }
.cart-line .opts { font-size: 0.8rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.cart-line .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line .amt { font-weight: 700; color: var(--teal); }
.cart-line .rm { font-size: 0.78rem; color: var(--muted); background: none; border: none; cursor: pointer; text-decoration: underline; }
.cart-line .rm:hover { color: #b3372c; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 92px; }
.summary h3 { font-size: 1.05rem; color: var(--teal); margin-bottom: 14px; }
.summary .row { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 6px 0; color: var(--muted); }
.summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.summary .fine { font-size: 0.78rem; color: var(--muted); margin: 12px 0 16px; line-height: 1.5; }
.empty-state { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty-state h2 { color: var(--teal); margin-bottom: 8px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .n {
  font-family: var(--font-head); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { font-size: 1rem; color: var(--teal); margin-bottom: 6px; }
.step p { font-size: 0.86rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-3); color: rgba(255,255,255,0.72); margin-top: 60px; }
.site-footer .wrap { padding: 38px 24px 34px; font-size: 0.84rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 26px; }
.fcol.wide { min-width: 240px; }
.fcol h5 {
  color: #fff; font-family: var(--font-head); font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px;
}
.fcol a { display: block; color: rgba(255,255,255,0.72); padding: 3px 0; text-decoration: none; }
.fcol a:hover { color: var(--orange-2); }
.fcol p { margin-bottom: 10px; line-height: 1.6; }
.fcol .ffine { font-size: 0.76rem; color: rgba(255,255,255,0.5); }
.fcol p a { display: inline; color: var(--orange-2); }

/* ---------- policy pages ---------- */
.policy-page { max-width: 760px; padding: 26px 0 60px; }
.policy-page h1 { color: var(--teal); font-size: 1.8rem; margin-bottom: 18px; }
.policy-page h3 { color: var(--teal); font-size: 1.02rem; margin: 22px 0 6px; }
.policy-page p { font-size: 0.94rem; margin-bottom: 10px; color: var(--ink); }
.policy-page .muted { color: var(--muted); font-style: italic; }

/* terms checkbox */
.terms-box {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  font-size: 0.82rem; margin: 14px 0 4px; line-height: 1.5;
}
.terms-box input { margin-top: 3px; accent-color: var(--orange); }

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(15,36,44,0.6); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg);
  max-width: 520px; width: 100%; padding: 32px; position: relative;
  max-height: 88vh; overflow: auto;
}
.modal h2 { color: var(--teal); font-size: 1.3rem; margin-bottom: 10px; }
.modal p { font-size: 0.92rem; color: var(--muted); margin-bottom: 12px; }
.modal .x {
  position: absolute; top: 14px; right: 14px; background: none; border: none;
  font-size: 1.3rem; color: var(--muted); cursor: pointer; line-height: 1;
}
.modal ol { margin: 0 0 14px 20px; font-size: 0.9rem; color: var(--ink); }
.modal ol li { margin-bottom: 8px; }

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 0.9rem; font-weight: 500;
  padding: 12px 20px; border-radius: 99px; box-shadow: var(--shadow-lg);
  z-index: 95; display: flex; align-items: center; gap: 10px;
  animation: toast-in 0.25s ease;
}
.toast .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--orange-2); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* stock dropdown */
.stock-sel {
  width: 100%; font-family: var(--font-body); font-size: 0.92rem;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); cursor: pointer;
}
.stock-sel:focus { outline: none; border-color: var(--orange); }

/* ---------- shipping estimator / options ---------- */
.ship-row { display: flex; gap: 8px; }
.ship-row input {
  flex: 1; min-width: 0; font-family: var(--font-body); font-size: 0.94rem;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px;
}
.ship-row input:focus { outline: none; border-color: var(--orange); }
.ship-row .btn { padding: 10px 16px; }
.ship-out { margin-top: 10px; }
.ship-est-line {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 0.88rem; padding: 7px 2px; border-bottom: 1px dashed var(--line);
}
.ship-est-line:last-child { border-bottom: none; }
.free { color: var(--ok); }
.muted { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.ship-block { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 10px; }
.ship-block h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ship-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ship-opt {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 12px;
  font-size: 0.88rem;
}
.ship-opt span:nth-child(2) { flex: 1; }
.ship-opt.selected { border-color: var(--orange); background: #fdf7f1; }
.ship-opt input { accent-color: var(--orange); }
.prot-box {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: 0.84rem; margin-top: 12px;
}
.prot-box.selected { border-style: solid; border-color: var(--orange); background: #fdf7f1; }
.prot-box input { margin-top: 3px; accent-color: var(--orange); }

/* preview ribbon */
.preview-ribbon {
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  color: #fff; text-align: center; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; padding: 7px 12px;
}

/* ---------- responsive header (no-overlap guarantees) ---------- */
@media (max-width: 1020px) {
  .brand .sub { display: none; }
  .nav a { padding: 8px 9px; font-size: 0.86rem; }
}
@media (max-width: 880px) {
  .menu-btn { display: flex; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--teal-2);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 14px;
    box-shadow: 0 14px 30px rgba(15,36,44,0.35);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 13px 8px; font-size: 0.98rem;
    border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0;
  }
  .nav a:last-child { border-bottom: none; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 640px) {
  .site-header .wrap { height: 58px; gap: 10px; }
  .brand-logo { height: 28px; margin-top: 3px; }
  .cart-btn { padding: 8px 12px; font-size: 0.84rem; }
  .hero .wrap { padding: 52px 24px 60px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  /* footer: two tidy columns, the wide info card gets its own full row —
     its desktop min-width overflowed the narrow grid track and dragged the
     whole page wider than the viewport (the "drift") */
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .fcol.wide { grid-column: 1 / -1; min-width: 0; }
}

/* ---------- order portal ---------- */
.portal-card {
  background: #fff; border: 1px solid #e5e2dc; border-radius: 12px;
  padding: 22px 24px; margin: 18px 0; text-align: center;
}
.portal-card h3 { margin: 0 0 8px; }
.portal-timeline {
  display: flex; flex-wrap: wrap; gap: 4px 0; margin: 22px 0;
  border: 1px solid #e5e2dc; border-radius: 12px; padding: 16px; background: #fff;
}
.pt-step { flex: 1 1 90px; min-width: 90px; text-align: center; position: relative; padding: 4px 2px; }
.pt-step::before {
  content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: #ddd;
}
.pt-step:first-child::before { display: none; }
.pt-step.done::before, .pt-step.now::before { background: var(--orange, #f26c21); }
.pt-dot {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  background: #ddd; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; position: relative; z-index: 1;
}
.pt-step.done .pt-dot { background: var(--orange, #f26c21); box-shadow: 0 0 0 1px var(--orange, #f26c21); }
.pt-step.now .pt-dot { background: #fff; box-shadow: 0 0 0 2px var(--orange, #f26c21); }
.pt-label { display: block; font-size: .74rem; margin-top: 6px; color: var(--muted, #777); }
.pt-step.now .pt-label { color: var(--teal, #16323c); font-weight: 700; }
.pt-step.done .pt-label { color: var(--teal, #16323c); }
.pt-at { display: block; font-size: .64rem; color: var(--muted, #999); }

/* phones: the 7-step row wraps badly and the -50% connectors cross rows —
   switch to a vertical checklist under 700px */
@media (max-width: 700px) {
  .portal-timeline { flex-direction: column; gap: 0; }
  .pt-step {
    flex: none; min-width: 0; text-align: left;
    display: flex; align-items: center; gap: 10px; padding: 8px 2px;
  }
  .pt-step::before {
    top: -10px; left: 8px; width: 2px; height: 20px;   /* vertical connector */
  }
  .pt-label { margin-top: 0; }
  .pt-at { margin-left: auto; }
}

/* trust strip: keep all five items on one line on desktop */
@media (min-width: 1100px) {
  .trust-strip { font-size: 0.8rem; }
  .trust-strip .wrap { max-width: 1340px; gap: 10px 22px; flex-wrap: nowrap; justify-content: center; }
  .trust-strip span { white-space: nowrap; }
}
