/* =============================================================
   Maxxtides — shop modules
   Ported from the approved concept.

   Everything is scoped under .mx-shop so nothing here can leak
   into Astra's own styles, and Astra cannot leak into ours.

   Fonts: load Barlow Condensed + Chakra Petch + Inter via Astra's
   typography settings or a local @font-face block. Falling back
   to system stacks keeps the layout intact if they fail.
   ============================================================= */

.mx-shop {
  --ink: #0a0a0a;
  --line: #e0e0e0;
  --plate: #ededed;
  /* Semantic, not descriptive — these are overridable from Shop Settings → Colors,
     so "yellow" would stop being true the moment someone changed it. */
  --accent: #ffc426;    /* quick-add button, max tier highlight */
  --sale: #e0342b;      /* discount badges, sale prices, errors */
  --verified: #1a7f45;  /* COA badges and confirmations */
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --tech: "Chakra Petch", ui-monospace, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --muted: #6f6f6f;
  --page: #ffffff;

  /* ---- Component tokens ----
     Each derives from the palette, so changing Accent moves everything that
     uses it. Shop Settings → Colors can override any single one of these
     without detaching the rest. */
  --btn-add-bg: var(--ink);      --btn-add-fg: #ffffff;      --btn-add-hover: #262626;
  --btn-qty-bg: var(--accent);   --btn-qty-fg: var(--ink);   --btn-qty-hover: #ffd45c;
  --btn-notify-bg: var(--page);  --btn-notify-fg: var(--ink);
  --btn-solid-bg: var(--ink);    --btn-solid-fg: #ffffff;

  --flag-new-bg: var(--ink);     --flag-new-fg: #ffffff;
  --flag-sale-bg: var(--sale);   --flag-sale-fg: #ffffff;
  --flag-oos-bg: #5a5a5a;        --flag-oos-fg: #ffffff;
  --coa-bg: #ffffff;             --coa-fg: var(--verified);  --coa-border: #cfdcd4;

  --card-title: var(--ink);      --card-kind: var(--muted);  --card-price: var(--ink);
  --card-size: var(--muted);     --card-was: #a9a9a9;        --card-now: var(--sale);
  --plate-hover: #e4e4e4;

  --rail-link: var(--muted);     --rail-link-active: var(--ink);
  --rail-headline: var(--ink);   --rail-label: #9a9a9a;      --rail-count: #b0b0b0;
  --rail-box: var(--ink);

  --bar-bg: #ffffff;             --bar-text: var(--ink);
  --bar-track: #ebebeb;          --bar-fill: var(--ink);
  --kicker-bg: var(--ink);       --kicker-fg: #ffffff;
  --tier-off: var(--verified);   --tier-max-bg: #fffdf5;     --tier-max-border: var(--accent);
  --tier-max-tag-bg: var(--accent); --tier-max-tag-fg: var(--ink);

  --stars-on: var(--ink);        --stars-off: #d2d2d2;
  --hist-track: #e8e8e8;         --hist-fill: var(--ink);
  --off-bg: var(--sale);         --off-fg: #ffffff;
  --coa-panel-bg: #fafbfa;
  --chip-on-bg: var(--ink);      --chip-on-fg: #ffffff;

  --ruo-bg: #000000;             --ruo-fg: #8e8e8e;
  --toast-bg: var(--ink);        --toast-fg: #ffffff;        --toast-error: var(--sale);

  --bar: 44px;
  --hdr: 62px;
  --grid-gap: 18px;   /* space around each product card */

  font-family: var(--sans);
  color: var(--ink);
  box-sizing: border-box;
}
.mx-shop *,
.mx-shop *::before,
.mx-shop *::after { box-sizing: inherit; }

/* ---------- Host-theme reset ----------
   Astra lays its content container out as a flex row. Without this, each
   top-level module becomes a flex *sibling* and they line up in columns
   instead of stacking — the compliance notice ends up as a black column
   beside the grid rather than a band under it.

   Two belts: force the container back to block flow, and make every module
   claim a full row even if some other flex parent is in play. */
body.mx-shop-view .site-content .ast-container,
body.mx-shop-view .site-content > .ast-container,
body.mx-shop-view .ast-container > .site-main,
body.mx-shop-view #primary {
  display: block;
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  float: none;
}
body.mx-shop-view #content .ast-container { padding-left: 0; padding-right: 0; }

.mx-shop { width: 100%; max-width: 100%; min-width: 0; flex: 1 1 100%; }
.mx-single { width: 100%; }

/* Astra adds article padding/margins we do not want around modules. */
body.mx-shop-view .site-main > article,
body.mx-shop-view .ast-article-single { padding: 0; border: 0; }

.mx-admin-note {
  background: #fff8e5; border: 1px solid #ffd970;
  padding: 12px 16px; font-size: 13px; margin: 0;
}

/* ---------- 1. Bundle bar ---------- */
.bundlebar {
  height: var(--bar); background: var(--bar-bg); color: var(--bar-text); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 22px; padding: 0 24px;
}
.bundlebar.is-sticky { position: sticky; top: 0; z-index: 60; }
.bundlebar .lbl {
  font-family: var(--tech); font-weight: 700; font-size: 12px; letter-spacing: .03em;
  text-transform: uppercase; white-space: nowrap;
}
.bundlebar .lbl-sm { display: none; }
.bundlebar .track { position: relative; flex: 1; height: 5px; background: var(--bar-track); border-radius: 3px; }
.bundlebar .fill { position: absolute; inset: 0 auto 0 0; background: var(--bar-fill); border-radius: 3px; }
.bundlebar .pip {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 19px; height: 19px; border-radius: 50%; background: #fff;
  border: 1.5px solid var(--line); display: flex; align-items: center;
  justify-content: center; font-size: 9px; color: var(--muted);
}
.bundlebar .pip.on { border-color: var(--ink); color: var(--ink); }
.bundlebar .next {
  font-family: var(--tech); font-weight: 600; font-size: 11.5px; letter-spacing: .04em;
  color: var(--muted); text-transform: uppercase; white-space: nowrap;
}

/* ---------- 2. Shell ---------- */
.shell { display: grid; grid-template-columns: 216px 1fr; }
.shell.sidebar-right { grid-template-columns: 1fr 216px; }
.shell.sidebar-right .rail { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.shell.sidebar-none { grid-template-columns: 1fr; }
.shell-main { min-width: 0; }

/* ---------- 3. Rail ---------- */
.rail { border-right: 1px solid var(--line); padding: 34px 22px 60px; }
.shell.is-sticky .rail {
  position: sticky; top: 0; align-self: start;
  max-height: 100vh; overflow-y: auto;
}
.rail-headline {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: 33px; line-height: 1; letter-spacing: .01em; margin: 0 0 26px; color: var(--rail-headline);
}
.rail-group a {
  display: block; text-decoration: none; color: var(--rail-link);
  font-family: var(--cond); font-weight: 600; font-size: 16px; letter-spacing: .055em;
  text-transform: uppercase; padding: 7px 0 7px 11px; border-left: 2px solid transparent;
}
.rail-group a:hover { color: var(--ink); }
.rail-group a.on { color: var(--rail-link-active); border-left-color: currentColor; }
.rail .sep { height: 1px; background: var(--line); margin: 18px 0; }

.flabel {
  font-family: var(--tech); font-weight: 700; font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rail-label); margin: 0 0 9px;
}
.fgroup { margin-bottom: 22px; }
.fopt {
  display: flex; align-items: center; gap: 9px; padding: 5px 0 5px 11px;
  font-size: 13px; color: #3d3d3d; text-decoration: none;
}
.fopt:hover { color: var(--ink); }
.fopt.is-empty { opacity: .45; pointer-events: none; }
.fopt .box {
  width: 13px; height: 13px; border: 1.5px solid #c2c2c2; background: #fff;
  position: relative; flex: none;
}
.fopt .box.on { background: var(--rail-box); border-color: var(--rail-box); }
.fopt .box.on::after {
  content: ""; position: absolute; left: 3.5px; top: .5px; width: 3.5px; height: 7.5px;
  border: solid #fff; border-width: 0 1.9px 1.9px 0; transform: rotate(43deg);
}
.fopt em {
  margin-left: auto; font-family: var(--tech); font-style: normal; font-weight: 600;
  font-size: 10.5px; color: var(--rail-count);
}
.fsel {
  width: calc(100% - 11px); margin-left: 11px; background: #fff; border: 1px solid var(--line);
  padding: 8px 9px; font-family: var(--sans); font-size: 12.5px; color: #3d3d3d; border-radius: 0;
}
.clearf {
  display: inline-block; margin-left: 11px; font-family: var(--tech); font-weight: 600;
  font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: #a5a5a5;
  text-decoration: underline; text-underline-offset: 3px;
}
.clearf:hover { color: var(--ink); }

/* ---------- 4. Bundle promo ---------- */
.bundle {
  border-bottom: 1px solid var(--line); padding: 30px 32px;
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.bundle .copy { flex: 1 1 260px; min-width: 240px; }
.bundle .kicker {
  display: inline-block; background: var(--kicker-bg); color: var(--kicker-fg); font-family: var(--tech);
  font-weight: 700; font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase;
  padding: 3px 8px; margin-bottom: 9px;
}
.bundle h2 {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: 31px; line-height: 1; letter-spacing: .01em; margin: 0 0 6px;
}
.bundle p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 34ch; }
.tiers { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tier { background: #fff; padding: 13px 22px; text-align: center; position: relative; }
.tier .n { font-family: var(--tech); font-weight: 700; font-size: 25px; line-height: 1; }
.tier .n span {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; color: var(--muted);
  letter-spacing: .09em; margin-left: 3px; text-transform: uppercase;
}
.tier .off { font-family: var(--tech); font-weight: 600; font-size: 13px; color: var(--tier-off); margin-top: 5px; }
.tier.max { background: var(--tier-max-bg); box-shadow: inset 0 0 0 2px var(--tier-max-border); }
.tier.max::after {
  content: "Max"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--tier-max-tag-bg); color: var(--tier-max-tag-fg); font-family: var(--tech); font-weight: 700; font-size: 8.5px;
  letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; white-space: nowrap;
}
.mx-shop .btn-solid {
  background: var(--btn-solid-bg); color: var(--btn-solid-fg); border: 0; padding: 14px 26px; cursor: pointer;
  font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: .075em;
  text-transform: uppercase; margin-left: auto; text-decoration: none; display: inline-block;
}
.mx-shop .btn-solid:hover { background: var(--btn-add-hover); color: var(--btn-solid-fg); }

/* ---------- 5. Toolbar + grid ---------- */
.toolbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 32px;
  border-bottom: 1px solid var(--line);
}
.count {
  font-family: var(--tech); font-weight: 600; font-size: 11.5px; letter-spacing: .07em;
  color: var(--muted); text-transform: uppercase;
}
.grid-heading {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: 28px; letter-spacing: .02em; margin: 0; padding: 26px 32px 14px;
}
/* Each card is a self-contained bordered box with real space around it.
   Two reasons over a shared-edge grid: adjacent Add to cart buttons no longer
   touch — a mis-tap put the wrong product in the basket — and a partial last
   row just ends instead of leaving a gray void. */
.grid {
  display: grid; background: transparent;
  gap: var(--grid-gap, 18px);
  padding: var(--grid-gap, 18px) 32px 32px;
}
/* Border lives on the card rule itself — `.mx-shop .card { border: 0 }` below
   outranks a `.grid > *` selector and silently won. */
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.grid-empty { padding: 60px 32px; text-align: center; color: var(--muted); }
.grid-empty p { margin: 0 0 18px; }
.mx-pagination { padding: 26px 32px; }

/* ---------- 6. Card ---------- */
.mx-shop .card {
  background: var(--page); display: flex; flex-direction: column; position: relative;
  margin: 0; padding: 0; border: 1px solid var(--line);
}
.card .plate {
  background: var(--plate); height: 224px; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
}
.card .plate img { max-height: 88%; max-width: 88%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.card.oos .plate { filter: grayscale(1) opacity(.55); }

.card .flag {
  position: absolute; top: 11px; left: 11px; z-index: 2; color: #fff;
  font-family: var(--tech); font-weight: 700; font-size: 9px; letter-spacing: .11em;
  text-transform: uppercase; padding: 4px 8px;
}
.card .flag.new  { background: var(--flag-new-bg); color: var(--flag-new-fg); }
.card .flag.sale { background: var(--flag-sale-bg); color: var(--flag-sale-fg); }
.card .flag.oos  { background: var(--flag-oos-bg); color: var(--flag-oos-fg); }

.card .coa {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--coa-bg); border: 1px solid var(--coa-border); padding: 4px 7px; text-decoration: none;
  font-family: var(--tech); font-weight: 700; font-size: 8.5px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--coa-fg);
}
.card .coa svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 3.6; }

.card .info { padding: 17px 18px 0; flex: 1; }
.card .title {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: 21px; line-height: 1.05; letter-spacing: .015em; margin: 0;
}
.card .title { color: var(--card-title); }
.card .title a { color: inherit; text-decoration: none; }
.card .kind {
  font-family: var(--tech); font-weight: 600; font-size: 9.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--card-kind); margin: 6px 0 0;
}
.card .priceline {
  font-family: var(--tech); font-weight: 600; font-size: 14.5px; margin-top: 9px;
  display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
}
.card .priceline { color: var(--card-price); }
.card .priceline .size  { color: var(--card-size); }
.card .priceline .slash { color: #c4c4c4; }
.card .priceline .was   { color: var(--card-was); text-decoration: line-through; font-weight: 500; }
.card .priceline .now   { color: var(--card-now); font-weight: 700; }
.card .priceline .amt   { font-weight: 700; }
.card .priceline .range { color: var(--muted); font-weight: 600; }
.card .priceline del,
.card .priceline ins { text-decoration: none; background: none; }

.card .sizes { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }
.card .sizes a {
  background: #fff; border: 1px solid var(--line); padding: 4px 9px; text-decoration: none;
  font-family: var(--tech); font-weight: 600; font-size: 10.5px; letter-spacing: .03em; color: #3a3a3a;
}
.card .sizes a.on { background: var(--chip-on-bg); border-color: var(--chip-on-bg); color: var(--chip-on-fg); }

/* Stacked, not side by side: "×10" meant nothing to anyone who had not been
   told what it meant. Spelled out and given its own row it explains itself. */
.card .actions { display: flex; flex-direction: column; margin-top: 16px; }
.card .actions .add {
  width: 100%; background: var(--btn-add-bg); color: var(--btn-add-fg); border: 0; cursor: pointer;
  padding: 13px 8px; text-align: center; text-decoration: none;
  font-family: var(--cond); font-weight: 700; font-size: 14.5px; letter-spacing: .08em; text-transform: uppercase;
}
.card .actions .add:hover { background: var(--btn-add-hover); color: var(--btn-add-fg); }
.card .actions .qty {
  width: 100%; background: var(--btn-qty-bg); border: 0; cursor: pointer; color: var(--btn-qty-fg);
  font-family: var(--cond); font-weight: 700; font-size: 13.5px;
  letter-spacing: .08em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 8px; line-height: 1;
}
.card .actions .qty:hover { background: var(--btn-qty-hover); }
.card .actions .qty.is-busy { opacity: .55; pointer-events: none; }
.card .actions .qty.is-done::after { content: " ✓"; }
.card .actions .notify {
  flex: 1; background: var(--btn-notify-bg); color: var(--btn-notify-fg); border: 1px solid currentColor; cursor: pointer;
  padding: 12px 8px; text-align: center; text-decoration: none;
  font-family: var(--cond); font-weight: 700; font-size: 14.5px; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- 7. Promo tile + CTA ---------- */
.promo-tile {
  background: var(--page); display: flex; flex-direction: column; text-decoration: none;
  color: inherit; position: relative; border: 1px solid var(--line);
}
.promo-tile .promo-img { background: var(--plate); height: 224px; overflow: hidden; }
.promo-tile .promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-tile .promo-copy { padding: 17px 18px 22px; }
.promo-tile h3 {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: 21px; line-height: 1.05; margin: 0 0 6px;
}
.promo-tile p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.promo-tile .promo-cta {
  display: inline-block; margin-top: 10px; font-family: var(--tech); font-weight: 700;
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
}
.grid .promo-tile.span-2 { grid-column: span 2; }

.cta-strip {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 34px 32px; border-bottom: 1px solid var(--line);
}
.cta-strip.theme-dark { background: #000; color: #fff; }
.cta-strip.theme-dark p { color: #b4b4b4; }
.cta-strip.theme-dark .btn-solid { background: #fff; color: #000; }
.cta-strip h2 {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: 28px; line-height: 1; margin: 0 0 6px;
}
.cta-strip p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 52ch; }

/* ---------- 8. Compliance ---------- */
.ruo {
  background: var(--ruo-bg); color: var(--ruo-fg); padding: 26px 32px;
  font-family: var(--tech); font-size: 10.5px; letter-spacing: .09em;
  text-transform: uppercase; line-height: 1.9;
}
.ruo p { margin: 0; }

/* ---------- 9. Mobile bar + drawer ---------- */
.mobilebar,
.drawerhead,
.drawerapply { display: none; }

.scrim {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .46); z-index: 75;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.scrim.on { opacity: 1; pointer-events: auto; }
body.mx-locked { overflow: hidden; }

.mbtn {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  padding: 8px 13px; cursor: pointer; color: var(--ink);
  font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
}
.mbtn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

@media (max-width: 1080px) {
  .grid.cols-4,
  .grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .shell,
  .shell.sidebar-right { grid-template-columns: 1fr; }
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    --grid-gap: 12px;
    padding: 12px 18px 24px;
  }

  .bundlebar { gap: 12px; padding: 0 16px; }
  .bundlebar .lbl { display: none; }
  .bundlebar .lbl-sm {
    display: block; font-family: var(--tech); font-weight: 700; font-size: 10.5px;
    letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  }
  .bundlebar .next { display: none; }

  .mobilebar {
    display: flex; align-items: center; gap: 9px; height: 54px; padding: 0 16px;
    position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line);
  }
  .mobilebar .spacer { margin-left: auto; }

  .shell .rail,
  .shell.is-sticky .rail {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 80;
    width: min(320px, 87vw); height: 100%; max-height: none;
    background: #fff; border: 0; box-shadow: 0 0 44px rgba(0, 0, 0, .2);
    padding: 0 22px 96px; overflow-y: auto;
    transform: translateX(-102%); transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  }
  .shell .rail.open { transform: none; }
  .shell.sidebar-right .rail { order: 0; }
  .rail-headline { font-size: 27px; margin: 0 0 20px; }

  .drawerhead {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: #fff; padding: 18px 0 14px;
    border-bottom: 1px solid var(--line); margin-bottom: 20px; z-index: 2;
  }
  .drawerhead span {
    font-family: var(--tech); font-weight: 700; font-size: 10px; letter-spacing: .15em;
    text-transform: uppercase; color: #9a9a9a;
  }
  .drawerhead button { background: none; border: 0; cursor: pointer; padding: 2px; line-height: 0; }
  .drawerhead svg { width: 19px; height: 19px; stroke: var(--ink); stroke-width: 2; fill: none; }

  .drawerapply {
    display: block; position: fixed; bottom: 0; left: 0; width: min(320px, 87vw);
    background: #fff; border-top: 1px solid var(--line); padding: 13px 22px;
  }
  .drawerapply button {
    width: 100%; background: var(--ink); color: #fff; border: 0; cursor: pointer; padding: 14px;
    font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase;
  }

  .bundle { padding: 24px 18px; gap: 20px; }
  .bundle h2 { font-size: 26px; }
  .mx-shop .btn-solid { margin-left: 0; width: 100%; text-align: center; }
  .toolbar, .grid-heading, .ruo, .cta-strip { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 520px) {
  .card .plate { height: 172px; }
  .card .title { font-size: 18px; }
  .card .actions .add { font-size: 13px; letter-spacing: .05em; padding: 12px 4px; }
  .card .actions .qty { width: 44px; font-size: 11px; }
  .tiers { width: 100%; }
  .tier { flex: 1; padding: 12px 8px; }
  .grid .promo-tile.span-2 { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .shell .rail, .scrim { transition: none; }
}

/* =============================================================
   PRODUCT PAGE MODULES
   ============================================================= */

.mx-single { margin: 0; }

/* ---------- Hero ---------- */
.mx-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-bottom: 1px solid var(--line);
}
.mx-hero-media { padding: 40px; background: #fff; min-width: 0; }
.mx-hero.sticky-media .mx-hero-media { position: sticky; top: 0; align-self: start; }
.mx-hero-buy { padding: 48px 44px; border-left: 1px solid var(--line); min-width: 0; }

/* Woo's gallery, restyled */
.mx-hero-media .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.mx-hero-media .woocommerce-product-gallery__image img { width: 100%; height: auto; }
.mx-hero-media .flex-control-thumbs {
  display: flex; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none;
}
.mx-hero-media .flex-control-thumbs li { width: 68px; margin: 0; }
.mx-hero-media .flex-control-thumbs img {
  width: 100%; border: 1px solid var(--line); cursor: pointer; opacity: .55;
}
.mx-hero-media .flex-control-thumbs img.flex-active,
.mx-hero-media .flex-control-thumbs img:hover { opacity: 1; border-color: var(--ink); }

.mx-eyebrow {
  font-family: var(--tech); font-weight: 700; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.mx-title {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 4vw, 48px); line-height: .98; letter-spacing: .01em; margin: 0;
}

.mx-rating {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 14px;
  text-decoration: none; color: inherit;
}
.mx-rating strong { font-family: var(--tech); font-size: 18px; font-weight: 700; }
.mx-rating span { font-size: 13px; color: var(--muted); }
.mx-stars { letter-spacing: 1px; line-height: 1; }
.mx-stars .on { color: var(--stars-on); }
.mx-stars .off { color: var(--stars-off); }

.mx-hero-price {
  font-family: var(--tech); font-weight: 700; font-size: 26px;
  margin: 20px 0 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.mx-hero-price del { color: #a9a9a9; font-weight: 500; font-size: .72em; }
.mx-hero-price ins { text-decoration: none; color: var(--sale); }
.mx-off {
  background: var(--off-bg); color: var(--off-fg); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 8px;
}

.mx-coa-inline {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-family: var(--tech); font-weight: 600; font-size: 11px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--verified); text-decoration: none;
  border-bottom: 1px solid #cfdcd4; padding-bottom: 3px;
}
.mx-coa-inline svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 3.4; }

/* Woo's add-to-cart form, restyled */
.mx-hero-cart { margin-top: 26px; }
.mx-hero-cart .quantity { display: inline-flex; margin-right: 10px; }
.mx-hero-cart .quantity input {
  width: 64px; height: 54px; text-align: center; border: 1px solid var(--ink);
  font-family: var(--tech); font-weight: 700; font-size: 15px; border-radius: 0;
}
.mx-hero-cart button[type="submit"],
.mx-hero-cart .single_add_to_cart_button {
  background: var(--ink); color: #fff; border: 0; border-radius: 0; cursor: pointer;
  height: 54px; padding: 0 40px; min-width: 220px;
  font-family: var(--cond); font-weight: 700; font-size: 17px;
  letter-spacing: .09em; text-transform: uppercase;
}
.mx-hero-cart button[type="submit"]:hover { background: #262626; }
.mx-hero-cart .single_add_to_cart_button.disabled { opacity: .4; cursor: not-allowed; }

/* Variation chips (built by shop.js from Woo's select) */
.mx-hero-cart .variations { margin: 0 0 20px; }
.mx-hero-cart .variations tr { display: block; margin-bottom: 16px; }
.mx-hero-cart .variations th,
.mx-hero-cart .variations td { display: block; padding: 0; text-align: left; }
.mx-hero-cart .variations label {
  font-family: var(--tech); font-weight: 700; font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 9px; display: block;
}
.mx-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mx-chips button {
  background: #fff; border: 1px solid var(--line); cursor: pointer; padding: 10px 16px;
  font-family: var(--tech); font-weight: 600; font-size: 13px; color: #333;
}
.mx-chips button:hover { border-color: #999; }
.mx-chips button.on { background: var(--chip-on-bg); border-color: var(--chip-on-bg); color: var(--chip-on-fg); }
.mx-chips button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.mx-chips-live select { display: none; }
.mx-hero-cart .reset_variations { font-size: 12px; color: var(--muted); }

.mx-hero-excerpt { margin-top: 28px; font-size: 15px; line-height: 1.65; color: #3a3a3a; }
.mx-hero-excerpt p { margin: 0 0 14px; }
.mx-oos-note {
  margin-top: 18px; font-family: var(--tech); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--sale);
}

/* ---------- Media row ---------- */
.mx-media-row { padding: 54px 32px; border-bottom: 1px solid var(--line); }
.mx-media-heading {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: 30px; letter-spacing: .02em; margin: 0 0 22px; color: #b9b9b9;
}
.mx-media-grid { display: grid; gap: 14px; }
.mx-media-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mx-media-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mx-media-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mx-media-grid figure { margin: 0; overflow: hidden; background: var(--plate); aspect-ratio: 4 / 3; }
.mx-media-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- COA panel ---------- */
.mx-coa-panel {
  padding: 42px 32px; border-bottom: 1px solid var(--line); background: var(--coa-panel-bg);
}
.mx-coa-head { display: flex; gap: 16px; align-items: flex-start; }
.mx-coa-mark {
  width: 38px; height: 38px; flex: none; border: 1.5px solid var(--verified);
  display: grid; place-items: center; border-radius: 50%;
}
.mx-coa-mark svg { width: 17px; height: 17px; stroke: var(--verified); fill: none; stroke-width: 3.4; }
.mx-coa-head h2 {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: 26px; letter-spacing: .02em; margin: 0 0 5px;
}
.mx-coa-head p { margin: 0; color: var(--muted); font-size: 14px; }

.mx-coa-meta { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 24px 0 0; }
.mx-coa-meta > div { background: #fff; padding: 14px 22px; flex: 1; }
.mx-coa-meta dt {
  font-family: var(--tech); font-weight: 700; font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.mx-coa-meta dd { margin: 0; font-family: var(--tech); font-weight: 700; font-size: 17px; }

/* "View COA" reads as a credential rather than a generic download button —
   same green language as the badge on the product card. */
.mx-coa-view {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 24px;
  background: #fff; border: 1.5px solid var(--verified); color: var(--verified);
  padding: 13px 20px; text-decoration: none;
}
.mx-coa-view:hover { background: #f2f8f4; color: var(--verified); }
.mx-coa-check {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--verified); display: grid; place-items: center;
}
.mx-coa-check svg { width: 12px; height: 12px; stroke: #fff; fill: none; }
.mx-coa-view-text {
  font-family: var(--cond); font-weight: 700; font-size: 17px;
  letter-spacing: .07em; text-transform: uppercase;
}
.mx-coa-view-meta {
  font-family: var(--tech); font-weight: 600; font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase; opacity: .7;
}

/* Optional inline document. Capped height so a long COA cannot run away
   with the page — it scrolls inside its own frame. */
.mx-coa-embed { margin-top: 22px; border: 1px solid var(--line); background: #fff; }
.mx-coa-embed object { display: block; width: 100%; height: 620px; border: 0; }
.mx-coa-embed img { display: block; width: 100%; height: auto; }
.mx-coa-embed p { margin: 0; padding: 22px; font-size: 14px; }

/* ---------- Toasts ---------- */
.mx-toasts {
  position: fixed; z-index: 200; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: max-content; max-width: calc(100vw - 32px);
}
.mx-toast {
  background: var(--toast-bg); color: var(--toast-fg); padding: 13px 22px;
  font-family: var(--cond); font-weight: 700; font-size: 16px;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .24);
  opacity: 0; transform: translateY(12px); transition: opacity .22s ease, transform .22s ease;
}
.mx-toast.in { opacity: 1; transform: none; }
.mx-toast.is-error { background: var(--toast-error); }
.mx-toast.is-success::before { content: "✓"; margin-right: 9px; }

@media (max-width: 720px) {
  .mx-toasts { bottom: 84px; } /* clear of the sticky cart bar */
  .mx-toast { font-size: 14px; padding: 11px 18px; white-space: normal; text-align: center; }
  .mx-coa-view { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .mx-coa-embed object { height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .mx-toast { transition: none; }
}

/* ---------- Details ---------- */
.mx-details { padding: 54px 32px; border-bottom: 1px solid var(--line); }
.mx-details-block { margin-bottom: 42px; max-width: 74ch; }
.mx-details-block:last-child { margin-bottom: 0; }
.mx-details-block h2 {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: 26px; letter-spacing: .02em; margin: 0 0 14px;
}
.mx-rich { font-size: 15.5px; line-height: 1.7; color: #333; }
.mx-rich p { margin: 0 0 16px; }

.mx-acc { border-bottom: 1px solid var(--line); }
.mx-acc summary {
  cursor: pointer; list-style: none; padding: 20px 0; position: relative;
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: 21px; letter-spacing: .03em;
}
.mx-acc summary::-webkit-details-marker { display: none; }
.mx-acc summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--tech); font-weight: 600; font-size: 22px; color: var(--muted);
}
.mx-acc[open] summary::after { content: "–"; }
.mx-acc-body { padding: 0 0 24px; max-width: 74ch; font-size: 15px; line-height: 1.7; color: #333; }

.mx-specs { width: 100%; border-collapse: collapse; max-width: 560px; }
.mx-specs tr { border-bottom: 1px solid var(--line); }
.mx-specs th {
  text-align: left; padding: 12px 0; width: 42%;
  font-family: var(--tech); font-weight: 700; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.mx-specs td { padding: 12px 0; font-size: 14.5px; }

/* ---------- Reviews ---------- */
.mx-reviews { padding: 60px 32px; border-bottom: 1px solid var(--line); }
.mx-reviews-heading {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 42px); letter-spacing: .015em; margin: 0 0 34px; text-align: center;
}
.mx-reviews-summary {
  display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center;
  padding-bottom: 34px; border-bottom: 1px solid var(--line);
}
.mx-avg { text-align: center; }
.mx-avg-num { font-family: var(--tech); font-weight: 700; font-size: 46px; line-height: 1; display: block; }
.mx-avg .mx-stars { font-size: 19px; display: inline-block; margin-top: 6px; }
.mx-avg p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

.mx-histogram { display: flex; flex-direction: column; gap: 7px; max-width: 400px; }
.mx-hist-row { display: flex; align-items: center; gap: 12px; }
.mx-hist-label {
  font-family: var(--tech); font-size: 12px; font-weight: 600; width: 34px; flex: none;
}
.mx-hist-track { flex: 1; height: 7px; background: var(--hist-track); border-radius: 4px; overflow: hidden; }
.mx-hist-track i { display: block; height: 100%; background: var(--hist-fill); border-radius: 4px; }
.mx-hist-count {
  font-family: var(--tech); font-size: 12px; color: var(--muted); width: 34px; text-align: right; flex: none;
}

.mx-review-list { list-style: none; margin: 0; padding: 0; }
.mx-review {
  display: grid; grid-template-columns: 190px 1fr; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.mx-review-name { font-weight: 600; font-size: 14px; display: block; }
.mx-verified {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
  font-size: 11.5px; color: var(--muted);
}
.mx-verified svg { width: 12px; height: 12px; stroke: var(--ink); fill: none; stroke-width: 3.4; }
.mx-review-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 9px; }
.mx-review-title { font-size: 16px; font-weight: 600; }
.mx-review-top time { margin-left: auto; font-family: var(--tech); font-size: 12px; color: var(--muted); }
.mx-review-text { font-size: 14.5px; line-height: 1.65; color: #3a3a3a; }
.mx-review-text p { margin: 0 0 10px; }
.mx-review-more, .mx-reviews-empty { text-align: center; padding: 26px 0 0; color: var(--muted); font-size: 13.5px; }
.mx-reviews-empty p { margin: 0 0 16px; }
.mx-review-form { padding-top: 34px; }

/* ---------- Sticky cart ---------- */
.mx-sticky-cart {
  position: fixed; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  background: #fff; box-shadow: 0 -2px 22px rgba(0, 0, 0, .13);
  transform: translateY(110%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.mx-sticky-cart.pos-bottom { bottom: 0; }
.mx-sticky-cart.pos-top { top: 0; transform: translateY(-110%); box-shadow: 0 2px 22px rgba(0, 0, 0, .13); }
.mx-sticky-cart.is-visible { transform: none; }

/* Corner variants: compact floating button rather than a full-width bar.
   Squared off, in keeping with the rest of the system. */
.mx-sticky-cart.pos-corner-left,
.mx-sticky-cart.pos-corner-right {
  left: auto; right: auto; bottom: 24px; width: auto; max-width: min(380px, calc(100vw - 48px));
  padding: 10px 12px; box-shadow: 0 6px 30px rgba(0, 0, 0, .19);
  transform: translateY(140%);
}
.mx-sticky-cart.pos-corner-left { left: 24px; }
.mx-sticky-cart.pos-corner-right { right: 24px; }
.mx-sticky-cart.pos-corner-left.is-visible,
.mx-sticky-cart.pos-corner-right.is-visible { transform: none; }
.mx-sticky-cart.pos-corner-left .mx-sticky-name,
.mx-sticky-cart.pos-corner-right .mx-sticky-name { max-width: 150px; }
.mx-sticky-cart.pos-corner-left .mx-sticky-actions .add,
.mx-sticky-cart.pos-corner-right .mx-sticky-actions .add { padding: 12px 20px; }
.mx-sticky-cart[hidden] { display: flex; }
.mx-sticky-thumb { width: 46px; flex: none; }
.mx-sticky-thumb img { width: 100%; height: auto; display: block; }
.mx-sticky-info { display: flex; flex-direction: column; min-width: 0; }
.mx-sticky-name {
  font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mx-sticky-price { font-family: var(--tech); font-weight: 700; font-size: 14px; }
.mx-sticky-price del { color: #a9a9a9; font-weight: 500; }
.mx-sticky-price ins { text-decoration: none; color: var(--sale); }
.mx-sticky-actions { margin-left: auto; display: flex; }
.mx-sticky-actions .add {
  background: var(--ink); color: #fff; text-decoration: none; padding: 14px 30px;
  font-family: var(--cond); font-weight: 700; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.mx-sticky-actions .add:hover { background: #262626; color: #fff; }
.mx-sticky-actions .qty {
  width: 52px; background: var(--accent); border: 0; cursor: pointer; color: var(--ink);
  font-family: var(--tech); font-weight: 700; font-size: 12px;
}
.mx-sticky-oos {
  font-family: var(--tech); font-size: 12px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Product page responsive ---------- */
@media (max-width: 980px) {
  .mx-hero { grid-template-columns: 1fr; }
  .mx-hero-buy { border-left: 0; border-top: 1px solid var(--line); padding: 34px 20px; }
  .mx-hero-media { padding: 24px 20px; }
  .mx-hero.sticky-media .mx-hero-media { position: static; }
  .mx-reviews-summary { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .mx-histogram { max-width: none; margin: 0 auto; width: 100%; }
  .mx-review-cta .btn-solid { width: auto; }
}

@media (max-width: 720px) {
  .mx-media-grid.cols-3, .mx-media-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .mx-media-row, .mx-details, .mx-reviews, .mx-coa-panel { padding-left: 18px; padding-right: 18px; }
  .mx-review { grid-template-columns: 1fr; gap: 10px; }
  .mx-review-top time { margin-left: 0; width: 100%; }
  .mx-coa-meta { flex-direction: column; }
  .mx-sticky-thumb, .mx-sticky-info { display: none; }
  .mx-sticky-actions { margin: 0; width: 100%; }
  .mx-sticky-actions .add { flex: 1; text-align: center; }

  /* A corner button on a phone is hard to reach and sits on top of content,
     so every variant collapses to the same full-width bar. */
  .mx-sticky-cart.pos-corner-left,
  .mx-sticky-cart.pos-corner-right {
    left: 0; right: 0; bottom: 0; width: auto; max-width: none;
    padding: 10px 16px; transform: translateY(110%);
  }
  .mx-sticky-cart.pos-corner-left.is-visible,
  .mx-sticky-cart.pos-corner-right.is-visible { transform: none; }
  /* Quantity and Add to cart share a row rather than stacking — a lone
     60px number box on its own line reads as unfinished and wastes height. */
  .mx-hero-cart form.cart:not(.variations_form),
  .mx-hero-cart .woocommerce-variation-add-to-cart {
    display: flex; gap: 10px; align-items: stretch;
  }
  .mx-hero-cart .quantity { margin: 0; flex: none; }
  .mx-hero-cart .quantity input { width: 62px; height: 52px; }
  .mx-hero-cart button[type="submit"],
  .mx-hero-cart .single_add_to_cart_button {
    flex: 1; min-width: 0; width: auto; height: 52px; padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mx-sticky-cart { transition: none; }
}

/* ---------- Editor-only placeholder ----------
   Shown when a module has no product or no content to render. Never appears
   on the front end — mx_block_placeholder() bails outside the admin. */
.mx-block-placeholder {
  border: 1px dashed #b4b4b4; background: #f7f7f7; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 5px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
.mx-block-placeholder strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 18px;
}
.mx-block-placeholder span { font-size: 13px; color: #6f6f6f; line-height: 1.5; }

/* The sticky bar would be fixed-positioned and off-screen in the editor. */
.block-editor-block-list__layout .mx-sticky-cart,
.editor-styles-wrapper .mx-sticky-cart {
  position: static !important; transform: none !important; box-shadow: none !important;
  border: 1px dashed #b4b4b4;
}

/* ---------- Card hover (desktop only) ----------
   The image lifts and grows slightly inside its plate, which reads as the
   product coming forward rather than the card moving. The plate has
   overflow:hidden, so nothing spills into the hairline grid.

   Gated on (hover: hover) and (pointer: fine) so touch devices — where :hover
   sticks after a tap — never get a half-applied transform. */
@media (hover: hover) and (pointer: fine) {
  .card .plate img {
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
  }
  .card:not(.oos):hover .plate img { transform: translateY(-12px) scale(1.05); }

  /* Plate deepens a touch so the lift has something to read against. */
  .card .plate { transition: background-color .35s ease; }
  .card:not(.oos):hover .plate { background: var(--plate-hover); }

  /* Title picks up a rule, matching the "this is clickable" language. */
  .card .title a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px; background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size .35s cubic-bezier(.22, .61, .36, 1);
  }
  .card:hover .title a { background-size: 100% 1px; }

  /* Promo tiles sit in the same grid, so they behave the same way. */
  .promo-tile .promo-img img {
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  }
  .promo-tile:hover .promo-img img { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .card .plate img,
  .card .title a,
  .promo-tile .promo-img img { transition: none; }
  .card:not(.oos):hover .plate img,
  .promo-tile:hover .promo-img img { transform: none; }
}

/* ---------- Control normalization ----------
   Astra applies a border-radius (and its own padding/appearance) to <button>
   elements but not to <a>. That's why the ×10 button rendered with rounded
   corners next to a square Add to cart — same visual role, different tag.

   Everything interactive we render is squared off here so the parent theme's
   button styling can't leak in. Cheap insurance: these are all our own class
   names, so nothing outside the shop is affected. */
.mx-shop .actions .add,
.mx-shop .actions .qty,
.mx-shop .actions .notify,
.mx-shop .btn-solid,
.mx-shop .mbtn,
.mx-shop .fsel,
.mx-shop .drawerapply button,
.mx-shop .sizes a,
.mx-shop .mx-coa-view,
.mx-shop .mx-coa-download,
.mx-sticky-cart .add,
.mx-sticky-cart .qty,
.mx-chips button {
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

/* Sticky bar: the two controls are one unit, so they stretch to a shared
   height and the ×10 never shrinks under flex pressure. */
.mx-sticky-actions { align-items: stretch; }
.mx-sticky-actions .add {
  display: inline-flex; align-items: center; justify-content: center;
}
.mx-sticky-actions .qty {
  flex: 0 0 auto; align-self: stretch;
  display: grid; place-items: center; padding: 0 16px; line-height: 1;
}

/* Astra's scroll-to-top lands in the same corner as the sticky cart bar.
   Hidden on shop views only — it stays available everywhere else. */
body.mx-shop-view #ast-scroll-top { display: none; }

/* ---------- Product navigation ----------
   The way out of a product page. Sits above the hero and stays quiet — it is
   an escape hatch, not a feature. */
.mx-product-nav {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 14px 32px; border-bottom: 1px solid var(--line); background: var(--page);
}
.mx-product-nav.is-sticky { position: sticky; top: 0; z-index: 40; }

.mx-nav-back {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  color: var(--ink); font-family: var(--cond); font-weight: 700; font-size: 15px;
  letter-spacing: .07em; text-transform: uppercase; flex: none;
}
.mx-nav-back svg { transition: transform .2s ease; }
.mx-nav-back:hover { color: var(--ink); }
.mx-nav-back:hover svg { transform: translateX(-3px); }

.mx-crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--tech); font-weight: 600; font-size: 11px;
  letter-spacing: .07em; text-transform: uppercase;
}
.mx-crumbs li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.mx-crumbs li + li::before { content: "/"; color: var(--line); }
.mx-crumbs a { color: var(--muted); text-decoration: none; }
.mx-crumbs a:hover { color: var(--ink); }
.mx-crumbs li[aria-current] {
  color: var(--ink);
  /* Long product names shouldn't push the crumb trail onto three lines. */
  max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Back link and crumbs both present: separate them with a rule. */
.mx-product-nav.style-both .mx-crumbs {
  padding-left: 20px; border-left: 1px solid var(--line);
}

.mx-nav-adjacent { margin-left: auto; display: flex; gap: 14px; }
.mx-nav-adjacent a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--muted); font-family: var(--tech); font-weight: 600; font-size: 11px;
  letter-spacing: .07em; text-transform: uppercase;
}
.mx-nav-adjacent a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .mx-product-nav { padding: 12px 18px; gap: 12px; }
  /* Breadcrumbs are the first thing to go on a phone — the back link is the
     one that actually gets used. */
  .mx-product-nav.style-both .mx-crumbs { display: none; }
  .mx-nav-adjacent .mx-nav-adj-label { display: none; }
  .mx-crumbs li[aria-current] { max-width: 18ch; }
}

/* The sticky bar is horizontal by nature, so its quick-add stays inline and
   compact rather than becoming a second stacked row. */
.mx-sticky-actions .qty {
  width: auto; flex: 0 0 auto; gap: 6px; padding: 0 18px;
  font-family: var(--cond); font-weight: 700; font-size: 13px;
  letter-spacing: .07em; text-transform: uppercase;
}
@media (max-width: 720px) {
  /* Room is tight next to a full-width Add to cart — drop to the numeral. */
  .mx-sticky-actions .qty { padding: 0 14px; font-size: 12px; }
}
