/* LOCAL PREVIEW ONLY: the fictional Harbor & Pine storefront mockup around the real size guide (Studio look).
   Shared by every generated demo page (preview/demo/build-pages.mjs). Not a Shopify theme. */
:root {
  --ink: #0b1220; --muted: #4a5568; --line: #dde3ec; --blue: #1d5bd8; --blue-deep: #123f9e; --mist: #f4f7fb; --white: #ffffff;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: linear-gradient(180deg, #eef3fa 0, var(--white) 420px); }
a { color: var(--blue); }
.demo-note { margin: 0; padding: 10px 16px; font-size: 13px; color: #e6ecf5; background: var(--ink); text-align: center; }
.demo-note strong { color: #fff; }
header.site {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px); border-bottom: 1px solid rgba(221, 227, 236, .88);
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px) saturate(130%); backdrop-filter: blur(12px) saturate(130%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { header.site { background: #fff; } }
.wordmark { font-weight: 700; letter-spacing: -.02em; font-size: 20px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.wordmark small { font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
nav.site { display: flex; align-items: center; gap: 16px; font-size: 14px; }
nav.site a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 38px; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
nav.site a:hover { color: var(--ink); }
nav.site a[aria-current=page] { color: var(--ink); font-weight: 600; }
nav.site a.app-hub-link { font-weight: 600; color: var(--blue); padding: 0 12px; border-radius: 999px; background: rgba(29, 91, 216, 0.08); border: 1px solid rgba(29, 91, 216, 0.22); }
nav.site a.app-hub-link:hover { background: rgba(29, 91, 216, 0.14); color: var(--blue-deep); }
main { max-width: 1160px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 48px) calc(64px + env(safe-area-inset-bottom, 0px)); }
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Product images: square originals shown whole (no crop), on a matching cool-white tile. */
.shot { position: relative; margin: 0; border-radius: 20px; background: #f3f6fa; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 1 / 1; }
.shot.main { grid-column: span 2; }
.shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(11, 18, 32, 0.08); }
/* Image slot (no artwork yet): an empty frame that names the file it expects. */
.shot.slot { display: grid; place-items: center; border: 1.5px dashed #b8c4d6; background: repeating-linear-gradient(135deg, #f6f8fb 0 14px, #eef2f7 14px 28px); }
.slot-label { display: grid; gap: 4px; justify-items: center; padding: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.slot-label strong { color: var(--ink); font-size: 14px; }
.slot-label code { font: 12px ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--ink); background: rgba(255, 255, 255, .8); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.img-note { margin: 10px 2px 0; font-size: 12px; color: var(--muted); }
.info { position: sticky; top: 92px; }
.crumbs { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.price { margin: 10px 0 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price span { font-size: 13px; color: var(--muted); font-weight: 400; }
.lede { margin: 16px 0 0; color: var(--muted); max-width: 46ch; }
.sizes { margin: 26px 0 0; padding: 0; border: 0; }
.sizes legend { font-weight: 600; font-size: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; width: 100%; align-items: center; gap: 8px; flex-wrap: wrap; }
.sizes legend span { font-weight: 400; color: var(--muted); }
.sizes legend span.guide-hint { font-weight: 600; font-size: 12px; color: #0284c7; background: #e0f2fe; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(2, 132, 199, 0.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips span { display: grid; place-items: center; min-width: 56px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 600; transition: border-color .16s, box-shadow .16s; }
.chips input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.guide-slot { margin: 18px 0 0; }
.guide-slot .sg-trigger { min-height: 48px !important; padding: 0 18px !important; border-radius: 12px !important; box-shadow: 0 1px 3px rgba(11, 18, 32, .1), 0 0 0 1px rgba(2, 132, 199, 0.25) !important; background: #f8fafc !important; font-weight: 600 !important; border-color: rgba(2, 132, 199, 0.4) !important; color: #0f172a !important; }
.guide-slot .sg-trigger:hover { border-color: #0284c7 !important; color: #0284c7 !important; box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2), 0 0 0 1.5px #0284c7 !important; }
.buy { margin: 24px 0 0; display: grid; gap: 10px; }
.buy button { min-height: 52px; border: 0; border-radius: 14px; font: 600 16px var(--font); color: #fff; background: var(--ink); cursor: not-allowed; opacity: .92; }
.buy p { margin: 0; font-size: 13px; color: var(--muted); }
.details { margin: 28px 0 0; border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.compare, .more { margin: 48px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .85); }
.more { margin-top: 16px; }
.compare h2, .more h2 { margin: 0 0 6px; font-size: 18px; }
.compare p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: 500 14px var(--font); color: var(--ink); cursor: pointer; }
.presets button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.presets button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.more ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 14px; color: var(--ink); text-decoration: none; }
.more a[aria-current=page] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.more a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
footer.site { max-width: 1160px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) calc(48px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.logo-slot { display: inline-flex; align-items: center; gap: 8px; }
/* MCO WebLab logo (source: assets/SOURCE.md). Height set, width from the intrinsic ratio (480 x 204); transparent background kept. */
.mco-logo { display: block; height: 40px; width: auto; }
/* Mock storefront theme variables (Match theme reads a theme's computed styles; these stand in for a theme). */
.sg-root.brand-theme { --theme-bg: #ffffff; --theme-text: #0b1220; --theme-button: #0b1220; --theme-button-text: #ffffff; --theme-font-body: var(--font); --theme-font-heading: var(--font); }
@media (max-width: 1080px) { nav.site { gap: 12px; font-size: 13px; } }
@media (max-width: 860px) {
  .demo-note { padding: 8px 14px; font-size: 12px; line-height: 1.4; }
  header.site {
    flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 16px;
    background: rgba(255, 255, 255, .98); backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .wordmark { font-size: 18px; min-height: 32px; justify-content: space-between; width: 100%; }
  nav.site {
    display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 8px; width: 100%; padding-bottom: 2px;
  }
  nav.site::-webkit-scrollbar { display: none; }
  nav.site a {
    min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--mist);
    border: 1px solid var(--line); white-space: nowrap; font-weight: 500; font-size: 13px; color: var(--ink); flex: none;
  }
  nav.site a[aria-current=page] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .product { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .info { position: static; }
  .guide-slot .sg-trigger { width: 100%; justify-content: center; font-size: 15px !important; }
  .compare, .more { margin-top: 32px; padding: 16px; border-radius: 16px; }
  .more { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { .chips span { transition: none; } }
