/* ==========================================================================
   MarioMaker product page (single-product.php, pdp-woo.js).
   Mobile-first: phone = one column (gallery → info), ≥900px = gallery | info.
   Loaded after home.css/site.css on product pages only; uses their tokens.
   ========================================================================== */

.pdx {
  --pdx-green: var(--mm-brand, #62d31f);
  --pdx-green-hover: var(--mm-brand-hover, #54bd16);
  --pdx-green-tint: #f1fbea;
  --pdx-ink: var(--mm-ink, #111214);
  --pdx-muted: var(--mm-muted, #5f646d);
  --pdx-line: var(--mm-line, #e3e5e8);
  --pdx-soft: #f4f5f6;
  --pdx-r: 12px;
  padding: 4px 0 40px;
  color: var(--pdx-ink);
}
.pdx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.pdx-gallery, .pdx-info { min-width: 0; }

/* ---------- Gallery ---------- */
.pdx-stage {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 16px; background: var(--pdx-soft);
}
.pdx-stage .pdp-slider-track { height: 100%; }
.pdx-stage .pdp-slide img { object-fit: cover; }
.pdx-sale {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px;
  background: var(--pdx-ink); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.pdx-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  background: rgba(17, 18, 20, .66); color: #fff; font-size: .76rem; font-weight: 600; font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.pdx-thumbs {
  position: relative; display: flex; gap: 8px; margin-top: 10px; padding: 2px 2px 4px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  /* Fade on the right edge says "there is more — scroll". */
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
          mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.pdx-thumbs::-webkit-scrollbar { display: none; }
.pdx-thumb {
  flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; background: var(--pdx-soft); cursor: pointer; scroll-snap-align: start;
  opacity: .72; transition: opacity .15s, border-color .15s;
}
.pdx-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pdx-thumb:hover { opacity: 1; }
.pdx-thumb.is-active { border-color: var(--pdx-green); opacity: 1; }
.pdx-thumb:focus-visible { outline: 2px solid var(--pdx-ink); outline-offset: 1px; }

/* ---------- Title / price / intro ---------- */
.pdx-title {
  margin: 0; font-family: var(--mm-font-head); font-size: clamp(1.55rem, 6.4vw, 2.3rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -.015em; color: var(--pdx-ink); text-transform: none;
}
.pdx-price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
.pdx-price, .pdx-price .price { font-family: var(--mm-font-head); font-size: clamp(1.7rem, 7vw, 2.1rem); font-weight: 800; color: var(--pdx-ink); }
.pdx-price del { font-size: .6em; font-weight: 600; color: var(--pdx-muted); }
.pdx-price ins { text-decoration: none; }
.pdx-tax { font-size: .82rem; color: var(--pdx-muted); }

/* ---------- Free Shipping Gift (inc/free-shipping-gift.php) ---------- */
.pdx-gift {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 11px 14px;
  border: 1px solid #cfeebd; border-left: 3px solid var(--pdx-green); border-radius: var(--pdx-r);
  background: var(--pdx-green-tint); max-width: 520px;
}
.pdx-gift-icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: #2f6b0e; box-shadow: 0 0 0 1px #cfeebd;
}
.pdx-gift-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pdx-gift-title {
  font-family: var(--mm-font-head); font-size: .8rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: #2f6b0e; line-height: 1.2;
}
.pdx-gift-sub { font-size: .9rem; line-height: 1.4; color: var(--mm-ink-2, #2d3036); }
@media (max-width: 380px) { .pdx-gift { gap: 10px; padding: 10px 12px; } .pdx-gift-icon { width: 32px; height: 32px; } }

/* Free-shipping pill on the price line (gift products, inc/free-shipping-gift.php) — opens the Shipping row */
.pdx-ship-pill {
  display: inline-flex; align-items: center; gap: 6px; align-self: center; padding: 5px 11px 5px 9px;
  border: 1px solid #bfe6a6; border-radius: 999px; background: #eef9e6; color: #2f6b0e;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.pdx-ship-pill svg { width: 17px; height: 17px; flex: none; }
.pdx-ship-pill:hover, .pdx-ship-pill:focus-visible { background: #e1f5d3; border-color: var(--mm-brand, #62d31f); }
/* Rows reached by a #link (badge, rating) land below the sticky desktop header, not under it */
.pdx-acc { scroll-margin-top: calc(var(--mm-header-h, 64px) + 16px); }
.pdx-lede { margin-top: 8px; font-size: 1.02rem; line-height: 1.55; color: var(--mm-ink-2, #2d3036); }
.pdx-lede p { margin: 0; }

/* ---------- "Made for" icons ---------- */
.pdx-uses {
  display: flex; gap: 6px; margin: 18px 0 0; padding: 0 0 2px; list-style: none;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.pdx-uses::-webkit-scrollbar { display: none; }
.pdx-uses li {
  flex: 1 0 auto; min-width: 62px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 2px; text-align: center; font-size: .72rem; font-weight: 500; line-height: 1.2; color: var(--mm-ink-2, #2d3036);
}
.pdx-use-icon { width: 30px; height: 30px; fill: none; stroke: var(--pdx-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Key features ---------- */
.pdx-features {
  display: grid; gap: 10px; margin: 14px 0 0; padding: 16px 16px; list-style: none;
  border-radius: var(--pdx-r); background: var(--pdx-soft);
}
.pdx-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; line-height: 1.45; color: var(--pdx-ink); }
.pdx-features svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: -1px; }
.pdx-features svg circle { fill: var(--pdx-green); }
.pdx-features svg path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Battery button (opens the drawer) ---------- */
.pdx-battery {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; margin-top: 18px; padding: 10px 14px;
  border: 2px solid var(--pdx-green); border-radius: var(--pdx-r); background: var(--pdx-green-tint);
  color: var(--pdx-ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.pdx-battery:hover { box-shadow: 0 6px 18px -10px rgba(17, 18, 20, .35); }
.pdx-battery:focus-visible { outline: 2px solid var(--pdx-ink); outline-offset: 2px; }

/* Battery dropdown with icons (pdp-woo.js initBatteryDropdown) — same look as the homepage best seller */
.pdx-bats { margin: 18px 0 14px; scroll-margin: 90px; }
.pdx-bats-title { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pdx-ink, #111214); }
.pdx-dd { position: relative; }
.pdx-dd::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--pdx-ink, #111214); border-bottom: 2px solid var(--pdx-ink, #111214);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.pdx-dd.is-open::after { transform: translateY(-30%) rotate(225deg); }
.pdx-dd-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 44px 0 16px;
  border: 1.5px solid #cfd3d8; border-radius: 6px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--pdx-ink, #111214); text-align: left; cursor: pointer;
}
.pdx-dd-btn:hover, .pdx-dd-btn:focus-visible, .pdx-dd.is-open .pdx-dd-btn { border-color: var(--pdx-ink, #111214); outline: none; }
.pdx-dd-btn.is-empty { color: var(--mm-ink-2, #3a3d42); }
.pdx-bats.is-missing .pdx-dd-btn { border-color: #c0392b; }
.pdx-dd-btn img, .pdx-dd-list img { flex: none; width: 34px; height: 24px; object-fit: contain; }
.pdx-dd-btn span, .pdx-dd-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdx-dd-list {
  position: fixed; z-index: 55; max-height: 340px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #dfe2e6; border-radius: 6px;
  box-shadow: 0 16px 40px -12px rgba(17, 18, 20, .3); overscroll-behavior: contain;
}
.pdx-dd-list:focus { outline: none; }
.pdx-dd-list li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 6px; font-size: .98rem; color: var(--pdx-ink, #111214); cursor: pointer; }
.pdx-dd-list li.is-placeholder { color: var(--mm-ink-2, #3a3d42); }
.pdx-dd-list li.is-active { background: #f2f3f5; }
.pdx-dd-list li[aria-selected="true"] { background: #f1fbea; font-weight: 600; }
.pdx-dd-list li[aria-selected="true"]::after { content: ''; margin-left: auto; width: 6px; height: 11px; border-right: 2px solid var(--mm-brand, #62d31f); border-bottom: 2px solid var(--mm-brand, #62d31f); transform: rotate(45deg) translate(-2px, -2px); flex: none; }
.pdx-bats-msg { margin: 10px 0 0; font-size: .9rem; font-weight: 600; color: #b42318; }
.pdx-battery.has-value { border: 1.5px solid var(--pdx-line); background: #fff; }
.pdx-battery.has-value:hover { border-color: var(--pdx-ink); }
.pdx-battery-media { display: none; flex: 0 0 56px; height: 52px; }
.pdx-battery.has-value .pdx-battery-media { display: block; }
.pdx-battery-media img { width: 100%; height: 100%; object-fit: contain; }
.pdx-battery-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pdx-battery-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pdx-muted); }
.pdx-battery-value { font-family: var(--mm-font-head); font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.pdx-battery-action {
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
  font-size: .85rem; font-weight: 700; color: var(--pdx-ink);
}
.pdx-battery-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Quantity + Add to cart (WooCommerce's own form) ---------- */
.pdx-buy { margin-top: 12px; }
.pdx-buy form.cart { margin: 0; }
.pdx-buy table.variations,
.pdx-buy .reset_variations,
.pdx-buy .woocommerce-variation-description,
.pdx-buy .woocommerce-variation-price { display: none !important; }
.pdx-buy .woocommerce-variation-availability p { margin: 0 0 8px; font-size: .88rem; color: var(--pdx-muted); }
.pdx-buy .woocommerce-variation-availability .out-of-stock { color: #b42318; font-weight: 600; }
.pdx-buy .woocommerce-variation-add-to-cart,
.pdx-buy form.cart:not(.variations_form) { display: flex; align-items: stretch; gap: 10px; }
.pdx-buy .quantity { margin: 0 !important; float: none !important; }
.pdx-buy .qty-selector {
  display: inline-flex; align-items: center; height: 56px; border: 1.5px solid var(--pdx-line); border-radius: var(--pdx-r);
  background: #fff; overflow: hidden;
}
.pdx-buy .qty-btn {
  display: grid; place-items: center; width: 42px; height: 100%; padding: 0; border: 0; background: none;
  font-size: 1.35rem; font-weight: 500; color: var(--pdx-ink); cursor: pointer;
}
.pdx-buy .qty-btn:hover { background: var(--pdx-soft); }
.pdx-buy .qty-selector .qty {
  width: 38px !important; height: 100%; padding: 0; border: 0 !important; background: none; box-shadow: none;
  text-align: center; font-size: 1.05rem; font-weight: 700; color: var(--pdx-ink); -moz-appearance: textfield;
}
.pdx-buy .qty-selector .qty::-webkit-outer-spin-button,
.pdx-buy .qty-selector .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce .pdx-buy button.single_add_to_cart_button.button.alt,
.pdx-buy .single_add_to_cart_button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; margin: 0; padding: 0 18px; border: 0; border-radius: var(--pdx-r);
  background: var(--pdx-green); color: var(--pdx-ink);
  font-family: var(--mm-font-head); font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; text-transform: none;
  opacity: 1; cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .1s;
}
.pdx-buy .single_add_to_cart_button::before {
  content: ''; width: 22px; height: 22px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2 3h3l2.6 12.2a1.5 1.5 0 0 0 1.5 1.3h8.8a1.5 1.5 0 0 0 1.5-1.2L21 8H6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2 3h3l2.6 12.2a1.5 1.5 0 0 0 1.5 1.3h8.8a1.5 1.5 0 0 0 1.5-1.2L21 8H6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce .pdx-buy button.single_add_to_cart_button.button.alt:hover,
.pdx-buy .single_add_to_cart_button:hover { background: var(--pdx-green-hover); color: var(--pdx-ink); box-shadow: 0 10px 22px -12px rgba(92, 173, 65, .9); }
.pdx-buy .single_add_to_cart_button:active { transform: translateY(1px); }
.pdx-buy .single_add_to_cart_button.is-loading { opacity: .65; pointer-events: none; } /* AJAX add to cart in flight (pdp-woo.js) */
/* Before a battery is chosen WooCommerce marks the button "disabled"; it stays
   fully visible because clicking it opens the battery drawer (pdp-woo.js). */
.woocommerce .pdx-buy button.single_add_to_cart_button.button.alt.disabled,
.woocommerce .pdx-buy button.single_add_to_cart_button.button.alt.disabled:hover { opacity: 1; background: var(--pdx-green); color: var(--pdx-ink); cursor: pointer; }
.pdx-buy .single_add_to_cart_button:focus-visible { outline: 2px solid var(--pdx-ink); outline-offset: 2px; }

.pdx-min-note { margin: 10px 0 0; }
/* Cart progress under Add to cart (inc/order-rules.php mariomaker_pdp_order_html, same bar as the kit builder) */
.pdx-order { margin-top: 14px; }
.pdx-order-cart { margin: 0 0 10px; font-size: .86rem; color: var(--mm-muted); }
.pdx-order .mm-track { --dot: 15px; }

/* ---------- Trust row ---------- */
.pdx-trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; padding: 14px 0;
  list-style: none; border-top: 1px solid var(--pdx-line); border-bottom: 1px solid var(--pdx-line);
}
.pdx-trust li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 8px; font-size: .74rem; line-height: 1.3; color: var(--pdx-muted); }
.pdx-trust li + li { border-left: 1px solid var(--pdx-line); }
.pdx-trust li:first-child { padding-left: 0; }
.pdx-trust svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--pdx-ink); }
.pdx-trust span { display: flex; flex-direction: column; min-width: 0; }
.pdx-trust strong { font-size: .8rem; font-weight: 700; color: var(--pdx-ink); }
.pdx-trust a { color: var(--pdx-muted); text-decoration: underline; text-underline-offset: 2px; }
.pdx-trust a:hover { color: var(--pdx-ink); }

.pdx-kit-pill { margin-top: 16px; }

/* ---------- Description / Specifications ---------- */
.pdx-accordions { margin-top: 18px; border-top: 1px solid var(--pdx-line); }
.pdx-acc { border-bottom: 1px solid var(--pdx-line); }
.pdx-acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 2px;
  list-style: none; cursor: pointer; font-family: var(--mm-font-head); font-size: 1.12rem; font-weight: 600; color: var(--pdx-ink);
}
.pdx-acc summary::-webkit-details-marker { display: none; }
.pdx-acc summary:focus-visible { outline: 2px solid var(--pdx-ink); outline-offset: 2px; }
.pdx-acc-icon { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.pdx-acc-icon::before, .pdx-acc-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px;
  border-radius: 2px; background: currentColor; transition: transform .2s;
}
.pdx-acc-icon::after { transform: rotate(90deg); }
.pdx-acc[open] .pdx-acc-icon::after { transform: rotate(0deg); }
.pdx-acc-body { padding: 0 2px 20px; }
.pdx-acc-body.pdp-prose { max-width: none; font-size: .96rem; }
.pdx-acc-body h3 { margin: 18px 0 8px; font-size: 1.02rem; font-weight: 700; color: var(--pdx-ink); }
.pdx-acc-body h3:first-child { margin-top: 0; }
.pdx-acc-body ul { margin: 0 0 12px; padding-left: 1.2em; }
.pdx-acc-body li { margin: 3px 0; }
.pdx-specs { margin: 0; }
.pdx-specs div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--pdx-line); font-size: .93rem; }
.pdx-specs div:last-child { border-bottom: 0; }
.pdx-specs dt { color: var(--pdx-muted); }
.pdx-specs dd { margin: 0; font-weight: 600; color: var(--pdx-ink); }

/* ==========================================================================
   Battery drawer — bottom sheet on phones, centred dialog from 768px
   ========================================================================== */
html.pdx-drawer-open { overflow: hidden; }
.pdx-drawer { position: fixed; inset: 0; z-index: 10001; }
.pdx-drawer[hidden] { display: none; }
.pdx-drawer-backdrop { position: absolute; inset: 0; background: rgba(17, 18, 20, .55); opacity: 0; transition: opacity .25s ease; }
.pdx-drawer.is-open .pdx-drawer-backdrop { opacity: 1; }
.pdx-drawer-panel {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
  height: min(92dvh, 100%); height: min(92vh, 100%);
  border-radius: 20px 20px 0 0; background: #fff; color: var(--mm-ink, #111214);
  box-shadow: 0 -12px 40px -12px rgba(17, 18, 20, .35);
  transform: translateY(100%); transition: transform .26s cubic-bezier(.22, .61, .36, 1);
}
@supports (height: 1dvh) { .pdx-drawer-panel { height: min(92dvh, 100%); } }
.pdx-drawer.is-open .pdx-drawer-panel { transform: none; }

.pdx-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 10px 20px; }
.pdx-drawer-title {
  margin: 0; font-family: var(--mm-font-head); font-size: 1.15rem; font-weight: 800;
  letter-spacing: .02em; text-transform: uppercase; color: var(--mm-ink, #111214);
}
.pdx-drawer-title:focus { outline: none; }
.pdx-drawer-close {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--mm-ink, #111214); cursor: pointer;
}
.pdx-drawer-close:hover { background: #f4f5f6; }
.pdx-drawer-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pdx-steps { display: flex; align-items: center; gap: 6px; padding: 0 20px 4px; }
.pdx-step { flex: 1; height: 6px; border-radius: 3px; background: #e3e5e8; }
.pdx-step.is-on { background: var(--mm-brand, #62d31f); }
.pdx-steps-text { flex: 0 0 auto; margin-left: 8px; font-size: .85rem; color: var(--mm-muted, #5f646d); white-space: nowrap; }

.pdx-drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px 20px; -webkit-overflow-scrolling: touch; }
.pdx-drawer-h3 { margin: 0; font-family: var(--mm-font-head); font-size: 1.3rem; font-weight: 700; line-height: 1.2; color: var(--mm-ink, #111214); }
.pdx-drawer-sub { margin: 4px 0 12px; font-size: .9rem; line-height: 1.5; color: var(--mm-muted, #5f646d); }
.pdx-search { position: relative; }
.pdx-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--mm-muted, #5f646d); pointer-events: none; }
.pdx-search input {
  width: 100%; height: 48px; padding: 0 14px 0 42px; border: 1.5px solid var(--mm-line, #e3e5e8); border-radius: 12px;
  background: #fff; font: inherit; font-size: 16px; color: var(--mm-ink, #111214);
}
.pdx-search input:focus { outline: none; border-color: var(--mm-ink, #111214); }
.pdx-filters { display: flex; gap: 8px; margin: 12px -20px 0; padding: 0 20px 2px; overflow-x: auto; scrollbar-width: none; }
.pdx-filters::-webkit-scrollbar { display: none; }
.pdx-filter {
  flex: 0 0 auto; min-width: 56px; height: 38px; padding: 0 16px; border: 1.5px solid var(--mm-line, #e3e5e8); border-radius: 999px;
  background: #fff; font: inherit; font-size: .9rem; font-weight: 600; color: var(--mm-ink, #111214); cursor: pointer;
}
.pdx-filter:hover { border-color: var(--mm-ink, #111214); }
.pdx-filter.is-on { border-color: var(--mm-brand, #62d31f); background: var(--mm-brand, #62d31f); color: var(--mm-ink, #111214); }
.pdx-status { margin: 10px 0 0; font-size: .85rem; color: var(--mm-muted, #5f646d); }
.pdx-status[hidden] { display: none; }

.pdx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pdx-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0;
  padding: 10px 8px 12px; border: 1.5px solid var(--mm-line, #e3e5e8); border-radius: 14px; background: #fff;
  font: inherit; text-align: center; color: var(--mm-ink, #111214); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.pdx-tile[hidden] { display: none; }
.pdx-tile:hover { border-color: #b9bdc4; }
.pdx-tile:focus-visible { outline: 2px solid var(--mm-ink, #111214); outline-offset: 2px; }
.pdx-tile-media { display: block; width: 100%; max-width: 92px; aspect-ratio: 156 / 143; margin-bottom: 4px; }
.pdx-tile-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pdx-tile-brand { font-family: var(--mm-font-head); font-size: .98rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.pdx-tile-model { font-size: .8rem; line-height: 1.25; color: var(--mm-muted, #5f646d); }
.pdx-tile-check {
  position: absolute; top: 8px; right: 8px; display: none; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--mm-brand, #62d31f);
}
.pdx-tile-check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.pdx-tile.is-selected { border-color: var(--mm-brand, #62d31f); box-shadow: 0 0 0 1px var(--mm-brand, #62d31f); background: #f1fbea; }
.pdx-tile.is-selected .pdx-tile-check { display: grid; }

.pdx-more {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 12px;
  border: 1.5px solid var(--mm-line, #e3e5e8); border-radius: 12px; background: #f4f5f6;
  font: inherit; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mm-ink, #111214); cursor: pointer;
}
.pdx-more[hidden] { display: none; }
.pdx-more:hover { border-color: var(--mm-ink, #111214); }
.pdx-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.pdx-more.is-expanded svg { transform: rotate(180deg); }

.pdx-drawer-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--mm-line, #e3e5e8); }
.pdx-continue {
  width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: var(--mm-brand, #62d31f);
  font-family: var(--mm-font-head); font-size: 1.05rem; font-weight: 700; color: var(--mm-ink, #111214); cursor: pointer;
}
.pdx-continue:hover:not(:disabled) { background: var(--mm-brand-hover, #54bd16); }
.pdx-continue:disabled { background: #e3e5e8; color: #8a8f98; cursor: not-allowed; }
.pdx-continue:focus-visible { outline: 2px solid var(--mm-ink, #111214); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .pdx-drawer-panel, .pdx-drawer-backdrop { transition: none; }
}

/* ==========================================================================
   ≥ 480px
   ========================================================================== */
@media (min-width: 480px) {
  .pdx-trust li { font-size: .8rem; }
  .pdx-trust strong { font-size: .86rem; }
}

/* ==========================================================================
   ≥ 640px: 4 battery tiles per row
   ========================================================================== */
@media (min-width: 640px) {
  .pdx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   ≥ 768px: dialog instead of bottom sheet, roomier single column
   ========================================================================== */
@media (min-width: 768px) {
  .pdx-thumb { flex-basis: 76px; height: 76px; }
  .pdx-drawer-panel {
    left: 50%; right: auto; top: 50%; bottom: auto; width: min(760px, calc(100vw - 48px));
    height: auto; max-height: min(86vh, 860px); border-radius: 18px;
    box-shadow: 0 30px 80px -20px rgba(17, 18, 20, .45);
    transform: translate(-50%, -46%); opacity: 0; transition: transform .22s ease, opacity .22s ease;
  }
  @supports (height: 1dvh) { .pdx-drawer-panel { height: auto; } }
  .pdx-drawer.is-open .pdx-drawer-panel { transform: translate(-50%, -50%); opacity: 1; }
  .pdx-drawer-head { padding: 22px 20px 12px 28px; }
  .pdx-steps { padding: 0 28px 4px; }
  .pdx-drawer-body { padding: 16px 28px 24px; }
  .pdx-filters { margin: 14px 0 0; padding: 0; }
  .pdx-drawer-foot { padding: 14px 28px 18px; }
}

/* Tablets: one centred column */
@media (min-width: 768px) and (max-width: 1023px) {
  .pdx-grid { max-width: 680px; }
}

/* ==========================================================================
   ≥ 1024px: gallery | info
   ========================================================================== */
@media (min-width: 1024px) {
  .pdx { padding: 8px 0 64px; }
  .pdx-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .pdx-gallery { position: sticky; top: calc(var(--mm-header-h, 64px) + 20px); }
  .pdx-thumbs { gap: 10px; margin-top: 12px; }
  .pdx-thumb { flex-basis: 80px; height: 80px; }
  .pdx-uses { overflow: visible; }
  .pdx-features { padding: 18px 20px; }
  .pdx-features li { font-size: 1rem; }
}

/* Apple Pay / Google Pay (WooPayments, live only) and Stripe express buttons:
   a clear gap under the quantity + Add to cart row. */
.pdx-buy .wcpay-express-checkout-wrapper,
.pdx-buy #wcpay-payment-request-wrapper,
.pdx-buy #wc-stripe-express-checkout-element,
.pdx-buy #wc-stripe-payment-request-wrapper { margin-top: 16px !important; }

/* ---------- "You may also like" slider (single-product.php, pdp-woo.js initRelatedSlider) ---------- */
.pdp-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pdp-related-head .pdp-related-title { margin-bottom: 0; }
.pdp-related-arrows { display: flex; gap: 10px; flex-shrink: 0; }
.pdp-related-arrows[hidden] { display: none; }
.pdp-related-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--mm-line, #e4e6ea); border-radius: 50%; background: #fff; color: var(--mm-ink, #111);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.pdp-related-arrow:hover:not(:disabled) { background: var(--mm-ink, #111); border-color: var(--mm-ink, #111); color: #fff; }
.pdp-related-arrow:disabled { opacity: .35; cursor: default; }
.pdp-related-arrow:focus-visible { outline: 2px solid var(--mm-ink, #111); outline-offset: 2px; }
.pdp-related-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pdp-related-section .pdp-related-track {
  --gap: 12px; --per: 2;
  display: grid; grid-auto-flow: column; grid-template-columns: none;
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.pdp-related-track::-webkit-scrollbar { display: none; }
.pdp-related-track > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 600px) { .pdp-related-section .pdp-related-track { --gap: 16px; } }
@media (min-width: 768px) { .pdp-related-section .pdp-related-track { --per: 3; } }
@media (min-width: 1024px) { .pdp-related-section .pdp-related-track { --per: 4; --gap: 24px; } }
@media (max-width: 599px) { .pdp-related-arrow { width: 38px; height: 38px; } }

/* ---------- Heading levels (SEO, 0.3.58) ----------
   Description / Specifications titles are <h2> inside <summary>; the reviews
   eyebrow is the section's <h2> and the score/"No reviews yet." line a <p>.
   These rules keep the look identical to the old <span>/<p>/<h2> markup. */
.pdx-acc summary .pdx-acc-title { margin: 0; font: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; }
.pdp-reviews-head h2.pdp-eyebrow { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: inherit; margin: 0 0 4px; }
p.pdp-reviews-title { font-weight: 700; line-height: 1.1; }
