/* ============================================================================
   SURGE PEPTIDES — Components (reusable UI)
   ============================================================================ */

/* ---- Scroll progress bar ----------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: var(--z-progress);
  will-change: transform;
}

/* ---- Numbered section index (desktop) ---------------------------------- */
.section-index {
  position: fixed;
  right: clamp(18px, 2vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-rail);
  display: none;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 1520px) { .section-index { display: flex; } }
.section-index a {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-size-200);
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.55;
  transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.section-index a .si-tick {
  width: 14px; height: 1px; background: currentColor;
  transition: width var(--dur-fast) var(--ease-out);
}
.section-index a .si-label {
  opacity: 0; transform: translateX(4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.section-index a:hover { opacity: 1; color: var(--ink-3); }
.section-index a:hover .si-label { opacity: 1; transform: none; }
.section-index a.is-active { opacity: 1; color: var(--accent-press); }
.section-index a.is-active .si-tick { width: 26px; background: var(--accent); }
.section-index a.is-active .si-label { opacity: 1; transform: none; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  will-change: transform;
}
.btn__label {
  position: relative; display: inline-block; overflow: hidden;
  vertical-align: bottom;
}
.btn__label > span {
  display: block;
  transition: transform var(--dur-fast) var(--ease-out-soft);
}
.btn__label > span[data-roll] {
  position: absolute; left: 0; top: 0;
  transform: translateY(110%);
}
.btn:has(.btn__label > span[data-roll]):hover .btn__label > span:first-child { transform: translateY(-110%); }
.btn:hover .btn__label > span[data-roll] { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--color-legacy-513f55cd); /* slate accent: white text = 6.9:1 (AA) */
  box-shadow: var(--shadow-100);
}
.btn--primary:hover { background: var(--accent-press); box-shadow: var(--shadow-100); transform: none !important; animation: none !important; }

/* ---- Press states (tactile confirmation — the only feedback on touch) --- */
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--ghost:active { background: var(--surface); }
.seg__btn:active { opacity: 0.78; }
.nav__link:active, .nav__icon-btn:active, .accordion__trigger:active,
.mol__res-btn:active, .spec-row__head:active, .verifier__hint button:active { opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* ---- Static buttons — no hover/press motion or fill change -------------- */
.btn--static:hover, .btn--static:active { transform: none; box-shadow: var(--shadow-100); }
.btn--static.btn--primary:hover, .btn--static.btn--primary:active { background: var(--accent); }
.btn--static.btn--ghost:hover, .btn--static.btn--ghost:active { background: transparent; border-color: var(--hairline-strong); color: var(--ink); }
.btn--static:hover .btn__arrow { transform: none; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--block { width: 100%; }
.btn .btn__arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---- Inline link (underline draw) -------------------------------------- */
.link {
  color: var(--accent-press); font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent-press) 42%, transparent);
  transition: text-decoration-color var(--dur-fast) var(--ease-out),
              text-decoration-thickness var(--dur-fast) var(--ease-out);
}
.link:hover, .link:focus-visible { text-decoration-thickness: 2px; text-decoration-color: var(--accent-press); }

/* ---- Drawers (kit [data-surge-drawer] panel internals) ------------------ */
[data-surge-drawer] { display: flex; flex-direction: column; }
[data-surge-drawer="cart"] > .drawer__head { display: none !important; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: var(--border-subtle); }
.drawer__head h3 { font-size: var(--text-size-500); }
.drawer__body { padding: 1.4rem; overflow-y: auto; }

/* ---- Tags / chips / badges --------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.3em 0.65em;
  border: var(--border-subtle);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: var(--text-size-200);
  letter-spacing: var(--tracking-wide);
  color: var(--ink-3);
  background: var(--surface);
}
.chip--verified { color: var(--accent-press); border-color: var(--accent-tint); background: var(--accent-tint); }
.chip--pass { color: var(--success); border-color: var(--color-context-1e77a2b1); background: var(--color-context-afdc0c4e); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---- Card -------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-100);
  transition: transform var(--dur-fast) var(--ease-out-soft),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.card--hover:hover {
  transform: none;
  box-shadow: var(--shadow-100);
  border-color: var(--hairline-strong);
}

/* ---- Nav --------------------------------------------------------------- */
#site-nav {
  position: sticky; top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
#site-nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-bottom-color: color-mix(in srgb, var(--ink) 14%, transparent);
}
.nav__inner {
  display: flex; align-items: center; gap: var(--space-600);
  height: 64px;
}
.nav__brand {
  color: var(--ink); display: inline-flex; align-items: center; gap: 0.5em;
}
.nav__brand .brand-mark { width: 22px; height: 22px; }
.brand-logo { height: 26.7px; width: auto; display: block; }
/* Word "surge" baseline is 90/276 below the bitmap center. Inter 600 at
   0.875rem / line-height 1.65 sits 0.3183rem below the flex center.
   The shift meets those two baselines at every logo height. */
#site-nav .brand-logo { transform: translateY(calc(0.3183rem - 32.6087%)); }
.footer__brand .brand-logo { height: 46px; }
.nav__links { display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.7rem); margin-left: var(--space-400); }
.nav__link {
  position: relative; font-size: var(--fs-sm); color: var(--ink-2); padding: 0.4em 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-300); }
.nav__icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  color: var(--ink-2); border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav__icon-btn svg { flex: none; }
.nav__icon-btn:hover { background: var(--surface); border-color: var(--hairline); color: var(--ink); }
/* Surge navigation: clear grouping with generous touch targets. */
#site-nav, #site-nav.is-scrolled { background: var(--color-surface); border-color: var(--color-legacy-2a07e21f); }
#site-nav .nav__inner { height: 76px; gap: 1.5rem; }
#site-nav .nav__brand { flex-shrink: 0; }
#site-nav .nav__links { margin-left: 0; gap: clamp(.65rem,1.2vw,1.2rem); }
#site-nav .nav__link { color: var(--color-action); font-family: var(--type-display-family); font-weight: 600; white-space: nowrap; }
#site-nav .nav__link:hover { color: var(--color-action-hover); }

/* Desktop navigation: Catalog, Stacks, COA Library, About, FAQ.
   Wholesale, Membership, Partner Program and Contact stay in the mobile menu/footer. */
@media (min-width: 941px) {
  #site-nav .nav__links a[href="/shop"],
  #site-nav .nav__links a[href="/shop/"],
  #site-nav .nav__links a[href="/bundle-builder"],
  #site-nav .nav__links a[href="/bundle-builder/"],
  #site-nav .nav__links a[href="/coa-library"],
  #site-nav .nav__links a[href="/coa-library/"],
  #site-nav .nav__links a[href="/about"],
  #site-nav .nav__links a[href="/about/"],
  #site-nav .nav__links a[href="/faq"],
  #site-nav .nav__links a[href="/faq/"] {
    display: inline-flex !important;
  }
  #site-nav .nav__links a:not([href="/shop"]):not([href="/shop/"]):not([href="/bundle-builder"]):not([href="/bundle-builder/"]):not([href="/coa-library"]):not([href="/coa-library/"]):not([href="/about"]):not([href="/about/"]):not([href="/faq"]):not([href="/faq/"]) {
    display: none !important;
  }
}
#site-nav .nav__actions { gap: .35rem; flex-shrink: 0; padding-left: .75rem; border-left: 1px solid var(--color-legacy-2a07e21f); }
#site-nav .nav__icon-btn { width: 42px; height: 42px; color: var(--color-action); border-radius: var(--radius-300); }
#site-nav .nav__icon-btn:hover { background: var(--color-legacy-5c0480d7); border-color: var(--color-legacy-c5fe4108); }
@media(max-width:940px) {
  #site-nav .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 1rem var(--gutter); flex-direction: column; align-items: stretch; gap: 0; background: var(--color-surface); border-bottom: 1px solid var(--color-legacy-c5fe4108); max-height: calc(100dvh - 76px); overflow-y: auto; }
  #site-nav .nav__links.is-open { display: flex; }
  #site-nav .nav__links .nav__link { padding: .85rem .5rem; border-bottom: 1px solid var(--color-legacy-5c0480d7); }
  #site-nav .nav__menu-toggle { display: inline-flex; }
}
@media(max-width:520px) { #site-nav .nav__inner { height: 68px; gap: .5rem; } #site-nav .nav__actions { padding-left: 0; border: 0; gap: 0; } #site-nav .brand-logo { height: 23.8px; } }

/* corner bubble: overlaid on the button so it never squeezes the icon */
.nav__cart-count {
  position: absolute; top: -0.3rem; right: -0.35rem;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.15rem; height: 1.15rem; padding: 0 0.34em;
  border-radius: var(--radius-full); box-sizing: border-box;
  font-family: var(--font-mono); font-size: var(--text-size-100); font-weight: 600; line-height: 1;
  color: var(--accent-press);
}
/* hide the badge entirely when the cart is empty (no lone "0") */
.nav__cart-count:not(.is-filled) { display: none; }
.nav__menu-toggle { display: none; }
@media (max-width: 940px) {
  .nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin-left: 0;
    background: var(--paper); border-bottom: var(--border-subtle);
    padding: var(--space-200) var(--gutter) var(--space-400);
    box-shadow: var(--shadow-200);
  }
  .nav__links.is-open { display: flex; }
  .nav__links .nav__link { width: 100%; padding: 0.85em 0; border-bottom: var(--border-subtle); }
  .nav__links .nav__link::after { display: none; }
  .nav__menu-toggle { display: inline-flex; }
}
@media (pointer: coarse) {
  .nav__icon-btn, .nav__menu-toggle { width: 44px; height: 44px; }
}

/* ---- Segmented control ------------------------------------------------- */
.seg {
  position: relative; display: inline-flex; flex-wrap: wrap;
  padding: 4px; gap: 2px;
  background: var(--surface); border: var(--border-subtle);
  border-radius: var(--radius-pill);
}
.seg__btn {
  position: relative; z-index: 1;
  padding: 0.5em 1.1em; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); color: var(--ink-3); font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.seg__btn[aria-selected="true"] { color: var(--color-legacy-513f55cd); }
/* phones: keep the pill on one line — swipe horizontally instead of wrapping */
@media (max-width: 620px) {
  .seg { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .seg::-webkit-scrollbar { display: none; }
  .seg__btn { flex: 0 0 auto; white-space: nowrap; }
}
.seg__indicator {
  position: absolute; z-index: 0; top: 4px; left: 4px;
  height: calc(100% - 8px); /* initial; JS sets per-button height so it tracks wrapped rows */
  background: var(--accent); /* white active-tab label = 6.9:1 (AA) */
  border-radius: var(--radius-pill);
  transition: transform var(--dur-base) var(--ease-out), width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out);
  will-change: transform, width, height;
}
.seg__panels { position: relative; margin-top: var(--space-500); }
.seg__panel {
  position: absolute; inset: 0; opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-inout), transform var(--dur-base) var(--ease-inout);
  pointer-events: none;
}
.seg__panel.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }

/* ---- Accordion --------------------------------------------------------- */
.accordion { border-top: var(--border-subtle); }
.accordion__item { border-bottom: var(--border-subtle); }
.accordion__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-400);
  width: 100%; text-align: left;
  padding: 1.35em 0.25em;
  font-size: var(--fs-h4); font-weight: 600; color: var(--ink);
}
.accordion__trigger:hover { color: var(--accent-press); }
.accordion__icon {
  flex: none; width: 20px; height: 20px; position: relative;
  transition: transform var(--dur-base) var(--ease-out);
}
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; background: currentColor; border-radius: var(--radius-100);
}
.accordion__icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.accordion__icon::after  { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); transition: opacity var(--dur-base) var(--ease-out); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(180deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { opacity: 0; }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease-inout); }
.accordion__panel > div { overflow: hidden; }
.accordion__trigger[aria-expanded="true"] + .accordion__panel { grid-template-rows: 1fr; }
.accordion__answer { padding: 0 0.25em 1.6em; color: var(--ink-2); max-width: 68ch; }

/* ---- Marquee ----------------------------------------------------------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, var(--color-legacy-598b32b7) 8%, var(--color-legacy-598b32b7) 92%, transparent); mask-image: linear-gradient(90deg, transparent, var(--color-legacy-598b32b7) 8%, var(--color-legacy-598b32b7) 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.method-card {
  display: flex; flex-direction: column; gap: 0.35em;
  min-width: 280px; padding: 1.1rem 1.4rem;
  border-right: var(--border-subtle);
}
.method-card__label { display: flex; align-items: center; gap: 0.5em; font-weight: 600; color: var(--ink); font-size: var(--fs-sm); }
.method-card__method { font-family: var(--font-mono); font-size: var(--text-size-200); letter-spacing: var(--tracking-wide); color: var(--accent-press); text-transform: uppercase; }
.method-card__confirms { font-size: var(--fs-xs); color: var(--ink-3); }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.methods-band__control { display: flex; justify-content: flex-end; margin-top: var(--space-300); }
.marquee__toggle {
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); background: var(--surface);
  border: var(--border-subtle); border-radius: var(--radius-sm);
  padding: 0.45em 0.85em;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.marquee__toggle:hover { color: var(--ink); border-color: var(--hairline-strong); }
.marquee__toggle:active { opacity: 0.7; }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; }
  .methods-band__control { display: none; } /* no animation to pause */
}

/* ---- Spec table -------------------------------------------------------- */
.spec-table { width: 100%; border-collapse: collapse; border-top: var(--border-subtle); }
.spec-row { border-bottom: var(--border-subtle); }
.spec-row__head {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-400);
  width: 100%; text-align: left; padding: 1.05em 0.25em;
}
.spec-row__key { font-size: var(--fs-sm); color: var(--ink-3); font-family: var(--font-mono); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.spec-row__val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "zero" 1; color: var(--ink); font-size: var(--text-size-400); text-align: right; }
.spec-row__val .unit { color: var(--ink-3); }
.spec-row__note { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease-inout); }
.spec-row__note > div { overflow: hidden; }
.spec-row.is-open .spec-row__note { grid-template-rows: 1fr; }
.spec-row__note p { padding: 0 0.25em 1.1em; color: var(--ink-2); font-size: var(--fs-sm); max-width: 64ch; }
.spec-row__head .accordion__icon { width: 16px; height: 16px; color: var(--muted); }
.spec-row.is-open .spec-row__head .accordion__icon { transform: rotate(180deg); }
.spec-row.is-open .spec-row__head .accordion__icon::after { opacity: 0; }

/* ---- Data figure (count-up) -------------------------------------------- */
.figure {
  font-family: var(--font-mono); font-weight: 500;
  font-variant-numeric: tabular-nums; font-feature-settings: "zero" 1;
  font-size: var(--fs-figure); line-height: 1; color: var(--ink);
  letter-spacing: -0.01em;
}
.figure--accent { color: var(--accent-press); }
.figure-label { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 0.5em; }

/* ---- Chromatogram / analytical frame ----------------------------------- */
.plot {
  position: relative; background: var(--surface);
  border: var(--border-subtle); border-radius: var(--radius-sm);
}
.plot svg { width: 100%; height: auto; display: block; }
.plot__grid line { stroke: var(--hairline); stroke-width: 1; }
.plot__trace { fill: none; stroke: var(--trace); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plot__fill { fill: url(#traceFill); opacity: 0.9; }
.plot__axis-label { font-family: var(--font-mono); font-size: var(--text-size-200); fill: var(--ink-3); letter-spacing: var(--tracking-wide); }
.plot__peak-label { font-family: var(--font-mono); font-size: var(--text-size-200); fill: var(--accent-press); }

/* ---- Cart (drawer, badge, toast) ---------------------------------------- */
.nav__cart-count.is-filled { background: var(--accent); color: var(--color-legacy-513f55cd); }
.nav__cart-count.is-bump { animation: cart-bump 420ms var(--ease-out, ease-out); }
@keyframes cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

[data-surge-drawer="cart"] .drawer__body { display: flex; flex-direction: column; gap: 1rem; }

.cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem; padding-top: 0.4rem; color: var(--ink-3); }
.cart-empty p { color: var(--ink-2); }
.cart-empty__sub { font-size: var(--fs-sm); color: var(--ink-3); }

.cart-lines { display: flex; flex-direction: column; }
.cart-line {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 0.85rem;
  align-items: start; padding: 0.9rem 0; border-bottom: var(--border-subtle);
}
.cart-line:first-child { padding-top: 0.2rem; }
.cart-line__thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm);
  border: var(--border-subtle); background: var(--paper-sunk); display: block;
}
.cart-line__thumb--ph { background: var(--accent-tint-2); }
.cart-line__info { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.cart-line__name { font-weight: 600; font-size: var(--text-size-400); color: var(--ink); text-decoration: none; line-height: 1.25; }
.cart-line__name:hover { color: var(--accent-press); }
.cart-line__variant { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: 0.03em; }
.cart-line__ctrl { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.25rem; }
.cart-line__price { font-size: var(--text-size-300); color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-line__remove {
  font-size: var(--fs-xs); color: var(--ink-3); text-decoration: underline;
  text-underline-offset: 2px; transition: color var(--dur-fast) var(--ease-out);
}
.cart-line__remove:hover { color: var(--c-rose, var(--color-legacy-30f86365)); }

.cart-qty {
  display: inline-flex; align-items: center; border: var(--border-default);
  border-radius: var(--radius-sm); overflow: hidden;
}
.cart-qty button {
  width: 26px; height: 26px; display: grid; place-items: center;
  color: var(--ink-2); font-size: var(--text-size-400); line-height: 1; background: var(--surface);
  transition: background var(--dur-fast) var(--ease-out);
}
.cart-qty button:hover { background: var(--accent-tint-2); color: var(--ink); }
.cart-qty span {
  min-width: 28px; text-align: center; font-family: var(--font-mono);
  font-size: var(--fs-sm); font-variant-numeric: tabular-nums; color: var(--ink);
}

.cart-bogo-hint {
  display: flex; flex-direction: column; gap: 0.15rem;
  border: 1px dashed var(--accent); border-radius: var(--radius-sm);
  background: var(--accent-tint-2); padding: 0.7rem 0.85rem;
}
.cart-bogo-hint b { font-size: var(--fs-sm); color: var(--accent-press); }
.cart-bogo-hint span { font-size: var(--fs-xs); color: var(--ink-2); }

.cart-summary { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 0.2rem; }
.cart-summary__row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-sm); color: var(--ink-2); }
.cart-summary__row--save { color: var(--success); }
.cart-summary__row--save .mono { color: var(--success); }
.cart-summary__row--total { font-size: var(--text-size-400); color: var(--ink); font-weight: 600; padding-top: 0.35rem; border-top: var(--border-subtle); }
.cart-ship { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: 0.03em; }
.cart-ship--free { color: var(--success); }

.cart-cta { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.cart-ruo { font-size: var(--fs-xs); color: var(--ink-3); }

/* live nav-search drawer results */
.nav-search__results { display: flex; flex-direction: column; margin-top: 1rem; }
.nav-search__hit {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0.75rem;
  align-items: center; padding: 0.6rem 0.4rem; border-radius: var(--radius-sm);
  text-decoration: none; transition: background 130ms ease;
}
.nav-search__hit:hover { background: var(--accent-tint-2); }
.nav-search__thumb { width: 44px; height: 44px; border-radius: var(--radius-200); object-fit: cover; background: var(--paper-sunk); border: var(--border-subtle); }
.nav-search__thumb--ph { display: block; background: var(--accent-tint-2); }
.nav-search__info { min-width: 0; }
.nav-search__info b { display: block; font-size: var(--text-size-300); color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-search__info small { display: block; font-size: var(--fs-xs); color: var(--ink-3); margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-search__price { font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.nav-search__all { display: block; margin-top: 0.6rem; padding: 0.6rem 0.4rem; font-size: var(--fs-sm); color: var(--accent-press); text-decoration: underline; text-underline-offset: 2px; }
.nav-search__none { margin-top: 1rem; font-size: var(--fs-sm); color: var(--ink-3); }
.nav-search__pop { color: var(--accent-press); font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.nav-search__pop:hover { color: var(--ink); }

/* instant size popover for multi-variant quick-add from product cards */
.cart-pop {
  position: fixed; z-index: 130;
  background: var(--surface); border: var(--border-default);
  border-radius: var(--radius-sm); box-shadow: 0 18px 44px var(--color-context-e354b874);
  padding: 0.45rem;
}
.cart-pop__label {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-3); padding: 0.3rem 0.5rem 0.45rem;
  border-bottom: var(--border-subtle); margin-bottom: 0.3rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-pop__opt {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.9rem;
  width: 100%; padding: 0.6rem 0.55rem; border-radius: var(--radius-200);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink); text-align: left;
  transition: background 130ms ease, color 130ms ease;
}
.cart-pop__opt:hover { background: var(--accent-tint-2); color: var(--accent-press); }
.cart-pop__opt .mono { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.cart-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 120;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--ink);
  color: var(--color-legacy-513f55cd);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.1rem; font-size: var(--fs-sm);
  border: 1px solid var(--color-context-f2012854);
  box-shadow: 0 12px 32px var(--color-context-c4ec5c7d);
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
}
.cart-toast svg {
  color: var(--color-legacy-1e9d958e);
  stroke: var(--color-legacy-1e9d958e);
  flex: none;
}
.cart-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .nav__cart-count.is-bump { animation: none; }
  .cart-toast { transition: opacity 200ms linear; transform: translate(-50%, 0); }
}

/* ---- COA modal (PDF viewer) ------------------------------------------- */
.coa-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.coa-modal[aria-hidden="false"] { display: flex; align-items: center; justify-content: center; padding: 4vh 3vw; }
.coa-modal__backdrop { position: absolute; inset: 0; background: var(--color-context-4bf3c31a); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: coaFade 0.2s var(--ease-out); }
.coa-modal__panel { position: relative; width: min(920px, 100%); height: 92vh; display: flex; flex-direction: column; background: var(--surface); border: var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-300); overflow: hidden; animation: coaPop 0.26s var(--ease-out); }
.coa-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-bottom: var(--border-subtle); flex: none; }
.coa-modal__title-wrap { display: flex; flex-direction: column; gap: 0.25rem; }
.coa-modal__title { color: var(--ink); font-size: var(--text-size-500); }
.coa-modal__actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.coa-modal__close { width: 40px; height: 40px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: var(--text-size-500); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.coa-modal__close:hover { background: var(--paper-sunk); color: var(--ink); }
.coa-modal__body { flex: 1; min-height: 0; background: var(--paper-sunk); }
.coa-modal__frame { width: 100%; height: 100%; border: 0; display: block; }
@keyframes coaFade { from { opacity: 0; } }
@keyframes coaPop { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
@media (prefers-reduced-motion: reduce) { .coa-modal__backdrop, .coa-modal__panel { animation: none; } }
@media (max-width: 520px) {
  .coa-modal[aria-hidden="false"] { padding: 2vh 12px; }
  .coa-modal__panel { height: 96vh; }
  .coa-modal__head { align-items: stretch; flex-direction: column; gap: 0.65rem; padding: 0.8rem 0.9rem; }
  .coa-modal__title-wrap { gap: 0.15rem; }
  .coa-modal__title { font-size: var(--text-size-300); }
  .coa-modal__actions { justify-content: space-between; }
}

/* COA embed (inline preview on the product page) */
.coa-embed { width: 100%; height: 440px; border: var(--border-subtle); border-radius: var(--radius-sm); display: block; background: var(--paper-sunk); }
.plot__peak-line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.5; }

/* ---------- cart drawer: free-shipping progress bar ---------- */
.cart-shipbar { margin: 0 0 0.9rem; }
.cart-shipbar__label {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: var(--text-size-200); color: var(--color-legacy-b7b4cbb0); margin-bottom: 0.4rem;
}
.cart-shipbar__label b { font-family: var(--font-mono); font-weight: 600; color: var(--color-legacy-e0db2266); }
.cart-shipbar__track {
  height: 6px; border-radius: var(--radius-full); overflow: visible;
  background: var(--accent-tint);
  border: var(--border-subtle);
  position: relative;
  margin-bottom: 0.5rem;
}
.cart-shipbar__fill {
  display: block; height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, #17402B, #1f5138);
  transition: width 0.5s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.cart-shipbar--free .cart-shipbar__label { color: var(--accent); font-weight: 600; }
.cart-shipbar--free .cart-shipbar__fill { background: linear-gradient(90deg, #17402B, #1f5138); }
.cart-shipbar__pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.cart-shipbar__milestones {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-3);
  font-weight: 600;
}
.cart-shipbar__ms.is-unlocked {
  color: var(--accent);
  font-weight: 700;
}
.cart-shipbar__ms:last-child.is-unlocked {
  color: var(--gold-deep);
}
@media (prefers-reduced-motion: reduce) { .cart-shipbar__fill { transition: none; } }

/* ============================================================================
   Design-system consistency layer (2026-10-05)
   One rule for each repeated element so siblings share edges, type and numerals.
   ============================================================================ */
/* Prices and figures: tabular numerals everywhere */
[class*="price"], .figure, .tnum, .cart-line__price, .variant-card__price, .buybox__price {
  font-variant-numeric: tabular-nums lining-nums;
}
/* Eyebrows: one label style (mono, 12px, wide tracking, uppercase) */
.eyebrow, .shop-hero__eyebrow, .hero__eyebrow, .enc-hero__eyebrow, .ws-hero__eyebrow,
.operator-eyebrow, .pdp-about__eyebrow, .rfid-card__eyebrow, .tracking-dashboard__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-size-100);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-300);
  text-transform: uppercase;
}
/* Cards in a grid: same height, same padding, buttons pinned to the bottom */
.product-card { display: flex; flex-direction: column; }
.product-card > :last-child { margin-top: auto; }
/* Minimum 16px side gutter at every width */
.container { padding-inline: max(var(--gutter-min), var(--gutter)); }
/* Visible focus on form controls too */
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: var(--border-focus);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus);
}
/* Motion: nothing waits for scroll; honour reduced motion for hover effects too */
@media (prefers-reduced-motion: reduce) {
  .btn, .product-card, .surge-motion-card, .area-card { transition: none !important; transform: none !important; }
}

/* ============================================================================
   AMINO CLUB STYLE CART DRAWER EXTENSIONS
   - Draft Invoice header with item badge
   - Split 2-tier shipping / gift progress bar
   - Circular $0 gold badge on free units
   - Same-item 1-click upsell nudge (+ Add 1 more to get 1 FREE)
   - Shipment protection row
   - Deal card with savings breakdown & alternate coupon code
   - Express GPay/Apple Pay + Proceed to invoicing CTA buttons
   ============================================================================ */

.cart-draft-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 0.85rem;
  border-bottom: 1px solid #F3F4F6;
}

.cart-draft-header__back {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #111827;
  cursor: pointer;
  padding: 0 0.5rem 0 0;
  display: flex;
  align-items: center;
}

.cart-draft-header__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
  margin: 0;
  font-family: var(--font-sans, sans-serif);
}

.cart-draft-header__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1f5138;
  font-size: 0.75rem;
  font-weight: 800;
}

/* 2-Segment Shipping & Perks Progress Bar (Amino Club style) */
.cart-amino-shipbar {
  padding: 0.95rem 0;
  margin: 0.85rem 0;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
}

.cart-amino-shipbar__tracks {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 0.6rem;
  position: relative;
}

.cart-amino-shipbar__track {
  flex: 1;
  height: 6px;
  background: var(--accent-tint, #EBF3EE);
  border-radius: 999px;
  overflow: visible;
  position: relative;
}

.cart-amino-shipbar__fill {
  height: 100%;
  background: linear-gradient(90deg, #17402B 0%, #1f5138 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
  position: relative;
}

/* Gold milestone indicator at each tier threshold */
.cart-amino-shipbar__track::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold, #D8A43A);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.cart-amino-shipbar__track:last-child::after {
  background: var(--gold, #D8A43A);
  box-shadow: 0 0 0 2px var(--gold-border, rgba(216, 164, 58, 0.35)), 0 1px 4px rgba(0, 0, 0, 0.25);
}

.cart-amino-shipbar__labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.cart-amino-shipbar__lbl--left {
  color: #4B5563;
}

.cart-amino-shipbar__lbl--left.is-complete {
  color: var(--accent, #1f5138);
  font-weight: 700;
}

.cart-amino-shipbar__lbl--right {
  color: #111827;
  font-weight: 700;
}

.cart-amino-shipbar__lbl--right.is-complete {
  color: var(--gold-deep, #B8860B);
  font-weight: 800;
}

.cart-amino-shipbar__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #6B7280;
}

/* Line item badges & header row */
.cart-line {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid #F3F4F6;
}

.cart-line__thumb-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  overflow: visible;
}

.cart-line__thumb {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 9px;
  border: 1px solid #E5E7EB;
  background: #FAFAFA;
  display: block;
  overflow: hidden;
}

.cart-line__badge-zero {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 4;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-badge);
  color: var(--gold-text);
  font-weight: 800;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(216, 164, 58, 0.3);
  border: 2px solid #ffffff;
}

.cart-line__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cart-line__header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.cart-line__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  line-height: 1.25;
}

.cart-line__remove-x {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #9CA3AF;
  cursor: pointer;
  padding: 0 0.25rem;
  transition: color 0.15s;
}

.cart-line__remove-x:hover {
  color: #111827;
}

.cart-line__variant {
  font-size: 0.76rem;
  color: #6B7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-line__status-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}

.cart-line__gold-pill {
  background: var(--gold-badge);
  color: var(--gold-text);
  border: 1px solid var(--gold-border);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(216, 164, 58, 0.2);
}

.cart-line__deal-note {
  font-size: 0.75rem;
  color: #10B981;
  font-weight: 600;
}

.cart-line__ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  width: 100%;
}

.cart-line__price {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.cart-line__price s {
  color: #9CA3AF;
  font-weight: 400;
  font-size: 0.85rem;
}

.cart-line__zero {
  color: #10B981;
  font-weight: 800;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background: #FFFFFF;
  height: 30px;
  width: fit-content;
  min-width: 0;
  padding: 0;
  gap: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.cart-qty button {
  width: 28px;
  flex: 0 0 28px;
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 0.88rem;
  color: #4B5563;
  cursor: pointer;
  transition: background 0.15s;
}

.cart-qty button:hover {
  background: #F3F4F6;
  color: #111827;
}

.cart-qty span {
  width: 28px;
  min-width: 28px;
  flex: 0 0 28px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
}

/* Same-item 1-click upsell nudge (Amino style) */
.cart-line__nudge {
  margin-top: 0.55rem;
  background: #FFFDF9;
  border: 1px dashed #E5D5B8;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-line__nudge-txt {
  font-size: 0.76rem;
  color: #785A1D;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cart-line__nudge-btn {
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.cart-line__nudge-btn:hover {
  background: #374151;
}

/* Shipment protection row (Amino Club style) */
.cart-protection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  margin: 0.5rem 0;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
  font-size: 0.86rem;
  color: #111827;
}

.cart-protection-row__left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cart-protection-row__left svg.cart-shield {
  color: #10B981;
  stroke: #10B981;
  flex-shrink: 0;
}

.cart-protection-row__help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #6B7280;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: help;
  margin-left: 0.2rem;
}

.cart-protection-row__free {
  color: #10B981;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Deal Card (Amino style ivory container with gold border) */
.cart-deal-card {
  background: #FCFAF6;
  border: 1.5px solid #F5E8D2;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin: 0.85rem 0 1rem;
}

.cart-deal-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.cart-deal-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.cart-deal-card__badge .star-icon {
  font-style: normal;
  font-size: 1rem;
  line-height: 1;
}

.cart-deal-card__status {
  font-size: 0.82rem;
  font-weight: 700;
  color: #10B981;
}

.cart-deal-card__savings {
  font-size: 0.88rem;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.cart-deal-card__savings b {
  color: #10B981;
  font-weight: 800;
  font-size: 1.05rem;
}

.cart-deal-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed #EEDCC0;
}

.cart-deal-card__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

.cart-deal-card__item-name {
  color: #1F2937;
  font-weight: 600;
}

.cart-deal-card__item-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-deal-card__item-price s {
  color: #9CA3AF;
  font-size: 0.82rem;
}

.cart-deal-gold-badge {
  background: #E5A93C;
  color: #111827;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-deal-card__alt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #4B5563;
  margin-top: 0.35rem;
}

.cart-deal-card__alt-row span b {
  color: #111827;
}

.cart-deal-card__alt-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.cart-deal-card__alt-btn:hover {
  color: #000000;
}

.cart-deal-card__code-toggle {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #F3EDE2;
}

.cart-deal-card__code-btn {
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
}

.cart-deal-card__code-btn svg {
  stroke: #6B7280;
}

.cart-deal-card__code-btn:hover {
  color: #111827;
}

.cart-deal-card__code-form {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.cart-deal-card__code-form input {
  flex: 1;
  height: 36px;
  padding: 0 0.75rem;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.82rem;
}

.cart-deal-card__code-form button {
  height: 36px;
  padding: 0 1rem;
  background: #111827;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* Eon Peptides / Amino Club Cross-Sell Bump ("Researchers Also Added") */
.cart-cross-sell {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #F9FAFB;
}

.cart-cross-sell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.cart-cross-sell__label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4B5563;
}

.cart-cross-sell__sub {
  font-size: 0.72rem;
  color: #10B981;
  font-weight: 600;
}

.cart-cross-sell__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-cross-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.cart-cross-item:hover {
  border-color: #9CA3AF;
}

.cart-cross-item__thumb {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
  background: #FAFAFA;
  flex-shrink: 0;
}

.cart-cross-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cart-cross-item__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-cross-item__meta {
  font-size: 0.72rem;
  color: #6B7280;
  font-family: var(--font-mono, monospace);
}

.cart-cross-item__price {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.cart-cross-item__add-btn {
  background: #111827;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.cart-cross-item__add-btn:hover {
  background: #374151;
}

.cart-summary__reward {
  margin: 0.65rem 0 0.35rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #1e293b;
}

.cart-summary__reward b {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
}

/* Actions */
.cart-amino-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

/* ---- Amino Club Sticky Drawer & Official Apple Pay Integration ---- */
[data-surge-drawer="cart"] {
  width: min(440px, 100vw);
}
[data-surge-drawer="cart"] .drawer__body {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  height: 100% !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.cart-drawer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.95rem 1.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cart-drawer-sticky-foot {
  flex: 0 0 auto;
  position: relative;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
  padding: 0.85rem 1.25rem 1rem;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Subtotal & 2-for-1 pricing (Image 2) */
.cart-subtotal-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.4rem;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cart-subtotal-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
}
.cart-subtotal-values {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.cart-subtotal-was {
  font-size: 1rem;
  color: #9ca3af;
  text-decoration: line-through;
}
.cart-subtotal-now {
  font-size: 1.45rem;
  font-weight: 900;
  color: #111827;
}
.cart-discount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #16a34a;
}
.cart-discount-amount {
  font-size: 1.1rem;
  font-weight: 800;
}

/* Perks status lines (Image 1) */
.cart-perks-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #4b5563;
  padding: 0.2rem 0 0.4rem;
}
.cart-perk-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.cart-perk-line--ship {
  color: #111827;
  font-weight: 600;
}
.cart-perk-line--ship.is-unlocked {
  color: #16a34a;
}
.cart-perk-star {
  color: #475569;
  font-size: 0.9rem;
}

/* Quick Pay Button: Apple Pay & Google Pay (Image 1) */
.cart-quickpay-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cart-amino-quickpay {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
/* Safari: render Apple's own embedded button instead of our replica. */
@supports (-webkit-appearance: -apple-pay-button) {
  button.cart-amino-applepay {
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: pay;
    -apple-pay-button-style: black;
  }
  button.cart-amino-applepay > * { visibility: hidden; }
}

.cart-amino-quickpay:hover {
  opacity: 0.92;
}
.cart-amino-quickpay:active {
  transform: scale(0.99);
}
.sw-ap-lbl, .sw-gp-lbl {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.sw-ap-logo {
  height: 22px;
  width: auto;
}
.sw-gp-logo {
  height: 22px;
  width: auto;
}
.cart-quickpay-note {
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  margin: 0.25rem 0 0.1rem;
  line-height: 1.35;
}
.cart-quickpay-note b {
  color: #1e293b;
}

/* OR divider */
.cart-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0.3rem 0 0.45rem;
  text-transform: uppercase;
}
.cart-or-divider::before,
.cart-or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.cart-or-divider span {
  padding: 0 0.75rem;
}

/* Primary Secure Checkout Button (Image 1) */
.cart-amino-checkout {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: #2d4c63;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: background 0.18s, transform 0.12s;
  box-shadow: 0 4px 14px rgba(45, 76, 99, 0.25);
}
.cart-amino-checkout:hover {
  background: #223a4c;
}
.cart-amino-checkout:active {
  transform: scale(0.99);
}
.cart-amino-checkout svg {
  flex-shrink: 0;
}

/* Credit card badges row */
.cart-card-badges,
.cart-paylogos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
}
.cart-paylogos .pl {
  font-size: 0.65rem;
  font-weight: 800;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px 7px;
  color: #374151;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
}
.cart-paylogos .pl--visa { color: #1a1f71; font-style: italic; }
.cart-paylogos .pl--amex { background: #006fcf; color: #ffffff; border-color: #006fcf; }
.cart-paylogos .pl--disc { color: #f97316; }
.cart-paylogos .pl--mc i:first-child { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #eb001b; margin-right: -4px; }
.cart-paylogos .pl--mc i:last-child { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #f79e1b; opacity: 0.9; }

.cart-ruo {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
  margin: 0.35rem 0 0;
  line-height: 1.3;
}

/* ---- Action vs Note Discipline & Calm CTA Hover (2026-10-25) ---- */
[data-surge-drawer-open="cart"],
[data-card-add],
.product-card__btn-add,
a.product-card__btn-view,
.product-card__btn-view,
.shop-chip,
button.product-card__coa,
button.product-card__coa[data-coa-open],
#add-to-cart,
.pdp-amino-btn-coa,
.pdp-amino-btn-coa[data-coa-trigger],
.amino-qty-card,
.pdp-amino-variant-btn,
.pdp-amino-stepper__btn,
.pdp-lot-pill[data-lot-scroll] {
  cursor: pointer;
}

.surge-ticker__track span,
.product-card__cat-pill,
.product-card__save-pill,
span.product-card__coa:not([data-coa-open]),
.pdp__media-pill,
.pdp-amino-perks__item,
.amino-card-badge,
.pdp-assure__badge,
.pdp-amino-zero-badge,
.ruo-strip,
.pdp-lot-pill:not([data-lot-scroll]) {
  cursor: default !important;
}

#add-to-cart:hover,
.pdp-amino-btn-invoice:hover,
.btn--primary:hover {
  transform: none !important;
  animation: none !important;
}

/* ---- Mobile: one promo bar, no extra announcement or trust ticker (2026-10-26)
   The Amino-style .ef6 bar under the nav is the single offer on phones. Hide the
   extra topbar and ticker so the first fold is nav -> one offer -> content,
   matching the reference mobile layout. Desktop unaffected. */
@media (max-width: 899px) {
  #surge-amino-topbar { display: none !important; }
  .surge-ticker { display: none !important; }
}
@media (max-width: 760px) {
  /* .ef6__ml-alt shares grid row 3 with the countdown and paints over it.
     Keep the timer; drop the secondary free-BAC line on phones. */
  .ef6__ml-alt { display: none !important; }
}

