/* =====================================================================
   MPrints redesign v4 (Oct 23, 2026). Same colours and fonts, new layout.
   Loaded after store.css. Store rules are scoped to body.v4:not(.is-dash).
   Idea: "the rail". The pieces slide along a bar, so headings run into a
   gold line, the home catalog is one sliding rail of pieces, and the setup
   steps sit on a line. Everything else stays quiet.
   ===================================================================== */
body.v4:not(.is-dash) {
  --hd-top: 4.6rem;
  --rail: linear-gradient(90deg, #C9A055, rgba(201,160,85,.15));
}

/* ---------- headings that run into the rail ---------- */
body.v4:not(.is-dash) .s-head-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: nowrap; }
body.v4:not(.is-dash) .s-head-row > h2, body.v4:not(.is-dash) .s-head-row > div:first-child { flex: 1 1 auto; min-width: 0; }
body.v4:not(.is-dash) .s-head-row > h2, body.v4:not(.is-dash) .s-head-row > div:first-child > h2,
body.v4:not(.is-dash) .rail-head > h2, body.v4:not(.is-dash) .shop4 .shelf-head h2 { display: flex; align-items: center; gap: 1.1rem; }
body.v4:not(.is-dash) .s-head-row > h2::after, body.v4:not(.is-dash) .s-head-row > div:first-child > h2::after,
body.v4:not(.is-dash) .rail-head > h2::after, body.v4:not(.is-dash) .shop4 .shelf-head h2::after { content: ""; flex: 1 1 2rem; min-width: 2rem; height: 2px; background: var(--rail); }
body.v4:not(.is-dash) .s-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* ---------- header: logo in the middle, menu on its own row ---------- */
body.v4 .site-header.hd4 { position: sticky; top: 0; z-index: 30; padding: 0; background: rgba(243,234,214,.96); border-bottom: 1px solid var(--rule); }
body.v4 .hd4 .hd-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: var(--hd-top); transition: min-height .25s ease; }
body.v4 .hd4 .hd-note { grid-column: 1; margin: 0; padding: 0; background: none; text-align: left; font: 400 .98rem/1.35 var(--text); color: var(--muted); }
body.v4 .hd4 .hd-note span { display: block; color: var(--gold-text); }
body.v4 .hd4 .wordmark { grid-column: 2; justify-self: center; --wm: 2.9rem; transition: font-size .25s ease; }
body.v4 .hd4 .wordmark .mark { transition: width .25s ease, height .25s ease; }
body.v4 .hd4 .hd-tools { grid-column: 3; justify-self: end; }
body.v4 .hd4 .nav-toggle { grid-column: 1; grid-row: 1; justify-self: start; }
body.v4 .hd4 .hd-navrow { border-top: 1px solid var(--rule); }
body.v4 .hd4 .site-nav { display: block; margin: 0 auto; position: static; }
body.v4 .hd4 .site-nav ul { display: flex; justify-content: center; gap: clamp(.4rem, 2.2vw, 2.4rem); margin: 0; padding: 0; list-style: none; }
body.v4 .hd4 .site-nav a { padding: .55rem .7rem .6rem; }
body.v4 .hd4.scrolled { box-shadow: 0 10px 24px -18px rgba(38,49,58,.55); }
body.v4 .hd4.scrolled .hd-top { min-height: 3.3rem; }
body.v4 .hd4.scrolled .wordmark { --wm: 2.2rem; }
body.v4 .hd4.scrolled .hd-note { opacity: 0; }
body.v4 .hd4 .hd-note { transition: opacity .2s; }
@media (max-width: 1080px) { body.v4 .hd4 .hd-note span { display: none; } }
@media (max-width: 860px) {
  body.v4 .hd4 .hd-top { grid-template-columns: auto 1fr auto; min-height: 3.9rem; }
  body.v4 .hd4 .hd-note { display: none; }
  body.v4 .hd4 .wordmark { --wm: 2.2rem; }
  body.v4 .hd4 .hd-navrow { border-top: 0; }
  body.v4 .hd4 .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 0; background: var(--s-sand); border-bottom: 1px solid var(--rule); box-shadow: 0 16px 30px rgba(38,49,58,.14); }
  body.v4 .hd4 .site-nav.open { display: block; }
  body.v4 .hd4 .site-nav ul { flex-direction: column; gap: 0; padding: .4rem var(--gutter) 1rem; }
  body.v4 .hd4 .site-nav a { padding: .8rem .2rem; }
}

/* ---------- footer: centred brand, columns underneath ---------- */
body.v4 .site-footer.ft4 { padding: 3.5rem 0 1.5rem; text-align: center; }
body.v4 .ft4 .ft-brand { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid rgba(201,160,85,.3); }
body.v4 .ft4 .ft-brand p { margin: 0; max-width: 30rem; }
body.v4 .ft4 .wordmark { --wm: 3.2rem; }
body.v4 .ft4 .social { justify-content: center; }
body.v4 .ft4 .ft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 12rem)); justify-content: center; gap: 2rem 4rem; }
body.v4 .ft4 .ft-col ul { padding: 0; }
body.v4 .ft4 .ft-legal { margin-top: 2.5rem; }
@media (max-width: 560px) { body.v4 .ft4 .ft-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; } }

/* ---------- inner page headings: centred title over a short gold rule ---------- */
body.v4:not(.is-dash) .band, body.v4:not(.is-dash) .s-pagehead { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 2.75rem); background: none; border-bottom: 1px solid var(--rule); text-align: center; }
body.v4:not(.is-dash) .band h1, body.v4:not(.is-dash) .x-title h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
body.v4:not(.is-dash) .band h1::after, body.v4:not(.is-dash) .x-title h1::after { content: ""; display: block; width: 3.5rem; height: 2px; margin: .9rem auto 0; background: var(--gold); }
body.v4:not(.is-dash) .band .sub, body.v4:not(.is-dash) .x-title p { max-width: 40rem; margin-left: auto; margin-right: auto; }
body.v4:not(.is-dash) .band .crumbs { justify-content: center; }
body.v4:not(.is-dash) .x-title { text-align: center; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }

/* ---------- home: hero ---------- */
body.v4 .h4-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; text-align: center; }
body.v4 .h4-hero-copy { max-width: 52rem; }
body.v4 .h4-hero h1 { text-wrap: balance; margin: 0 auto; max-width: 19ch; font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: .01em; }
body.v4 .h4-hero-copy > p { max-width: 38rem; margin: 1.3rem auto 0; color: var(--muted); font-size: 1.22rem; line-height: 1.6; }
body.v4 .h4-hero .s-actions { justify-content: center; margin-top: 1.8rem; }
body.v4 .h4-hero-pic { margin: clamp(2.25rem, 5vw, 3.5rem) auto 0; }
body.v4 .h4-hero-pic img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 58%; background: var(--s-slate); }
@media (max-width: 640px) { body.v4 .h4-hero-pic { padding: 0; } body.v4 .h4-hero-pic img { aspect-ratio: 4 / 3; } }

/* the four reasons, on slate, straight under the photo */
body.v4 .h4-facts { background: var(--lattice), var(--s-slate); color: var(--s-cream-2); }
body.v4 .h4-facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; margin: 0 auto; padding-top: 2.1rem; padding-bottom: 2.3rem; list-style: none; }
body.v4 .h4-facts li { display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .9rem; align-items: start; }
body.v4 .h4-facts svg { grid-row: span 2; width: 2rem; height: 2rem; fill: none; stroke: #E3C47C; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
body.v4 .h4-facts strong { font: 700 .86rem/1.3 var(--caps); letter-spacing: .08em; color: #F7EED8; }
body.v4 .h4-facts span { margin-top: .3rem; font-size: 1rem; line-height: 1.5; }
@media (max-width: 900px) { body.v4 .h4-facts ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { body.v4 .h4-facts ul { grid-template-columns: 1fr; } }

/* ---------- home: the rail of pieces ---------- */
body.v4 .rail-head { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
body.v4 .rail-head > h2 { flex: 1 1 18rem; margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
body.v4 .rail-tabs { display: flex; gap: .2rem; }
body.v4 .rail-tab { padding: .5rem .75rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 600 .76rem var(--caps); letter-spacing: .1em; cursor: pointer; }
body.v4 .rail-tab:hover { color: var(--strong); }
body.v4 .rail-tab[aria-pressed="true"] { color: var(--strong); border-bottom-color: var(--gold); }
body.v4 .rail-arrows { display: flex; gap: .4rem; }
body.v4 .rail-btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--rule); background: var(--s-sheet); color: var(--strong); cursor: pointer; transition: background .2s, border-color .2s; }
body.v4 .rail-btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.v4 .rail-btn:hover:not(:disabled) { border-color: var(--gold); background: rgba(201,160,85,.14); }
body.v4 .rail-btn:disabled { opacity: .35; cursor: default; }
body.v4 .rail-track {
  --edge: max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: min(19.5rem, 78vw); gap: 1.5rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: .25rem var(--edge) 1.4rem; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
  /* the rail itself: a gold bar the cards sit on */
  background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - .55rem) / 100% 2px no-repeat;
}
body.v4 .rail-track:focus-visible { outline: 2px solid var(--gold-text); outline-offset: -2px; }
body.v4 .rail-track .pcard { scroll-snap-align: start; padding-bottom: 1.1rem; background: var(--s-sheet); border: 1px solid var(--rule); }
body.v4 .rail-track .pcard-body { padding: .9rem 1rem 0; }
body.v4 .rail-foot { margin: 1.25rem auto 0; }
@media (max-width: 640px) { body.v4 .rail-tabs { order: 3; width: 100%; overflow-x: auto; } body.v4 .rail-arrows { display: none; } }

/* ---------- home: bundles ---------- */
body.v4 .h4-bundles .bundle-minis { gap: 1.25rem; }
body.v4 .bundle-mini { border: 1px solid var(--rule) !important; border-top: 3px solid var(--gold) !important; background: var(--s-sheet) !important; }

/* ---------- home: builder band, photo bleeds to the edge ---------- */
body.v4 .h4-build { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); background: var(--s-slate); margin: var(--s-sec) 0; }
body.v4 .h4-build-pic { margin: 0; min-height: 24rem; }
body.v4 .h4-build-pic img { width: 100%; height: 100%; object-fit: cover; }
body.v4 .h4-build-copy { align-self: center; padding: clamp(2rem, 5vw, 4rem); max-width: 32rem; }
body.v4 .h4-build-copy h2 { margin: 0; color: #F7EED8; font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
body.v4 .h4-build-copy p { margin: 1rem 0 1.6rem; color: var(--s-cream-2); font-size: 1.12rem; }
@media (max-width: 860px) { body.v4 .h4-build { grid-template-columns: 1fr; } body.v4 .h4-build-pic { min-height: 0; } body.v4 .h4-build-pic img { aspect-ratio: 16 / 10; height: auto; } }

/* ---------- setup steps on a line (home and product pages) ---------- */
body.v4 .steps.steps-4 { position: relative; counter-reset: s; gap: 2rem; margin-top: 2rem; padding: 0; list-style: none; }
body.v4 .steps.steps-4::before { content: ""; position: absolute; left: 0; right: 0; top: 1.35rem; height: 2px; background: var(--rail); }
body.v4 .steps.steps-4 > li { position: relative; padding: 0 !important; background: none !important; border: 0 !important; }
body.v4 .steps.steps-4 > li::before { content: counter(s); display: grid !important; place-items: center; width: 2.7rem; height: 2.7rem; margin: 0 0 1.1rem !important; border: 2px solid var(--gold); border-radius: 50%; background: var(--s-sand); color: var(--gold-text) !important; font: 700 1.15rem/1 var(--caps) !important; }
body.v4 .steps.steps-4 h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
body.v4 .steps.steps-4 p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
@media (max-width: 960px) {
  body.v4 .steps.steps-4 { grid-template-columns: 1fr !important; gap: 1.5rem; }
  body.v4 .steps.steps-4::before { left: 1.3rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(#C9A055, rgba(201,160,85,.15)); }
  body.v4 .steps.steps-4 > li { padding-left: 4rem !important; }
  body.v4 .steps.steps-4 > li::before { position: absolute; left: 0; top: 0; margin: 0 !important; }
}

/* ---------- home: questions, then the notify strip ---------- */
body.v4.is-home main { padding-bottom: 0; }
body.v4 .h4-qa { max-width: 52rem; }
body.v4 .h4-notify { background: var(--s-panel); border-top: 1px solid var(--rule); }
body.v4 .h4-notify-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; align-items: center; padding-top: 2.4rem; padding-bottom: 2.4rem; }
body.v4 .h4-notify h2 { margin: 0; font-size: 1.5rem; }
body.v4 .h4-notify p { margin: .35rem 0 0; color: var(--muted); }
body.v4 .h4-notify .notify { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem .6rem; align-items: end; margin: 0; }
body.v4 .h4-notify .notify label { grid-column: 1 / -1; }
body.v4 .h4-notify .notify .status { grid-column: 1 / -1; margin: 0; }
body.v4 .h4-notify .notify input { margin: 0; }
@media (max-width: 760px) { body.v4 .h4-notify-in { grid-template-columns: 1fr; } }

/* ---------- shop: sticky side menu ---------- */
body.v4 .shop4 { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; padding-top: 2.5rem; padding-bottom: var(--s-sec); }
body.v4 .shop4-side { position: sticky; top: 9rem; align-self: start; display: grid; gap: 1.75rem; }
body.v4 .shop4-nav { display: grid; border-left: 2px solid var(--rule); }
body.v4 .shop4-nav a { padding: .55rem 0 .55rem 1rem; margin-left: -2px; border-left: 2px solid transparent; font: 600 .8rem var(--caps); letter-spacing: .1em; color: var(--ink); text-decoration: none; }
body.v4 .shop4-nav a:hover { border-left-color: var(--gold); color: var(--strong); }
body.v4 .shop4-fin p { margin: 0 0 .5rem; font-size: .98rem; color: var(--muted); }
body.v4 .shop4-fin .dots { gap: .4rem; }
body.v4 .shop4-fin .dots .chip { width: 1.4rem; height: 1.4rem; }
body.v4 .shop4-fin .shop4-fin-names { margin: .45rem 0 0; font-size: .92rem; }
body.v4 .shop4-build { display: block; padding: 1.1rem; background: var(--s-slate); color: var(--s-cream-2); text-decoration: none; border-bottom: 3px solid var(--gold); }
body.v4 .shop4-build strong { display: block; font: 700 .82rem var(--caps); letter-spacing: .08em; color: #F7EED8; }
body.v4 .shop4-build span { display: block; margin-top: .35rem; font-size: .98rem; line-height: 1.45; }
body.v4 .shop4-build:hover strong { color: #E3C47C; }
body.v4 .shop4 .shelves { display: grid; gap: 3rem; }
body.v4 .shop4 .shelf { display: block; padding-top: 0; border-top: 0; scroll-margin-top: 9rem; }
body.v4 .shop4 .shelf-head { margin-bottom: 1.25rem; }
body.v4 .shop4 .shelf-head h2 { margin: 0; font-size: 1.6rem; }
body.v4 .shop4 .shelf-head p { margin: .35rem 0 0; color: var(--muted); }
body.v4 .shop4 .shelf-cards { grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) {
  body.v4 .shop4 { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
  body.v4 .shop4-side { position: static; }
  body.v4 .shop4-nav { display: flex; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--rule); }
  body.v4 .shop4-nav a { flex: none; margin: 0 0 -2px; padding: .6rem .9rem; border-left: 0; border-bottom: 2px solid transparent; }
  body.v4 .shop4-nav a:hover { border-bottom-color: var(--gold); }
  body.v4 .shop4-fin, body.v4 .shop4-build { display: none; }
  body.v4 .shop4 .shelf-cards { grid-template-columns: 1fr 1fr; gap: 1rem .8rem; }
}

/* ---------- cards everywhere: sheet with a gold foot ---------- */
body.v4:not(.is-dash) .pcard { border-bottom: 3px solid var(--gold) !important; }

/* ---------- product page ---------- */
body.v4 .pd-gallery { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: .75rem; align-content: start; }
body.v4 .pd-gallery > .photo { grid-column: 2; grid-row: 1; }
body.v4 .pd-gallery > .thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: .6rem; margin: 0; }
body.v4 .pd-gallery > .thumbs button { width: 100%; }
body.v4 .pd-gallery > .x-note { grid-column: 2; }
body.v4 .pd-buy .buybox { padding: 0 !important; border: 0 !important; background: none !important; }
body.v4 .pd-buy .buybox h1 { padding-top: 1.1rem; border-top: 3px solid var(--gold); font-size: clamp(2rem, 3.6vw, 2.9rem); }
body.v4 .pd4-tabs { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
body.v4 .pd4-tabs .wrap { display: flex; justify-content: center; gap: clamp(.5rem, 3vw, 2.5rem); overflow-x: auto; }
body.v4 .pd4-tabs a { flex: none; padding: 1rem .4rem; border-bottom: 2px solid transparent; margin-bottom: -1px; font: 600 .8rem var(--caps); letter-spacing: .1em; color: var(--ink); text-decoration: none; }
body.v4 .pd4-tabs a:hover { color: var(--strong); border-bottom-color: var(--gold); }
body.v4 .pd-detail, body.v4 #setup, body.v4 #reviews, body.v4 #related { scroll-margin-top: 8.5rem; }
@media (max-width: 900px) {
  body.v4 .pd-gallery { grid-template-columns: 1fr; }
  body.v4 .pd-gallery > .photo { grid-column: 1; }
  body.v4 .pd-gallery > .thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; }
  body.v4 .pd-gallery > .thumbs button { width: 4.5rem; flex: none; }
  body.v4 .pd-gallery > .x-note { grid-column: 1; }
  body.v4 .pd4-tabs .wrap { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  body.v4 .hd4 .hd-top, body.v4 .hd4 .wordmark, body.v4 .hd4 .wordmark .mark, body.v4 .hd4 .hd-note { transition: none; }
}
body.v4 .shop4-fin .dots { display: flex; }
body.v4 .shop4-fin .dots .chip { display: inline-block; border-radius: 50%; border: 1px solid var(--rule); }
@media (min-width: 901px) { body.v4 .pd-gallery { position: sticky; top: 8.5rem; } }

/* ---------- inner pages: open panels that start on a gold rule instead of boxed cards ---------- */
body.v4:not(.is-dash) .form-panel, body.v4:not(.is-dash) .follow-card, body.v4:not(.is-dash) .cart-summary,
body.v4:not(.is-dash) .os-card, body.v4:not(.is-dash) .acct-card, body.v4:not(.is-dash) .pol-body,
body.v4:not(.is-dash) .sheet-prose, body.v4:not(.is-dash) .faq-wrap .faq-list, body.v4:not(.is-dash) .os-form, body.v4:not(.is-dash) .page-body > .wrap.prose {
  padding: 1.4rem 0 0 !important; background: none !important; border: 0 !important; border-top: 3px solid var(--gold) !important; box-shadow: none !important;
}
body.v4:not(.is-dash) .follow-card { padding-bottom: 0 !important; }
body.v4:not(.is-dash) .faq-side { gap: 2rem; }
body.v4:not(.is-dash) .cart-list > * { background: none !important; border: 0 !important; border-bottom: 1px solid var(--rule) !important; }
body.v4:not(.is-dash) .acct-stats > * { background: none !important; border: 0 !important; border-left: 2px solid var(--gold) !important; }
body.v4 .ab-hero { background: none !important; border-bottom: 1px solid var(--rule); }
body.v4 .ab-cols > div { border-top-width: 3px !important; }

/* ---------- Oct 23 follow-up: no decorative lines; pieces in a centred grid ---------- */
body.v4:not(.is-dash) .s-head-row > h2::after, body.v4:not(.is-dash) .s-head-row > div:first-child > h2::after,
body.v4:not(.is-dash) .rail-head > h2::after, body.v4:not(.is-dash) .shop4 .shelf-head h2::after,
body.v4:not(.is-dash) .band h1::after, body.v4:not(.is-dash) .x-title h1::after, body.v4 .steps.steps-4::before { content: none !important; display: none !important; }
body.v4:not(.is-dash) .pcard { border-bottom: 1px solid var(--rule) !important; }
body.v4 .bundle-mini { border-top: 1px solid var(--rule) !important; }
body.v4:not(.is-dash) .form-panel, body.v4:not(.is-dash) .follow-card, body.v4:not(.is-dash) .cart-summary,
body.v4:not(.is-dash) .os-card, body.v4:not(.is-dash) .acct-card, body.v4:not(.is-dash) .pol-body,
body.v4:not(.is-dash) .sheet-prose, body.v4:not(.is-dash) .faq-wrap .faq-list, body.v4:not(.is-dash) .os-form { border-top: 0 !important; padding-top: 0 !important; }
body.v4:not(.is-dash) .acct-stats > * { border-left: 0 !important; }
body.v4 .pd-buy .buybox h1 { border-top: 0; padding-top: 0; }
body.v4 .h4-center { text-align: center; }
body.v4 .h4-pieces .s-head p { margin: .5rem auto 0; color: var(--muted); }
body.v4 .h4-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin: 2rem 0; }
body.v4 .h4-grid .pcard { flex: 0 1 15.5rem; background: var(--s-sheet); border: 1px solid var(--rule); padding-bottom: 1rem; }
body.v4 .h4-grid .pcard-body { padding: .9rem 1rem 0; }
@media (max-width: 560px) { body.v4 .h4-grid { gap: 1rem .8rem; } body.v4 .h4-grid .pcard { flex-basis: calc(50% - .4rem); } }
body.v4 .h4-pieces .s-head { max-width: none; margin-left: auto; margin-right: auto; text-align: center; }
body.v4 .shop4-build { border-bottom: 0; }

/* ---------- background patterns (Oct 23): a faint shower-tile grid on the sand,
   a soft diamond pattern on the darker sand bands ---------- */
body.v4:not(.is-dash) {
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M0 .5H72M.5 0V72' fill='none' stroke='%23A98438' stroke-opacity='.16' stroke-width='1'/%3E%3Cpath d='M36 32.5 39.5 36 36 39.5 32.5 36Z' fill='%23C9A055' fill-opacity='.18'/%3E%3C/svg%3E");
  --diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 2 26 14 14 26 2 14Z' fill='none' stroke='%23A98438' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E");
  background:
    radial-gradient(1100px 560px at 85% -10%, rgba(201,160,85,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 45%, rgba(201,160,85,.08), transparent 60%),
    var(--tile), var(--s-sand);
  background-attachment: fixed, fixed, scroll, scroll;
}
body.v4 .h4-notify, body.v4 .h4-pieces { position: relative; }
body.v4 .h4-pieces { background: var(--diamond), var(--s-panel); padding-top: var(--s-sec); padding-bottom: var(--s-sec); margin-top: 0; max-width: none; }
body.v4 .h4-notify { background: var(--diamond), var(--s-panel); }
body.v4 .band, body.v4 .s-pagehead { background: var(--diamond), rgba(234,223,196,.65) !important; }
body.v4 .hd4 { background: rgba(243,234,214,.97); }
body.v4 .bundle-band.h4-bundles { margin-top: var(--s-sec); }

/* ---------- Oct 23: no lines under products, bundles or photos ---------- */
body.v4:not(.is-dash) .pcard, body.v4:not(.is-dash) .pcard-body, body.v4:not(.is-dash) .pcard-img,
body.v4 .h4-grid .pcard, body.v4 .bundle-mini, body.v4 .bundle, body.v4 .bundle-minis > *,
body.v4:not(.is-dash) .card-link { border: 0 !important; border-bottom: 0 !important; box-shadow: none !important; }
body.v4 .h4-grid .pcard, body.v4 .bundle-mini { background: var(--s-sheet) !important; }
body.v4:not(.is-dash) .x-more { border-bottom: 0 !important; background: none !important; text-decoration: none; }
body.v4:not(.is-dash) .x-more:hover { color: var(--strong); }
body.v4:not(.is-dash) .shelf, body.v4:not(.is-dash) .shelf-cards { border: 0 !important; }
/* pattern without lines: small gold diamonds on the sand */
body.v4:not(.is-dash) {
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M12 8.5 15.5 12 12 15.5 8.5 12Z' fill='%23C9A055' fill-opacity='.22'/%3E%3Cpath d='M36 34 38 36 36 38 34 36Z' fill='%23A98438' fill-opacity='.18'/%3E%3C/svg%3E");
}
body.v4:not(.is-dash) .x-est { border-left: 0 !important; }
body.v4 .hd-tool.header-cta { box-shadow: none !important; }
body.v4 .shop4-nav, body.v4 .shop4-nav a { border-left: 0 !important; border-bottom: 0 !important; }
body.v4 .shop4-nav a { padding-left: 0; }
body.v4 .shop4-nav a:hover { color: var(--gold-text); }

/* =====================================================================
   Speed (Oct 23): the site felt laggy. Nothing below changes the look at rest.
   - backgrounds scroll with the page (fixed backgrounds repaint the whole screen every frame)
   - no blur behind the header (backdrop-filter is expensive while scrolling)
   - the header no longer animates its height when you scroll (that re-laid out the page each frame)
   - the gold shine runs once when the page opens and on hover, not on a loop forever
   ===================================================================== */
body.v4:not(.is-dash) { background-attachment: scroll, scroll, scroll, scroll !important; }
body.v4 .site-header, body.v4 .hd4 { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.v4 .hd4 .hd-top, body.v4 .hd4 .wordmark, body.v4 .hd4 .wordmark .mark { transition: none !important; }
body.v4 .hd4.scrolled .hd-top { min-height: var(--hd-top); }
body.v4 .hd4.scrolled .wordmark { --wm: 2.9rem; }
@media (max-width: 860px) { body.v4 .hd4.scrolled .hd-top { min-height: 3.9rem; } body.v4 .hd4.scrolled .wordmark { --wm: 2.2rem; } }
/* shine: once on load, then only on hover */
.mark .mark-shine { animation-iteration-count: 1 !important; }
.wordmark:hover .mark .mark-shine, .dash-logo:hover .mark .mark-shine { animation: mp-mark 1.4s ease-in-out 0s 1 !important; }
body.v3 .wordmark span { animation-iteration-count: 1 !important; }
body.v3 .wordmark:hover span { animation: mp-word 1.4s ease-in-out .15s 1 !important; }
body.v3 .s-actions .btn:not(.btn-ghost)::after, body.v3 .pd-buy .qty-row .btn::after, body.v3 .s-band .btn::after,
body.v3 .cart-summary .btn::after, body.v3 #checkout-btn::after { animation: none !important; }
.mark .mark-shine { animation: mp-mark 2.4s ease-in-out .5s 1 !important; }
body.v3 .wordmark span { animation: mp-word 2.4s ease-in-out .65s 1 !important; }

/* Speed fix 2: the pattern lives on its own fixed layer that the browser paints once,
   instead of on the page background (which was re-painted over the whole long page). */
body.v4:not(.is-dash) { background: var(--s-sand) !important; }
body.v4:not(.is-dash)::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; will-change: transform;
  background:
    radial-gradient(1100px 560px at 85% -10%, rgba(201,160,85,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 45%, rgba(201,160,85,.08), transparent 60%),
    var(--tile);
}
body.v4:not(.is-dash) > main, body.v4:not(.is-dash) > header, body.v4:not(.is-dash) > footer { position: relative; }
body.v4 .hd4 { position: sticky; }
html:has(body.v4:not(.is-dash)) { background: #F3EAD6; }
body.v4:not(.is-dash) { background: transparent !important; }
body.v4:not(.is-dash)::before { display: block !important; }

/* ---------- Website editor hooks (Oct 23) ---------- */
/* roundness: one setting for buttons, cards, photos and fields (0 = square, the default) */
body.v4:not(.is-dash) :is(.btn, .pcard, .bundle-mini, .bundle, input:not([type=radio]):not([type=checkbox]), select, textarea, .follow-link, .social-link, .x-3d, .heart-text, .hd-tool.header-cta, .shop4-build, .rail-btn, .bundle-teaser, .x-est, .h4-hero-pic img, .photo, .photo img, .thumbs button, .thumbs img, .ab-photo img, .cart-summary, .form-panel, .bundle-badge, .sale-tag, .pcard-kicker) { border-radius: var(--ed-r, 0px) !important; }
body.v4:not(.is-dash) .pcard { overflow: hidden; }
body.v4:not(.is-dash) .pcard-img, body.v4:not(.is-dash) .pcard-img img { border-radius: var(--ed-r, 0px) var(--ed-r, 0px) 0 0 !important; }
/* top banner */
.ed-bar { background: var(--s-slate, #26313A); text-align: center; }
.ed-bar[hidden] { display: none; }
body .ed-bar .ed-bar-in { display: block; padding: .5rem var(--gutter, 1rem); color: #F3EAD6; font: 400 1rem/1.4 var(--text); text-decoration: none; }
body .ed-bar a.ed-bar-in[href]:hover { color: #E3C47C; text-decoration: underline; }
/* preview badge */
.ed-preview-badge { position: fixed; z-index: 200; left: 1rem; bottom: 1rem; padding: .55rem .9rem; background: #26313A; color: #F3EAD6; font: 600 .9rem var(--text); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
[data-sect][hidden] { display: none !important; }

/* Oct 23: no decorative gold lines anywhere (Jake). */
body.v4 :is(.order-card, .order-row, .slip-tips, .acct-stats div, .x-points div, .x-est, .os-card, .sb-price, .facts div, .s-points div, .pd-know div, .ab-cols > div) { border-left: 0 !important; border-top: 0 !important; }
body.v4 :is(.cart-toast, .site-footer, .label-preview, .pf-preview) { border-top: 0 !important; }
body.v4 .bundle-teaser span { border-bottom: 0 !important; }
body.v4 .ft4 .ft-brand { border-bottom: 0 !important; }
body.v4 .pd-buy .buybox h1 { border-top: 0 !important; }

/* ---------- bundles page (Oct 23): cards line up, never touch, photos in one even row ---------- */
body.v4 .bundles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)) !important; gap: 2rem !important; align-items: stretch !important; }
body.v4 .bundle { height: 100%; margin: 0 !important; padding: 1.1rem 1.1rem 1.4rem !important; }
body.v4 .bundle > .bundle-buy { margin-top: auto; }
body.v4 .bundle-pics { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .4rem; }
body.v4 .bundle-pics figure { grid-column: auto !important; }
body.v4 .bundle-pics img { aspect-ratio: 1 / 1; }
body.v4 .bundle-pics:has(figure:nth-child(4)) figcaption { display: none; }
body.v4 .bundle-pics img { aspect-ratio: auto; height: 6.5rem; }
body.v4 .bundle > .bundle-info { display: flex; flex-direction: column; flex: 1 1 auto; }
body.v4 .bundle-info > .bundle-price { margin-top: auto; padding-top: .5rem; }
body.v4 .bundle > .bundle-buy { margin-top: 0; }
body.v4 .bundle-info > .bundle-badge { align-self: flex-start; }
/* roundness reaches every photo and panel (Oct 23 fix) */
body.v4:not(.is-dash) main img:not(.mark) { border-radius: var(--ed-r, 0px) !important; }
body.v4:not(.is-dash) :is(.cart-item, .follow-card, .faq-list, .qa, .h4-notify .notify input, .acct-card, .os-card, .os-form, .rv-form-box, .pd-specs, .x-included, .bundle-pics figure, .sb-view, .sb-panel, .sb-piece, .steps li, .order-row, .order-card) { border-radius: var(--ed-r, 0px) !important; }
body.v4:not(.is-dash) .bundle-pics figure { overflow: hidden; }
body.v4:not(.is-dash) .h4-build { border-radius: 0 !important; }

/* ===== Cart: free-shipping meter + complete your set (Oct 24) ===== */
.ship-meter { background: rgba(var(--gold-rgb),.1); padding: .9rem 1.1rem; margin: 0 0 1.25rem; border-radius: var(--ed-r, 0); }
.ship-meter-text { margin: 0 0 .5rem; font-size: 1.08rem; color: var(--strong, var(--ink)); font-weight: 500; }
.ship-bar { height: 8px; background: rgba(var(--gold-rgb),.22); overflow: hidden; border-radius: var(--ed-r, 0); }
.ship-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .5s ease; }
.ship-meter.is-free .ship-bar span { background: var(--success); }
.cart-upsell { margin-top: 2.25rem; }
.cart-upsell h2 { font-size: 1.35rem; margin: 0 0 .2rem; }
.cart-upsell > .muted { margin: 0 0 1rem; }
.upsell-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.upsell-card { display: flex; flex-direction: column; gap: .35rem; background: var(--card, rgba(255,250,236,.55)); padding: .75rem; border-radius: var(--ed-r, 0); }
.upsell-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--ed-r, 0); }
.upsell-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upsell-name { font-weight: 600; color: var(--strong, var(--ink)); text-decoration: none; }
.upsell-name:hover, .upsell-name:focus-visible { text-decoration: underline; }
.upsell-price { margin: 0; color: var(--muted); font-size: .98rem; }
.upsell-free { margin: 0; font-size: .9rem; color: var(--success); font-weight: 600; }
.upsell-card .btn { margin-top: auto; align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .ship-bar span { transition: none; } }
@media (max-width: 640px) {
  .upsell-grid { grid-template-columns: 1fr; gap: .6rem; }
  .upsell-card { display: grid; grid-template-columns: 5.5rem 1fr auto; grid-template-rows: auto auto; column-gap: .8rem; row-gap: .1rem; align-items: center; padding: .55rem; }
  .upsell-img { grid-row: 1 / span 2; }
  .upsell-name { grid-column: 2; align-self: end; }
  .upsell-price { grid-column: 2; align-self: start; font-size: .92rem; }
  .upsell-free { grid-column: 2 / span 2; }
  .upsell-card .btn { grid-column: 3; grid-row: 1 / span 2; margin: 0; align-self: center; padding-inline: .7rem; }
}
@media (max-width: 640px) { .upsell-name { line-height: 1.25; } .upsell-card .btn { padding-inline: 1rem; } }

/* Card controls sit above the stretched product link. */
body.v3 .pcard .quick-buy { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.quick-buy select { flex: 1 1 6rem; min-width: 0; padding: .6rem; background: var(--s-sheet); color: var(--ink); border: 1px solid var(--rule); font: inherit; }
.quick-buy .btn { flex: 1 1 7rem; min-height: 2.75rem; }
.quick-note { flex-basis: 100%; font-size: .9rem; }
.quick-note:empty { display: none; }

/* Featured Short: portrait video with adjacent shop link. */
.home-short { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,360px); align-items: center; gap: clamp(2rem,6vw,6rem); padding-top: clamp(2.5rem,6vw,5rem); padding-bottom: clamp(2.5rem,6vw,5rem); }
.home-short-copy { max-width: 31rem; }
.home-short-eyebrow { color: var(--gold-text); font: 600 .75rem var(--caps); letter-spacing: .13em; }
.home-short-copy h2 { margin-bottom: 1rem; }
.home-short-copy > p:not(.home-short-eyebrow) { color: var(--muted); }
.home-short-link { display: block; margin-top: 1rem; font-size: 1rem; }
.home-short-player { width: 100%; max-width: 360px; aspect-ratio: 9 / 16; overflow: hidden; background: var(--s-slate); border: 1px solid var(--gold); box-shadow: 0 16px 40px rgba(38,49,58,.16); }
.home-short-player iframe { display: block; width: 100%; height: 100%; border: 0; }
@media(max-width:700px) { .home-short { grid-template-columns: minmax(0,1fr); gap: 1.8rem; } .home-short-copy { text-align: center; margin: auto; } .home-short-player { justify-self: center; } }
