/* ==========================================================================
   UG IN THE BOX · Customer Commerce & Requisition Terminal Stylesheet
   Architecture: Apple Inc. Restraint + Cyberpunk Telemetry + Post-Apocalyptic Crate
   Scope: Exclusively scoped to product catalogue, cart, and checkout containers
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Cart Page Scoped Obsidian Canvas (Unified with Global Customer Backdrop)
   -------------------------------------------------------------------------- */
body.ah-cart-page {
  background-color: transparent !important;
}

body.ah-cart-page .ah-signal-backdrop {
  background: var(--ah-bg) !important;
}

body.ah-cart-page .ah-signal-camera {
  display: block !important;
  opacity: var(--ah-camera-opacity, 0.65) !important;
  visibility: visible !important;
}

/* --------------------------------------------------------------------------
   1. Shared Commerce Container & Foundation
   -------------------------------------------------------------------------- */
section[aria-labelledby="cart-title"] {
  --ah-com-max-width: 1180px;
  --ah-com-pad-x: 24px;
  padding: 36px var(--ah-com-pad-x) 80px !important;
}

@media (max-width: 640px) {
  section[aria-labelledby="cart-title"] {
    --ah-com-pad-x: 16px;
    padding: 24px var(--ah-com-pad-x) 64px !important;
  }
}

section[aria-labelledby="catalogue-title"],
section[aria-labelledby="cart-title"],
section[aria-labelledby="checkout-title"] {
  --ah-com-max-width: 1180px;
  --ah-com-pad-x: 0px;
  --ah-com-radius: 20px;
  --ah-com-radius-sm: 12px;
  --ah-com-radius-pill: 980px;

  /* Surfaces & Materials (Apple Inset Glass + Dark Matte) */
  --ah-com-glass: rgba(18, 18, 22, 0.76);
  --ah-com-glass-hover: rgba(24, 24, 30, 0.88);
  --ah-com-blur: blur(16px) saturate(140%);
  --ah-com-hairline: rgba(255, 255, 255, 0.08);
  --ah-com-hairline-bright: rgba(255, 255, 255, 0.18);
  --ah-com-inset-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.07);
  --ah-com-panel-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);

  /* Tactical Color Matrix (Matte Post-Apocalyptic / No-Neon) */
  --ah-neon-green: #e5e3da;
  --ah-neon-green-glow: none;
  --ah-radar-orange: #c4a16a;
  --ah-radar-orange-glow: none;
  --ah-text-pure: #ffffff;
  --ah-text-soft: #b8b6aa;
  --ah-text-muted: #8e8d85;

  /* Motion Physics (Apple Spring Curves) */
  --ah-spring-bounce: cubic-bezier(0.16, 1, 0.3, 1);
  --ah-ease-press: cubic-bezier(0.2, 0, 0, 1);
  --ah-duration-snap: 120ms;
  --ah-duration-smooth: 240ms;

  width: min(var(--ah-com-max-width), 100%);
  margin-inline: auto;
  padding: 32px var(--ah-com-pad-x) 80px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  section[aria-labelledby="catalogue-title"],
  section[aria-labelledby="cart-title"],
  section[aria-labelledby="checkout-title"] {
    padding-top: 48px;
  }
}

@media (min-width: 1024px) {
  section[aria-labelledby="catalogue-title"],
  section[aria-labelledby="cart-title"],
  section[aria-labelledby="checkout-title"] {
    padding-top: 64px;
  }
}
/* Symmetrical Section Headings & Telemetry */
section[aria-labelledby="catalogue-title"] header,
section[aria-labelledby="cart-title"] header,
section[aria-labelledby="checkout-title"] > p:first-child,
section[aria-labelledby="checkout-title"] > h1 {
  text-align: left;
}

section[aria-labelledby="catalogue-title"] header,
section[aria-labelledby="cart-title"] header {
  margin-bottom: 36px;
}

section[aria-labelledby="catalogue-title"] header p:first-child,
section[aria-labelledby="cart-title"] header p:first-child,
section[aria-labelledby="checkout-title"] > p:first-child {
  margin: 0 0 10px 0;
  color: var(--ah-text-muted);
  font-family: var(--ah-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

section[aria-labelledby="catalogue-title"] header p:first-child::before,
section[aria-labelledby="cart-title"] header p:first-child::before,
section[aria-labelledby="checkout-title"] > p:first-child::before {
  content: "// ";
  color: var(--ah-neon-green);
  opacity: 0.8;
}

#catalogue-title,
#cart-title,
#checkout-title {
  margin: 0 0 12px 0;
  font-family: var(--ah-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ah-text-pure);
}

section[aria-labelledby="catalogue-title"] header p:last-child,
section[aria-labelledby="cart-title"] header p:last-child,
section[aria-labelledby="checkout-title"] > p:nth-of-type(2) {
  margin: 0;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.6;
  color: var(--ah-text-soft);
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   2. Product Catalogue Layout & Relic Cards
   -------------------------------------------------------------------------- */
.product-catalogue {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
  margin-top: 24px;
}

@media (min-width: 480px) {
  .product-catalogue {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

@media (min-width: 1024px) {
  .product-catalogue {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
  }
}

/* Salvaged Relic Card Box */
.product-catalogue .ah-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 20px !important;
  border: 1px solid var(--ah-com-hairline) !important;
  border-radius: var(--ah-com-radius) !important;
  background: var(--ah-com-glass) !important;
  backdrop-filter: var(--ah-com-blur) !important;
  -webkit-backdrop-filter: var(--ah-com-blur) !important;
  box-shadow: var(--ah-com-inset-highlight), var(--ah-com-panel-shadow) !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform var(--ah-duration-smooth) var(--ah-spring-bounce),
              border-color var(--ah-duration-smooth) ease,
              box-shadow var(--ah-duration-smooth) ease !important;
}

.product-catalogue .ah-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--ah-com-hairline-bright) !important;
  box-shadow: var(--ah-com-panel-shadow), 0 0 20px rgba(0, 0, 0, 0.6) !important;
}

/* Corner Crosshair Registration Tick */
.product-catalogue .ah-card::before {
  content: "+";
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--ah-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

/* Symmetrical Product Image Frame with Tone-Mapping */
.product-catalogue .ah-card img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: var(--ah-com-radius-sm) !important;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, rgba(9, 10, 13, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-sizing: border-box !important;
  filter: brightness(0.9) contrast(1.08) saturate(0.92) !important;
  transition: filter var(--ah-duration-smooth) ease,
              transform var(--ah-duration-smooth) var(--ah-spring-bounce) !important;
}

.product-catalogue .ah-card:hover img {
  filter: brightness(1) contrast(1.02) saturate(1) !important;
  transform: scale(1.025) !important;
}

/* Product Info */
.product-catalogue .ah-card h2 {
  margin: 16px 0 8px 0 !important;
  font-family: var(--ah-display) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--ah-text-pure) !important;
}

.product-catalogue .ah-card p {
  margin: 0 0 16px 0 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: var(--ah-text-soft) !important;
  flex-grow: 1 !important;
}

/* Variant Rows & Add-to-Cart Actions */
.product-catalogue .ah-card form {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 8px 0 0 0 !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--ah-com-hairline) !important;
  box-sizing: border-box !important;
}

.product-catalogue .ah-card form label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  font-family: var(--ah-mono) !important;
  font-size: 12px !important;
  color: var(--ah-text-pure) !important;
}

/* Tactical Quantity Stepper Input */
.product-catalogue .ah-card form input[type="number"],
.cart-lines input[type="number"] {
  width: 60px !important;
  min-height: 38px !important;
  padding: 4px 8px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  font-family: var(--ah-mono) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ah-text-pure) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid var(--ah-com-hairline) !important;
  border-radius: 8px !important;
  outline: none !important;
  transition: border-color var(--ah-duration-snap) ease, box-shadow var(--ah-duration-snap) ease !important;
}

.product-catalogue .ah-card form input[type="number"]:focus,
.cart-lines input[type="number"]:focus {
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

/* Primary Add-to-Cart Action Button (No Floating Buttons) */
.product-catalogue .ah-card form button[type="submit"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 18px !important;
  border-radius: var(--ah-com-radius-sm) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  letter-spacing: -0.01em !important;
  background: var(--ah-text-pure) !important;
  color: #0b0c0e !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: background-color var(--ah-duration-snap) ease,
              color var(--ah-duration-snap) ease,
              transform var(--ah-duration-snap) var(--ah-ease-press),
              box-shadow var(--ah-duration-snap) ease !important;
}

.product-catalogue .ah-card form button[type="submit"]:hover {
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.product-catalogue .ah-card form button[type="submit"]:active {
  transform: scale(0.975) !important;
  background: #e5e3da !important;
  color: #0b0c0e !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   3. Shopping Cart Line Items & Layout (cart.html)
   -------------------------------------------------------------------------- */
section[aria-labelledby="cart-title"] .cart-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

section[aria-labelledby="cart-title"] .cart-lines .ah-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 20px 24px !important;
  border: 1px solid var(--ah-com-hairline) !important;
  border-radius: var(--ah-com-radius-sm) !important;
  background: var(--ah-com-glass) !important;
  backdrop-filter: var(--ah-com-blur) !important;
  -webkit-backdrop-filter: var(--ah-com-blur) !important;
  box-shadow: var(--ah-com-inset-highlight) !important;
  box-sizing: border-box !important;
  transition: border-color var(--ah-duration-smooth) ease !important;
}

@media (min-width: 680px) {
  section[aria-labelledby="cart-title"] .cart-lines .ah-card {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}

section[aria-labelledby="cart-title"] .cart-lines .ah-card:hover {
  border-color: var(--ah-com-hairline-bright) !important;
}

section[aria-labelledby="cart-title"] .cart-lines .ah-card h2,
section[aria-labelledby="cart-title"] .cart-lines .ah-card h3 {
  margin: 0 0 6px 0 !important;
  font-family: var(--ah-display) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--ah-text-pure) !important;
}

section[aria-labelledby="cart-title"] .cart-lines .ah-card p {
  margin: 0 !important;
  font-family: var(--ah-mono) !important;
  font-size: 12px !important;
  color: var(--ah-text-soft) !important;
  letter-spacing: 0.04em !important;
}

/* Tactical Quantity Stepper & Update Action Group */
section[aria-labelledby="cart-title"] .cart-lines form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  border: 1px solid var(--ah-com-hairline) !important;
}

section[aria-labelledby="cart-title"] .cart-lines form label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: var(--ah-mono) !important;
  font-size: 12px !important;
  color: var(--ah-text-muted) !important;
}

section[aria-labelledby="cart-title"] .cart-lines form button[type="submit"] {
  min-height: 38px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-family: var(--ah-mono) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--ah-text-pure) !important;
  border: 1px solid var(--ah-com-hairline) !important;
  cursor: pointer !important;
  transition: all var(--ah-duration-snap) ease !important;
}

section[aria-labelledby="cart-title"] .cart-lines form button[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: var(--ah-com-hairline-bright) !important;
}

section[aria-labelledby="cart-title"] .cart-lines form button[type="submit"]:active {
  transform: scale(0.96) !important;
  background: var(--ah-neon-green) !important;
  color: #05140b !important;
}

/* Cart Sub-sections (Guest / Account) */
section[aria-labelledby="cart-title"] section {
  margin-top: 32px;
}

section[aria-labelledby="cart-title"] h2 {
  font-family: var(--ah-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ah-text-muted);
  margin: 0 0 12px 0;
}

section[aria-labelledby="cart-title"] h2::before {
  content: "[ ";
  color: var(--ah-neon-green);
}

section[aria-labelledby="cart-title"] h2::after {
  content: " ]";
  color: var(--ah-neon-green);
}

/* --------------------------------------------------------------------------
   4. Cart Choice Group & Primary Checkout Button (cart.html)
   -------------------------------------------------------------------------- */
/* Resolve choices button row */
section[aria-labelledby="cart-choice-title"] form,
section[aria-labelledby="cart-title"] form:not(.cart-lines form):not(.tp-cart-action-group):not(.tp-cart-promo form):not(.tp-cart-variant-editor form):not(.tp-cart-selection-bar) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 16px 0 !important;
}

section[aria-labelledby="cart-choice-title"] form button,
section[aria-labelledby="cart-title"] form:not(.cart-lines form):not(.tp-cart-action-group) button {
  min-height: 44px !important;
  padding: 10px 20px !important;
  border-radius: var(--ah-com-radius-sm) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--ah-text-pure) !important;
  border: 1px solid var(--ah-com-hairline) !important;
  cursor: pointer !important;
  transition: all var(--ah-duration-snap) ease !important;
}

section[aria-labelledby="cart-choice-title"] form button:hover,
section[aria-labelledby="cart-title"] form:not(.cart-lines form) button:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--ah-com-hairline-bright) !important;
}

section[aria-labelledby="cart-choice-title"] form button:active,
section[aria-labelledby="cart-title"] form:not(.cart-lines form) button:active {
  transform: scale(0.97) !important;
}

/* Primary Promotion: Promote plain checkout links to High-Contrast Buttons */
section[aria-labelledby="cart-title"] a[href*="cart_checkout"],
section[aria-labelledby="cart-title"] a[href*="login?next"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 52px !important;
  margin: 24px 0 12px 0 !important;
  padding: 14px 24px !important;
  border-radius: var(--ah-com-radius-sm) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
  background: var(--ah-text-pure) !important;
  color: #0b0c0e !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: background-color var(--ah-duration-snap) ease,
              color var(--ah-duration-snap) ease,
              transform var(--ah-duration-snap) var(--ah-ease-press),
              box-shadow var(--ah-duration-snap) ease !important;
}

section[aria-labelledby="cart-title"] a[href*="cart_checkout"]:hover,
section[aria-labelledby="cart-title"] a[href*="login?next"]:hover {
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

section[aria-labelledby="cart-title"] a[href*="cart_checkout"]:active,
section[aria-labelledby="cart-title"] a[href*="login?next"]:active {
  transform: scale(0.975) !important;
  background: #e5e3da !important;
  color: #0b0c0e !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   5. Checkout & Order Review Flow (cart_checkout.html)
   -------------------------------------------------------------------------- */
/* Manifest Cart Items List */
section[aria-labelledby="checkout-title"] ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 24px 0 !important;
  border: 1px solid var(--ah-com-hairline) !important;
  border-radius: var(--ah-com-radius-sm) !important;
  background: var(--ah-com-glass) !important;
  overflow: hidden !important;
}

section[aria-labelledby="checkout-title"] ul li {
  padding: 16px 20px !important;
  font-family: var(--ah-mono) !important;
  font-size: 13px !important;
  color: var(--ah-text-pure) !important;
  border-bottom: 1px solid var(--ah-com-hairline) !important;
}

section[aria-labelledby="checkout-title"] ul li:last-child {
  border-bottom: none !important;
}

/* Delivery Method Tactical Fieldset */
section[aria-labelledby="checkout-title"] fieldset {
  margin: 24px 0 !important;
  padding: 20px !important;
  border: 1px solid var(--ah-com-hairline) !important;
  border-radius: var(--ah-com-radius-sm) !important;
  background: var(--ah-com-glass) !important;
  box-sizing: border-box !important;
}

section[aria-labelledby="checkout-title"] fieldset legend {
  font-family: var(--ah-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--ah-text-muted) !important;
  padding: 0 8px !important;
}

section[aria-labelledby="checkout-title"] fieldset label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  margin: 8px 0 !important;
  border-radius: 8px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid var(--ah-com-hairline) !important;
  font-size: 14px !important;
  color: var(--ah-text-pure) !important;
  cursor: pointer !important;
  transition: border-color var(--ah-duration-snap) ease !important;
}

section[aria-labelledby="checkout-title"] fieldset label:hover {
  border-color: var(--ah-com-hairline-bright) !important;
}

/* Shipping Address Textarea */
section[aria-labelledby="checkout-title"] label[for="shipping-address"] {
  display: block !important;
  font-family: var(--ah-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--ah-text-muted) !important;
  margin: 20px 0 8px 0 !important;
}

#shipping-address:not(.visually-hidden) {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid var(--ah-com-hairline) !important;
  border-radius: var(--ah-com-radius-sm) !important;
  color: var(--ah-text-pure) !important;
  padding: 14px 16px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  outline: none !important;
  transition: border-color var(--ah-duration-snap) ease, box-shadow var(--ah-duration-snap) ease !important;
}

#shipping-address:not(.visually-hidden):focus {
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

/* Quote Section & Manifest Calculation Table */
section[aria-labelledby="quote-title"] {
  margin-top: 28px !important;
  padding: 24px !important;
  border: 1px solid var(--ah-com-hairline) !important;
  border-radius: var(--ah-com-radius) !important;
  background: var(--ah-com-glass) !important;
  backdrop-filter: var(--ah-com-blur) !important;
  -webkit-backdrop-filter: var(--ah-com-blur) !important;
  box-shadow: var(--ah-com-inset-highlight), var(--ah-com-panel-shadow) !important;
}

section[aria-labelledby="quote-title"] #quote-title {
  margin: 0 0 16px 0 !important;
  font-family: var(--ah-display) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--ah-text-pure) !important;
}

section[aria-labelledby="quote-title"] dl {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 16px !important;
  border-bottom: 1px dashed var(--ah-com-hairline) !important;
}

section[aria-labelledby="quote-title"] dl > div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 14px !important;
}

section[aria-labelledby="quote-title"] dl dt {
  color: var(--ah-text-soft) !important;
}

section[aria-labelledby="quote-title"] dl dd {
  margin: 0 !important;
  font-family: var(--ah-mono) !important;
  color: var(--ah-text-pure) !important;
}

section[aria-labelledby="quote-title"] dl > div:last-child dd strong {
  color: var(--ah-text-pure) !important;
  font-size: 18px !important;
  text-shadow: none !important;
}

/* Primary Final Submit Buttons (Checkout Flow - Matte Chalk) */
section[aria-labelledby="checkout-title"] button[type="submit"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 52px !important;
  margin-top: 20px !important;
  padding: 14px 24px !important;
  border-radius: 980px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.08em !important;
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box !important;
  transition: transform var(--ah-duration-snap) var(--ah-ease-press),
              background-color var(--ah-duration-snap) ease !important;
}

section[aria-labelledby="checkout-title"] button[type="submit"]:hover {
  background: #e5e3da !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Tactical Commerce & Merchandise Bento Architecture (Apple + No-Neon)
   ========================================================================== */
.tp-commerce-container {
  max-width: 1140px;
  margin-inline: auto;
  padding: 24px 20px 80px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .tp-commerce-container {
    padding-inline: 28px;
  }
}

/* Header */
.tp-commerce-header {
  margin-bottom: 32px;
}

.tp-commerce-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tp-commerce-badge-row .ah-eyebrow {
  margin: 0;
  font-family: var(--ah-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: #b8b6aa;
  text-transform: uppercase;
}

.tp-commerce-title-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.tp-commerce-main-title {
  margin: 0;
  font-family: var(--ah-display);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.tp-commerce-count-badge {
  font-family: var(--ah-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1.45;
  padding: 4px 12px;
  border-radius: 980px;
  background: rgba(229, 227, 218, 0.08);
  border: 1px solid rgba(229, 227, 218, 0.16);
  color: #e5e3da;
  font-weight: 600;
}

.tp-commerce-subtitle {
  margin: 10px 0 0 0;
  font-family: var(--ah-text);
  font-size: 14.5px;
  line-height: 1.68;
  color: #b8b6aa;
  letter-spacing: 0em;
}

/* --------------------------------------------------------------------------
   2. Shop Layout (Sticky Sidebar 260px + Symmetrical Product Grid)
   -------------------------------------------------------------------------- */
.tp-shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

@media (max-width: 960px) {
  .tp-shop-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Left Sidebar: Categories & Filters Dock */
.tp-shop-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(19, 20, 26, 0.95) 0%, rgba(10, 11, 14, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 227, 218, 0.18);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .tp-shop-sidebar {
    display: none;
  }
}

.tp-sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-sidebar-tag {
  font-family: var(--ah-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #8e8d85;
}

.tp-sidebar-title {
  margin: 0;
  font-family: var(--ah-display);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.tp-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-sidebar-subhead {
  font-family: var(--ah-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #71717a;
  text-transform: uppercase;
}

.tp-sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-sidebar-cat-item {
  display: flex;
}

.tp-sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  color: #b8b6aa;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}

.tp-sidebar-cat-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.tp-sidebar-cat-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  border-color: rgba(229, 227, 218, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tp-cat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  margin-right: 8px;
  flex-shrink: 0;
  transition: background-color 0.16s ease;
}

.tp-sidebar-cat-link.is-active .tp-cat-dot {
  background: #7A9374;
  box-shadow: 0 0 6px rgba(122, 147, 116, 0.55);
}

.tp-cat-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-sidebar-count {
  font-family: var(--ah-mono);
  font-size: 10.5px;
  color: #8e8d85;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-left: 8px;
}

.tp-sidebar-cat-link.is-active .tp-sidebar-count {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Sidebar Availability Checkbox */
.tp-sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-sidebar-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: #b8b6aa;
  padding: 4px 0;
}

.tp-sidebar-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tp-checkbox-custom {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 227, 218, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.tp-sidebar-checkbox:checked + .tp-checkbox-custom {
  background: #ffffff;
  border-color: #ffffff;
}

.tp-sidebar-checkbox:checked + .tp-checkbox-custom::after {
  content: "✓";
  color: #000000;
  font-size: 11px;
  font-weight: 800;
}

.tp-sidebar-reset-wrap {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.tp-sidebar-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ah-mono);
  font-size: 11px;
  color: #d88d84;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(216, 141, 132, 0.08);
  border: 1px solid rgba(216, 141, 132, 0.22);
  transition: all 0.15s ease;
}

.tp-sidebar-reset-btn:hover {
  background: rgba(216, 141, 132, 0.16);
  color: #ffffff;
}

/* Right Main Shopping Column */
.tp-shop-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Toolbar: Breadcrumbs + Sort + Mobile Trigger */
.tp-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.tp-shop-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tp-shop-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ah-mono);
  font-size: 12px;
  color: #8e8d85;
}

.tp-crumb-item {
  color: #71717a;
}

.tp-crumb-sep {
  color: rgba(255, 255, 255, 0.2);
}

.tp-crumb-current {
  color: #ffffff;
  font-weight: 600;
}

.tp-shop-results-badge {
  font-family: var(--ah-mono);
  font-size: 11px;
  color: #8e8d85;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 9px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Filter Trigger Button */
.tp-mobile-filter-btn {
  display: none;
}

@media (max-width: 960px) {
  .tp-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(229, 227, 218, 0.2);
    color: #ffffff;
    font-family: var(--ah-mono);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
  }
  .tp-mobile-filter-btn:hover {
    background: rgba(255, 255, 255, 0.16);
  }
}

/* Mobile Horizontal Category Pills (Apple Smooth Horizontal Scroll) */
.tp-mobile-category-bar {
  display: none;
  margin-bottom: 16px;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 960px) {
  .tp-mobile-category-bar {
    display: block;
  }
}

.tp-mobile-category-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
}

.tp-mobile-category-scroller::-webkit-scrollbar {
  display: none;
}

.tp-mobile-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(229, 227, 218, 0.16);
  color: #b8b6aa;
  font-family: var(--ah-text, -apple-system, sans-serif);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: all 0.16s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tp-mobile-cat-pill:hover,
.tp-mobile-cat-pill:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(229, 227, 218, 0.32);
}

.tp-mobile-cat-pill.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  border-color: rgba(229, 227, 218, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tp-mobile-cat-count {
  font-family: var(--ah-mono, monospace);
  font-size: 10px;
  color: #8e8d85;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 980px;
}

.tp-mobile-cat-pill.is-active .tp-mobile-cat-count {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

/* Sorting Select Dropdown */
.tp-shop-sort-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tp-sort-apply {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(229, 227, 218, 0.2);
  border-radius: 980px;
  background: rgba(229, 227, 218, 0.08);
  color: var(--ah-paper, #e5e3da);
  font: 600 11px var(--ah-mono, monospace);
  cursor: pointer;
}
.tp-sort-apply:hover,
.tp-sort-apply:focus-visible { background: rgba(229, 227, 218, 0.16); }

.tp-sort-label {
  font-family: var(--ah-mono);
  font-size: 11.5px;
  color: #8e8d85;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .tp-sort-label {
    display: none;
  }
}

.tp-sort-select-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tp-sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(14, 16, 22, 0.95);
  border: 1px solid rgba(229, 227, 218, 0.2);
  border-radius: 980px;
  padding: 7px 30px 7px 14px;
  color: #ffffff;
  font-family: var(--ah-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.tp-sort-select:hover,
.tp-sort-select:focus {
  border-color: rgba(229, 227, 218, 0.4);
}

.tp-sort-arrow {
  position: absolute;
  right: 12px;
  color: #8e8d85;
  pointer-events: none;
}

/* Product Grid (Desktop 3-Col · Tablet 2-Col · Mobile 2-Col) */
.tp-merch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1240px) {
  .tp-merch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .tp-merch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .tp-merch-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Symmetrical Apple Obsidian + RE4 Crate Card */
.tp-merch-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  background: rgba(13, 14, 18, 0.92);
  border: 1px solid rgba(229, 227, 218, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.35s ease;
}

.tp-merch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 227, 218, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65), 0 0 24px rgba(196, 161, 106, 0.08);
}

/* 4:5 RE4 Tactical Item Stage (Blueprint Mesh + Machined Brackets) */
.tp-merch-visual-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  background-color: #07080b;
  background-image:
    linear-gradient(rgba(229, 227, 218, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 227, 218, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 50%, rgba(35, 38, 48, 0.65) 0%, rgba(7, 8, 11, 0.98) 100%);
  background-size: 20px 20px, 20px 20px, 100% 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tactical Corner Brackets (Apple Machined Metal Hairline) */
.tp-crate-bracket {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 2;
  border-color: rgba(229, 227, 218, 0.25);
  border-style: solid;
}
.tp-crate-bracket--tl {
  top: 4px;
  left: 4px;
  border-width: 1px 0 0 1px;
}
.tp-crate-bracket--tr {
  top: 4px;
  right: 4px;
  border-width: 1px 1px 0 0;
}
.tp-crate-bracket--bl {
  bottom: 4px;
  left: 4px;
  border-width: 0 0 1px 1px;
}
.tp-crate-bracket--br {
  bottom: 4px;
  right: 4px;
  border-width: 0 1px 1px 0;
}

.tp-merch-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.96) contrast(1.04);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-merch-card:hover .tp-merch-img {
  transform: scale(1.04);
}

.tp-merch-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--ah-mono);
  color: #8e8d85;
}

/* Minimalist Monolith Tactical Bezel (Apple Precision Bezel × RE4 Telemetry) */
.tp-merch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 10px;
  height: 26px;
  min-height: 26px;
  background: rgba(14, 16, 22, 0.96);
  border-bottom: 1px solid rgba(229, 227, 218, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.tp-card-header-slot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.tp-card-header-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7A9374;
  box-shadow: 0 0 6px rgba(122, 147, 116, 0.55);
  flex-shrink: 0;
}

.tp-card-header-num {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e5e3da;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-card-header-meta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.tp-card-header-pill {
  font-family: var(--ah-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 1.5px 6px;
  border-radius: 980px;
  background: rgba(196, 161, 106, 0.14);
  border: 1px solid rgba(196, 161, 106, 0.28);
  color: #d8b47a;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .tp-merch-card-header {
    height: 24px;
    min-height: 24px;
    padding: 0 8px;
  }
  .tp-card-header-dot {
    width: 4.5px;
    height: 4.5px;
  }
  .tp-card-header-num {
    font-size: 8.5px;
    letter-spacing: 0.05em;
  }
  .tp-card-header-pill {
    font-size: 7.5px;
    padding: 1px 5px;
    letter-spacing: 0.04em;
  }
}

/* Card Body Content */
.tp-merch-body {
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
}

@media (max-width: 640px) {
  .tp-merch-body {
    padding: 10px 10px 6px;
    gap: 6px;
  }
}

.tp-merch-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tp-merch-cat {
  font-family: var(--ah-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #8e8d85;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-merch-sku {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  color: #71717a;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.tp-merch-name {
  margin: 2px 0 0 0;
  font-family: var(--ah-display);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

@media (max-width: 640px) {
  .tp-merch-name {
    font-size: 13.5px;
    min-height: 38px;
    line-height: 1.35;
  }
}

.tp-merch-desc {
  margin: 0;
  font-family: var(--ah-text);
  font-size: 12.5px;
  color: #9d9b90;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .tp-merch-desc {
    -webkit-line-clamp: 3;
  }
}

/* Tactical Crate Barcode Strip */
.tp-merch-barcode-strip {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tp-merch-barcode-strip .ah-barcode-bars {
  width: 64px;
  height: 13px;
  opacity: 0.45;
}

.tp-barcode-sku {
  font-family: var(--ah-mono);
  font-size: 8.5px;
  color: #71717a;
  letter-spacing: 0.12em;
}

@media (max-width: 640px) {
  .tp-merch-barcode-strip {
    display: none; /* ซ่อนบาร์โค้ดบนมือถือ 2 คอลัมน์เพื่อความสะอาดตา */
  }
}

/* --------------------------------------------------------------------------
   3. Grounded Tactical Action Dock (Anchored at Card Bottom - No Floating)
   -------------------------------------------------------------------------- */
.tp-merch-card-dock {
  margin-top: auto;
  padding: 12px 14px 14px;
  background: rgba(9, 10, 14, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .tp-merch-card-dock {
    padding: 10px 10px 12px;
    gap: 8px;
  }
}

/* Unified Grounded Action Form */
.tp-card-dock-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Tier 1: Interactive Size & Variant Selector Chips */
.tp-dock-variants-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

.tp-variant-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(229, 227, 218, 0.16);
  color: #b8b6aa;
  font-family: var(--ah-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.tp-variant-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(229, 227, 218, 0.32);
}

.tp-variant-chip.is-selected {
  background: #d8b47a;
  color: #0b0c10;
  border-color: #d8b47a;
  box-shadow: 0 0 10px rgba(216, 180, 122, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-weight: 800;
}

.tp-variant-chip.is-sold-out {
  opacity: 0.35;
  text-decoration: line-through;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
}

/* Tier 2: Dynamic Pricing Row + Inset Apple Stepper */
.tp-dock-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.tp-dock-pricing {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tp-dock-price {
  font-family: var(--ah-display);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.tp-dock-variant-name {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  color: #8e8d85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* Apple Inset Stepper Capsule */
.tp-qty-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(229, 227, 218, 0.18);
  border-radius: 980px;
  padding: 1.5px;
  box-sizing: border-box;
  flex-shrink: 0;
  height: 28px;
}

.tp-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #e5e3da;
  font-family: var(--ah-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.tp-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.tp-stepper-btn:active {
  transform: scale(0.90);
}

.tp-qty-input {
  width: 26px;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: var(--ah-mono);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

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

/* Tier 3: Grounded Tactile Add Button (Full Width · Apple Solid Chalk · Specular Inset) */
.tp-dock-actions {
  display: flex;
  width: 100%;
}

.tp-dock-add-btn,
.tp-dock-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 980px;
  background: #e5e3da;
  color: #08090c;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 3px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  font-family: var(--ah-text, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Anuphan", "IBM Plex Sans Thai", system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: background-color 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, border-color 0.16s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tp-dock-add-btn {
  width: 100%;
}

.tp-dock-cta-btn svg {
  flex-shrink: 0;
}

.tp-dock-add-btn:hover:not(:disabled),
.tp-dock-cta-btn:hover:not(:disabled) {
  background: #ffffff;
  color: #000000;
  transform: translateY(-1px);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.tp-dock-add-btn:active:not(:disabled),
.tp-dock-cta-btn:active:not(:disabled) {
  transform: scale(0.97);
  background: #d4d1c5;
  transition: transform 0.08s ease-out;
}

.tp-dock-add-btn:disabled,
.tp-dock-cta-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.15);
  color: #8e8d85;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* Secondary Multi-Variant CTA (Apple Frosted Capsule with Arrow) */
.tp-dock-cta-btn--multi {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.tp-dock-cta-btn--multi:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.tp-dock-cta-btn--multi:active:not(:disabled) {
  transform: scale(0.97);
  transition: transform 0.08s ease-out;
}

.tp-dock-stock {
  font-family: var(--ah-mono);
  font-size: 10px;
  color: #8e8d85;
  letter-spacing: 0.02em;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-dock-empty {
  font-family: var(--ah-mono);
  font-size: 11px;
  color: #71717a;
  text-align: center;
  padding: 6px 0;
}

/* Compact action dock for narrow cards */
@media (max-width: 640px) {
  .tp-variant-chip {
    height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }
  .tp-dock-price {
    font-size: 14px;
  }
  .tp-dock-variant-name {
    font-size: 9px;
    max-width: 85px;
  }
  .tp-qty-stepper {
    height: 26px;
    padding: 1px;
  }
  .tp-stepper-btn {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
  .tp-qty-input {
    width: 22px;
    font-size: 11px;
  }
  .tp-dock-add-btn {
    height: 34px;
    font-size: 11px;
  }
  .tp-dock-cta-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 10.5px;
    gap: 4px;
  }
  .tp-dock-stock {
    font-size: 9px;
  }
}

/* --------------------------------------------------------------------------
   4. RE4 Tactical Variant Inspection Sheet (Native Dialog Modal)
   -------------------------------------------------------------------------- */
.tp-variant-sheet {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 480px;
  width: calc(100% - 32px);
  color: #e5e3da;
  outline: none;
  overscroll-behavior: contain;
}

.tp-variant-sheet::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: tp-fade-in 0.25s ease forwards;
}

.tp-variant-sheet-panel {
  display: flex;
  flex-direction: column;
  background: rgba(15, 16, 21, 0.96);
  border: 1px solid rgba(229, 227, 218, 0.16);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(196, 161, 106, 0.08);
  overflow: hidden;
  overscroll-behavior: contain;
  animation: tp-scale-up 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tp-sheet-drag-handle {
  display: none;
  width: 36px;
  height: 4px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.25);
  margin: 10px auto 4px;
}

.tp-variant-sheet-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.tp-variant-sheet-thumb {
  width: 52px;
  height: 65px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.tp-sheet-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-sheet-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--ah-mono);
  font-size: 11px;
  color: #71717a;
}

.tp-variant-sheet-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.tp-sheet-sku {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  color: #71717a;
  letter-spacing: 0.1em;
}

.tp-sheet-title {
  margin: 0;
  font-family: var(--ah-display);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.tp-sheet-subtitle {
  font-family: var(--ah-mono);
  font-size: 11px;
  color: #8e8d85;
}

.tp-sheet-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e3da;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.tp-sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.tp-variant-sheet-body {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
}

.tp-variant-sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-sheet-row-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-sheet-row-name {
  font-family: var(--ah-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: #e5e3da;
}

.tp-sheet-row-price {
  font-family: var(--ah-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.tp-sheet-row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tp-variant-sheet-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 11, 14, 0.6);
}

.tp-sheet-footnote {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  color: #71717a;
  letter-spacing: 0.1em;
}

.tp-sheet-done-btn {
  padding: 6px 14px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #e5e3da;
  font-family: var(--ah-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tp-sheet-done-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Mobile Sheet Slide-Up */
@media (max-width: 640px) {
  .tp-variant-sheet {
    max-width: 100%;
    width: 100%;
    margin-bottom: 0;
  }
  .tp-variant-sheet-panel {
    border-radius: 20px 20px 0 0;
    animation: tp-slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .tp-sheet-drag-handle {
    display: block;
  }
}

@keyframes tp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tp-scale-up {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes tp-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Shop Layout Container & Catalogue Header */
section[aria-labelledby="catalogue-title"] {
  --ah-com-max-width: 1180px;
  --ah-com-pad-x: 24px;
  padding-top: clamp(28px, 5vw, 48px);
  padding-bottom: 80px;
}

@media (max-width: 640px) {
  section[aria-labelledby="catalogue-title"] {
    --ah-com-pad-x: 14px;
    padding-top: 18px;
    padding-bottom: 60px;
  }
}

section[aria-labelledby="catalogue-title"] > .tp-commerce-header {
  margin: 0 0 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(229, 227, 218, 0.14);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(17, 18, 22, 0.96), rgba(9, 10, 13, 0.9));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 12px 30px rgba(0, 0, 0, 0.24);
}

.tp-merch-name a {
  color: inherit;
  text-decoration: none;
}

.tp-merch-name a:hover {
  text-decoration: underline;
  text-decoration-color: #c4a16a;
  text-underline-offset: 3px;
}

.tp-merch-name a:focus-visible,
.tp-merch-detail-link:focus-visible,
.tp-product-back:focus-visible,
.tp-product-buy-form :focus-visible {
  outline: 2px solid #e5e3da;
  outline-offset: 3px;
}

.tp-dock-cta-btn.is-loading,
.tp-dock-add-btn.is-loading,
.tp-product-add-button.is-loading {
  cursor: progress;
}

.tp-dock-cta-btn.is-loading svg,
.tp-dock-add-btn.is-loading svg {
  display: none;
}

.tp-dock-cta-btn.is-loading::before,
.tp-dock-add-btn.is-loading::before,
.tp-product-add-button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tp-cart-spin 0.7s linear infinite;
}

@keyframes tp-cart-spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   5. Apple Minimalist Pagination
   -------------------------------------------------------------------------- */
.tp-shop-pagination {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 0 8px;
  border-top: 1px solid rgba(229, 227, 218, 0.1);
}

.tp-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 227, 218, 0.18);
  color: #e5e3da;
  font-family: var(--ah-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  user-select: none;
}

.tp-page-btn:hover:not(.tp-page-btn--disabled) {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(229, 227, 218, 0.35);
  transform: translateY(-1px);
}

.tp-page-btn--disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.06);
}

.tp-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tp-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 50%;
  font-family: var(--ah-mono);
  font-size: 12px;
  font-weight: 700;
  color: #8e8d85;
  text-decoration: none;
  transition: all 0.15s ease;
}

.tp-page-num:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.tp-page-num.is-active {
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .tp-shop-pagination {
    margin-top: 24px;
    gap: 8px;
    padding: 16px 0 4px;
  }
  .tp-page-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  .tp-page-num {
    min-width: 30px;
    height: 30px;
    font-size: 11px;
  }
}

/* --------------------------------------------------------------------------
   6. Mobile Filter Bottom Sheet Drawer
   -------------------------------------------------------------------------- */
.tp-mobile-drawer {
  max-width: 440px;
}

.tp-mobile-drawer .tp-variant-sheet-panel {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.tp-mobile-drawer .tp-variant-sheet-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(85vh - 130px);
}

.tp-drawer-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 960px) {
  .tp-mobile-drawer {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
  }
  .tp-mobile-drawer .tp-variant-sheet-panel {
    border-radius: 20px 20px 0 0;
    animation: tp-slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .tp-mobile-drawer .tp-sheet-drag-handle {
    display: block;
  }
}

@media (max-width: 767px) {
  section[aria-labelledby="catalogue-title"] > .tp-commerce-header {
    margin-bottom: 20px;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .tp-commerce-title-row { gap: 8px 12px; }
  .tp-commerce-subtitle { max-width: 60ch; }
}

/* Catalogue refinement: grounded RE4 inventory cards with the existing palette. */
section[aria-labelledby="catalogue-title"] {
  --ah-com-max-width: 1180px;
  --ah-com-pad-x: clamp(14px, 2vw, 24px);
}

section[aria-labelledby="catalogue-title"] .tp-shop-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

section[aria-labelledby="catalogue-title"] .tp-shop-sidebar {
  display: none;
}

section[aria-labelledby="catalogue-title"] .tp-merch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

section[aria-labelledby="catalogue-title"] .tp-merch-card,
#shop-drops .tp-merch-card {
  border-radius: 12px;
  background: rgba(13, 14, 18, 0.98);
  border-color: rgba(229, 227, 218, 0.2);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

section[aria-labelledby="catalogue-title"] .tp-merch-card:hover,
#shop-drops .tp-merch-card:hover {
  transform: none;
  border-color: rgba(229, 227, 218, 0.34);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

section[aria-labelledby="catalogue-title"] .tp-merch-visual-frame,
#shop-drops .tp-merch-visual-frame {
  aspect-ratio: 4 / 5;
  background: #15161b;
  background-image: none;
}

section[aria-labelledby="catalogue-title"] .tp-merch-img,
#shop-drops .tp-merch-img {
  box-sizing: border-box;
  padding: 0;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.98) contrast(1.02);
  transition: transform 0.24s ease;
}

section[aria-labelledby="catalogue-title"] .tp-merch-card:hover .tp-merch-img,
#shop-drops .tp-merch-card:hover .tp-merch-img {
  transform: scale(1.02);
}

section[aria-labelledby="catalogue-title"] .tp-card-header-dot,
section[aria-labelledby="catalogue-title"] .ah-cctv-noise,
section[aria-labelledby="catalogue-title"] .tp-merch-barcode-strip,
#shop-drops .tp-card-header-dot,
#shop-drops .ah-cctv-noise,
#shop-drops .tp-merch-barcode-strip {
  display: none;
}

section[aria-labelledby="catalogue-title"] .tp-merch-card-header,
#shop-drops .tp-merch-card-header {
  height: 28px;
  min-height: 28px;
  padding-inline: 12px;
  background: rgba(19, 20, 26, 0.98);
  border-color: rgba(229, 227, 218, 0.14);
  box-shadow: none;
}

section[aria-labelledby="catalogue-title"] .tp-card-header-num,
#shop-drops .tp-card-header-num {
  color: #8e8d85;
  font-size: 9px;
  letter-spacing: 0.04em;
}

section[aria-labelledby="catalogue-title"] .tp-merch-body,
#shop-drops .tp-merch-body {
  gap: 6px;
  padding: 12px 14px 8px;
}

section[aria-labelledby="catalogue-title"] .tp-merch-name,
#shop-drops .tp-merch-name {
  min-height: 2.76em;
  font-size: 15px;
  line-height: 1.38;
  text-wrap: pretty;
}

section[aria-labelledby="catalogue-title"] .tp-merch-desc,
#shop-drops .tp-merch-desc {
  -webkit-line-clamp: 2;
}

section[aria-labelledby="catalogue-title"] .tp-merch-card-dock,
#shop-drops .tp-merch-card-dock {
  gap: 8px;
  padding: 12px 14px 14px;
  background: rgba(17, 18, 22, 0.98);
  border-color: rgba(229, 227, 218, 0.14);
  box-shadow: none;
}

section[aria-labelledby="catalogue-title"] .tp-dock-pricing-row,
#shop-drops .tp-dock-pricing-row {
  align-items: center;
  gap: 10px;
}

section[aria-labelledby="catalogue-title"] .tp-dock-price,
#shop-drops .tp-dock-price {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

section[aria-labelledby="catalogue-title"] .tp-dock-cta-btn,
#shop-drops .tp-dock-cta-btn {
  min-height: 42px;
}

section[aria-labelledby="catalogue-title"] .tp-mobile-filter-btn {
  min-height: 44px;
}

section[aria-labelledby="catalogue-title"] .tp-shop-toolbar {
  align-items: center;
}

section[aria-labelledby="catalogue-title"] .tp-variant-sheet,
#shop-drops .tp-variant-sheet {
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  overscroll-behavior: contain;
}

section[aria-labelledby="catalogue-title"] .tp-variant-sheet-panel,
#shop-drops .tp-variant-sheet-panel {
  max-height: inherit;
  background: rgba(15, 16, 21, 0.99);
  border-color: rgba(229, 227, 218, 0.22);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.58);
  animation: none;
}

section[aria-labelledby="catalogue-title"] .tp-variant-sheet-body,
#shop-drops .tp-variant-sheet-body {
  min-height: 0;
  max-height: 60dvh;
  overscroll-behavior: contain;
}

section[aria-labelledby="catalogue-title"] .tp-sheet-close-btn,
#shop-drops .tp-sheet-close-btn {
  width: 44px;
  height: 44px;
}

section[aria-labelledby="catalogue-title"] .tp-shop-pagination {
  margin-top: 24px;
  gap: 8px;
  flex-wrap: wrap;
}

section[aria-labelledby="catalogue-title"] .tp-page-btn,
section[aria-labelledby="catalogue-title"] .tp-page-num {
  min-height: 44px;
}

section[aria-labelledby="catalogue-title"] :is(a, button, select):focus-visible {
  outline: 2px solid #e5e3da;
  outline-offset: 3px;
}

@media (min-width: 360px) and (max-width: 767px) {
  section[aria-labelledby="catalogue-title"] .tp-merch-grid {
    gap: 12px;
  }

  section[aria-labelledby="catalogue-title"] .tp-merch-body {
    padding: 10px 10px 6px;
  }

  section[aria-labelledby="catalogue-title"] .tp-merch-name {
    font-size: 13.5px;
  }

  section[aria-labelledby="catalogue-title"] .tp-merch-card-dock {
    padding: 10px;
  }

  section[aria-labelledby="catalogue-title"] .tp-dock-pricing-row {
    align-items: stretch;
    flex-direction: column;
  }

  section[aria-labelledby="catalogue-title"] .tp-dock-cta-btn {
    width: 100%;
    min-height: 44px;
    padding-inline: 6px;
    font-size: 10px;
  }

  section[aria-labelledby="catalogue-title"] .tp-dock-cta-btn svg {
    display: none;
  }

  section[aria-labelledby="catalogue-title"] .tp-shop-toolbar {
    align-items: stretch;
  }

  section[aria-labelledby="catalogue-title"] .tp-shop-toolbar-left,
  section[aria-labelledby="catalogue-title"] .tp-shop-toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  section[aria-labelledby="catalogue-title"] .tp-sort-select {
    max-width: 100%;
  }

  section[aria-labelledby="catalogue-title"] .tp-variant-sheet.tp-mobile-drawer {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
  }

  section[aria-labelledby="catalogue-title"] .tp-mobile-drawer .tp-variant-sheet-panel {
    max-height: 92dvh;
    border-radius: 14px 14px 0 0;
  }

  section[aria-labelledby="catalogue-title"] .tp-mobile-drawer .tp-variant-sheet-body {
    max-height: calc(92dvh - 150px);
  }
}

@media (max-width: 359px) {
  section[aria-labelledby="catalogue-title"] .tp-merch-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 360px) and (max-width: 420px) {
  section[aria-labelledby="catalogue-title"] .tp-merch-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  section[aria-labelledby="catalogue-title"] .tp-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  section[aria-labelledby="catalogue-title"] .tp-merch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  section[aria-labelledby="catalogue-title"] .tp-shop-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }

  section[aria-labelledby="catalogue-title"] .tp-shop-sidebar {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    border-color: rgba(229, 227, 218, 0.18);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  }

  section[aria-labelledby="catalogue-title"] .tp-merch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* Catalogue-only grounding surface for dynamic CCTV / campaign backdrops. */
section[aria-labelledby="catalogue-title"] .tp-shop-layout {
  min-width: 0;
  padding: clamp(12px, 1.8vw, 20px);
  border: 1px solid rgba(229, 227, 218, 0.2);
  border-radius: 16px;
  background: rgba(10, 11, 14, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.035);
}

section[aria-labelledby="catalogue-title"] .tp-shop-main,
section[aria-labelledby="catalogue-title"] .tp-merch-grid,
section[aria-labelledby="catalogue-title"] .tp-merch-card {
  min-width: 0;
}

section[aria-labelledby="catalogue-title"][aria-busy="true"] .tp-shop-main {
  opacity: 0.58;
  transition: opacity 160ms ease;
}

@media (prefers-reduced-motion: reduce) {
  section[aria-labelledby="catalogue-title"] .tp-shop-main { transition: none; }
}

section[aria-labelledby="catalogue-title"] .tp-shop-sidebar {
  align-self: start;
  background: rgba(18, 19, 23, 0.98);
  box-shadow: none;
}

section[aria-labelledby="catalogue-title"] .tp-merch-card {
  overflow: hidden;
}

/* Reset shared header spacing inside catalogue components. */
section[aria-labelledby="catalogue-title"] :is(
  .tp-sidebar-header,
  .tp-merch-card-header,
  .tp-variant-sheet-header
) {
  margin: 0;
}

section[aria-labelledby="catalogue-title"] .tp-merch-visual-frame {
  overflow: hidden;
  background-color: #191a1f;
  border-color: rgba(229, 227, 218, 0.16);
}

section[aria-labelledby="catalogue-title"] .tp-merch-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 20px;
  color: #a8a69d;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(145deg, #1d1e23, #15161a 70%);
}

section[aria-labelledby="catalogue-title"] .tp-merch-placeholder span {
  font-family: var(--ah-sans, inherit);
  font-size: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
}

section[aria-labelledby="catalogue-title"] .tp-merch-placeholder span::after {
  content: "ไม่มีภาพสินค้า";
  font-size: 12px;
}

section[aria-labelledby="catalogue-title"] .tp-merch-placeholder small {
  display: none;
}

section[aria-labelledby="catalogue-title"] .tp-shop-toolbar {
  min-width: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(229, 227, 218, 0.12);
}

section[aria-labelledby="catalogue-title"] .tp-shop-pagination {
  border-top-color: rgba(229, 227, 218, 0.12);
}

section[aria-labelledby="catalogue-title"] .tp-shop-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.8fr);
  grid-template-areas: "left search" "right right";
  align-items: center;
}

section[aria-labelledby="catalogue-title"] .tp-shop-toolbar-left { grid-area: left; }
section[aria-labelledby="catalogue-title"] .tp-shop-search { grid-area: search; }
section[aria-labelledby="catalogue-title"] .tp-shop-toolbar-right { grid-area: right; }

section[aria-labelledby="catalogue-title"] .tp-shop-search {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(229, 227, 218, 0.2);
  border-radius: 10px;
  background: rgba(14, 16, 22, 0.96);
}

section[aria-labelledby="catalogue-title"] .tp-shop-search:focus-within {
  border-color: rgba(229, 227, 218, 0.54);
  box-shadow: 0 0 0 2px rgba(229, 227, 218, 0.12);
}

section[aria-labelledby="catalogue-title"] .tp-shop-search input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: #e5e3da;
  background: transparent;
  font: inherit;
}

section[aria-labelledby="catalogue-title"] .tp-shop-search input::placeholder {
  color: #8e8d85;
  opacity: 1;
}

section[aria-labelledby="catalogue-title"] .tp-shop-search button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 0 9px 9px 0;
  color: #111216;
  background: #e5e3da;
  cursor: pointer;
}

section[aria-labelledby="catalogue-title"] .tp-shop-search button:hover {
  background: #ffffff;
}

section[aria-labelledby="catalogue-title"] .tp-catalogue-stock-form {
  margin: 0;
}

section[aria-labelledby="catalogue-title"] .tp-shop-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 18px;
}

section[aria-labelledby="catalogue-title"] .tp-filter-chip,
section[aria-labelledby="catalogue-title"] .tp-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  max-width: 100%;
  padding: 6px 11px;
  border: 1px solid rgba(229, 227, 218, 0.18);
  border-radius: 999px;
  color: #d8d6ce;
  background: rgba(19, 20, 26, 0.96);
  font-size: 12px;
  text-decoration: none;
}

section[aria-labelledby="catalogue-title"] .tp-filter-chip span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

section[aria-labelledby="catalogue-title"] .tp-filter-chip span:last-child {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

section[aria-labelledby="catalogue-title"] .tp-filter-clear {
  color: #e5e3da;
  background: transparent;
}

section[aria-labelledby="catalogue-title"] .tp-shop-range {
  margin: 0 0 12px;
  color: #a8a69d;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 1200px) {
  section[aria-labelledby="catalogue-title"] .tp-shop-toolbar {
    grid-template-columns: minmax(0, auto) minmax(200px, 1fr) auto;
    grid-template-areas: "left search right";
  }
}

@media (max-width: 767px) {
  section[aria-labelledby="catalogue-title"] .tp-shop-layout {
    padding: 12px;
    border-radius: 14px;
  }

  section[aria-labelledby="catalogue-title"] .tp-shop-toolbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "search" "left" "right";
    gap: 12px;
  }

  section[aria-labelledby="catalogue-title"] .tp-shop-toolbar-left {
    width: auto;
    justify-content: flex-start;
  }

  section[aria-labelledby="catalogue-title"] .tp-shop-toolbar-right {
    width: auto;
    justify-content: space-between;
  }

  section[aria-labelledby="catalogue-title"] .tp-shop-active-filters {
    margin-top: -4px;
  }

  section[aria-labelledby="catalogue-title"] .tp-dock-pricing-row {
    gap: 8px;
  }
}

@media (max-width: 359px) {
  section[aria-labelledby="catalogue-title"] .tp-shop-layout {
    padding: 10px;
  }

  section[aria-labelledby="catalogue-title"] .tp-shop-toolbar-right {
    align-items: stretch;
    flex-direction: column;
  }

  section[aria-labelledby="catalogue-title"] .tp-mobile-filter-btn,
  section[aria-labelledby="catalogue-title"] .tp-shop-sort-wrap,
  section[aria-labelledby="catalogue-title"] .tp-sort-select-box,
  section[aria-labelledby="catalogue-title"] .tp-sort-select {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  section[aria-labelledby="catalogue-title"] *,
  section[aria-labelledby="catalogue-title"] *::before,
  section[aria-labelledby="catalogue-title"] *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Product Detail Page (Apple Store Buy Studio × RE4 Item Inspection)
   ========================================================================== */
.tp-product-detail {
  --ah-com-max-width: 1140px;
  --ah-com-pad-x: 20px;
  padding-top: clamp(24px, 4vw, 44px);
  padding-bottom: 80px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .tp-product-detail {
    --ah-com-pad-x: 14px;
    padding-top: 16px;
    padding-bottom: 60px;
  }
}

/* Minimalist Back Navigation Capsule */
.tp-product-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.tp-product-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(229, 227, 218, 0.16);
  color: #c2c0b6;
  font-family: var(--ah-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tp-product-back:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(229, 227, 218, 0.32);
  transform: translateX(-2px);
}

.tp-back-arrow {
  font-size: 13px;
  line-height: 1;
}

.tp-product-nav-badge {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: #71717a;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .tp-product-nav-row {
    margin-bottom: 14px;
  }
  .tp-product-nav-badge {
    display: none;
  }
}

/* Two-Column Studio Layout */
.tp-product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  min-width: 0;
}

.tp-product-detail-layout > * {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Left Column: Sticky RE4 Tactical Item Inspection Stage
   -------------------------------------------------------------------------- */
.tp-product-detail-visual {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  background: rgba(12, 13, 17, 0.94);
  border: 1px solid rgba(229, 227, 218, 0.16);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.tp-stage-telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 32px;
  background: rgba(16, 18, 24, 0.96);
  border-bottom: 1px solid rgba(229, 227, 218, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tp-stage-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tp-stage-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7A9374;
  box-shadow: 0 0 8px rgba(122, 147, 116, 0.55);
}

.tp-stage-code {
  font-family: var(--ah-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e5e3da;
}

.tp-stage-tag {
  font-family: var(--ah-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1.5px 6px;
  border-radius: 980px;
  background: rgba(196, 161, 106, 0.14);
  border: 1px solid rgba(196, 161, 106, 0.28);
  color: #d8b47a;
}

/* Spotlight Pedestal Stage (Radial Spotlight Mesh + Brackets) */
.tp-stage-pedestal {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #06070a;
  background-image:
    linear-gradient(rgba(229, 227, 218, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 227, 218, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 50%, rgba(55, 62, 80, 0.55) 0%, rgba(7, 8, 12, 0.98) 75%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-stage-pedestal .tp-merch-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 18px;
  box-sizing: border-box;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.8)) brightness(0.98) contrast(1.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-image-zoom-trigger {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.tp-image-zoom-trigger:focus-visible,
.tp-gallery-thumbnail:focus-visible,
.tp-detail-secondary-action:focus-visible,
.tp-size-chart-trigger:focus-visible {
  outline: 2px solid #d8b47a;
  outline-offset: -3px;
}

.tp-product-gallery-thumbnails {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  background: rgba(9, 10, 13, 0.96);
  border-top: 1px solid rgba(229, 227, 218, 0.1);
}

.tp-gallery-thumbnail {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 3px;
  border: 1px solid rgba(229, 227, 218, 0.2);
  border-radius: 8px;
  background: #17181b;
  cursor: pointer;
}

.tp-gallery-thumbnail.is-active { border-color: #c4a16a; }
.tp-gallery-thumbnail img { width: 100%; height: 100%; object-fit: contain; }

.tp-stage-pedestal:hover .tp-merch-img {
  transform: scale(1.03);
}

.tp-stage-pedestal .tp-merch-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--ah-mono);
  color: #8e8d85;
}

.tp-stage-telemetry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 28px;
  background: rgba(10, 11, 15, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--ah-mono);
  font-size: 9px;
  color: #71717a;
  letter-spacing: 0.06em;
}

/* Mobile Stage Optimization: Avoid claustrophobia */
@media (max-width: 860px) {
  .tp-product-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .tp-product-detail-visual {
    position: static;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
  .tp-stage-pedestal {
    aspect-ratio: auto;
    height: clamp(240px, 42vh, 320px);
  }
  .tp-stage-pedestal .tp-merch-img {
    padding: 12px;
  }
}

/* --------------------------------------------------------------------------
   Right Column: Apple Buy Studio & Tactical Configuration
   -------------------------------------------------------------------------- */
.tp-product-detail-content {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: 20px;
  background: rgba(14, 15, 20, 0.94);
  border: 1px solid rgba(229, 227, 218, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .tp-product-detail-content {
    padding: 16px 14px 20px;
    border-radius: 16px;
  }
}

.tp-detail-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tp-detail-description-accordion {
  margin: 14px 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(229, 227, 218, 0.12);
  border-radius: 12px;
  background: rgba(9, 10, 13, 0.62);
}
.tp-detail-description-accordion summary { cursor: pointer; font-weight: 600; }
.tp-detail-description-accordion summary:focus-visible { outline: 2px solid #d8b47a; outline-offset: 3px; }
.tp-detail-description-accordion .tp-detail-description { margin-top: 12px; }
.tp-section-label-row { flex-wrap: wrap; }
.tp-size-chart-trigger {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid rgba(196, 161, 106, 0.42);
  border-radius: 8px;
  color: #d8b47a;
  background: rgba(196, 161, 106, 0.08);
  cursor: pointer;
}
.tp-detail-retention-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.tp-detail-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid rgba(229, 227, 218, 0.18);
  border-radius: 10px;
  color: #e5e3da;
  background: rgba(9, 10, 13, 0.7);
  cursor: pointer;
}
.tp-detail-secondary-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-detail-secondary-action.is-saved { color: #d8b47a; border-color: rgba(196, 161, 106, 0.55); }
.tp-detail-secondary-action.is-saved svg path:first-child { fill: currentColor; }
.tp-detail-secondary-action:disabled { opacity: .6; cursor: wait; }
.tp-detail-wishlist-link { align-self: center; margin-top: 9px; color: #aaa89e; font-size: .82rem; text-underline-offset: 3px; }
.tp-retention-feedback:empty { display: none; }
.tp-retention-feedback { min-height: 20px; margin: 4px 0 0; color: #c4a16a; font-size: .82rem; text-align: center; }

.tp-product-image-dialog {
  position: fixed;
  width: min(92vw, 1050px);
  max-width: none;
  max-height: 90dvh;
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(229, 227, 218, 0.22);
  border-radius: 16px;
  background: rgba(10, 11, 14, 0.98);
  color: #e5e3da;
}
.tp-product-image-dialog::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(5px); }
.tp-product-image-dialog > img { display: block; max-width: 100%; max-height: calc(90dvh - 44px); object-fit: contain; margin: auto; }
.tp-product-image-dialog-close {
  position: sticky; top: 0; z-index: 1; display: block; margin: -10px -8px 6px auto;
  width: 44px; height: 44px; border: 1px solid rgba(229, 227, 218, .2); border-radius: 50%;
  color: #e5e3da; background: #17181b; font-size: 1.5rem; cursor: pointer;
}
.tp-size-chart-dialog { width: min(92vw, 800px); }

.tp-related-products { margin-top: clamp(32px, 5vw, 60px); }
.tp-related-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.tp-related-heading h2 { margin: 8px 0 0; font-size: clamp(1.25rem, 2.4vw, 1.8rem); }
.tp-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tp-related-grid.is-scrollable { min-width: 0; max-width: 100%; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); grid-template-columns: none; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: rgba(196, 161, 106, .55) transparent; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.tp-related-grid.is-scrollable > .tp-related-card { scroll-snap-align: start; }
.tp-related-card { min-width: 0; overflow: hidden; border: 1px solid rgba(229, 227, 218, .14); border-radius: 12px; background: rgba(14, 15, 20, .96); }
.tp-related-image { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: #17181b; color: #aaa89e; }
.tp-related-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.tp-related-card-meta { display: grid; gap: 5px; padding: 12px; }
.tp-related-card-meta a { overflow: hidden; color: #e5e3da; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tp-related-card-meta span { color: #c4a16a; font-size: .9rem; }

@media (max-width: 1024px) {
  .tp-related-grid:not(.is-scrollable) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .tp-related-grid:not(.is-scrollable) {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .tp-related-grid.is-scrollable {
    grid-auto-columns: min(260px, 78vw);
    gap: 12px;
    scroll-padding-inline: 1px;
  }

  .tp-related-card-meta {
    gap: 4px;
    padding: 10px;
  }

  .tp-related-card-meta a {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .tp-related-image img {
    padding: 6px;
  }
}

/* --------------------------------------------------------------------------
   Wishlist Redesign · Jakob's Law Telemetry & Tactical Stash (Task 2.0)
   -------------------------------------------------------------------------- */
.tp-wishlist-page {
  padding-bottom: 64px;
}

.tp-wishlist-header {
  margin-bottom: 28px;
  padding: 24px 28px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.88) 0%, rgba(13, 14, 18, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  position: relative;
}

.tp-wishlist-header .ah-booking-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tp-wishlist-header .ah-back-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e3da;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-wishlist-header .ah-back-capsule:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateX(-2px);
}

.tp-wishlist-header .ah-nav-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a8a29e;
  font-size: 12px;
  font-family: var(--ah-mono, ui-monospace, monospace);
  letter-spacing: 0.04em;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.tp-wishlist-header .ah-nav-category-tag strong {
  color: #f5f4ef;
  font-weight: 700;
}

.tp-wishlist-header .ah-nav-tag-prefix {
  display: inline;
}

@media (max-width: 559px) {
  .tp-wishlist-header .ah-nav-tag-prefix {
    display: none;
  }

  .tp-wishlist-header .ah-booking-nav-row {
    gap: 8px;
    margin-bottom: 12px;
  }

  .tp-wishlist-header .ah-back-capsule {
    min-height: 34px;
    padding: 5px 11px;
    font-size: 12px;
    gap: 6px;
  }

  .tp-wishlist-header .ah-nav-category-tag {
    padding: 4.5px 10px;
    font-size: 11.5px;
    gap: 6px;
  }
}

@media (max-width: 359px) {
  .tp-wishlist-header .ah-booking-nav-row {
    gap: 6px;
  }

  .tp-wishlist-header .ah-back-capsule {
    min-height: 32px;
    padding: 4px 9px;
    font-size: 11px;
  }

  .tp-wishlist-header .ah-nav-category-tag {
    padding: 4px 8px;
    font-size: 11px;
    gap: 5px;
  }
}

.tp-wishlist-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tp-commerce-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(122, 147, 116, 0.14);
  border: 1px solid rgba(122, 147, 116, 0.35);
  color: #7a9374;
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.tp-wishlist-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tp-wishlist-header .tp-product-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a8a29e;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
}

.tp-wishlist-header .tp-product-back:hover {
  color: #f5f4ef;
  transform: translateX(-2px);
}

.tp-wishlist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(229, 227, 218, 0.08);
  border: 1px solid rgba(229, 227, 218, 0.20);
  color: #f5f4ef;
  font-size: 0.8rem;
  font-family: var(--ah-mono, ui-monospace, monospace);
  letter-spacing: 0.04em;
}

.tp-wishlist-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7a9374;
  box-shadow: 0 0 8px rgba(122, 147, 116, 0.7);
  flex-shrink: 0;
}

.tp-wishlist-badge strong {
  color: #f5f4ef;
  font-weight: 700;
}

.tp-wishlist-title-wrap {
  display: grid;
  gap: 6px;
}

.tp-wishlist-title-wrap .tp-commerce-main-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.tp-wishlist-tag {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(229, 227, 218, 0.12);
  color: #e5e3da;
  border: 1px solid rgba(229, 227, 218, 0.28);
}

/* Device Sync Card */
.tp-wishlist-sync-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 21, 26, 0.95), rgba(26, 28, 34, 0.88));
  border: 1px solid rgba(229, 227, 218, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(229, 227, 218, 0.04);
}

.tp-wishlist-sync-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(229, 227, 218, 0.08);
  border: 1px solid rgba(229, 227, 218, 0.24);
  color: #e5e3da;
}

.tp-wishlist-sync-info {
  flex: 1 1 auto;
  min-width: 0;
}

.tp-wishlist-sync-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f5f4ef;
  margin-bottom: 2px;
}

.tp-wishlist-sync-desc {
  font-size: 0.82rem;
  color: #a8a29e;
  margin: 0;
  line-height: 1.4;
}

.tp-wishlist-sync-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 8px;
  background: #e5e3da;
  color: #0e0f12;
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(229, 227, 218, 0.2);
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.tp-wishlist-sync-btn:hover {
  transform: translateY(-1px);
  background: #f0eee6;
}

.tp-wishlist-status {
  min-height: 20px;
  margin: 0 0 12px;
  color: #d4a373;
  font-size: 0.85rem;
}

/* Wishlist Grid */
.tp-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.tp-wishlist-page .tp-merch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(14, 16, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.24s ease;
}

.tp-wishlist-page .tp-merch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tp-wishlist-page .tp-merch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-card-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tp-wishlist-card-cat {
  font-size: 10px;
  color: #7A9374;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.tp-wishlist-page .tp-merch-image-wrap {
  position: relative;
  width: 100%;
}

.tp-wishlist-page .tp-merch-visual-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: #111216;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.tp-wishlist-page .tp-merch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.98) contrast(1.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-wishlist-page .tp-merch-card:hover .tp-merch-img {
  transform: scale(1.03);
}

/* Apple Tactical Obsidian Glass Heart Button (Opposite to Floating Badge) */
.tp-wishlist-page .tp-wishlist-heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgba(18, 20, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: #c4514b; /* Tactical Crimson - zero neon */
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.tp-wishlist-page .tp-wishlist-heart-btn:hover {
  transform: scale(1.08);
  background: rgba(28, 30, 38, 0.94);
  border-color: rgba(196, 81, 75, 0.55);
  color: #d9625b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 12px rgba(196, 81, 75, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.tp-wishlist-page .tp-wishlist-heart-btn:active {
  transform: scale(0.92);
}

.tp-wishlist-page .tp-wishlist-heart-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.tp-wishlist-page .tp-wishlist-heart-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Zero-Neon Floating Stock Badge */
.tp-wishlist-page .tp-floating-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(18, 24, 20, 0.88);
  color: #7A9374; /* Tactical Sage Green */
  border: 1px solid rgba(122, 147, 116, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  white-space: nowrap !important;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-wishlist-page .tp-floating-badge--soldout {
  background: rgba(24, 24, 27, 0.88);
  color: #9c9a94;
  border-color: rgba(156, 154, 148, 0.25);
  white-space: nowrap !important;
}

.tp-wishlist-page .tp-floating-badge--low {
  background: rgba(36, 25, 18, 0.88);
  color: #C48E59; /* Tactical Amber */
  border-color: rgba(196, 142, 89, 0.35);
  white-space: nowrap !important;
}

.tp-wishlist-page .tp-floating-badge--date {
  background: rgba(14, 16, 21, 0.92);
  color: #F5F5F7;
  border-color: rgba(122, 147, 116, 0.35);
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-size: 10px;
  white-space: nowrap !important;
}

/* Card Body */
.tp-wishlist-page .tp-merch-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 10px;
  flex: 1 1 auto;
}

.tp-wishlist-page .tp-merch-name {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 600;
  text-wrap: pretty;
  min-height: 2.8em;
}

.tp-wishlist-page .tp-merch-name a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.16s ease;
}

.tp-wishlist-page .tp-merch-name a:hover {
  color: #ffffff;
  opacity: 0.85;
}

/* Card Dock */
.tp-wishlist-page .tp-merch-card-dock {
  margin-top: auto;
  gap: 8px;
  padding: 12px 16px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-wishlist-page .tp-dock-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

.tp-wishlist-page .tp-dock-price {
  font-family: var(--ah-display);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.tp-wishlist-page .tp-dock-cta-btn {
  background: #f5f5f7 !important;
  color: #0c0d11 !important;
  border-radius: 980px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 9px 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, background-color 0.16s ease !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-shrink: 0;
}

.tp-wishlist-page .tp-dock-cta-btn:hover {
  background: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.tp-wishlist-page .tp-dock-cta-btn:active {
  transform: scale(0.97) !important;
}

.tp-wishlist-page .tp-dock-cta-btn--multi {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f5f4ef !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-shrink: 0;
}
}

.tp-wishlist-page .tp-dock-cta-btn--multi:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.tp-wishlist-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: #a8a29e;
  font-size: 0.9rem;
}

/* Apple Account Modal Slab */
.tp-wishlist-auth-gate {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 16px 90px;
}

.tp-auth-gate-card {
  position: relative;
  max-width: 540px;
  width: 100%;
  padding: 48px 36px 42px;
  text-align: center;
  border-radius: 24px;
  background: rgba(14, 16, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.tp-auth-gate-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 22px;
}

.tp-auth-gate-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7a9374;
  box-shadow: 0 0 8px rgba(122, 147, 116, 0.75);
}

.tp-auth-gate-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  margin: 0 auto 22px;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.08);
}

.tp-auth-gate-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.tp-auth-gate-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.tp-auth-gate-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tp-auth-gate-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 980px;
  background: #ffffff;
  color: #000000 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.16s ease, background-color 0.16s ease;
}

.tp-auth-gate-btn-login:hover {
  transform: translateY(-1px);
  background: #f5f5f7;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.3);
}

.tp-auth-gate-btn-login:active {
  transform: scale(0.97);
}

.tp-auth-gate-btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.16s ease, border-color 0.16s ease;
}

.tp-auth-gate-btn-register:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.tp-auth-gate-btn-register:active {
  transform: scale(0.97);
}

/* Cupertino Segmented Tabs Controller (Apple Recessed Milled Track × RE4 Shutter Segment) */
.tp-wishlist-header .tp-wishlist-tabs-wrap,
.tp-wishlist-tabs-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-wishlist-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: linear-gradient(180deg, rgba(14, 16, 22, 0.96) 0%, rgba(8, 9, 13, 0.98) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

.tp-wishlist-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #9c9a92;
  font-family: var(--ah-text, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Anuphan", "IBM Plex Sans Thai", system-ui, sans-serif);
  font-size: clamp(12px, 2.5vw, 13px);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  white-space: nowrap !important;
}

.tp-tab-label {
  white-space: nowrap !important;
}

.tp-wishlist-tab:hover:not(.is-active) {
  color: #d8d6cc;
  background: rgba(255, 255, 255, 0.04);
}

.tp-wishlist-tab.is-active {
  background: linear-gradient(180deg, #252835 0%, #161822 100%) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #f2f0e8 !important;
  font-weight: 600;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35) !important;
}

.tp-tab-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  font-size: 11px;
  font-family: var(--ah-mono, "JetBrains Mono", ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #7e7d75;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-wishlist-tab.is-active .tp-tab-counter {
  background: rgba(212, 163, 115, 0.18) !important;
  color: #d4a373 !important;
  border: 1px solid rgba(212, 163, 115, 0.4) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.tp-wishlist-pane {
  display: none;
}

.tp-wishlist-pane.is-active {
  display: block;
}

/* Grounded Control Bar (Batch Actions · Symmetrical Apple Grounded Surface) */
.tp-wishlist-batch-dock {
  position: static;
  transform: none;
  width: 100%;
  margin: 0 0 24px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.94) 0%, rgba(13, 14, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  transition: opacity 0.2s ease;
}

.tp-wishlist-batch-dock[hidden] {
  display: none !important;
}

.tp-batch-dock-left,
.tp-batch-dock-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tp-batch-select-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  white-space: nowrap !important;
}

.tp-batch-select-checkbox,
.tp-card-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tp-batch-custom-check {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.tp-batch-select-checkbox:checked + .tp-batch-custom-check,
.tp-card-checkbox:checked + .tp-batch-custom-check {
  background: #ffffff;
  border-color: #ffffff;
}

.tp-batch-select-checkbox:checked + .tp-batch-custom-check::after,
.tp-card-checkbox:checked + .tp-batch-custom-check::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.tp-card-select-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-right: 6px;
}

.tp-card-select-label .tp-batch-custom-check {
  width: 18px;
  height: 18px;
}

.tp-batch-summary-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap !important;
}

.tp-batch-summary-text strong {
  color: #ffffff;
}

.tp-batch-subtotal strong {
  color: #e5e3da;
}

.tp-batch-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 980px;
  background: #ffffff;
  color: #000000 !important;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.16s ease, background-color 0.16s ease;
}

.tp-batch-cta-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #f5f5f7;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.32);
}

.tp-batch-cta-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.tp-batch-cta-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Card Option Notice (Option A Warning Indicator) */
.tp-card-option-notice {
  margin: 4px 0 8px;
}

.tp-option-notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(212, 163, 115, 0.12);
  border: 1px solid rgba(212, 163, 115, 0.38);
  color: #d4a373;
  font-size: 0.74rem;
  font-weight: 600;
  animation: tp-warning-blink 1.5s ease-in-out infinite alternate;
}

@keyframes tp-warning-blink {
  from { border-color: rgba(212, 163, 115, 0.38); }
  to { border-color: rgba(212, 163, 115, 0.85); box-shadow: 0 0 8px rgba(212, 163, 115, 0.3); }
}

/* Tactical Stock Gauge Bar */
.tp-stock-gauge-bar {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  z-index: 5;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(14, 15, 18, 0.9);
  border: 1px solid rgba(212, 163, 115, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tp-stock-gauge-track {
  width: 100%;
  height: 4px;
  background: rgba(229, 227, 218, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.tp-stock-gauge-fill {
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #d4a373 0px,
    #d4a373 6px,
    rgba(14, 15, 18, 0.8) 6px,
    rgba(14, 15, 18, 0.8) 8px
  );
  border-radius: 2px;
  transition: width 0.3s ease;
}

.tp-stock-gauge-text {
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #d4a373;
  text-transform: uppercase;
}

/* Pre-order Countdown Box */
.tp-preorder-countdown-box {
  position: absolute;
  top: 10px;
  right: 50px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(14, 15, 18, 0.88);
  border: 1px solid rgba(229, 227, 218, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-size: 0.72rem;
}

.tp-countdown-tag {
  color: #d4a373;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.tp-countdown-val {
  color: #e5e3da;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Event Cards Customizations */
.tp-event-card .tp-floating-badge--date {
  background: rgba(14, 15, 18, 0.88);
  color: #f5f4ef;
  border-color: rgba(229, 227, 218, 0.25);
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-size: 0.72rem;
}

.tp-event-venue-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #8e8d85;
  margin: 4px 0 0;
  line-height: 1.3;
  min-width: 0;
  white-space: nowrap !important;
  overflow: hidden;
}

.tp-event-venue-row span {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.tp-event-venue-row svg {
  flex-shrink: 0;
  color: #a8a29e;
}

/* Tactical Radar Scanner Empty State */
.tp-wishlist-empty {
  position: relative;
  max-width: 680px;
  margin: 36px auto 60px;
  padding: 48px 24px 36px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 21, 26, 0.94) 0%, rgba(14, 15, 18, 0.98) 100%);
  border: 1px solid rgba(229, 227, 218, 0.22);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tp-radar-scanner {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.05) 0%, rgba(14, 15, 18, 0.95) 75%);
  border: 1.5px solid rgba(229, 227, 218, 0.24);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.tp-radar-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(229, 227, 218, 0.16);
  pointer-events: none;
}

.tp-radar-circle--outer {
  width: 78px;
  height: 78px;
}

.tp-radar-circle--mid {
  width: 52px;
  height: 52px;
}

.tp-radar-circle--inner {
  width: 24px;
  height: 24px;
  border-style: solid;
  border-color: rgba(212, 163, 115, 0.25);
}

.tp-radar-crosshair-x {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(229, 227, 218, 0.14);
}

.tp-radar-crosshair-y {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(229, 227, 218, 0.14);
}

.tp-radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(212, 163, 115, 0.25) 0deg, rgba(212, 163, 115, 0) 60deg, transparent 360deg);
  animation: tp-radar-rotate 3.6s linear infinite;
}

@keyframes tp-radar-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tp-radar-blip {
  position: absolute;
  top: 32px;
  right: 36px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4a373;
  box-shadow: 0 0 6px #d4a373;
  animation: tp-blip-pulse 2s ease-in-out infinite;
}

@keyframes tp-blip-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.tp-empty-hud-tag {
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #8e8d85;
  margin-bottom: 14px;
}

.tp-wishlist-empty .tp-empty-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f5f4ef;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.tp-wishlist-empty .tp-empty-desc {
  font-size: 0.88rem;
  color: #a8a29e;
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.tp-wishlist-empty .tp-empty-action-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.tp-wishlist-empty .tp-campaign-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 980px;
  background: #ffffff;
  color: #000000 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.16s ease, box-shadow 0.16s ease;
}

.tp-wishlist-empty .tp-campaign-cta-btn:hover {
  transform: translateY(-1px);
  background: #f5f5f7;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.32);
}

.tp-wishlist-empty .tp-campaign-cta-btn:active {
  transform: scale(0.97);
}

/* Detected Sector Items (Recommended in Empty State) */
.tp-detected-sector-wrap {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed rgba(229, 227, 218, 0.14);
  text-align: left;
}

.tp-detected-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.tp-detected-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4a373;
  box-shadow: 0 0 6px rgba(212, 163, 115, 0.6);
}

.tp-detected-tag {
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #d4a373;
}

.tp-detected-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tp-detected-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 10px;
  background: rgba(14, 15, 18, 0.96);
  border: 1px solid rgba(229, 227, 218, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.tp-detected-card:hover {
  border-color: rgba(229, 227, 218, 0.35);
  transform: translateY(-1px);
}

.tp-detected-thumb-link {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: #14151a;
  margin-bottom: 8px;
}

.tp-detected-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-detected-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
}

.tp-detected-name {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-detected-name a {
  color: #e5e3da;
  text-decoration: none;
}

.tp-detected-name a:hover {
  color: #ffffff;
}

.tp-detected-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f5f4ef;
}

.tp-detected-heart {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(14, 15, 18, 0.8);
  border: 1px solid rgba(229, 227, 218, 0.25);
  color: #e5e3da;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.tp-detected-heart:hover {
  background: rgba(229, 227, 218, 0.15);
  color: #ffffff;
}

/* Mobile Sticky Bottom HUD Dock (Eliminated in favor of Grounded Action Bar) */
.tp-mobile-sticky-dock {
  display: none !important;
}

.tp-sticky-dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 18px;
  border-radius: 9999px;
  background: rgba(20, 21, 26, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(229, 227, 218, 0.28);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 16px rgba(229, 227, 218, 0.08);
}

.tp-sticky-dock-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #a8a29e;
}

.tp-sticky-dock-count strong {
  color: #f5f4ef;
}

.tp-sticky-dock-total strong {
  color: #e5e3da;
}

.tp-sticky-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 9999px;
  background: #e5e3da;
  color: #0b0d10 !important;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(229, 227, 218, 0.25);
}

.tp-sticky-dock-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Apple Quick-Select Tactical Sheet (Modal Drawer) */
.tp-tactical-sheet-dialog {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 100%;
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
}

.tp-tactical-sheet-dialog[open] {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tp-tactical-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.tp-tactical-sheet-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(22, 24, 30, 0.98) 0%, rgba(14, 15, 18, 0.99) 100%);
  border: 1px solid rgba(229, 227, 218, 0.24);
  border-bottom: none;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 16px 22px 28px;
  animation: tp-sheet-slide-up 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tp-sheet-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.tp-sheet-grabber-bar {
  width: 36px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(229, 227, 218, 0.28);
  margin: 0 auto 14px;
}

.tp-sheet-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(229, 227, 218, 0.12);
}

.tp-sheet-thumb-wrap {
  width: 56px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: #14151a;
  border: 1px solid rgba(229, 227, 218, 0.18);
  flex-shrink: 0;
}

.tp-sheet-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-sheet-header-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.tp-sheet-hud-tag {
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #d4a373;
}

.tp-sheet-title {
  margin: 2px 0 3px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f5f4ef;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-sheet-price {
  font-size: 1rem;
  font-weight: 700;
  color: #e5e3da;
}

.tp-sheet-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(229, 227, 218, 0.08);
  border: 1px solid rgba(229, 227, 218, 0.2);
  color: #e5e3da;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
  flex-shrink: 0;
}

.tp-sheet-close-btn:hover {
  background: rgba(229, 227, 218, 0.18);
  color: #ffffff;
}

.tp-sheet-body {
  padding: 18px 0;
}

.tp-sheet-section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a8a29e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.tp-sheet-variants-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tp-sheet-variant-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(14, 15, 18, 0.8);
  border: 1.5px solid rgba(229, 227, 218, 0.16);
  color: #e5e3da;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.tp-sheet-variant-chip:hover:not(:disabled) {
  border-color: rgba(229, 227, 218, 0.4);
  background: rgba(229, 227, 218, 0.06);
}

.tp-sheet-variant-chip.is-selected {
  border-color: #e5e3da;
  background: rgba(229, 227, 218, 0.12);
  box-shadow: 0 0 12px rgba(229, 227, 218, 0.15);
}

.tp-sheet-variant-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
}

.tp-chip-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f5f4ef;
}

.tp-chip-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #8e8d85;
}

.tp-chip-stock-tag {
  font-family: var(--ah-mono, ui-monospace, monospace);
  font-size: 0.7rem;
}

.tp-chip-stock-tag.is-low {
  color: #d4a373;
}

.tp-sheet-footer {
  padding-top: 10px;
}

.tp-sheet-confirm-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 9999px;
  background: #e5e3da;
  color: #0b0d10 !important;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(229, 227, 218, 0.25);
  border: none;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.tp-sheet-confirm-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #f0eee6;
}

.tp-sheet-confirm-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 1023px) {
  .tp-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .tp-wishlist-header {
    padding: 18px 16px 14px;
    border-radius: 18px;
    margin-bottom: 20px;
  }
  .tp-wishlist-header .tp-wishlist-tabs-wrap {
    margin-top: 14px;
    padding-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tp-wishlist-header .tp-wishlist-tabs-wrap::-webkit-scrollbar {
    display: none;
  }
  .tp-wishlist-tabs {
    width: 100%;
    min-width: min-content;
    justify-content: stretch;
  }
  .tp-wishlist-tab {
    flex: 1;
    justify-content: center;
    padding: 6px 12px;
    font-size: 12px;
    min-height: 44px;
    white-space: nowrap !important;
  }
  .tp-tab-label {
    white-space: nowrap !important;
  }

  /* Grounded Batch Action Dock on Mobile */
  .tp-wishlist-batch-dock {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 18px;
  }
  .tp-batch-dock-left {
    justify-content: space-between;
    width: 100%;
  }
  .tp-batch-dock-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
  }
  .tp-batch-dock-right {
    width: 100%;
  }
  .tp-batch-cta-btn {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
  }

  .tp-wishlist-sync-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .tp-wishlist-sync-btn {
    width: 100%;
  }
  .tp-wishlist-empty {
    padding: 36px 16px;
  }
  .tp-detected-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Small Mobile: Single-column tactile Bento (< 480px) */
@media (max-width: 479px) {
  .tp-wishlist-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 28px;
  }
  .tp-wishlist-page .tp-merch-visual-frame {
    aspect-ratio: 4 / 5;
  }
  .tp-wishlist-page .tp-merch-card-header {
    height: 38px;
    min-height: 38px;
    padding: 0 12px;
  }
  .tp-card-header-slot {
    gap: 8px;
  }
  .tp-card-header-num {
    font-size: 11px;
  }
  .tp-wishlist-card-cat {
    font-size: 11px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tp-wishlist-page .tp-wishlist-heart-btn {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
  .tp-wishlist-page .tp-wishlist-heart-btn svg {
    width: 15px;
    height: 15px;
  }
  .tp-wishlist-page .tp-floating-badge {
    top: 8px;
    left: 8px;
    font-size: 10px;
    padding: 3px 8px;
  }
  .tp-wishlist-page .tp-merch-body {
    padding: 12px 14px 6px;
    gap: 6px;
  }
  .tp-wishlist-page .tp-merch-name {
    font-size: 14px;
    line-height: 1.4;
    min-height: unset;
  }
  .tp-wishlist-page .tp-merch-card-dock {
    padding: 10px 14px 14px;
  }
  .tp-dock-pricing-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .tp-dock-price {
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
  }
  .tp-wishlist-page .tp-dock-cta-btn {
    width: auto;
    min-height: 44px;
    padding: 8px 18px !important;
    font-size: 12.5px !important;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
}

/* Medium Mobile (480px - 639px): Balanced 2-column */
@media (min-width: 480px) and (max-width: 639px) {
  .tp-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .tp-wishlist-page .tp-merch-visual-frame {
    aspect-ratio: 1 / 1;
  }
  .tp-wishlist-page .tp-merch-card-header {
    height: 34px;
    min-height: 34px;
    padding: 0 8px;
  }
  .tp-wishlist-page .tp-dock-cta-btn {
    width: 100%;
    min-height: 44px;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-stage-pedestal .tp-merch-img { transition: none; }
}

.tp-detail-category {
  font-family: var(--ah-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #c4a16a;
  text-transform: uppercase;
}

.tp-detail-condition-badge {
  font-family: var(--ah-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(122, 147, 116, 0.14);
  border: 1px solid rgba(122, 147, 116, 0.38);
  color: #a9bc9a;
}

.tp-detail-title {
  margin: 0 0 14px 0;
  font-family: var(--ah-display);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #ffffff;
}

/* Pricing Hero Banner */
.tp-detail-pricing-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.tp-detail-price {
  font-family: var(--ah-display);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.tp-detail-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 980px;
  background: rgba(196, 161, 106, 0.12);
  border: 1px solid rgba(196, 161, 106, 0.28);
  color: #d8b47a;
  font-family: var(--ah-mono);
  font-size: 10.5px;
  font-weight: 700;
}

.tp-detail-stock-pill.is-sold-out {
  background: var(--tp-status-danger-bg, rgba(184, 74, 57, 0.14));
  border-color: rgba(184, 74, 57, 0.38);
  color: #d9625b;
}

.tp-stock-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Description Typography */
.tp-detail-description {
  margin-bottom: 22px;
}

.tp-detail-description p {
  margin: 0;
  font-family: var(--ah-text);
  font-size: 14px;
  line-height: 1.65;
  color: #b8b6aa;
}

/* --------------------------------------------------------------------------
   Apple Option Bento Cards (Size & Variant Grid)
   -------------------------------------------------------------------------- */
.tp-variant-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.tp-section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tp-section-label {
  font-family: var(--ah-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e5e3da;
  text-transform: uppercase;
}

.tp-variant-sku-display {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  color: #8e8d85;
}

.tp-variant-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 440px) {
  .tp-variant-bento-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.tp-variant-bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  min-height: 68px;
  border-radius: 14px;
  background: rgba(18, 20, 26, 0.85);
  border: 1px solid rgba(229, 227, 218, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #e5e3da;
  cursor: pointer;
  user-select: none;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.tp-variant-bento-card:hover {
  background: rgba(24, 26, 34, 0.95);
  border-color: rgba(229, 227, 218, 0.3);
  transform: translateY(-2px);
}

.tp-variant-bento-card:active:not(.is-sold-out) {
  transform: scale(0.975);
}

.tp-variant-bento-card.is-selected {
  background: rgba(28, 25, 20, 0.95);
  border: 1.5px solid #d8b47a;
  box-shadow: 0 0 16px rgba(216, 180, 122, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tp-variant-bento-card.is-selected .tp-bento-name {
  color: #ffffff;
}

.tp-variant-bento-card.is-selected .tp-bento-check-dot {
  background: #d8b47a;
  border-color: #d8b47a;
  box-shadow: 0 0 8px rgba(216, 180, 122, 0.6);
}

.tp-variant-bento-card.is-sold-out {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
}

.tp-variant-bento-card.is-sold-out .tp-bento-name {
  text-decoration: line-through;
}

.tp-bento-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tp-bento-name {
  font-family: var(--ah-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #d0cec4;
}

.tp-bento-check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.tp-bento-card-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tp-bento-price {
  font-family: var(--ah-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.tp-bento-stock-badge {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  color: #8e8d85;
  white-space: nowrap;
}

.tp-variant-bento-card.is-selected .tp-bento-stock-badge {
  color: #d8b47a;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Quantity & Grounded Action Dock
   -------------------------------------------------------------------------- */
.tp-detail-action-dock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.tp-detail-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tp-detail-qty-label {
  font-family: var(--ah-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #b8b6aa;
  letter-spacing: 0.04em;
}

/* Apple Solid Chalk Capsule Add Button */
.tp-product-add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border-radius: 980px;
  background: #f2f0e8;
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 4px 14px rgba(0, 0, 0, 0.45);
  font-family: var(--ah-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.tp-product-add-button:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 8px 20px rgba(0, 0, 0, 0.6);
}

.tp-product-add-button:active:not(:disabled) {
  transform: scale(0.98);
  background: #dedcd2;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.tp-product-add-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #474747;
  color: #999999;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Tactical Specifications & Logistics Ledger (Void Elimination)
   -------------------------------------------------------------------------- */
.tp-product-spec-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
  background: rgba(8, 9, 13, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .tp-product-spec-ledger {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
}

.tp-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tp-spec-icon-box {
  font-size: 15px;
  line-height: 1;
  padding-top: 1px;
}

.tp-spec-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-spec-title {
  font-family: var(--ah-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e5e3da;
}

.tp-spec-desc {
  font-family: var(--ah-text);
  font-size: 11px;
  line-height: 1.45;
  color: #8e8d85;
}

.tp-product-unavailable {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(229, 227, 218, 0.14);
  border-radius: 14px;
  background: rgba(18, 19, 25, 0.8);
  color: #c2c0b6;
  font-family: var(--ah-mono);
  font-size: 12px;
}

.tp-unavail-icon {
  font-size: 18px;
  color: #e09f87;
}

@media (prefers-reduced-motion: reduce) {
  .tp-product-add-button { transition: none; }
  .tp-dock-add-btn.is-loading::before,
  .tp-dock-cta-btn.is-loading::before,
  .tp-product-add-button.is-loading::before,
  .tp-cart-feedback.is-loading::before { animation: none; }
}

/* Cart Layout & Summary (Apple Store 1fr : 360px Proportions) */
.tp-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .tp-cart-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Un-nesting the Box-in-a-Box: Canvas is clean and airy */
.tp-cart-section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 32px !important;
}

.tp-cart-section-header {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.tp-cart-section-tag {
  font-family: var(--ah-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.45;
  color: #8e8d85;
}

.tp-cart-section-title {
  margin: 0;
  font-family: var(--ah-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* Cart Item List - Tactical Spacing */
.tp-cart-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cart Item Cards - RE4 Item Chest Tactical Cell (Metallic Rivets & Chamfer) */
.tp-cart-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background:
    /* Top-Left Bolt Rivet */
    radial-gradient(circle 2px at 12px 12px, #e5e3da 0%, #4a4b52 70%, transparent 100%),
    /* Top-Right Bolt Rivet */
    radial-gradient(circle 2px at calc(100% - 12px) 12px, #e5e3da 0%, #4a4b52 70%, transparent 100%),
    /* Bottom-Left Bolt Rivet */
    radial-gradient(circle 2px at 12px calc(100% - 12px), #e5e3da 0%, #4a4b52 70%, transparent 100%),
    /* Bottom-Right Bolt Rivet */
    radial-gradient(circle 2px at calc(100% - 12px) calc(100% - 12px), #e5e3da 0%, #4a4b52 70%, transparent 100%),
    /* Solid Item Chest Obsidian Base */
    linear-gradient(180deg, rgba(19, 20, 26, 0.95) 0%, rgba(13, 14, 18, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 227, 218, 0.22);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6),
              0 2px 8px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.12),
              inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: visible;
  max-height: 260px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.24s ease,
              box-shadow 0.24s ease;
}

.tp-cart-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 227, 218, 0.36);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Deletion Transition - Apple Spring & Smooth Collapse */
.tp-cart-card.is-removing {
  max-height: 0 !important;
  opacity: 0 !important;
  transform: translateY(-8px) scale(0.96) !important;
  margin-top: 0 !important;
  margin-bottom: -14px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.tp-cart-section.is-collapsing {
  max-height: 0 !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s ease,
              margin 0.36s ease;
}

/* Corner Registration Crosshair Ticks (Tactical Crate Manifest) */
.tp-cart-card::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid rgba(229, 227, 218, 0.36);
  border-left: 1.5px solid rgba(229, 227, 218, 0.36);
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.tp-cart-card::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-bottom: 1.5px solid rgba(229, 227, 218, 0.36);
  border-right: 1.5px solid rgba(229, 227, 218, 0.36);
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.tp-cart-card:hover::before,
.tp-cart-card:hover::after {
  border-color: rgba(229, 227, 218, 0.65);
}

/* 1. Left: Tactical Scanner Viewport Frame (84px × 84px) */
.tp-cart-thumb {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, #252835 0%, #13141c 65%, #090a0e 100%);
  border: 1px solid rgba(229, 227, 218, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.tp-cart-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.96) contrast(1.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-cart-card:hover .tp-cart-thumb-img {
  transform: scale(1.04);
}

.tp-cart-thumb-glyph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8e8d85;
}

.tp-cart-thumb-glyph--ticket {
  color: #e5e3da;
}

.tp-cart-thumb-tag {
  font-family: var(--ah-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: #71717a;
  text-transform: uppercase;
  font-weight: 700;
}

/* 2. Middle: Content Metadata & Thai Headroom Normalization */
.tp-cart-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.tp-cart-cat {
  font-family: var(--ah-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  padding-block: 1px;
  color: #8e8d85;
  text-transform: uppercase;
}

.tp-cart-name {
  margin: 0;
  font-family: var(--ah-display);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.55 !important;
  padding-block: 2px 4px !important;
  letter-spacing: 0em;
  word-break: break-word;
  overflow: visible !important;
}

.tp-cart-subinfo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.tp-cart-meta-pill {
  font-family: var(--ah-mono);
  font-size: 10.5px;
  color: #b8b6aa;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px !important;
  line-height: 1.35 !important;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-cart-meta-sku {
  font-family: var(--ah-mono);
  font-size: 10px;
  color: #71717a;
  letter-spacing: 0.08em;
}

.tp-cart-feedback {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  color: #b7b4aa;
  font-size: 12px;
  line-height: 1.45;
}

.tp-cart-feedback:empty { display: none; }

.tp-cart-feedback.is-loading::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1.5px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: tp-cart-feedback-spin 0.72s linear infinite;
}

@keyframes tp-cart-feedback-spin { to { transform: rotate(360deg); } }

.tp-cart-feedback.is-error {
  color: #d88d84;
}

.tp-cart-card.is-deleting {
  opacity: 0.72;
}

/* 3. Right: Action Cluster (Price + Stepper + Trash, 24px Gap) */
.tp-cart-action-group {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.tp-cart-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 3px;
  min-width: 68px;
}

.tp-cart-line-price {
  font-family: var(--ah-display);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.tp-cart-line-price.is-updating,
.tp-breakdown-val.is-updating {
  animation: tpPricePulse 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tpPricePulse {
  0% {
    transform: scale(1);
    color: #ffffff;
  }
  35% {
    transform: scale(1.08);
    color: #e5e3da;
    text-shadow: 0 0 10px rgba(229, 227, 218, 0.45);
  }
  100% {
    transform: scale(1);
    color: #ffffff;
    text-shadow: none;
  }
}

.tp-cart-unit-price {
  font-family: var(--ah-mono);
  font-size: 11px;
  color: #8e8d85;
  font-variant-numeric: tabular-nums;
}

/* Apple Tactile Stepper & Trash Controls Cluster */
.tp-cart-controls-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Apple Frosted Stepper Capsule */
.tp-qty-stepper--cart {
  display: inline-flex;
  align-items: center;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 227, 218, 0.16);
  border-radius: 980px;
  padding: 2px 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tp-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  color: #e5e3da;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.tp-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff;
}

.tp-stepper-btn:active {
  transform: scale(0.90);
}

.tp-stepper-btn svg {
  display: block;
  pointer-events: none;
}

/* Keep cart stepper buttons pill-shaped inside their shared capsule. */
.ah-cart-page .ah-main .tp-cart-action-group .tp-qty-stepper--cart {
  height: 36px;
  padding: 2px 3px;
  border-radius: 980px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ah-cart-page .ah-main .tp-cart-action-group .tp-qty-stepper--cart .tp-stepper-btn {
  width: 36px;
  height: 30px;
  min-width: 36px;
  min-height: 30px;
  flex: 0 0 36px;
  border-radius: 980px !important;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .ah-cart-page .ah-main .tp-cart-action-group .tp-qty-stepper--cart:has(.tp-stepper-btn:hover:not(:disabled)) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(229, 227, 218, 0.3);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.035);
  }

  .ah-cart-page .ah-main .tp-cart-action-group .tp-qty-stepper--cart .tp-stepper-btn:hover:not(:disabled) {
    border-radius: 980px !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

.ah-cart-page .ah-main .tp-cart-action-group .tp-qty-stepper--cart .tp-stepper-btn:hover:not(:disabled) {
  background: transparent !important;
  border-radius: 980px !important;
  box-shadow: none !important;
  transform: none !important;
}

.ah-cart-page .ah-main .tp-cart-action-group .tp-qty-stepper--cart:has(.tp-stepper-btn:focus-visible) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(229, 227, 218, 0.3);
}

.ah-cart-page .ah-main .tp-cart-action-group .tp-qty-stepper--cart .tp-stepper-btn:active:not(:disabled) {
  border-radius: 980px !important;
  box-shadow: none !important;
  transform: scale(0.92) !important;
}

/* Shared stepper state: keep the hover fill inside its round capsule buttons
   across catalogue cards, variant sheets, product details, and the cart. */
.ah-customer-system.ah-body .ah-main .tp-qty-stepper:not(.tp-qty-stepper--cart) .tp-stepper-btn {
  border-radius: 50% !important;
}

@media (hover: hover) and (pointer: fine) {
  .ah-customer-system.ah-body .ah-main .tp-qty-stepper:not(.tp-qty-stepper--cart) .tp-stepper-btn:hover:not(:disabled) {
    border-radius: 50% !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

.ah-customer-system.ah-body .ah-main .tp-qty-stepper:not(.tp-qty-stepper--cart) .tp-stepper-btn:active:not(:disabled) {
  border-radius: 50% !important;
  box-shadow: none !important;
  transform: scale(0.92) !important;
}

/* Product detail uses one capsule highlight for the complete quantity control,
   matching the cart instead of showing a round hover spot on each button. */
.ah-customer-system.ah-body .ah-main .tp-product-detail .tp-detail-action-dock .tp-qty-stepper {
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ah-customer-system.ah-body .ah-main .tp-product-detail .tp-detail-action-dock .tp-qty-stepper .tp-stepper-btn,
.ah-customer-system.ah-body .ah-main .tp-product-detail .tp-detail-action-dock .tp-qty-stepper .tp-stepper-btn:hover:not(:disabled) {
  border-radius: 980px !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .ah-customer-system.ah-body .ah-main .tp-product-detail .tp-detail-action-dock .tp-qty-stepper:has(.tp-stepper-btn:hover:not(:disabled)) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(229, 227, 218, 0.3);
  }

  .ah-customer-system.ah-body .ah-main .tp-product-detail .tp-detail-action-dock .tp-qty-stepper .tp-stepper-btn:hover:not(:disabled) {
    background: transparent !important;
    transform: none !important;
  }
}

.ah-customer-system.ah-body .ah-main .tp-product-detail .tp-detail-action-dock .tp-qty-stepper:has(.tp-stepper-btn:focus-visible) {
  border-color: rgba(229, 227, 218, 0.42);
  box-shadow: 0 0 0 2px rgba(229, 227, 218, 0.12);
}

.ah-customer-system.ah-body .ah-main .tp-product-detail .tp-detail-action-dock .tp-qty-stepper .tp-stepper-btn:active:not(:disabled) {
  transform: scale(0.94) !important;
}

.tp-cart-qty-input {
  width: 32px;
  height: 28px;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #ffffff;
  font-family: var(--ah-mono);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
  outline: none;
  -moz-appearance: textfield;
}

.tp-cart-qty-input::-webkit-outer-spin-button,
.tp-cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Apple Circular Trash Button (Clean Vector Icon + Soft Crimson Hover) */
.tp-cart-trash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(229, 227, 218, 0.14) !important;
  padding: 0 !important;
  color: #8e8d85;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.tp-cart-trash-btn:hover {
  background: rgba(184, 67, 51, 0.16) !important;
  border-color: rgba(184, 67, 51, 0.42) !important;
  color: #e09f87 !important;
  transform: scale(1.06);
}

.tp-cart-trash-btn:active {
  transform: scale(0.92);
}

.tp-cart-trash-btn svg {
  display: block;
  pointer-events: none;
}

/* Promo Code Box */
.tp-promo-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(229, 227, 218, 0.14);
  border-radius: 12px;
  box-sizing: border-box;
}

.tp-promo-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 6px 10px;
  min-width: 0;
}

.tp-promo-icon {
  color: #71717a;
  flex-shrink: 0;
}

.tp-promo-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--ah-mono);
  font-size: 11.5px;
  outline: none;
  min-width: 0;
}

.tp-promo-input::placeholder {
  color: #71717a;
}

.tp-promo-btn {
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e5e3da;
  font-family: var(--ah-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tp-promo-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.tp-promo-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 680px) {
  section[aria-labelledby="cart-title"] {
    --ah-com-pad-x: 16px;
    padding: 24px var(--ah-com-pad-x) 40px !important;
  }

  .tp-cart-card {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
  }

  .tp-cart-thumb {
    width: 76px;
    height: 76px;
    min-width: 76px;
  }

  .tp-cart-info {
    flex: 1 1 calc(100% - 96px);
    min-width: 0;
  }

  .tp-cart-action-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    margin-top: 2px;
  }

  .tp-cart-price-col {
    align-items: flex-start;
    text-align: left;
    min-width: auto;
  }

  /* Grounded Mobile Summary Actions (No Floating Dock) */
  .tp-summary-actions {
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border-top: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  .tp-summary-actions .tp-checkout-btn {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  }
}

/* Summary Card - Requisition Manifest Terminal HUD */
.tp-summary-card {
  position: sticky;
  top: 24px;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, rgba(19, 20, 26, 0.95) 0%, rgba(10, 11, 14, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(229, 227, 218, 0.2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6),
              0 2px 8px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.12),
              inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  position: relative;
}

/* Tactical Corner Tick on Summary */
.tp-summary-card::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid rgba(229, 227, 218, 0.28);
  border-right: 1.5px solid rgba(229, 227, 218, 0.28);
  pointer-events: none;
}

.tp-summary-tag {
  font-family: var(--ah-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #8e8d85;
}

.tp-summary-title {
  margin: 4px 0 0 0;
  font-family: var(--ah-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  padding-block: 2px;
  letter-spacing: 0em;
  color: #ffffff;
}

/* Price Breakdown Grid */
.tp-cart-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tp-breakdown-label {
  font-family: var(--ah-text), "Noto Sans Thai", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #b8b6aa;
}

.tp-breakdown-val {
  font-family: var(--ah-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.tp-breakdown-val--dim {
  font-size: 11px;
  color: #71717a;
  font-weight: 500;
}

.tp-breakdown-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

.tp-breakdown-row--total .tp-breakdown-label {
  font-family: var(--ah-display);
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.tp-breakdown-val--highlight {
  font-family: var(--ah-display);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

/* Reassurance Pills */
.tp-cart-reassurance-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-reassurance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ah-mono);
  font-size: 11px;
  color: #8e8d85;
}

.tp-reassurance-pill svg {
  color: var(--tp-status-success, #7a9374);
  flex-shrink: 0;
}

/* Tactical Barcode Seal */
.tp-cart-barcode-seal {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-barcode-seal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ah-mono);
  font-size: 9px;
  color: #71717a;
  letter-spacing: 0.14em;
  user-select: none;
}

.tp-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border-radius: 980px;
  background: #ffffff;
  color: #000000;
  font-family: var(--ah-text, sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.16s ease, background-color 0.16s ease;
}

.tp-checkout-btn:hover {
  background: #f5f5f7;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.32);
}

.tp-checkout-btn:active {
  transform: scale(0.97);
  background: #e8e8ed;
}

.tp-summary-secure-hint {
  font-family: var(--ah-mono);
  font-size: 11px;
  color: #8e8d85;
  text-align: center;
  display: block;
  margin-top: 6px;
}

.tp-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  section[aria-labelledby="catalogue-title"] *,
  section[aria-labelledby="cart-title"] *,
  section[aria-labelledby="checkout-title"] *,
  section.tp-return-page * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Customer Product Return & Exchange Page (Apple Console × RE4 Item System)
   ========================================================================== */
.tp-return-page {
  --ah-com-max-width: 1140px;
  --ah-com-pad-x: 20px;
  max-width: var(--ah-com-max-width);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) var(--ah-com-pad-x) 80px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .tp-return-page {
    --ah-com-pad-x: 14px;
    padding-top: 18px;
    padding-bottom: 60px;
  }
}

/* 1. Top Apple Capsule Navigation */
.tp-return-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tp-back-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 227, 218, 0.16);
  color: #e5e3da;
  text-decoration: none;
  font-family: var(--ah-mono);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
  user-select: none;
}

.tp-back-capsule:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(229, 227, 218, 0.35);
  transform: translateY(-1px);
}

.tp-capsule-icon {
  flex-shrink: 0;
}

.tp-nav-category-tag {
  font-family: var(--ah-mono);
  font-size: 11px;
  color: #8e8d85;
  letter-spacing: 0.05em;
}

/* 2. Unified Console Chassis (Obsidian Glass + Hairline Inset) */
.tp-return-console-shell {
  background: linear-gradient(180deg, rgba(16, 17, 22, 0.96) 0%, rgba(9, 10, 14, 0.98) 100%);
  border: 1px solid rgba(229, 227, 218, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: clamp(20px, 4vw, 36px);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Header */
.tp-return-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-return-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tp-return-badge {
  font-family: var(--ah-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2.5px 8px;
  border-radius: 980px;
  background: rgba(216, 180, 122, 0.14);
  border: 1px solid rgba(216, 180, 122, 0.3);
  color: #d8b47a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tp-return-order-tag {
  font-family: var(--ah-mono);
  font-size: 11px;
  color: #e5e3da;
  font-weight: 700;
}

.tp-return-telemetry-tag {
  font-family: var(--ah-mono);
  font-size: 10px;
  color: #71717a;
  margin-left: auto;
}

@media (max-width: 640px) {
  .tp-return-telemetry-tag {
    display: none;
  }
}

.tp-return-title {
  font-family: var(--ah-display);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: #ffffff;
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.tp-return-subtitle {
  font-family: var(--ah-text);
  font-size: 13.5px;
  color: #9d9b90;
  line-height: 1.6;
  max-width: 70ch;
  margin: 0;
}

/* 3. Alerts: Depleted Replacement & Return Window Closed */
.tp-return-alert-card {
  background: rgba(216, 180, 122, 0.06);
  border: 1px solid rgba(216, 180, 122, 0.28);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(216, 180, 122, 0.2);
}

.tp-alert-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.tp-alert-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(216, 180, 122, 0.16);
  color: #d8b47a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tp-alert-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-alert-tag {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #d8b47a;
  letter-spacing: 0.08em;
}

.tp-alert-title {
  font-family: var(--ah-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0 0;
}

.tp-alert-desc {
  font-family: var(--ah-text);
  font-size: 13px;
  color: #b8b6aa;
  line-height: 1.5;
  margin: 0 0 14px;
}

.tp-alert-action-form {
  display: flex;
  justify-content: flex-end;
}

.tp-alert-confirm-btn {
  height: 36px;
  padding: 0 18px;
}

.tp-return-expired-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(229, 227, 218, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.tp-alert-icon-box--expired {
  background: rgba(255, 255, 255, 0.06);
  color: #8e8d85;
  font-family: var(--ah-mono);
  font-size: 18px;
}

/* 4. Main 2-Column Responsive Form Layout */
.tp-return-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}

@media (max-width: 960px) {
  .tp-return-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.tp-return-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.tp-section-bar-title {
  font-family: var(--ah-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: #8e8d85;
  letter-spacing: 0.1em;
}

.tp-section-bar-hint {
  font-family: var(--ah-mono);
  font-size: 10.5px;
  color: #71717a;
}

/* 5. Left Column: Item Inspection Box (RE4 Tactical Crate Style) */
.tp-return-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tp-return-item-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(13, 14, 18, 0.85);
  border: 1px solid rgba(229, 227, 218, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.tp-return-item-card:hover {
  border-color: rgba(229, 227, 218, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.tp-return-item-card.is-selected {
  border-color: rgba(216, 180, 122, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(216, 180, 122, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(18, 19, 26, 0.95);
}

.tp-return-item-thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #07080b;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-return-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-return-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--ah-mono);
  font-size: 12px;
  color: #71717a;
}

.tp-return-item-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tp-return-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-return-item-sku {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  color: #71717a;
  letter-spacing: 0.08em;
}

.tp-return-item-purchased {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  color: #8e8d85;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 980px;
}

.tp-return-item-name {
  font-family: var(--ah-display);
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.tp-return-item-variant {
  font-family: var(--ah-mono);
  font-size: 11px;
  color: #b8b6aa;
}

.tp-return-item-pricing {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
}

.tp-return-item-price {
  font-family: var(--ah-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.tp-return-item-unit {
  font-family: var(--ah-mono);
  font-size: 10px;
  color: #71717a;
}

.tp-return-stepper-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.tp-stepper-label {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  color: #8e8d85;
}

.tp-return-stepper {
  height: 30px;
  padding: 2px;
}

.tp-return-stepper .tp-stepper-btn {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.tp-return-stepper .tp-qty-input {
  width: 30px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .tp-return-item-card {
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 12px;
  }
  .tp-return-item-thumb {
    width: 64px;
    height: 64px;
  }
  .tp-return-item-name {
    font-size: 13.5px;
  }
  .tp-return-stepper-wrap {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    margin-top: 4px;
    width: 100%;
  }
  .tp-stepper-label {
    font-size: 11px;
  }
}

/* 6. Right Column: Resolution & Issue Classification Panels */
.tp-return-params-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tp-return-card-panel {
  background: rgba(13, 14, 18, 0.9);
  border: 1px solid rgba(229, 227, 218, 0.12);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tp-panel-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
}

.tp-panel-tag {
  font-family: var(--ah-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #8e8d85;
  letter-spacing: 0.1em;
}

.tp-panel-title {
  font-family: var(--ah-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

/* Segmented Tiles */
.tp-segmented-grid {
  display: grid;
  gap: 10px;
}

.tp-segmented-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 580px) {
  .tp-segmented-grid--2col {
    grid-template-columns: 1fr;
  }
}

.tp-segmented-tile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(229, 227, 218, 0.15);
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
}

.tp-segmented-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tp-segmented-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(229, 227, 218, 0.3);
  display: grid;
  place-items: center;
  margin-top: 2px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.tp-radio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s ease;
}

.tp-segmented-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tp-segmented-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tp-segmented-name {
  font-family: var(--ah-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.tp-segmented-badge {
  font-family: var(--ah-mono);
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #8e8d85;
  letter-spacing: 0.06em;
}

.tp-segmented-desc {
  font-family: var(--ah-text);
  font-size: 11.5px;
  color: #8e8d85;
  line-height: 1.45;
  margin: 0;
}

.tp-segmented-tile:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(229, 227, 218, 0.3);
}

.tp-segmented-tile.is-selected {
  background: rgba(216, 180, 122, 0.1);
  border-color: rgba(216, 180, 122, 0.55);
  box-shadow: 0 0 14px rgba(216, 180, 122, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tp-segmented-tile.is-selected .tp-segmented-indicator {
  border-color: #d8b47a;
}

.tp-segmented-tile.is-selected .tp-radio-dot {
  background: #d8b47a;
}

.tp-segmented-tile.is-selected .tp-segmented-name {
  color: #d8b47a;
}

/* Textarea */
.tp-textarea-wrap {
  display: flex;
  flex-direction: column;
}

.tp-return-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(229, 227, 218, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--ah-text);
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  min-height: 80px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tp-return-textarea:focus {
  border-color: rgba(229, 227, 218, 0.45);
  box-shadow: 0 0 0 2px rgba(229, 227, 218, 0.1);
}

.tp-textarea-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.tp-textarea-hint,
.tp-textarea-counter {
  font-family: var(--ah-mono);
  font-size: 10.5px;
  color: #71717a;
}

/* 7. Grounded Action Terminal Dock */
.tp-return-grounded-dock {
  background: rgba(9, 10, 14, 0.95);
  border: 1px solid rgba(229, 227, 218, 0.16);
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.tp-dock-summary-cluster {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-dock-summary-label {
  font-family: var(--ah-mono);
  font-size: 11px;
  color: #8e8d85;
  letter-spacing: 0.04em;
}

.tp-dock-total-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tp-dock-total-amount {
  font-family: var(--ah-display);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.tp-dock-total-count {
  font-family: var(--ah-mono);
  font-size: 11.5px;
  color: #8e8d85;
}

.tp-dock-action-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.tp-return-submit-btn {
  height: 42px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tp-submit-hint {
  font-family: var(--ah-mono);
  font-size: 10.5px;
  color: #71717a;
  text-align: right;
}

@media (max-width: 960px) {
  .tp-return-grounded-dock {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px;
  }
  .tp-dock-action-cluster {
    align-items: stretch;
  }
  .tp-return-submit-btn {
    width: 100%;
  }
  .tp-submit-hint {
    text-align: center;
  }
}

/* ========================================================================
   Cart page responsive layout
   Keep these overrides scoped to the full cart page. The drawer has its own
   stylesheet and catalogue/checkout layouts remain unchanged.
   ======================================================================== */
body.ah-cart-page section.tp-commerce-container[aria-labelledby="cart-title"] {
  width: min(1180px, 100%);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 40px) clamp(16px, 3vw, 28px) 64px !important;
  box-sizing: border-box;
}

body.ah-cart-page .tp-cart-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 28px);
  align-items: start;
}

body.ah-cart-page .tp-cart-items-col,
body.ah-cart-page .tp-cart-summary-col,
body.ah-cart-page .tp-cart-section,
body.ah-cart-page .tp-cart-card,
body.ah-cart-page .tp-cart-info,
body.ah-cart-page .tp-cart-action-group {
  min-width: 0;
}

body.ah-cart-page .tp-cart-card {
  max-width: 100%;
}

body.ah-cart-page .tp-cart-name {
  overflow-wrap: anywhere;
}

body.ah-cart-page .tp-cart-action-group {
  flex-wrap: wrap;
}

body.ah-cart-page .tp-summary-card {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
}

body.ah-cart-page .tp-cart-card {
  transition: transform 220ms cubic-bezier(0.2, 0, 0, 1),
              opacity 220ms ease,
              max-height 280ms cubic-bezier(0.2, 0, 0, 1),
              margin 280ms cubic-bezier(0.2, 0, 0, 1),
              padding 280ms cubic-bezier(0.2, 0, 0, 1),
              border-color 180ms ease,
              box-shadow 180ms ease;
}

body.ah-cart-page .tp-cart-card.is-removing {
  transform: translateY(4px) scale(1) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.ah-cart-page .tp-cart-card.is-update-pending .tp-cart-line-price {
  opacity: 0.72;
}

body.ah-cart-page .tp-cart-section.is-collapsing {
  transition: max-height 260ms cubic-bezier(0.2, 0, 0, 1),
              opacity 180ms ease,
              margin 260ms cubic-bezier(0.2, 0, 0, 1);
}

body.ah-cart-page .tp-cart-line-price,
body.ah-cart-page .tp-breakdown-val {
  transition: opacity 180ms ease, color 180ms ease;
}

body.ah-cart-page .tp-cart-line-price.is-updating,
body.ah-cart-page .tp-breakdown-val.is-updating {
  animation: tp-cart-value-feedback 220ms ease-out both;
}

body.ah-cart-page .tp-empty-state[hidden] {
  display: none !important;
}

body.ah-cart-page .tp-empty-state.is-revealing {
  animation: tp-cart-empty-enter 240ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes tp-cart-value-feedback {
  0% { opacity: 1; color: #ffffff; }
  45% { opacity: 0.76; color: #e5e3da; }
  100% { opacity: 1; color: #ffffff; }
}

@keyframes tp-cart-empty-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  body.ah-cart-page .tp-cart-layout {
    gap: 24px;
  }

  body.ah-cart-page .tp-cart-card {
    gap: 16px;
    padding: 18px;
  }

  body.ah-cart-page .tp-cart-action-group {
    gap: 16px;
  }
}

@media (max-width: 767px) {
  body.ah-cart-page section.tp-commerce-container[aria-labelledby="cart-title"] {
    padding: clamp(18px, 3.5vw, 28px) clamp(12px, 3vw, 20px) 48px !important;
  }

  body.ah-cart-page .tp-cart-layout {
    gap: 20px;
    padding-bottom: 12px;
  }

  body.ah-cart-page .tp-cart-section {
    margin-bottom: 20px !important;
  }

  body.ah-cart-page .tp-cart-section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
  }

  /* Master Grounded Summary Bento Plate on Mobile (In Normal Flow) */
  body.ah-cart-page .tp-summary-card {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(18, 20, 26, 0.96) 0%, rgba(12, 14, 18, 0.98) 100%);
    border: 1px solid rgba(122, 147, 116, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 36px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
  }

  body.ah-cart-page .tp-cart-price-breakdown {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.ah-cart-page .tp-breakdown-row {
    align-items: center;
    padding: 4px 0;
  }

  body.ah-cart-page .tp-breakdown-row--total {
    padding-top: 10px;
  }

  body.ah-cart-page .tp-breakdown-val--highlight {
    font-size: 22px;
    font-weight: 800;
  }

  /* Symmetrical Reassurance 2-Col Grid */
  body.ah-cart-page .tp-cart-reassurance-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 2px 0;
  }

  body.ah-cart-page .tp-reassurance-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    color: #9A9DA6;
    font-family: var(--ah-mono, monospace);
    text-align: center;
  }

  body.ah-cart-page .tp-reassurance-pill svg {
    color: #7A9374;
  }

  /* Grounded Prominent Checkout CTA */
  body.ah-cart-page .tp-summary-actions {
    margin-top: 6px;
    width: 100%;
  }

  body.ah-cart-page .tp-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 980px;
    background: #ffffff;
    color: #000000 !important;
    font-family: var(--ah-text, inherit);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22);
    box-sizing: border-box;
    transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.16s ease, background-color 0.16s ease;
  }

  body.ah-cart-page .tp-checkout-btn:hover {
    background: #f5f5f7;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 255, 255, 0.35);
  }

  body.ah-cart-page .tp-checkout-btn:active {
    background: #e8e8ed;
    transform: scale(0.97);
  }

  body.ah-cart-page .tp-empty-actions > * {
    max-width: 100%;
  }
}

/* Compact Mobile (< 380px) */
@media (max-width: 379px) {
  body.ah-cart-page section.tp-commerce-container[aria-labelledby="cart-title"] {
    padding: 16px 10px 40px !important;
  }

  body.ah-cart-page .tp-cart-card {
    padding: 12px;
    gap: 10px;
  }

  body.ah-cart-page .tp-cart-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }

  body.ah-cart-page .tp-cart-name {
    font-size: 14.5px;
  }

  body.ah-cart-page .tp-cart-line-price {
    font-size: 16px;
  }

  body.ah-cart-page .tp-cart-trash-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  body.ah-cart-page .tp-cart-reassurance-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.ah-cart-page .tp-cart-card {
    gap: 16px;
    padding: 18px;
    max-height: 480px;
  }

  body.ah-cart-page .tp-cart-action-group {
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  body.ah-cart-page .tp-cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: clamp(24px, 3vw, 36px);
  }

  body.ah-cart-page .tp-summary-card {
    position: sticky;
    top: 24px;
    display: flex;
    max-width: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ah-cart-page .tp-cart-card,
  body.ah-cart-page .tp-cart-section,
  body.ah-cart-page .tp-empty-state {
    animation: none !important;
    transition: none !important;
  }
}


/* --------------------------------------------------------------------------
   Apple Tactile × Tactical Bento Checkout Layout (Task 1.2)
   -------------------------------------------------------------------------- */
.tp-checkout-container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.tp-checkout-container .tp-recalled-banner {
  box-sizing: border-box;
  min-height: 68px;
  margin: 12px 0 20px;
  padding: 10px 16px;
}

.tp-checkout-container .tp-recalled-banner-info {
  min-width: 0;
  line-height: 1.45;
}

.tp-checkout-container #address-card .tp-recalled-clear-btn {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-pill, 980px);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ah-rust-critical-text);
  font-family: var(--ah-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.tp-checkout-container #address-card .tp-recalled-clear-btn:hover {
  border-color: var(--ah-control-border-hover);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ah-paper);
  transform: translateY(-1px);
}

.tp-checkout-container #address-card .tp-recalled-clear-btn:active {
  transform: scale(0.98);
}

.tp-checkout-container #address-card .tp-recalled-clear-btn:focus-visible {
  outline: 2px solid var(--ah-action);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .tp-checkout-container {
    padding: 16px 14px 60px;
  }
}

@media (max-width: 480px) {
  .tp-checkout-container .tp-recalled-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .tp-checkout-container #address-card .tp-recalled-clear-btn {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-checkout-container #address-card .tp-recalled-clear-btn {
    transition: none;
  }
}

.tp-checkout-config-col {
  min-width: 0;
}

.tp-checkout-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.85fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .tp-checkout-bento-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

.tp-checkout-card {
  background: rgba(20, 21, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ah-radius-panel, 20px);
  padding: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .tp-checkout-card {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
}

.tp-checkout-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-checkout-card-header--compact {
  margin-bottom: 12px;
}

.tp-checkout-card-title {
  font-family: var(--ah-display, inherit);
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-checkout-card-tag {
  font-family: var(--ah-mono, monospace);
  font-size: 10.5px;
  color: #7A9374;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Tactile Radio Options */
.tp-delivery-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.tp-delivery-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .tp-delivery-options-grid {
    grid-template-columns: 1fr;
  }
}

.tp-delivery-radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--ah-radius-control, 14px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tp-delivery-radio-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.tp-delivery-radio-card:active {
  transform: scale(0.985);
}

.tp-delivery-radio-card.is-selected,
.tp-delivery-radio-card:has(input:checked) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.tp-delivery-radio-card:has(input:focus-visible) {
  outline: 2px solid var(--ah-action);
  outline-offset: 3px;
}

.tp-delivery-radio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tp-delivery-radio-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.tp-delivery-radio-title::before {
  content: "◯";
  flex: 0 0 auto;
  color: var(--ah-soft);
  font-family: var(--ah-mono, monospace);
}

.tp-delivery-radio-title .tp-delivery-icon {
  margin-right: 0;
}

.tp-delivery-radio-card:has(input:checked) .tp-delivery-radio-title::before {
  content: "◉";
  color: var(--ah-paper);
}

.tp-delivery-radio-desc {
  font-size: 12px;
  color: #9A9DA6;
  line-height: 1.45;
}

.tp-delivery-radio-desc--warn {
  margin-top: 8px;
  color: #dfc18d;
  font-size: 11px;
}

.tp-delivery-radio-badge {
  font-family: var(--ah-mono, monospace);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #D2D4DC;
  white-space: nowrap;
  flex: 0 0 auto;
}

.tp-delivery-radio-badge--muted {
  color: #8e8d85;
  background: rgba(255, 255, 255, 0.04);
}

/* Structured Address Input Form */
.tp-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#shipping-address-fields[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .tp-address-grid {
    grid-template-columns: 1fr;
  }
}

.tp-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tp-form-field.full-width {
  grid-column: 1 / -1;
}

.tp-form-label {
  font-family: var(--ah-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #A0A3AB;
  text-transform: uppercase;
}

.tp-form-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ah-radius-control, 12px);
  color: #FFFFFF;
  font-family: var(--ah-text, inherit);
  font-size: 14.5px;
  transition: all 0.18s ease;
}

.tp-form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.tp-form-input::placeholder {
  color: #555761;
}

/* Right-Column Ledger & Actions */
.tp-checkout-ledger {
  position: sticky;
  top: 24px;
  background: rgba(20, 21, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ah-radius-panel, 20px);
  padding: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

@media (max-width: 640px) {
  .tp-checkout-ledger {
    position: static;
    padding: 18px;
  }
}

.tp-ledger-total-box {
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ah-radius-control, 12px);
  padding: 16px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-ledger-total-label {
  font-size: 13.5px;
  color: #9A9DA6;
  text-transform: uppercase;
  font-family: var(--ah-mono, monospace);
}

.tp-ledger-total-val {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.tp-checkout-quote-btn,
.tp-checkout-confirm-btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--ah-radius-pill, 980px);
  border: none;
  font-family: var(--ah-text, inherit);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.tp-checkout-quote-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.tp-checkout-quote-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.tp-checkout-confirm-btn {
  background: #ffffff;
  color: #000000;
  font-family: var(--ah-text, sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
}

.tp-checkout-confirm-btn:hover:not(:disabled) {
  background: #f5f5f7;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.32);
}

.tp-checkout-confirm-btn:active:not(:disabled) {
  transform: scale(0.97);
  background: #e8e8ed;
}

.tp-checkout-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  font-size: 13px;
  color: #8E9099;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tp-checkout-back-link:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Mobile Tactile Sticky Quick Add Bar (Apple Docked Bar)
   ========================================================================== */
.tp-detail-docked-bar {
  display: none;
}

@media (max-width: 767px) {
  .tp-detail-docked-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    padding: 10px 16px max(12px, env(safe-area-inset-bottom, 12px));
    box-sizing: border-box;
    background: rgba(14, 15, 19, 0.94);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-top: 1px solid rgba(229, 227, 218, 0.12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .tp-docked-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
  }

  .tp-docked-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .tp-docked-variant {
    font-family: var(--ah-display, -apple-system, sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }

  .tp-docked-stock-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(122, 147, 116, 0.15);
    border: 1px solid rgba(122, 147, 116, 0.35);
    color: #8eb387;
    font-family: var(--ah-mono, monospace);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .tp-docked-price {
    font-family: var(--ah-mono, monospace);
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
  }

  .tp-docked-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    background: #e5e3da;
    color: #0c0f10;
    border: none;
    font-family: var(--ah-display, -apple-system, sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.16s ease, background-color 0.16s ease;
    flex-shrink: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .tp-docked-add-btn:active {
    transform: scale(0.95);
  }

  .tp-docked-add-btn:disabled {
    background: #2b3436;
    color: #8a9492;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 360px) {
  .tp-detail-docked-bar {
    padding: 8px 10px max(8px, env(safe-area-inset-bottom, 8px)) !important;
    gap: 8px !important;
  }

  .tp-docked-variant {
    max-width: 90px !important;
    font-size: 11.5px !important;
  }

  .tp-docked-price {
    font-size: 13.5px !important;
  }

  .tp-docked-add-btn {
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }
}

/* --------------------------------------------------------------------------
   Semantic Cart & Checkout Polish Classes (Zero Inline Styles)
   -------------------------------------------------------------------------- */
.tp-cart-progress {
  margin: 18px 0 0;
  max-width: 600px;
}

.tp-cart-sync-box {
  margin-bottom: 24px;
  border-radius: var(--ah-radius-control, 12px);
  padding: 20px;
}

.tp-cart-sync-box--merge {
  border: 1px solid rgba(196, 161, 106, 0.42);
  background: rgba(196, 161, 106, 0.06);
}

.tp-cart-sync-box--migrate {
  border: 1px solid rgba(107, 140, 174, 0.42);
  background: rgba(107, 140, 174, 0.06);
}

.tp-cart-sync-header {
  margin-bottom: 8px;
}

.tp-cart-sync-tag--merge {
  color: #dfc18d !important;
  border-color: rgba(196, 161, 106, 0.34) !important;
}

.tp-cart-sync-tag--migrate {
  color: #adc2d9 !important;
  border-color: rgba(107, 140, 174, 0.34) !important;
}

.tp-cart-sync-title {
  font-size: 1.15rem;
  color: #ffffff;
}

.tp-sync-desc {
  color: #a9a79d;
  font-size: 0.88rem;
  margin: 0 0 14px;
}

.tp-cart-migrate-box {
  margin: 0;
}

.tp-sync-migrate-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.tp-sync-btn.is-primary {
  font-weight: 600;
}

.tp-cart-refresh-btn {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.tp-cart-refresh-btn:focus-visible {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10000;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(229, 227, 218, 0.55);
  border-radius: 12px;
  background: #17191f;
  color: #f4f1e8;
  opacity: 1;
  outline: 2px solid #e5e3da;
  outline-offset: 3px;
}

.tp-checkout-manifest-list {
  margin: 0;
}

.tp-checkout-item-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tp-checkout-item-tags {
  margin-top: 6px;
}

.ah-cargo-pill--verified {
  color: #a9bc9a !important;
  border-color: rgba(122, 147, 116, 0.38) !important;
  background: rgba(122, 147, 116, 0.14) !important;
}

.tp-checkout-item-pricing {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tp-checkout-line-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.tp-checkout-unit-price {
  font-size: 0.78rem;
  color: #8e8d85;
}

.tp-preorder-disclosure--spaced {
  margin-top: 14px;
}

.tp-address-card {
  margin-bottom: 0;
}

.tp-address-desc {
  font-size: 12.5px;
  color: #a9a79d;
  margin: 0 0 16px;
  line-height: 1.5;
}

.tp-ledger-amounts {
  margin: 0;
}

.tp-ledger-disclosure {
  text-align: center;
  margin-top: 10px;
}

.tp-ledger-seal {
  margin-top: 20px;
}

/* ==========================================================================
   TACTICAL DUAL-ZONE ARCHITECTURE & COMMERCE BRIDGES (RE4 × APPLE BENTO)
   ========================================================================== */

/* Cart & Checkout Dual-Zone Enclosure Groups */
.tp-cart-zone-group,
.tp-checkout-zone-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(13, 15, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tp-cart-zone-group:empty,
.tp-cart-zone-group:not(:has(.tp-cart-card)),
.tp-checkout-zone-group:empty,
.tp-checkout-zone-group:not(:has(.ah-cargo-item-card)) {
  display: none !important;
}

/* Passes Zone: Warm Chalk (#e5e3da) & Radar Brass Accents */
.tp-cart-zone-group--pass,
.tp-checkout-zone-group--pass {
  border-left: 3.5px solid #e5e3da;
  background: linear-gradient(135deg, rgba(229, 227, 218, 0.03) 0%, rgba(13, 15, 18, 0.75) 100%);
}

/* Cargo Zone: Desaturated Steel Blue (#6b8cae) Accents */
.tp-cart-zone-group--cargo,
.tp-checkout-zone-group--cargo {
  border-left: 3.5px solid #6b8cae;
  background: linear-gradient(135deg, rgba(107, 140, 174, 0.04) 0%, rgba(13, 15, 18, 0.75) 100%);
}

.tp-cart-zone-header,
.tp-checkout-zone-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.tp-checkout-zone-header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.tp-cart-zone-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tp-cart-zone-tag,
.tp-checkout-zone-tag {
  font-family: var(--ah-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c5c3b8;
}

.tp-cart-zone-group--cargo .tp-cart-zone-tag,
.tp-checkout-zone-group--cargo .tp-checkout-zone-tag {
  color: #8daec9;
}

.tp-cart-zone-badge,
.tp-checkout-zone-badge {
  font-family: var(--ah-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9a988f;
}

.tp-checkout-zone-badge {
  margin-left: auto;
  white-space: nowrap;
}

.tp-cart-zone-desc {
  font-size: 12px;
  color: #83827a;
  line-height: 1.4;
  margin: 0;
}

/* Delivery Option SVG Icons */
.tp-delivery-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  color: #c5c3b8;
  flex-shrink: 0;
}

.tp-delivery-radio-card.is-selected .tp-delivery-icon {
  color: #ffffff;
}

@media (max-width: 767px) {
  .tp-cart-layout,
  .tp-checkout-layout {
    padding-bottom: 24px;
  }
}

/* Semantic Link Button on Home Catalog */
.tp-shop-quick-add-btn--link {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e3da;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tp-shop-quick-add-btn--link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

/* Event Detail Pickup Reassurance Badge */
.tp-pickup-reassurance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ah-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #7a9374;
  background: rgba(122, 147, 116, 0.1);
  border: 1px solid rgba(122, 147, 116, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 8px;
}

/* Event Book Secondary Cart Pickup Chip */
.tp-cart-pickup-chip {
  font-family: var(--ah-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0b0d10;
  background: #7a9374;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

/* Content-Commerce Cross-Sell Bento Bridge (Portfolio & Article Detail) */
.tp-cross-sell-bento {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(20, 24, 30, 0.85) 0%, rgba(10, 12, 15, 0.95) 100%);
  border: 1px solid rgba(229, 227, 218, 0.14);
  border-radius: 20px;
  padding: 24px 28px;
  margin: 36px 0 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.tp-cross-sell-bento::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #c4a16a;
}

.tp-cross-sell-bento-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 620px;
}

.tp-cross-sell-bento-title {
  margin: 0;
  font-family: var(--ah-display, sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.tp-cross-sell-bento-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #9a988f;
}

.tp-cross-sell-bento-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.tp-cross-sell-bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--ah-text, sans-serif);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tp-cross-sell-bento-cta--primary {
  background: #e5e3da;
  color: #0b0d10;
  box-shadow: 0 4px 12px rgba(229, 227, 218, 0.2);
}

.tp-cross-sell-bento-cta--primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.tp-cross-sell-bento-cta--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e3da;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tp-cross-sell-bento-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .tp-cross-sell-bento {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 16px;
  }

  .tp-cross-sell-bento-actions {
    width: 100%;
    flex-direction: column;
  }

  .tp-cross-sell-bento-cta {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* Order History Manifest Details Disclosure */
.ah-order-items-disclosure {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 6px;
}

.ah-order-items-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 6px 4px;
  user-select: none;
  outline: none;
}

.ah-order-items-summary::-webkit-details-marker {
  display: none;
}

.ah-disclosure-tag {
  font-family: var(--ah-mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: #8e8d85;
}

.ah-disclosure-title {
  font-size: 12.5px;
  color: #c5c3b8;
  font-weight: 600;
  margin-left: 8px;
  margin-right: auto;
}

.ah-disclosure-arrow {
  font-size: 12px;
  color: #8e8d85;
  transition: transform 0.2s ease;
}

.ah-order-items-disclosure[open] .ah-disclosure-arrow {
  transform: rotate(180deg);
}

/* Tracking Modal Pickup Block Display State */
.re-track-pickup-block[hidden] {
  display: none !important;
}

/* Cart page: isolate the item flow while keeping the original CCTV backdrop. */
body.ah-cart-page .tp-cart-items-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(16px, 2.2vw, 28px);
  border: 1px solid rgba(229, 227, 218, .2);
  border-radius: 20px;
  background: rgba(15, 15, 15, .82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

@supports not (backdrop-filter: blur(16px)) {
  body.ah-cart-page .tp-cart-items-panel { background: rgba(15, 15, 15, .96); }
}

/* Master Grounded Header Chassis Plate (Apple Cupertino × Tactical Dark) */
body.ah-cart-page .ah-booking-header.tp-commerce-header {
  margin-bottom: clamp(20px, 3vw, 28px);
  padding: clamp(18px, 3vw, 26px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.96) 0%, rgba(12, 14, 18, 0.98) 100%);
  border: 1px solid rgba(122, 147, 116, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 36px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-sizing: border-box;
}

body.ah-cart-page .ah-booking-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
}

body.ah-cart-page .ah-back-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F5F5F7;
  font-family: var(--ah-text, inherit);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

body.ah-cart-page .ah-back-capsule:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateX(-2px);
}

body.ah-cart-page .ah-back-capsule:active {
  transform: scale(0.97) translateX(-1px);
}

body.ah-cart-page .ah-nav-category-tag {
  font-family: var(--ah-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #7A9374;
}

body.ah-cart-page .tp-cart-items-panel > .tp-cart-section:last-of-type { margin-bottom: 0 !important; }

body.ah-cart-page .tp-cart-continue-shopping {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #b8b6aa;
  font-size: 14px;
  text-decoration: none;
}

body.ah-cart-page .tp-cart-continue-shopping:hover { color: #fff; }
body.ah-cart-page .tp-cart-continue-shopping:focus-visible { outline: 2px solid #e5e3da; outline-offset: 3px; border-radius: 4px; }

/* Cupertino Segmented Progress Bar (Step 01 / 02 / 03) */
body.ah-cart-page .tp-cart-progress {
  display: flex;
  width: 100%;
  max-width: none;
  align-items: stretch;
  gap: 6px;
  margin: 16px 0 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 980px;
  background: rgba(9, 10, 13, 0.85);
  list-style: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

body.ah-cart-page .tp-cart-progress li {
  flex: 1 1 0;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px clamp(6px, 1.5vw, 14px);
  border-radius: 980px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--ah-text, inherit);
  font-size: clamp(11.5px, 1.4vw, 13px);
  font-weight: 500;
  border: 1px solid transparent;
  line-height: 1.25;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

body.ah-cart-page .tp-cart-progress li[aria-current="step"] {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.ah-cart-page .tp-cart-progress .ah-booking-progress-number {
  display: grid !important;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--ah-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.ah-cart-page .tp-cart-progress li[aria-current="step"] .ah-booking-progress-number {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.35);
}

body.ah-cart-page .tp-summary-card {
  padding: 26px;
  gap: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.96) 0%, rgba(12, 14, 18, 0.98) 100%);
  border: 1px solid rgba(122, 147, 116, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 36px rgba(0, 0, 0, 0.45);
}

@media (max-width: 600px) {
  body.ah-cart-page .ah-booking-header.tp-commerce-header {
    padding: 16px 14px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
  body.ah-cart-page .tp-cart-items-panel { padding: 16px; }
  body.ah-cart-page .tp-cart-progress { gap: 3px; padding: 3px; }
  body.ah-cart-page .tp-cart-progress li { min-height: 48px; flex-direction: column; gap: 2px; padding: 5px 3px; font-size: 10.5px; white-space: normal; line-height: 1.2; text-align: center; }
  body.ah-cart-page .tp-cart-progress .ah-booking-progress-number { flex-basis: 18px; width: 18px; height: 18px; font-size: 9.5px; }
  body.ah-cart-page .tp-summary-card { padding: 20px; }
}

@media (max-width: 360px) {
  body.ah-cart-page .tp-cart-items-panel { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  body.ah-cart-page .tp-cart-continue-shopping { transition: none; }
  body.ah-cart-page .tp-cart-progress li { transition: none; }
}

/* Cart quantity control: give both actions equal tap targets around the value. */
body.ah-cart-page .tp-cart-action-group .tp-qty-stepper--cart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  place-items: center;
  box-sizing: border-box;
  width: 144px;
  min-width: 144px;
  height: 50px;
  min-height: 50px;
  padding: 2px;
  gap: 0;
  border-radius: 999px;
  background: rgba(15, 15, 15, .94);
  border: 1px solid rgba(229, 227, 218, .25);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .55), 0 3px 8px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.ah-cart-page .tp-cart-action-group .tp-qty-stepper--cart .tp-stepper-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  place-self: center;
  border-radius: 50% !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #e5e3da;
}

body.ah-cart-page .tp-cart-action-group .tp-qty-stepper--cart .tp-stepper-btn:hover:not(:disabled) {
  background: rgba(229, 227, 218, .12) !important;
}

body.ah-cart-page .tp-cart-action-group .tp-qty-stepper--cart input.tp-cart-qty-input {
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  text-align: center;
  text-indent: 0;
  line-height: 1;
  direction: ltr;
  justify-self: center;
  font-variant-numeric: tabular-nums;
}

body.ah-cart-page .tp-cart-action-group .tp-qty-stepper--cart .tp-stepper-btn svg {
  width: 14px !important;
  height: 14px !important;
}

@media (max-width: 379px) {
  body.ah-cart-page .tp-cart-action-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body.ah-cart-page .tp-cart-controls-row {
    justify-self: end;
  }
}

body.ah-cart-page .tp-cart-action-group .tp-qty-stepper--cart:has(.tp-stepper-btn:focus-visible),
body.ah-cart-page .tp-cart-action-group .tp-qty-stepper--cart:has(input:focus-visible) {
  outline: 2px solid #e5e3da;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  body.ah-cart-page .tp-cart-action-group .tp-qty-stepper--cart .tp-stepper-btn {
    transition: none;
  }
}




/* Shop facets and real variant previews; retain the existing card palette. */
section[aria-labelledby="catalogue-title"] .tp-shop-layout {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
section[aria-labelledby="catalogue-title"] .tp-shop-sidebar,
section[aria-labelledby="catalogue-title"] .tp-mobile-drawer .tp-variant-sheet-panel {
  background: rgba(15, 15, 15, .82);
  border: 1px solid rgba(229, 227, 218, .2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .06);
}
@supports not (backdrop-filter: blur(16px)) {
  section[aria-labelledby="catalogue-title"] .tp-shop-sidebar,
  section[aria-labelledby="catalogue-title"] .tp-mobile-drawer .tp-variant-sheet-panel { background: #0f0f0f; }
}
section[aria-labelledby="catalogue-title"] .tp-cat-name { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.tp-catalogue-facets { display: flex; flex-direction: column; gap: 20px; min-width: 0; width: 100%; }
.tp-catalogue-facets fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tp-catalogue-facets legend, .tp-facet-event { color: #e5e3da; font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.tp-price-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tp-price-inputs label { min-width: 0; color: #b8b6aa; font-size: 12px; }
.tp-price-inputs input, .tp-facet-event select { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; margin-top: 6px; padding: 8px; border: 1px solid rgba(229, 227, 218, .25); border-radius: 8px; color: #e5e3da; background: #15161b; font: inherit; font-size: 16px; }
.tp-facet-options { max-height: 224px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.tp-facet-option { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #b8b6aa; font-size: 14px; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.tp-facet-option input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: #e5e3da; }
.tp-filter-error { color: #d88d84; font-size: 13px; line-height: 1.5; margin-top: 8px; }
.tp-merch-image-wrap { position: relative; min-width: 0; }
section[aria-labelledby="catalogue-title"] .tp-merch-image-wrap .tp-merch-visual-frame,
#shop-drops .tp-merch-image-wrap .tp-merch-visual-frame { display: block; }
section[aria-labelledby="catalogue-title"] .tp-floating-badge,
#shop-drops .tp-floating-badge { max-width: calc(100% - 80px); white-space: normal; line-height: 1.5; box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.tp-catalogue-heart { position: absolute; top: 12px; right: 12px; z-index: 4; display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; color: #f2f0e8; background: rgba(18, 20, 26, 0.88); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); cursor: pointer; transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.tp-catalogue-heart.is-saved svg { fill: currentColor; }
.tp-catalogue-heart:hover { background: rgba(30, 34, 44, 0.95); border-color: rgba(255, 255, 255, 0.50); color: #ffffff; transform: scale(1.08); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.tp-catalogue-heart:active { transform: scale(0.92); transition: transform 0.08s ease-out; }
section[aria-labelledby="catalogue-title"] .tp-merch-body,
#shop-drops .tp-merch-body { display: flex; flex-direction: column; gap: 12px; }
section[aria-labelledby="catalogue-title"] .tp-merch-name,
#shop-drops .tp-merch-name,
.tp-card-variant-pill { overflow-wrap: anywhere; }
.tp-card-variant-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
section[aria-labelledby="catalogue-title"] .tp-card-variant-pill,
#shop-drops .tp-card-variant-pill { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.20); border-radius: 8px; background: rgba(255, 255, 255, 0.07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #f2f0e8; font-family: var(--ah-text, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Anuphan", "IBM Plex Sans Thai", system-ui, sans-serif); font-size: 13px; font-weight: 500; line-height: 1.35; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.10); transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; -webkit-font-smoothing: antialiased; }
section[aria-labelledby="catalogue-title"] button.tp-card-variant-pill,
#shop-drops button.tp-card-variant-pill { cursor: pointer; }
section[aria-labelledby="catalogue-title"] button.tp-card-variant-pill:hover,
#shop-drops button.tp-card-variant-pill:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.40); color: #ffffff; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.20); }
section[aria-labelledby="catalogue-title"] button.tp-card-variant-pill:active,
#shop-drops button.tp-card-variant-pill:active { transform: scale(0.96); transition: transform 0.08s ease-out; }
section[aria-labelledby="catalogue-title"] .tp-card-variant-pill.is-sold-out,
#shop-drops .tp-card-variant-pill.is-sold-out { color: #8e8d85; text-decoration: line-through; background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.08); cursor: not-allowed; opacity: 0.6; box-shadow: none; }
section[aria-labelledby="catalogue-title"] .tp-merch-card-dock,
#shop-drops .tp-merch-card-dock { margin-top: auto; }
section[aria-labelledby="catalogue-title"] .tp-dock-pricing-row,
#shop-drops .tp-dock-pricing-row { flex-direction: column; align-items: stretch; gap: 12px; }
section[aria-labelledby="catalogue-title"] .tp-dock-price,
#shop-drops .tp-dock-price { min-height: 24px; font-variant-numeric: tabular-nums; }
section[aria-labelledby="catalogue-title"] .tp-dock-cta-btn,
#shop-drops .tp-dock-cta-btn { width: 100%; min-height: 44px; white-space: normal; }
section[aria-labelledby="catalogue-title"] :is(.tp-dock-cta-btn, .tp-card-variant-pill, .tp-catalogue-heart, input, select, .tp-variant-sheet-row):focus-visible,
#shop-drops :is(.tp-dock-cta-btn, .tp-card-variant-pill, .tp-catalogue-heart, input, select, .tp-variant-sheet-row):focus-visible { outline: 2px solid #e5e3da; outline-offset: 3px; }
section[aria-labelledby="catalogue-title"] .tp-variant-sheet-body,
#shop-drops .tp-variant-sheet-body { overscroll-behavior: contain; }
@media (max-width: 767px) {
  section[aria-labelledby="catalogue-title"] .tp-merch-grid,
  .tp-merch-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  section[aria-labelledby="catalogue-title"] .tp-merch-grid,
  .tp-merch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (min-width: 1024px) {
  section[aria-labelledby="catalogue-title"] .tp-shop-layout { grid-template-columns: 220px minmax(0, 1fr); }
  section[aria-labelledby="catalogue-title"] .tp-shop-sidebar { max-height: calc(100dvh - 120px); overflow-y: auto; }
  section[aria-labelledby="catalogue-title"] .tp-merch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  section[aria-labelledby="catalogue-title"] .tp-merch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
section[aria-labelledby="catalogue-title"] .tp-floating-badge:not(.tp-floating-badge--low):not(.tp-floating-badge--preorder),
#shop-drops .tp-floating-badge:not(.tp-floating-badge--low):not(.tp-floating-badge--preorder) { background: rgba(15, 15, 15, .94); color: #e5e3da; border: 1px solid rgba(229, 227, 218, .25); }
section[aria-labelledby="catalogue-title"] .tp-shop-toolbar { padding: 12px; border: 1px solid rgba(229, 227, 218, .2); border-radius: 12px; background: rgba(15, 15, 15, .96); }
section[aria-labelledby="catalogue-title"] .tp-shop-range { width: fit-content; max-width: 100%; padding: 6px 10px; border-radius: 6px; color: #b8b6aa; background: rgba(15, 15, 15, .96); }
section[aria-labelledby="catalogue-title"] :is(button, input, select, [tabindex]) { scroll-margin-block: 100px; }
/* Keep the Quick-add capsule taller than its touch targets, including on mobile. */
section[aria-labelledby="catalogue-title"] .tp-variant-sheet-row,
#shop-drops .tp-variant-sheet-row { flex-wrap: wrap; min-width: 0; }
section[aria-labelledby="catalogue-title"] .tp-sheet-row-meta,
#shop-drops .tp-sheet-row-meta { min-width: 0; overflow-wrap: anywhere; }
section[aria-labelledby="catalogue-title"] .tp-sheet-row-controls,
#shop-drops .tp-sheet-row-controls { max-width: 100%; flex-wrap: wrap; }
section[aria-labelledby="catalogue-title"] .tp-variant-sheet .tp-qty-stepper,
#shop-drops .tp-variant-sheet .tp-qty-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); place-items: center; box-sizing: border-box; width: 144px; min-width: 144px; height: 50px; min-height: 50px; padding: 2px; gap: 0; }
section[aria-labelledby="catalogue-title"] .tp-variant-sheet .tp-qty-stepper :is(.tp-stepper-btn, .tp-qty-input),
#shop-drops .tp-variant-sheet .tp-qty-stepper :is(.tp-stepper-btn, .tp-qty-input) { box-sizing: border-box; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; font-size: 16px; line-height: 1; }
@media (max-width: 640px) {
  section[aria-labelledby="catalogue-title"] .tp-variant-sheet-row,
  #shop-drops .tp-variant-sheet-row { flex-direction: column; align-items: stretch; }
  section[aria-labelledby="catalogue-title"] .tp-sheet-row-controls,
  #shop-drops .tp-sheet-row-controls { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 12px; }
  section[aria-labelledby="catalogue-title"] .tp-sheet-row-controls > .tp-dock-cta-btn,
  #shop-drops .tp-sheet-row-controls > .tp-dock-cta-btn { min-width: 0; min-height: 44px; }
}
@media (max-width: 379px) {
  section[aria-labelledby="catalogue-title"] .tp-sheet-row-controls,
  #shop-drops .tp-sheet-row-controls { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  section[aria-labelledby="catalogue-title"] .tp-sheet-row-controls > .tp-dock-cta-btn,
  #shop-drops .tp-sheet-row-controls > .tp-dock-cta-btn { width: 100%; }
}

/* Cart controls: one geometry, independent of global button rules. */
body.ah-customer-system.ah-cart-page .ah-main .tp-cart-action-group .tp-qty-stepper--cart {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  align-items: center;
  justify-content: center;
  width: 144px;
  min-width: 144px;
  height: 50px;
  padding: 2px;
  gap: 2px;
}
body.ah-customer-system.ah-cart-page .ah-main .tp-cart-action-group .tp-qty-stepper--cart .tp-stepper-btn,
body.ah-customer-system.ah-cart-page .ah-main .tp-cart-action-group .tp-qty-stepper--cart input.tp-cart-qty-input {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px;
  height: 44px !important;
  min-height: 44px;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 44px;
  text-align: center;
  transform: none;
  appearance: textfield;
  -moz-appearance: textfield;
}
body.ah-cart-page input.tp-cart-qty-input::-webkit-inner-spin-button,
body.ah-cart-page input.tp-cart-qty-input::-webkit-outer-spin-button { appearance: none; margin: 0; }
body.ah-cart-page .tp-qty-stepper--cart button:disabled { opacity: .35; cursor: not-allowed; }
body.ah-cart-page .tp-cart-controls-row { gap: 12px; }
body.ah-cart-page .tp-cart-limit-note { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.6; color: inherit; }
body.ah-cart-page .tp-cart-limit-note:empty { display: none; }
body.ah-cart-page .tp-cart-name a { color: inherit; text-decoration: none; }
body.ah-cart-page .tp-cart-name a:hover { text-decoration: underline; }
body.ah-cart-page .tp-cart-product-link { display: block; border-radius: inherit; }
body.ah-cart-page .tp-cart-variant-editor { flex: 0 1 auto; min-width: 0; max-width: 100%; }
body.ah-cart-page .tp-cart-variant-editor[open] { flex-basis: 100%; }
body.ah-cart-page .tp-cart-variant-editor summary,
body.ah-cart-page .tp-cart-promo summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; text-decoration: underline; }
body.ah-cart-page .tp-cart-promo { margin-bottom: 20px; }
body.ah-cart-page .tp-cart-promo form,
body.ah-cart-page .tp-cart-variant-editor form { display: grid; gap: 10px; min-width: 0; }
body.ah-cart-page .tp-cart-promo input,
body.ah-cart-page .tp-cart-variant-editor select { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 10px; color: inherit; background: rgba(15,15,15,.96); border: 1px solid rgba(229,227,218,.25); border-radius: 10px; }
body.ah-cart-page .tp-cart-delete-confirm { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 12px; }
body.ah-cart-page .tp-cart-delete-confirm[hidden] { display: none; }
body.ah-cart-page .tp-cart-delete-confirm button { min-height: 44px; }
body.ah-cart-page a:focus-visible,
body.ah-cart-page summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
body.ah-cart-page [data-cart-discount-row][hidden] { display: none !important; }
body.ah-cart-page .tp-cart-limit-note.is-error { font-weight: 600; }
/* ==========================================================================
   Apple Bento + Tactical Bunker Symmetrical Cart Grid (Grounded, Matte, Zero Floating)
   ========================================================================== */
body.ah-cart-page .tp-cart-card {
  display: grid;
  max-height: none;
  grid-template-columns: 36px 68px minmax(0, 1fr);
  grid-template-areas:
    "select thumb info"
    "actions actions actions";
  align-items: center;
  gap: 12px 10px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.96) 0%, rgba(12, 14, 18, 0.98) 100%);
  border: 1px solid rgba(122, 147, 116, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 16px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

body.ah-cart-page .tp-cart-card:not(:has(.tp-cart-select-line)) {
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-areas:
    "thumb info"
    "actions actions";
}

body.ah-cart-page .tp-cart-card.is-selected {
  border-color: rgba(245, 245, 247, 0.32);
  background: rgba(22, 25, 33, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* 1. Selection Checkbox Column */
body.ah-cart-page .tp-cart-select-line {
  grid-area: select;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 44px;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

body.ah-cart-page [data-cart-select-item],
body.ah-cart-page [data-cart-select-all] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #F5F5F7;
  cursor: pointer;
}

/* 2. Symmetrical 1:1 Thumbnail */
body.ah-cart-page .tp-cart-card > .tp-cart-product-link {
  grid-area: thumb;
  display: block;
  text-decoration: none;
}

body.ah-cart-page .tp-cart-thumb {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1115;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.ah-cart-page .tp-cart-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.ah-cart-page .tp-cart-thumb-glyph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #7A9374;
}

body.ah-cart-page .tp-cart-thumb-tag {
  font-family: var(--ah-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8e8d85;
}

/* 3. Product Info Cluster */
body.ah-cart-page .tp-cart-card > .tp-cart-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body.ah-cart-page .tp-cart-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7A9374;
  font-family: var(--ah-mono, monospace);
}

body.ah-cart-page .tp-cart-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  word-break: break-word;
  overflow-wrap: anywhere;
}

body.ah-cart-page .tp-cart-name a {
  color: inherit;
  text-decoration: none;
}

body.ah-cart-page .tp-cart-subinfo {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 2px;
}

body.ah-cart-page .tp-cart-meta-pill {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a3a199;
  font-family: var(--ah-mono, monospace);
  line-height: 1.4;
}

body.ah-cart-page .tp-cart-meta-pill--pickup {
  border-color: rgba(122, 147, 116, 0.35);
  color: #9cb59b;
}

body.ah-cart-page .tp-cart-meta-pill--shipping {
  border-color: rgba(255, 255, 255, 0.1);
  color: #8e8d85;
}

/* 4. Grounded Action Shelf (Price Left | Stepper & Trash Right) */
body.ah-cart-page .tp-cart-card > .tp-cart-action-group {
  grid-area: actions;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  box-sizing: border-box;
}

body.ah-cart-page .tp-cart-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

body.ah-cart-page .tp-cart-line-price {
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--ah-mono, monospace);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

body.ah-cart-page .tp-cart-unit-price {
  font-size: 11px;
  color: #88867d;
  font-family: var(--ah-mono, monospace);
}

body.ah-cart-page .tp-cart-controls-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Tactile Stepper Pill */
body.ah-cart-page .tp-qty-stepper--cart {
  height: 40px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 980px;
  padding: 2px 4px;
  box-sizing: border-box;
}

body.ah-cart-page .tp-qty-stepper--cart .tp-stepper-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 50% !important;
  border: none !important;
  background: transparent !important;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease;
}

body.ah-cart-page .tp-qty-stepper--cart .tp-stepper-btn:active {
  background: rgba(255, 255, 255, 0.16) !important;
  transform: scale(0.92);
}

body.ah-cart-page .tp-qty-stepper--cart input.tp-cart-qty-input {
  width: 34px;
  height: 34px;
  font-size: 15px !important;
  font-family: var(--ah-mono, monospace);
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}

/* Tactile Trash Button (Min 44px Touch Target) */
body.ah-cart-page .tp-cart-trash-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #9A9DA6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.ah-cart-page .tp-cart-trash-btn:hover {
  background: rgba(196, 81, 75, 0.15);
  border-color: rgba(196, 81, 75, 0.4);
  color: #ff857d;
}

body.ah-cart-page .tp-cart-trash-btn:active {
  background: rgba(196, 81, 75, 0.28) !important;
  border-color: rgba(196, 81, 75, 0.6) !important;
  color: #ff857d !important;
  transform: scale(0.92);
}

body.ah-cart-page .tp-cart-card > .tp-cart-limit-note {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 4px 0 0;
  font-size: 11px;
  color: #8e8d85;
  font-family: var(--ah-mono, monospace);
}

body.ah-cart-page .tp-cart-variant-editor summary {
  white-space: normal;
}

/* Compact Mobile (< 380px) */
@media (max-width: 379px) {
  body.ah-cart-page section.tp-commerce-container[aria-labelledby="cart-title"] {
    padding-inline: 10px !important;
  }
  body.ah-cart-page .tp-cart-card {
    grid-template-columns: 32px 60px minmax(0, 1fr);
    padding: 12px 10px;
    gap: 10px 8px;
  }
  body.ah-cart-page .tp-cart-card:not(:has(.tp-cart-select-line)) {
    grid-template-columns: 60px minmax(0, 1fr);
  }
  body.ah-cart-page .tp-cart-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 10px;
  }
  body.ah-cart-page .tp-cart-name {
    font-size: 14px;
  }
  body.ah-cart-page .tp-cart-line-price {
    font-size: 15.5px;
  }
  body.ah-cart-page .tp-cart-controls-row {
    gap: 6px;
  }
}

/* Tablet Viewports (600px - 1023px) */
@media (min-width: 600px) and (max-width: 1023px) {
  body.ah-cart-page .tp-cart-card {
    grid-template-columns: 36px 76px minmax(0, 1fr);
    grid-template-areas:
      "select thumb info"
      "actions actions actions";
    gap: 14px 16px;
    padding: 18px 20px;
  }
  body.ah-cart-page .tp-cart-card:not(:has(.tp-cart-select-line)) {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "thumb info"
      "actions actions";
  }
  body.ah-cart-page .tp-cart-thumb {
    width: 76px;
    height: 76px;
    min-width: 76px;
  }
  body.ah-cart-page .tp-cart-card > .tp-cart-action-group {
    padding-top: 12px;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
}

/* Desktop Viewports (>= 1024px) */
@media (min-width: 1024px) {
  body.ah-cart-page .tp-cart-card {
    grid-template-columns: 36px 80px minmax(0, 1fr) auto;
    grid-template-areas: "select thumb info actions";
    gap: 16px 20px;
    padding: 20px 24px;
  }
  body.ah-cart-page .tp-cart-card:not(:has(.tp-cart-select-line)) {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    grid-template-areas: "thumb info actions";
  }
  body.ah-cart-page .tp-cart-thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
  }
  body.ah-cart-page .tp-cart-card > .tp-cart-action-group {
    width: auto;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    justify-content: flex-end;
    gap: 22px;
  }
  body.ah-cart-page .tp-cart-price-col {
    align-items: flex-end;
    text-align: right;
  }
}

/* Coupon disclosure and whole-line cart selection. Reuse existing material colors. */
body.ah-cart-page .tp-cart-promo {
  border: 1px solid rgba(229, 227, 218, .2);
  border-radius: 14px;
  background: rgba(15, 15, 15, .82);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 5px 14px rgba(0,0,0,.25);
  overflow: clip;
}
body.ah-cart-page .tp-cart-promo > summary {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  min-height: 48px;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}
body.ah-cart-page .tp-cart-promo > summary::-webkit-details-marker { display: none; }
body.ah-cart-page .tp-cart-promo > summary svg { flex: none; transition: transform 180ms ease; }
body.ah-cart-page .tp-cart-promo[open] > summary { border-bottom: 1px solid rgba(229,227,218,.16); }
body.ah-cart-page .tp-cart-promo[open] > summary svg { transform: rotate(180deg); }
body.ah-customer-system.ah-cart-page .ah-main .tp-summary-card .tp-cart-promo > form { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 14px; }
body.ah-cart-page .tp-cart-promo label { grid-column: 1 / -1; }
body.ah-cart-page .tp-cart-promo button { min-height: 44px; }
body.ah-cart-page #cart-promo-error:not(:empty) { padding: 0 14px 14px; margin: 0; }
body.ah-cart-page #cart-promo-error:empty { display: none; }
body.ah-cart-page .tp-cart-promo::details-content { transition: block-size 180ms ease, content-visibility 180ms allow-discrete; overflow: clip; }
@supports (interpolate-size: allow-keywords) {
  body.ah-cart-page .tp-cart-promo { interpolate-size: allow-keywords; }
  body.ah-cart-page .tp-cart-promo::details-content { block-size: 0; }
  body.ah-cart-page .tp-cart-promo[open]::details-content { block-size: auto; }
}
/* Grounded Tactical Selection Bar (Apple Cupertino × Tactical Bunker) */
body.ah-cart-page .tp-cart-selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(122, 147, 116, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.96) 0%, rgba(12, 14, 18, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 18px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-sizing: border-box;
}

body.ah-cart-page .tp-cart-selection-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  min-width: 0;
}

body.ah-cart-page .tp-cart-select-line {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  cursor: pointer;
}

body.ah-cart-page .tp-cart-select-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  cursor: pointer;
  color: #F5F5F7;
  font-family: var(--ah-text, inherit);
  font-size: 14px;
  font-weight: 500;
}

body.ah-cart-page [data-cart-select-item],
body.ah-cart-page [data-cart-select-all] {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 0;
  accent-color: #F5F5F7;
}

body.ah-cart-page .tp-cart-selection-count {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid rgba(122, 147, 116, 0.25);
  border-radius: 980px;
  background: rgba(122, 147, 116, 0.08);
  color: #7A9374;
  font-family: var(--ah-mono, monospace);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

body.ah-cart-page .tp-cart-selected-units { font-size: 13px; line-height: 1.6; }

body.ah-cart-page .tp-cart-batch-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

body.ah-cart-page .tp-cart-batch-confirm {
  position: relative;
  min-width: 0;
  flex: 0 1 auto;
}

body.ah-cart-page .tp-cart-batch-confirm > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.05);
  color: #9A9DA6;
  font-family: var(--ah-text, inherit);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  text-decoration: none;
  transition: all 0.15s ease;
}

body.ah-cart-page .tp-cart-batch-confirm > summary::-webkit-details-marker { display: none; }
body.ah-cart-page .tp-cart-batch-confirm > summary::after { display: none; }
body.ah-cart-page .tp-cart-batch-confirm > summary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}
body.ah-cart-page .tp-cart-batch-confirm > summary:active { transform: scale(0.98); }
body.ah-cart-page .tp-cart-batch-confirm > summary:focus-visible { outline: 2px solid var(--ah-action, #e5e3da); outline-offset: 2px; }

body.ah-cart-page .tp-cart-batch-confirm > div {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(122, 147, 116, 0.28);
  border-radius: 14px;
  background: rgba(14, 16, 21, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

body.ah-cart-page .tp-cart-batch-confirm p { margin-top: 0; line-height: 1.6; color: #F5F5F7; font-size: 13px; }
body.ah-cart-page .tp-cart-batch-confirm button { min-height: 44px; margin: 4px 4px 0 0; }
body.ah-cart-page [data-selection-feedback] { flex-basis: 100%; font-size: 13px; line-height: 1.6; margin: 0; }
body.ah-cart-page [data-selection-feedback]:empty { display: none; }
body.ah-cart-page .tp-cart-card.is-selected { border-color: rgba(245, 245, 247, 0.32); }
body.ah-cart-page [data-selected-checkout][aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
body.ah-cart-page [data-selection-error][hidden] { display: none !important; }
body.ah-cart-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 599px) {
  body.ah-customer-system.ah-cart-page .ah-main .tp-summary-card .tp-cart-promo > form { grid-template-columns: minmax(0, 1fr); }
  body.ah-cart-page .tp-cart-promo label { grid-column: 1; }
  body.ah-cart-page .tp-cart-selection-bar { align-items: stretch; gap: 10px; padding: 12px; }
  body.ah-cart-page .tp-cart-selection-main { width: 100%; justify-content: space-between; }
  body.ah-cart-page .tp-cart-batch-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.ah-cart-page .tp-cart-batch-confirm { width: 100%; }
  body.ah-cart-page .tp-cart-batch-confirm > summary { width: 100%; min-height: 44px; padding-inline: 8px; font-size: 12.5px; box-sizing: border-box; text-align: center; }
  body.ah-cart-page .tp-cart-batch-confirm > div { grid-column: 1 / -1; width: 100%; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
  body.ah-cart-page .tp-cart-promo::details-content,
  body.ah-cart-page .tp-cart-promo > summary svg,
  body.ah-cart-page .tp-cart-progress li,
  body.ah-cart-page .tp-cart-batch-confirm > summary,
  body.ah-cart-page .tp-cart-batch-confirm > summary::after { transition: none; }
}

/* Customer prices share the same numeral shapes at both summary levels. */
body.ah-cart-page .tp-summary-card :is(.tp-cart-subtotal-val, .tp-cart-total-val) { font-family: var(--ah-text); font-variant-numeric: lining-nums tabular-nums; }

/* Cart empty state: quiet focus, clear next action, existing palette only. */
body.ah-cart-page .tp-empty-state {
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(720px, 100%);
  min-height: 300px;
  box-sizing: border-box;
  margin: clamp(20px, 4vw, 32px) auto 0;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 48px);
  background: #0d0e12;
  border: 1px solid rgba(229, 227, 218, 0.10);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
}

body.ah-cart-page .tp-empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 0 14px;
  color: var(--ah-soft);
}

body.ah-cart-page .tp-empty-icon svg {
  display: block;
  width: 32px;
  height: 32px;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.ah-cart-page .tp-empty-state h2 {
  margin: 0;
  color: var(--ah-paper);
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}

body.ah-cart-page .tp-empty-state p {
  max-width: 48ch;
  margin: 8px 0 0;
  color: var(--ah-soft);
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}

body.ah-cart-page .tp-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
}

body.ah-cart-page .tp-empty-primary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 22px;
  border: 1px solid var(--ah-action-fill);
  border-radius: var(--ef-radius-pill, 980px);
  background: var(--ah-action-fill);
  color: var(--ah-action-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 160ms ease;
}

body.ah-cart-page .tp-empty-primary:hover {
  border-color: var(--ah-action-fill-hover);
  background: var(--ah-action-fill-hover);
}

body.ah-cart-page .tp-empty-primary:active { transform: scale(0.98); }
body.ah-cart-page .tp-empty-primary:focus-visible,
body.ah-cart-page .tp-empty-secondary:focus-visible {
  outline: 2px solid var(--ah-action);
  outline-offset: 3px;
}

body.ah-cart-page .tp-empty-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 8px;
  color: var(--ah-soft);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

body.ah-cart-page .tp-empty-secondary:hover {
  color: var(--ah-paper);
  text-decoration: underline;
}

@media (max-width: 479px) {
  body.ah-cart-page .tp-empty-state {
    min-height: 280px;
    padding: 36px 20px;
  }

  body.ah-cart-page .tp-empty-actions {
    width: min(100%, 320px);
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
  }

  body.ah-cart-page .tp-empty-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body.ah-cart-page .tp-empty-primary,
  body.ah-cart-page .tp-empty-secondary { transition: none; }
}

/* ==========================================================================
   PAYMENT EXCEPTION // TACTICAL RECOVERY CHASSIS (APPLE BENTO + RE4 HUD)
   ========================================================================== */

.ah-payment-exception-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

.ah-payment-exception-chassis {
  margin-top: 16px;
  position: relative;
}

/* Telemetry Stat Bar */
.tp-exception-telemetry-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(229, 227, 218, 0.1);
  border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tp-telemetry-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-telemetry-label {
  font-family: var(--ah-mono);
  font-size: 10px;
  font-weight: 700;
  color: #8e8d85;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tp-telemetry-val {
  font-family: var(--ah-mono);
  font-size: 14px;
  font-weight: 700;
  color: #e5e3da;
}

.tp-telemetry-val--accent {
  color: #d8b47a;
  font-size: 16px;
}

@media (max-width: 640px) {
  .tp-exception-telemetry-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px;
  }
}

/* Section Containers */
.tp-exception-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-exception-section:last-of-type {
  border-bottom: none;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.tp-panel-subdesc {
  font-family: var(--ah-text);
  font-size: 12.5px;
  color: #8e8d85;
  margin: 2px 0 0;
  line-height: 1.5;
}

/* 2-Column Bento Form Grid */
.tp-bento-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

@media (max-width: 640px) {
  .tp-bento-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.tp-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-field-label {
  font-family: var(--ah-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #e5e3da;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tp-field-required {
  color: #d8b47a;
  font-weight: 800;
}

.tp-field-badge {
  font-family: var(--ah-mono);
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #8e8d85;
  letter-spacing: 0.06em;
}

.tp-field-hint {
  font-family: var(--ah-text);
  font-size: 11.5px;
  color: #71717a;
  line-height: 1.4;
}

/* Form Inputs & Selects */
.tp-select-wrap {
  position: relative;
  width: 100%;
}

.tp-apple-select,
.tp-apple-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 7, 9, 0.85);
  border: 1px solid rgba(229, 227, 218, 0.18);
  color: #ffffff;
  font-size: 14px;
  font-family: var(--ah-text);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.tp-apple-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

.tp-apple-select option {
  background: #121318;
  color: #ffffff;
}

.tp-apple-select:focus,
.tp-apple-input:focus {
  outline: none;
  border-color: rgba(216, 180, 122, 0.6);
  background: rgba(8, 9, 12, 0.95);
  box-shadow: 0 0 0 3px rgba(216, 180, 122, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.tp-apple-input.font-mono {
  font-family: var(--ah-mono);
  letter-spacing: 0.05em;
}

/* Read-Only Amount Display Box */
.tp-readonly-amount-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  color: #8e8d85;
}

.tp-readonly-amount-num {
  font-family: var(--ah-mono);
  font-size: 15px;
  font-weight: 700;
  color: #e5e3da;
}

.tp-readonly-amount-note {
  font-family: var(--ah-text);
  font-size: 11.5px;
  color: #71717a;
  margin-left: auto;
}

/* Trust Note */
.tp-trust-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-top: 14px;
  font-family: var(--ah-text);
  font-size: 12px;
  color: #8e8d85;
}

.tp-trust-note svg {
  color: #d8b47a;
  flex-shrink: 0;
}

/* Dropzone refinement for payment exception */
.tp-dropzone {
  min-height: 170px;
  border-color: rgba(229, 227, 218, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.tp-dropzone.is-dragover {
  border-color: #d8b47a;
  background: rgba(216, 180, 122, 0.06);
}

/* Grounded Dock Refinement */
.tp-exception-dock {
  margin-top: 24px;
}

.tp-exception-status-text {
  font-family: var(--ah-mono);
  font-size: 12px;
  color: #8e8d85;
  transition: color 0.18s ease;
}

.tp-exception-status-text.is-ready {
  color: #d8b47a;
}

.tp-exception-submit-btn:disabled,
.tp-exception-submit-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* The customer shell already supplies mobile gutters; avoid stacking a second
   outer inset on commerce pages that use the shared container defaults. */
@media (max-width: 767px) {
  .ah-main > .tp-commerce-container:is(.tp-wishlist-page, .tp-product-detail),
  .ah-main > .tp-return-page {
    padding-inline: 0;
  }
}


/* ==========================================================================
   MASTER GROUNDED CHECKOUT BENTO ARCHITECTURE (Apple Cupertino × Resident Evil)
   ========================================================================== */

/* 1. Page Root & Layout Enclosure */
body.ah-checkout-page .tp-checkout-container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 28px) clamp(12px, 2vw, 20px) 48px;
  box-sizing: border-box;
}

/* 3. Master Grounded Header Chassis Plate (Apple Cupertino × Tactical Dark) */
body.ah-checkout-page .ah-booking-header {
  margin-bottom: clamp(20px, 3vw, 28px);
  padding: clamp(18px, 3vw, 26px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.96) 0%, rgba(12, 14, 18, 0.98) 100%);
  border: 1px solid rgba(122, 147, 116, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 36px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-sizing: border-box;
}

body.ah-checkout-page .ah-booking-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
}

body.ah-checkout-page .ah-back-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F5F5F7;
  font-family: var(--ah-text, inherit);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

body.ah-checkout-page .ah-back-capsule:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateX(-2px);
}

body.ah-checkout-page .ah-back-capsule:active {
  transform: scale(0.97) translateX(-1px);
}

body.ah-checkout-page .ah-nav-category-tag {
  font-family: var(--ah-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #7A9374;
}

body.ah-checkout-page .ah-booking-heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
}

body.ah-checkout-page .ah-booking-subheading {
  font-size: 13.5px;
  color: #9a9da6;
  line-height: 1.45;
  margin: 0;
}

/* 4. Cupertino Segmented Progress Bar (Pill Chassis) */
body.ah-checkout-page .ah-booking-progress {
  display: flex;
  width: 100%;
  max-width: none;
  align-items: stretch;
  gap: 6px;
  margin: 16px 0 0;
  padding: 5px;
  list-style: none;
  border-radius: 980px;
  background: rgba(10, 11, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

body.ah-checkout-page .ah-booking-progress li {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  min-width: 0;
  border-radius: 980px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--ah-text, inherit);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

body.ah-checkout-page .ah-booking-progress-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--ah-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

body.ah-checkout-page .ah-booking-progress li[aria-current="step"] {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.ah-checkout-page .ah-booking-progress li[aria-current="step"] .ah-booking-progress-number {
  background: #ffffff;
  color: #0b0c0e;
}

body.ah-checkout-page .ah-booking-progress li.is-complete {
  color: #a9bc9a;
}

body.ah-checkout-page .ah-booking-progress li.is-complete .ah-booking-progress-number {
  background: rgba(122, 147, 116, 0.25);
  border: 1px solid rgba(122, 147, 116, 0.45);
  color: #a9bc9a;
}

body.ah-checkout-page .ah-booking-progress-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

body.ah-checkout-page .ah-booking-progress-back:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  body.ah-checkout-page .ah-booking-progress {
    gap: 4px;
    padding: 4px;
  }

  body.ah-checkout-page .ah-booking-progress li {
    min-height: 48px;
    flex-direction: column;
    font-size: 11px;
    padding: 6px 3px;
    gap: 3px;
    line-height: 1.2;
    text-align: center;
  }

  body.ah-checkout-page .ah-booking-progress-number {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  body.ah-checkout-page .ah-booking-progress-back {
    flex-direction: column;
    gap: 3px;
  }
}

/* 5. Main Bento Grid & Cards */
body.ah-checkout-page .tp-checkout-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.85fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

@media (max-width: 900px) {
  body.ah-checkout-page .tp-checkout-bento-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

body.ah-checkout-page .tp-checkout-card {
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.94) 0%, rgba(13, 15, 19, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(16px, 2.5vw, 24px);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.38);
  margin-bottom: 20px;
  box-sizing: border-box;
}

body.ah-checkout-page .tp-checkout-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.ah-checkout-page .tp-checkout-card-title {
  font-family: var(--ah-display, inherit);
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.ah-checkout-page .tp-checkout-card-tag {
  font-family: var(--ah-mono, monospace);
  font-size: 10.5px;
  color: #7A9374;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* 6. Cargo Manifest List & Dual-Zone Layout */
body.ah-checkout-page .ah-cargo-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 0;
}

body.ah-checkout-page .tp-checkout-zone-group {
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(10, 11, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.ah-checkout-page .tp-checkout-zone-group--pass {
  border-left: 3.5px solid #e5e3da;
}

body.ah-checkout-page .tp-checkout-zone-group--cargo {
  border-left: 3.5px solid #6b8cae;
}

body.ah-checkout-page .ah-cargo-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: background-color 0.16s ease, border-color 0.16s ease;
  box-sizing: border-box;
}

body.ah-checkout-page .ah-cargo-item-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

body.ah-checkout-page .ah-cargo-item-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

body.ah-checkout-page .ah-cargo-item-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}

body.ah-checkout-page .ah-cargo-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

body.ah-checkout-page .ah-cargo-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--ah-mono, monospace);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #B4B7C0;
  white-space: nowrap;
}

body.ah-checkout-page .ah-cargo-pill--verified {
  color: #a9bc9a;
  border-color: rgba(122, 147, 116, 0.35);
  background: rgba(122, 147, 116, 0.12);
}

body.ah-checkout-page .ah-cargo-pill--preorder {
  background: rgba(212, 143, 56, 0.12);
  border-color: rgba(212, 143, 56, 0.35);
  color: #F1B257;
}

body.ah-checkout-page .ah-cargo-item-pricing {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

body.ah-checkout-page .ah-cargo-line-total {
  font-family: var(--ah-mono, monospace);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

body.ah-checkout-page .ah-cargo-unit-price {
  font-family: var(--ah-mono, monospace);
  font-size: 11px;
  color: #8E9099;
  font-variant-numeric: tabular-nums;
}

/* 2-Tier Tactile Shelf Layout for Mobile & Small Tablets (< 700px) */
@media (max-width: 699px) {
  body.ah-checkout-page .ah-cargo-item-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  body.ah-checkout-page .ah-cargo-item-pricing {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    width: 100%;
  }

  body.ah-checkout-page .ah-cargo-unit-price {
    order: 1;
  }

  body.ah-checkout-page .ah-cargo-line-total {
    order: 2;
    font-size: 16.5px;
  }
}

/* 7. Tactile Delivery Selection */
body.ah-checkout-page .tp-delivery-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  body.ah-checkout-page .tp-delivery-options-grid {
    grid-template-columns: 1fr;
  }
}

body.ah-checkout-page .tp-delivery-radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  box-sizing: border-box;
  min-height: 44px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

body.ah-checkout-page .tp-delivery-radio-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

body.ah-checkout-page .tp-delivery-radio-card.is-selected,
body.ah-checkout-page .tp-delivery-radio-card:has(input:checked) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(122, 147, 116, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 18px rgba(0, 0, 0, 0.35);
}

body.ah-checkout-page .tp-delivery-radio-card.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 255, 255, 0.05);
}

body.ah-checkout-page .tp-delivery-radio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.ah-checkout-page .tp-delivery-radio-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
}

body.ah-checkout-page .tp-delivery-radio-title::before {
  content: "◯";
  flex: 0 0 auto;
  color: var(--ah-soft, #7A7C85);
  font-family: var(--ah-mono, monospace);
  font-size: 13px;
}

body.ah-checkout-page .tp-delivery-radio-card.is-selected .tp-delivery-radio-title::before,
body.ah-checkout-page .tp-delivery-radio-card:has(input:checked) .tp-delivery-radio-title::before {
  content: "◉";
  color: #a9bc9a;
}

body.ah-checkout-page .tp-delivery-radio-badge {
  font-family: var(--ah-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #D2D4DC;
  white-space: nowrap;
  flex: 0 0 auto;
}

body.ah-checkout-page .tp-delivery-radio-card.is-selected .tp-delivery-radio-badge,
body.ah-checkout-page .tp-delivery-radio-card:has(input:checked) .tp-delivery-radio-badge {
  background: rgba(122, 147, 116, 0.22);
  border: 1px solid rgba(122, 147, 116, 0.4);
  color: #a9bc9a;
}

body.ah-checkout-page .tp-delivery-radio-desc {
  font-size: 12px;
  color: #9A9DA6;
  line-height: 1.45;
  margin: 0;
}

/* 8. Contact & Shipping Address Form */
body.ah-checkout-page .tp-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  body.ah-checkout-page .tp-address-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

body.ah-checkout-page .tp-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.ah-checkout-page .tp-form-field.full-width {
  grid-column: 1 / -1;
}

body.ah-checkout-page .tp-form-label {
  font-family: var(--ah-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #A0A3AB;
  text-transform: uppercase;
}

body.ah-checkout-page .tp-form-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: rgba(10, 11, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #FFFFFF;
  font-family: var(--ah-text, inherit);
  font-size: 14px;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

body.ah-checkout-page .tp-form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(16, 17, 22, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

body.ah-checkout-page .tp-form-input::placeholder {
  color: #555761;
}

body.ah-checkout-page .tp-field-error {
  display: none;
  font-size: 11.5px;
  color: #e06c75;
  margin-top: 2px;
}

body.ah-checkout-page .tp-field-error.is-visible {
  display: block;
}

body.ah-checkout-page .tp-recalled-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(122, 147, 116, 0.1);
  border: 1px solid rgba(122, 147, 116, 0.28);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0 16px;
  box-sizing: border-box;
}

body.ah-checkout-page .tp-recalled-banner-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a9bc9a;
  font-size: 12.5px;
  line-height: 1.4;
}

body.ah-checkout-page .tp-recalled-clear-btn {
  font-size: 12px;
  padding: 6px 12px;
  min-height: 36px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e3da;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

body.ah-checkout-page .tp-recalled-clear-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* 9. Master Grounded Order Summary Ledger (Right-Column Bento Plate) */
body.ah-checkout-page .tp-checkout-summary-col {
  min-width: 0;
}

body.ah-checkout-page .tp-checkout-ledger {
  position: sticky;
  top: 24px;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.96) 0%, rgba(14, 16, 20, 0.98) 100%);
  border: 1px solid rgba(122, 147, 116, 0.25);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 36px rgba(0, 0, 0, 0.48);
  box-sizing: border-box;
}

@media (max-width: 900px) {
  body.ah-checkout-page .tp-checkout-ledger {
    position: static;
    margin-top: 8px;
    padding: clamp(18px, 3vw, 24px);
  }
}

body.ah-checkout-page .tp-ledger-amounts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.ah-checkout-page .tp-ledger-amounts > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.ah-checkout-page .tp-ledger-amounts dt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  color: #9A9DA6;
}

body.ah-checkout-page .tp-ledger-amounts dd {
  margin: 0;
  font-family: var(--ah-mono, monospace);
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.ah-checkout-page .tp-ledger-total-box {
  background: rgba(10, 11, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

body.ah-checkout-page .tp-ledger-total-label {
  font-size: 13px;
  font-weight: 600;
  color: #A0A3AB;
  text-transform: uppercase;
  font-family: var(--ah-mono, monospace);
  letter-spacing: 0.05em;
}

body.ah-checkout-page .tp-ledger-total-val {
  font-family: var(--ah-mono, monospace);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Master 52px Titanium Pill CTA Button */
body.ah-checkout-page .tp-checkout-confirm-btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 980px;
  border: none;
  background: #ffffff;
  color: #0b0c0e;
  font-family: var(--ah-text, sans-serif);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.22);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

body.ah-checkout-page .tp-checkout-confirm-btn:hover:not(:disabled) {
  background: #f5f5f7;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 26px rgba(255, 255, 255, 0.35);
}

body.ah-checkout-page .tp-checkout-confirm-btn:active:not(:disabled) {
  transform: scale(0.98);
  background: #e8e8ed;
}

body.ah-checkout-page .tp-checkout-confirm-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

body.ah-checkout-page .tp-checkout-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  font-size: 13px;
  color: #8E9099;
  text-decoration: none;
  transition: color 0.18s ease;
  min-height: 40px;
}

body.ah-checkout-page .tp-checkout-back-link:hover {
  color: #FFFFFF;
}

body.ah-checkout-page .tp-ledger-seal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* 10. Confirmation Modal Tactile Polish */
body.ah-checkout-page .tp-checkout-confirm-dialog {
  border: 1px solid rgba(122, 147, 116, 0.3);
  background: rgba(18, 20, 26, 0.96);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

body.ah-checkout-page .tp-checkout-confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.ah-checkout-page .tp-checkout-confirm-mark {
  border-color: rgba(122, 147, 116, 0.35);
  background: rgba(122, 147, 116, 0.12);
  color: #a9bc9a;
}

body.ah-checkout-page .tp-checkout-confirm-summary {
  background: rgba(10, 11, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 11. Responsive Small Screen Adjustments (< 480px & < 380px) */
@media (max-width: 480px) {
  body.ah-checkout-page .tp-checkout-bento-grid {
    gap: 16px;
    margin-top: 16px;
  }

  body.ah-checkout-page .tp-checkout-card {
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 14px;
  }

  body.ah-checkout-page .tp-checkout-card-header {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }

  body.ah-checkout-page .tp-checkout-card-title {
    font-size: 15px;
  }

  body.ah-checkout-page .tp-delivery-radio-card {
    padding: 12px 14px;
  }

  body.ah-checkout-page .tp-ledger-total-box {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  body.ah-checkout-page .tp-ledger-total-val {
    align-self: flex-end;
  }
}

@media (max-width: 379px) {
  body.ah-checkout-page .tp-checkout-card {
    padding: 12px;
  }

  body.ah-checkout-page .tp-delivery-radio-card {
    padding: 10px 12px;
  }

  body.ah-checkout-page .tp-delivery-radio-title {
    font-size: 13.5px;
  }

  body.ah-checkout-page .tp-checkout-confirm-btn {
    font-size: 14.5px;
    padding: 12px 16px;
  }
}

/* Wishlist card header: clean spacious layout with heart floating on image stage */
.tp-wishlist-page .tp-merch-card-header {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-wishlist-page .tp-wishlist-card-cat {
  min-width: 0;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #a8a29e;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   MASTER GROUNDED MERCHANDISE CATALOGUE (Apple Cupertino × Resident Evil)
   ========================================================================== */

section.tp-commerce-container[aria-labelledby="catalogue-title"] {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 28px) clamp(12px, 2vw, 20px) 48px;
  box-sizing: border-box;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-commerce-header {
  margin-bottom: clamp(20px, 3vw, 28px);
  padding: clamp(18px, 3vw, 26px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.96) 0%, rgba(12, 14, 18, 0.98) 100%);
  border: 1px solid rgba(122, 147, 116, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 36px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-sizing: border-box;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-commerce-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .ah-eyebrow {
  font-family: var(--ah-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #7A9374;
  text-transform: uppercase;
  margin: 0;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-commerce-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-commerce-main-title {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-commerce-count-badge {
  font-family: var(--ah-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  color: #a9bc9a;
  background: rgba(122, 147, 116, 0.14);
  border: 1px solid rgba(122, 147, 116, 0.35);
  padding: 4px 10px;
  border-radius: 980px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-commerce-subtitle {
  font-size: 13.5px;
  color: #9A9DA6;
  line-height: 1.45;
  margin: 8px 0 0;
}

/* 2. Top Action Toolbar & Search Capsule */
section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-shop-toolbar {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.94) 0%, rgba(13, 15, 19, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  box-sizing: border-box;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-shop-search {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 980px;
  background: rgba(10, 11, 14, 0.85);
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.18s ease;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-shop-search:focus-within {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  background: rgba(14, 16, 22, 0.96);
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-shop-search input {
  height: 42px;
  padding: 0 16px;
  font-size: 13.5px;
  color: #FFFFFF;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-shop-search button {
  width: 44px;
  height: 42px;
  border-radius: 0 980px 980px 0;
  background: #ffffff;
  color: #0b0c0e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-shop-search button:hover {
  background: #f5f5f7;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-mobile-filter-btn {
  display: none;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F5F5F7;
  font-family: var(--ah-text, inherit);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  transition: all 0.16s ease;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-mobile-filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-sort-select {
  min-height: 42px;
  padding: 8px 32px 8px 16px;
  border-radius: 980px;
  background: rgba(10, 11, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-family: var(--ah-text, inherit);
  font-size: 13px;
  font-weight: 500;
  box-sizing: border-box;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-sort-apply {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e3da;
  font-family: var(--ah-text, inherit);
  font-size: 12.5px;
  font-weight: 600;
  box-sizing: border-box;
}

/* 3. Apple Horizontal Mobile Category Scroller */
section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-mobile-category-bar {
  margin-bottom: 20px;
  background: rgba(10, 11, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 980px;
  padding: 5px;
  box-sizing: border-box;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-mobile-category-scroller {
  gap: 6px;
  padding: 0;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-mobile-cat-pill {
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 980px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--ah-text, inherit);
  font-size: 13px;
  font-weight: 500;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-mobile-cat-pill:hover {
  color: #ffffff;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-mobile-cat-pill.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4);
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-mobile-cat-count {
  font-family: var(--ah-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-mobile-cat-pill.is-active .tp-mobile-cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* 4. Symmetrical 2-Column Responsive Product Grid */
@media (max-width: 767px) {
  section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-grid,
  .tp-merch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-mobile-filter-btn {
    display: inline-flex;
  }
}

@media (max-width: 339px) {
  section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-grid,
  .tp-merch-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
}

/* 5. Tactile Product Cards & Grounded Unified Action Shelf */
section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.96) 0%, rgba(13, 15, 19, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-card:hover {
  border-color: rgba(122, 147, 116, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 32px rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-card-header {
  height: 28px;
  min-height: 28px;
  padding: 0 12px;
  background: rgba(10, 11, 14, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-card-header-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7A9374;
  box-shadow: 0 0 6px rgba(122, 147, 116, 0.6);
  margin-right: 6px;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-card-header-num {
  font-family: var(--ah-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  color: #8e8d85;
  letter-spacing: 0.05em;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-visual-frame {
  aspect-ratio: 4 / 5;
  background: #101114;
  position: relative;
  overflow: hidden;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-card:hover .tp-merch-img {
  transform: scale(1.03);
}

/* Grounded Wishlist Heart Pill */
section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-catalogue-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: rgba(14, 16, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F5F5F7;
  display: grid;
  place-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-catalogue-heart:hover {
  background: rgba(25, 28, 36, 0.95);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.06);
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-catalogue-heart.is-saved {
  color: #dfc18d;
  border-color: rgba(196, 161, 106, 0.5);
  background: rgba(196, 161, 106, 0.18);
}

/* Card Body */
section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-body {
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-cat {
  font-family: var(--ah-mono, monospace);
  font-size: 10px;
  color: #7A9374;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-name {
  font-size: clamp(13.5px, 1.5vw, 15px);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: #FFFFFF;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-name a {
  color: inherit;
  text-decoration: none;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-card-variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-card-variant-pill {
  min-height: 32px;
  min-width: 32px;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Unified Grounded Action Shelf ("ไม่มีปุ่มลอย") */
section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-merch-card-dock {
  margin-top: auto;
  padding: 10px 14px 12px;
  background: rgba(10, 11, 14, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-dock-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-dock-price {
  font-family: var(--ah-mono, monospace);
  font-size: clamp(14px, 1.6vw, 16.5px);
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Master 44px Titanium Pill CTA in Shelf */
section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-dock-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 980px;
  border: none;
  background: #ffffff;
  color: #0b0c0e;
  font-family: var(--ah-text, sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.18);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  flex-shrink: 0;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-dock-cta-btn:hover:not(:disabled) {
  background: #f5f5f7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-dock-cta-btn:active:not(:disabled) {
  transform: scale(0.97);
  background: #e8e8ed;
}

section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-dock-cta-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Mobile Adjustments for Card Dock: When cards are in 2 columns on small mobile */
@media (max-width: 540px) {
  section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-dock-pricing-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-dock-cta-btn {
    width: 100%;
    min-height: 44px;
    font-size: 12px;
    padding: 8px 10px;
  }

  section.tp-commerce-container[aria-labelledby="catalogue-title"] .tp-dock-price {
    font-size: 14.5px;
    text-align: left;
  }
}
