/* ═══════════════════════════════════════════════════════════
   HOLD BAY — Appily Sixtytwo cart only
   Container-query bay strips · perforated promo · launch console.
   Independent of Ledger Tray (lt-*), Flux Pad, Tally Loom, Nova Hold.
   Hooks: #a60xCt*, .a60x-ct-lane, A62X_CART, --hb-pct / --lt-pct / --fx-pct.
   ═══════════════════════════════════════════════════════════ */

.page-cart {
  --hb-ink: #14181F;
  --hb-ink-soft: #3A4250;
  --hb-mute: #6B7380;
  --hb-paper: #EEF1F4;
  --hb-panel: #FFFFFF;
  --hb-line: #D0D5DC;
  --hb-ochre: #C45C26;
  --hb-ochre-deep: #9A4318;
  --hb-ochre-soft: rgba(196, 92, 38, 0.12);
  --hb-pine: #1B4332;
  --hb-pine-soft: rgba(27, 67, 50, 0.1);
  --hb-display: "Lora", Georgia, "Times New Roman", serif;
  --hb-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --hb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hb-spring: cubic-bezier(0.34, 1.35, 0.64, 1);
  --hb-fluid-xl: clamp(2.1rem, 1.4rem + 3.2vw, 3.35rem);
  --hb-fluid-lg: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem);
  --hb-fluid-sm: clamp(0.78rem, 0.72rem + 0.25vw, 0.88rem);
}

.page-cart .rm-stage,
.page-cart .a62-prism-stage {
  background:
    radial-gradient(ellipse 50% 42% at 8% 0%, var(--hb-ochre-soft), transparent 58%),
    radial-gradient(ellipse 40% 36% at 96% 8%, var(--hb-pine-soft), transparent 52%),
    linear-gradient(180deg, #F5F7F9 0%, var(--hb-paper) 48%, #E8ECF0 100%) !important;
  color: var(--hb-ink) !important;
  font-family: var(--hb-sans);
}

.page-cart .page-main {
  max-width: none;
  padding: 0 0 3.75rem;
  color: var(--hb-ink) !important;
}

.page-cart .page-main h1,
.page-cart .page-main h2,
.page-cart .page-main h3,
.page-cart .page-main p,
.page-cart .page-main span,
.page-cart .page-main a,
.page-cart .page-main strong,
.page-cart .page-main em,
.page-cart .page-main label,
.page-cart .page-main li,
.page-cart .page-main button,
.page-cart .page-main dd,
.page-cart .page-main dt,
.page-cart .page-main small {
  color: inherit;
}

.page-cart .a62-spine { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.hb-hold {
  width: min(1180px, calc(100% - 2 * clamp(0.85rem, 2.4vw, 1.65rem)));
  margin: 0 auto;
  padding-top: clamp(1rem, 2.8vw, 1.75rem);
  container-type: inline-size;
  container-name: hold;
}

.hb-brand {
  margin: 0 0 0.3rem;
  font-family: var(--hb-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: var(--hb-ochre);
  letter-spacing: -0.02em;
}

/* ── Empty void ── */
.hb-void {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.25rem, 11vw, 6rem) 1.25rem;
  text-align: center;
  border: 1px solid var(--hb-line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      rgba(27, 67, 50, 0.035) 11px,
      rgba(27, 67, 50, 0.035) 12px
    );
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.25rem), calc(100% - 1.25rem) 100%, 0 100%);
  animation: hbRise 0.6s var(--hb-ease) both;
}

.hb-void-orb {
  position: absolute;
  inset: auto -8% -30% auto;
  width: min(280px, 55vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--hb-ochre-soft), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.hb-void h1 {
  margin: 0 0 0.7rem;
  font-family: var(--hb-display);
  font-size: var(--hb-fluid-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hb-void h1 em {
  font-style: italic;
  color: var(--hb-pine);
}

.hb-void-dek {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: var(--hb-mute);
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.05rem);
  line-height: 1.55;
}

/* ── Path (checkout stages) ── */
.hb-path {
  margin-bottom: clamp(1.25rem, 3vw, 1.85rem);
  animation: hbRise 0.5s var(--hb-ease) both;
}

.hb-path ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  padding: 0;
  list-style: none;
}

.hb-path-node {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--hb-fluid-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hb-mute);
}

.hb-path-node i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--hb-line);
  background: transparent;
  flex-shrink: 0;
}

.hb-path-node.is-live {
  color: var(--hb-pine);
}

.hb-path-node.is-live i {
  border-color: var(--hb-ochre);
  background: var(--hb-ochre);
  box-shadow: 0 0 0 4px var(--hb-ochre-soft);
}

.hb-path-meter {
  height: 3px;
  border-radius: 999px;
  background: var(--hb-line);
  overflow: hidden;
}

.hb-path-fill {
  display: block;
  height: 100%;
  width: calc(var(--hb-pct, var(--lt-pct, 0.12)) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hb-pine), var(--hb-ochre));
  transition: width 0.45s var(--hb-ease);
}

/* ── Mast ── */
.hb-mast {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: end;
  margin-bottom: clamp(1.35rem, 3.2vw, 2rem);
  animation: hbRise 0.55s var(--hb-ease) 0.05s both;
}

.hb-mast h1 {
  margin: 0;
  font-family: var(--hb-display);
  font-size: var(--hb-fluid-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hb-mast h1 em {
  font-style: italic;
  color: var(--hb-ochre);
}

.hb-dek {
  margin: 0.55rem 0 0;
  max-width: 34rem;
  color: var(--hb-mute);
  font-size: clamp(0.92rem, 0.86rem + 0.28vw, 1.02rem);
  line-height: 1.5;
}

.hb-mast-count {
  padding: 0.65rem 1rem;
  border: 1px solid var(--hb-line);
  background: var(--hb-panel);
  font-size: var(--hb-fluid-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hb-ink-soft);
  clip-path: polygon(0.55rem 0, 100% 0, 100% calc(100% - 0.55rem), calc(100% - 0.55rem) 100%, 0 100%);
}

.hb-mast-count strong {
  display: block;
  font-family: var(--hb-display);
  font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hb-ink);
  line-height: 1;
  text-transform: none;
}

.hb-mast-count.is-pulse {
  animation: hbPulse 0.45s var(--hb-spring);
}

/* ── Layout board ── */
.hb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  grid-template-areas: "bays console";
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
  align-items: start;
  animation: hbRise 0.6s var(--hb-ease) 0.1s both;
}

.hb-bays {
  grid-area: bays;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  container-type: inline-size;
  container-name: bays;
}

.hb-console {
  grid-area: console;
}

/* ── Bay strip (container queries) ── */
.hb-bay {
  --bi: 0;
  container-type: inline-size;
  container-name: bay;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.85rem 1rem;
  padding: 0.85rem;
  background: var(--hb-panel);
  border: 1px solid var(--hb-line);
  border-left: 3px solid var(--hb-pine);
  box-shadow: 0 1px 0 rgba(20, 24, 31, 0.04);
  transition:
    border-color 0.25s var(--hb-ease),
    transform 0.35s var(--hb-spring),
    opacity 0.3s ease;
  animation: hbRise 0.5s var(--hb-ease) calc(0.08s + var(--bi) * 0.05s) both;
}

.hb-bay.is-zero {
  opacity: 0.45;
  border-left-color: var(--hb-mute);
}

.hb-bay.is-bump {
  animation: hbBump 0.4s var(--hb-spring);
}

.hb-bay-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background:
    linear-gradient(135deg, #E4E8ED, #F7F8FA);
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
}

.hb-bay-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--hb-ease);
}

.hb-bay:hover .hb-bay-media img {
  transform: scale(1.06);
}

.hb-bay-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #E8ECF0,
    #E8ECF0 6px,
    #F3F5F7 6px,
    #F3F5F7 12px
  );
}

.hb-bay-idx {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  padding: 0.15rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(20, 24, 31, 0.72);
  backdrop-filter: blur(4px);
}

.hb-bay-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  min-width: 0;
}

.hb-bay-meta {
  min-width: 0;
}

.hb-sku {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hb-ochre);
}

.hb-bay-meta h2 {
  margin: 0;
  font-family: var(--hb-display);
  font-size: var(--hb-fluid-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hb-bay-meta h2 a {
  color: inherit;
  text-decoration: none;
}

.hb-bay-meta h2 a:hover {
  color: var(--hb-ochre);
}

.hb-variant {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--hb-mute);
}

.hb-unit {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hb-ink-soft);
}

.hb-unit span {
  font-weight: 500;
  color: var(--hb-mute);
}

.hb-bay-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.hb-qty-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hb-mute);
  text-align: right;
}

.hb-dial {
  display: inline-grid;
  grid-template-columns: 2rem 2.75rem 2rem;
  align-items: stretch;
  border: 1px solid var(--hb-line);
  background: #F7F8FA;
  overflow: hidden;
}

.hb-dial-btn {
  border: 0;
  background: transparent;
  color: var(--hb-ink);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.hb-dial-btn:hover {
  background: var(--hb-pine);
  color: #fff;
}

.hb-dial input {
  width: 100%;
  border: 0;
  border-inline: 1px solid var(--hb-line);
  background: var(--hb-panel);
  text-align: center;
  font-family: var(--hb-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hb-ink);
  -moz-appearance: textfield;
}

.hb-dial input::-webkit-outer-spin-button,
.hb-dial input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hb-dial input.is-pop {
  animation: hbPop 0.35s var(--hb-spring);
}

.hb-line-total {
  font-family: var(--hb-display);
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hb-ink);
}

.hb-line-total.is-flip {
  animation: hbFlip 0.4s var(--hb-ease);
}

@container bay (max-width: 420px) {
  .hb-bay {
    grid-template-columns: 4.25rem minmax(0, 1fr);
  }

  .hb-bay-body {
    grid-template-columns: 1fr;
  }

  .hb-bay-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .hb-qty-label {
    text-align: left;
  }
}

@container bays (min-width: 640px) {
  .hb-bay {
    grid-template-columns: 6.75rem minmax(0, 1fr);
    padding: 1rem 1.1rem;
  }
}

@container hold (max-width: 820px) {
  .hb-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "bays"
      "console";
  }

  .hb-mast {
    grid-template-columns: 1fr;
  }

  .hb-mast-count {
    justify-self: start;
  }
}

/* ── Promo coupon strip ── */
.hb-coupon {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0.85rem 1rem;
  margin-top: 0.35rem;
  padding: 1rem 1.1rem;
  background:
    radial-gradient(circle at 0 50%, transparent 0.55rem, var(--hb-panel) 0.56rem),
    radial-gradient(circle at 100% 50%, transparent 0.55rem, var(--hb-panel) 0.56rem);
  background-color: var(--hb-panel);
  border: 1.5px dashed var(--hb-ochre);
  position: relative;
  animation: hbRise 0.55s var(--hb-ease) 0.2s both;
}

.hb-coupon::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(196, 92, 38, 0.18);
  pointer-events: none;
}

.hb-coupon-face {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.hb-coupon-mark {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  font-family: var(--hb-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hb-ochre);
  background: var(--hb-ochre-soft);
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}

.hb-coupon-copy strong {
  display: block;
  font-family: var(--hb-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.hb-coupon-copy p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--hb-mute);
  line-height: 1.4;
}

.hb-coupon-gate {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hb-coupon-gate input {
  min-width: 0;
  border: 1px solid var(--hb-line);
  background: #F7F8FA;
  padding: 0.65rem 0.75rem;
  font-family: var(--hb-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hb-ink);
}

.hb-coupon-gate input:focus {
  outline: 2px solid var(--hb-ochre);
  outline-offset: 1px;
  background: #fff;
}

.hb-coupon-go {
  border: 0;
  padding: 0 1rem;
  background: var(--hb-pine);
  color: #fff;
  font-family: var(--hb-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--hb-spring);
}

.hb-coupon-go:hover {
  background: var(--hb-ochre);
}

.hb-coupon-go:active {
  transform: scale(0.97);
}

.hb-coupon-msg {
  grid-column: 1 / -1;
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hb-pine);
}

.hb-coupon-msg.is-warn {
  color: var(--hb-ochre-deep);
}

@container bays (max-width: 520px) {
  .hb-coupon {
    grid-template-columns: 1fr;
  }
}

/* ── Launch console ── */
.hb-console-panel {
  position: sticky;
  top: 1rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background:
    linear-gradient(165deg, rgba(27, 67, 50, 0.06), transparent 42%),
    var(--hb-panel);
  border: 1px solid var(--hb-line);
  border-top: 3px solid var(--hb-ochre);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 0 100%);
  box-shadow: 0 12px 28px rgba(20, 24, 31, 0.06);
}

.hb-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hb-console-head h2 {
  margin: 0;
  font-family: var(--hb-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hb-console-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-pine);
  padding: 0.25rem 0.45rem;
  background: var(--hb-pine-soft);
}

.hb-ship {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  background: #F4F6F8;
  border-left: 3px solid var(--hb-mute);
}

.hb-ship.is-armed {
  background: var(--hb-pine-soft);
  border-left-color: var(--hb-pine);
}

.hb-ship strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.hb-ship span {
  font-size: 0.78rem;
  color: var(--hb-mute);
}

.hb-readout {
  margin: 0 0 1.15rem;
  display: grid;
  gap: 0.55rem;
}

.hb-readout > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.92rem;
}

.hb-readout dt {
  margin: 0;
  color: var(--hb-mute);
  font-weight: 500;
}

.hb-readout dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hb-readout-pay {
  margin-top: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--hb-line);
}

.hb-readout-pay dt,
.hb-readout-pay dd {
  font-family: var(--hb-display);
  font-size: 1.15rem;
  color: var(--hb-ink);
}

.hb-readout dd.is-tick {
  animation: hbTick 0.35s var(--hb-ease);
}

.hb-console-actions {
  display: grid;
  gap: 0.45rem;
}

.hb-hint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--hb-mute);
  line-height: 1.4;
}

/* ── Buttons ── */
.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.65rem;
  padding: 0.65rem 1.15rem;
  font-family: var(--hb-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--hb-spring);
}

.hb-btn:active {
  transform: scale(0.98);
}

.hb-btn-solid {
  background: var(--hb-ochre);
  color: #fff !important;
  border-color: var(--hb-ochre);
}

.hb-btn-solid:hover {
  background: var(--hb-ochre-deep);
  border-color: var(--hb-ochre-deep);
}

.hb-btn-line {
  background: transparent;
  color: var(--hb-pine) !important;
  border-color: var(--hb-pine);
}

.hb-btn-line:hover {
  background: var(--hb-pine);
  color: #fff !important;
}

.hb-btn-ghost {
  background: #F4F6F8;
  color: var(--hb-ink) !important;
  border-color: var(--hb-line);
}

.hb-btn-ghost:hover {
  background: var(--hb-ink);
  color: #fff !important;
  border-color: var(--hb-ink);
}

.hb-console-actions .hb-btn-solid {
  order: -1;
  min-height: 2.95rem;
  font-size: 0.88rem;
}

/* ── Motion ── */
@keyframes hbRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hbPulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.04); }
}

@keyframes hbBump {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
}

@keyframes hbPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes hbFlip {
  0% { transform: translateY(4px); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes hbTick {
  0% { transform: scale(1.08); color: var(--hb-ochre); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hb-void,
  .hb-path,
  .hb-mast,
  .hb-layout,
  .hb-bay,
  .hb-coupon,
  .hb-mast-count.is-pulse,
  .hb-bay.is-bump,
  .hb-dial input.is-pop,
  .hb-line-total.is-flip,
  .hb-readout dd.is-tick {
    animation: none !important;
  }

  .hb-bay:hover .hb-bay-media img {
    transform: none;
  }
}
