/* ==========================================================
   FDC SINGLE PRODUCT — "THE SPEC SHEET"
   WooCommerce single-product template styles.

   Depends on the same theme tokens defined in your homepage
   CSS (:root and [data-theme="light"]): --lime, --bg-*,
   --text-*, --border*, --radius-*, --max-width, --btn-text.

   Everything is namespaced under .fdc-pdp so it cannot
   collide with fdc-header.css / fdc-search.css / .fdc-home.

   Load order: theme tokens -> fdc-header.css -> this file.
   ========================================================== */

.fdc-pdp,
.fdc-pdp *,
.fdc-pdp *::before,
.fdc-pdp *::after {
  box-sizing: border-box;
}

.fdc-pdp {
  /* ---- Local layout tokens (override per-site if needed) ---- */
  --pdp-gap: clamp(20px, 3vw, 48px);
  --pdp-media-col: 1.15fr;
  --pdp-buy-col: 1fr;
  --pdp-section-gap: clamp(32px, 4vw, 56px);
  --pdp-radius: var(--radius-md, 10px);
  --pdp-panel-bg: var(--bg-card, #111820);
  --pdp-panel-border: var(--border, rgba(255, 255, 255, 0.06));
  /* Height of your sticky header — drives sticky offsets.
     Set to your real measured header height. */
  --pdp-header-offset: 132px;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary, #070a0c);
  color: var(--text-primary, #eef1f4);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: clamp(40px, 6vw, 80px);
}

.fdc-pdp__inner {
  max-width: var(--max-width, 1400px);
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 32px);
  width: 100%;
}

/* Screen-reader-only utility (self-contained, no theme dependency) */
.fdc-pdp .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;
}

/* ==========================================================
   BREADCRUMBS
   ========================================================== */
.fdc-pdp__breadcrumbs {
  padding: 14px 0 10px;
  font-size: 12px;
  color: var(--text-muted, #4a5560);
}
.fdc-pdp__breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fdc-pdp__breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.fdc-pdp__breadcrumbs li + li::before {
  content: '/';
  color: var(--text-muted, #4a5560);
  opacity: 0.5;
  flex-shrink: 0;
}
.fdc-pdp__breadcrumbs a {
  color: var(--text-secondary, #7d8a96);
  text-decoration: none;
  transition: color 0.15s;
}
.fdc-pdp__breadcrumbs a:hover {
  color: var(--lime, #c0ff14);
}
/* Current page: truncate long product names on small screens */
.fdc-pdp__breadcrumbs [aria-current='page'] {
  color: var(--text-muted, #4a5560);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 45ch;
}

/* ==========================================================
   ABOVE-THE-FOLD GRID
   ========================================================== */
.fdc-pdp__hero {
  display: grid;
  grid-template-columns: var(--pdp-media-col) var(--pdp-buy-col);
  gap: var(--pdp-gap);
  align-items: start;
  padding-bottom: var(--pdp-section-gap);
}

/* ==========================================================
   GALLERY
   Scroll-snap slide track + thumbnail tablist.
   Works with zero JS (native swipe); JS upgrades it with
   thumb sync, arrows and lightbox zoom.
   ========================================================== */
.fdc-gallery {
  position: sticky;
  top: calc(var(--pdp-header-offset) + 16px);
  display: grid;
  /* Default: single column. The 76px thumb rail is only reserved
     when a thumb list actually exists (single-image products have
     none — without this, the stage lands in the 76px column). */
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.fdc-gallery:has(.fdc-gallery__thumbs) {
  grid-template-columns: 76px minmax(0, 1fr);
}

.fdc-gallery__stage {
  position: relative;
  order: 2;
  border: 1px solid var(--pdp-panel-border);
  border-radius: var(--pdp-radius);
  background: var(--card-img-bg, #090d11);
  overflow: hidden;
}

.fdc-gallery__track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.fdc-gallery__track::-webkit-scrollbar {
  display: none;
}

.fdc-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  /* Reserve space before images load — prevents CLS */
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 36px);
}
.fdc-gallery__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Badges over the media */
.fdc-gallery__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.fdc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  line-height: 1.4;
  border: 1px solid transparent;
}
.fdc-badge--sale     { background: var(--red, #ff3b5c); color: #fff; }
.fdc-badge--new      { background: var(--lime, #c0ff14); color: var(--btn-text, #070a0c); }
.fdc-badge--preorder { background: var(--orange, #f47920); color: #fff; }
.fdc-badge--store    { background: var(--bg-card, #111820); color: var(--text-primary, #eef1f4); border-color: var(--border-hover, rgba(255,255,255,0.15)); }
.fdc-badge--oos      { background: #52525b; color: #fff; }
.fdc-badge--hazmat   { background: #d97706; color: #fff; }
.fdc-badge--itar     { background: var(--red, #ff3b5c); color: #fff; }
.fdc-badge--nfa      { background: var(--orange, #f47920); color: #fff; }
.fdc-badge--ship     { background: var(--bg-card, #111820); color: var(--text-primary, #eef1f4); border-color: var(--border-hover, rgba(255,255,255,0.15)); }

/* Zoom affordance */
.fdc-gallery__zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border-hover, rgba(255, 255, 255, 0.1));
  background: var(--bg-card, #111820);
  color: var(--text-secondary, #7d8a96);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.fdc-gallery__zoom:hover {
  color: var(--lime, #c0ff14);
  border-color: var(--border-lime, rgba(192, 255, 20, 0.15));
}
.fdc-gallery__zoom svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Prev / next arrows (JS-inserted) */
.fdc-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-hover, rgba(255, 255, 255, 0.1));
  background: var(--overlay-dark, rgba(7, 10, 12, 0.85));
  color: var(--text-primary, #eef1f4);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}
.fdc-gallery__stage:hover .fdc-gallery__arrow,
.fdc-gallery__arrow:focus-visible {
  opacity: 1;
}
.fdc-gallery__arrow:hover { color: var(--lime, #c0ff14); }
.fdc-gallery__arrow[hidden] { display: none; }
.fdc-gallery__arrow--prev { left: 10px; }
.fdc-gallery__arrow--next { right: 10px; }
.fdc-gallery__arrow svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2.5;
}

/* Thumbnail rail — vertical on desktop */
.fdc-gallery__thumbs {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 620px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.fdc-gallery__thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  padding: 5px;
  border: 1px solid var(--pdp-panel-border);
  border-radius: var(--radius-sm, 6px);
  background: var(--card-img-bg, #090d11);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fdc-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.fdc-gallery__thumb:hover {
  border-color: var(--border-hover, rgba(255, 255, 255, 0.1));
}
.fdc-gallery__thumb[aria-selected='true'] {
  border-color: var(--lime, #c0ff14);
  box-shadow: 0 0 0 1px var(--lime, #c0ff14);
}

/* Lightbox */
.fdc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 48px);
  background: rgba(0, 0, 0, 0.92);
}
.fdc-lightbox[open],
.fdc-lightbox.is-open {
  display: flex;
}
.fdc-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.fdc-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fdc-lightbox__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ==========================================================
   BUY BOX
   ========================================================== */
.fdc-buybox {
  position: sticky;
  top: calc(var(--pdp-header-offset) + 16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Eyebrow: brand + SKU */
.fdc-buybox__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fdc-buybox__brand {
  color: var(--lime, #c0ff14);
  text-decoration: none;
}
.fdc-buybox__brand:hover { text-decoration: underline; }
.fdc-buybox__sku {
  color: var(--text-muted, #4a5560);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.fdc-buybox__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text-primary, #eef1f4);
}

/* Rating row */
.fdc-buybox__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary, #7d8a96);
}
.fdc-stars {
  --fdc-star-fill: 0%;
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--text-muted, #4a5560);
}
.fdc-stars::before { content: '★★★★★'; }
.fdc-stars__fill {
  position: absolute;
  inset: 0;
  width: var(--fdc-star-fill);
  overflow: hidden;
  color: var(--lime, #c0ff14);
  white-space: nowrap;
}
.fdc-stars__fill::before { content: '★★★★★'; }
.fdc-buybox__rating a {
  color: var(--text-secondary, #7d8a96);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fdc-buybox__rating a:hover { color: var(--lime, #c0ff14); }

/* Price block */
.fdc-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}
.fdc-price .price { margin: 0; }
.fdc-price .woocommerce-Price-amount {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  color: var(--lime, #c0ff14);
  line-height: 1.1;
}
.fdc-price del {
  opacity: 1;
}
.fdc-price del .woocommerce-Price-amount {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted, #4a5560);
  text-decoration: line-through;
}
.fdc-price ins {
  text-decoration: none;
  background: transparent;
}
.fdc-price__save {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red, #ff3b5c);
  border-radius: 3px;
  align-self: center;
}
.fdc-price__note {
  width: 100%;
  font-size: 11px;
  color: var(--text-muted, #4a5560);
}

/* Availability pill */
.fdc-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: fit-content;
}
.fdc-stock::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.fdc-stock--in       { color: #46d17f; }
.fdc-stock--low      { color: var(--orange, #f47920); }
.fdc-stock--backorder{ color: var(--orange, #f47920); }
.fdc-stock--out      { color: var(--red, #ff3b5c); }

/* Key-spec chips (pulled from product attributes) */
.fdc-keyspecs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fdc-keyspecs li {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 10px;
  background: var(--bg-secondary, #0c1015);
  border: 1px solid var(--pdp-panel-border);
  border-radius: var(--radius-sm, 6px);
  font-size: 11px;
}
.fdc-keyspecs dt,
.fdc-keyspecs .k {
  color: var(--text-muted, #4a5560);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 9px;
}
.fdc-keyspecs dd,
.fdc-keyspecs .v {
  margin: 0;
  color: var(--text-primary, #eef1f4);
  font-weight: 600;
}

/* ---- Add to cart form ---- */
.fdc-buybox .cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 0;
}
.fdc-buybox .cart .quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-hover, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-secondary, #0c1015);
  overflow: hidden;
  flex: 0 0 auto;
}
/* Other plugins (Merchant, theme snippets) inject their own +/- spans
   into .quantity. Hide everything that isn't the input, our buttons,
   or the screen-reader label — prevents double steppers. */
.fdc-buybox .cart .quantity > *:not(input.qty):not(.fdc-qty-btn):not(label):not(.screen-reader-text) {
  display: none !important;
}
.fdc-buybox .cart .quantity input.qty {
  width: 54px;
  height: 52px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-primary, #eef1f4);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.fdc-buybox .cart .quantity input.qty::-webkit-outer-spin-button,
.fdc-buybox .cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.fdc-qty-btn {
  width: 42px;
  height: 52px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #7d8a96);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.fdc-qty-btn:hover {
  color: var(--lime, #c0ff14);
  background: var(--lime-glow, rgba(192, 255, 20, 0.12));
}
.fdc-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.fdc-buybox .single_add_to_cart_button,
.fdc-btn-primary {
  flex: 1 1 200px;
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lime, #c0ff14);
  color: var(--btn-text, #070a0c);
  border: none;
  border-radius: var(--radius-sm, 6px);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.fdc-buybox .single_add_to_cart_button:hover,
.fdc-btn-primary:hover {
  background: var(--lime-dim, #9be300);
  box-shadow: 0 0 24px var(--lime-glow-strong, rgba(192, 255, 20, 0.35));
}
.fdc-buybox .single_add_to_cart_button:active,
.fdc-btn-primary:active { transform: translateY(1px); }
.fdc-buybox .single_add_to_cart_button.disabled,
.fdc-buybox .single_add_to_cart_button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.fdc-buybox .single_add_to_cart_button.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Secondary actions (wishlist / share / compare) */
.fdc-buybox__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.fdc-buybox__actions a,
.fdc-buybox__actions button,
.fdc-buybox__actions .yith-wcwl-add-to-wishlist-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  color: var(--text-secondary, #7d8a96);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.fdc-buybox__actions a:hover,
.fdc-buybox__actions button:hover,
.fdc-buybox__actions .yith-wcwl-add-to-wishlist-button:hover {
  color: var(--lime, #c0ff14);
  border-color: var(--border-lime, rgba(192, 255, 20, 0.15));
  background: var(--lime-glow, rgba(192, 255, 20, 0.12));
}
/* YITH shortcode wrapper resets — make the block behave like a plain
   inline action, matching the other buttons in the row. */
.fdc-buybox__actions .yith-add-to-wishlist-button-block,
.fdc-buybox__actions .yith-wcwl-add-to-wishlist {
  margin: 0 !important;
  display: inline-flex;
}
.fdc-buybox__actions .yith-wcwl-add-to-wishlist-button__label {
  font-size: 12px;
  font-weight: 600;
}
.fdc-buybox__actions svg,
.fdc-buybox__actions .yith-wcwl-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* ==========================================================
   FULFILLMENT PANEL
   Shipping / lead time / compliance. Rows are rendered
   conditionally by the template — firearm vs non-firearm.
   ========================================================== */
.fdc-fulfillment {
  border: 1px solid var(--pdp-panel-border);
  border-radius: var(--pdp-radius);
  background: var(--pdp-panel-bg);
  overflow: hidden;
}
.fdc-fulfillment__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 16px;
  border-bottom: 1px solid var(--pdp-panel-border);
  font-size: 13px;
}
.fdc-fulfillment__row:last-child { border-bottom: none; }
.fdc-fulfillment__row svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  color: var(--lime, #c0ff14);
  margin-top: 1px;
}
.fdc-fulfillment__row strong {
  display: block;
  color: var(--text-primary, #eef1f4);
  font-weight: 700;
  font-size: 13px;
}
.fdc-fulfillment__row p,
.fdc-fulfillment__row span.fdc-note {
  display: block;
  margin: 2px 0 0;
  color: var(--text-secondary, #7d8a96);
  font-size: 12px;
  line-height: 1.5;
}
.fdc-fulfillment__row a {
  color: var(--lime, #c0ff14);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Inline variant — title and value share one line (used for Shipping).
   Also flattens the [firearm_shipping_notice] shortcode's own wrapper,
   which carries an inline min-height and chunky margins. */
.fdc-fulfillment__row--inline > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.fdc-fulfillment__row--inline strong {
  display: inline;
  margin: 0;
}
.fdc-fulfillment__row--inline #firearm-shipping-notice-container {
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
}
.fdc-fulfillment__row--inline .firearm-shipping-notice {
  margin: 0 !important;
  padding: 3px 10px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  border-radius: 4px !important;
}

/* Severity accents */
.fdc-fulfillment__row--warn  { background: rgba(244, 121, 32, 0.06); }
.fdc-fulfillment__row--warn svg  { color: var(--orange, #f47920); }
.fdc-fulfillment__row--alert { background: rgba(255, 59, 92, 0.06); }
.fdc-fulfillment__row--alert svg { color: var(--red, #ff3b5c); }
.fdc-fulfillment__row--good svg  { color: #46d17f; }

/* Inline disclosure for "how FFL transfer works" etc. */
.fdc-disclosure {
  margin-top: 6px;
}
.fdc-disclosure > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--lime, #c0ff14);
  list-style: none;
}
.fdc-disclosure > summary::-webkit-details-marker { display: none; }
.fdc-disclosure > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-bottom: 2px;
}
.fdc-disclosure[open] > summary::after { transform: rotate(-135deg); margin-bottom: -2px; }
.fdc-disclosure__body {
  padding-top: 8px;
  font-size: 12px;
  color: var(--text-secondary, #7d8a96);
  line-height: 1.6;
}
.fdc-disclosure__body ol,
.fdc-disclosure__body ul { margin: 6px 0 0; padding-left: 18px; }
.fdc-disclosure__body li { margin-bottom: 4px; }

/* Restricted-states list */
.fdc-restrict-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.fdc-restrict-list li {
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 3px;
  background: rgba(255, 59, 92, 0.12);
  border: 1px solid rgba(255, 59, 92, 0.25);
  color: var(--red, #ff3b5c);
}

/* ==========================================================
   TRUST STRIP
   ========================================================== */
.fdc-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 2px;
  font-size: 11px;
  color: var(--text-muted, #4a5560);
}
.fdc-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fdc-trust svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2;
}

/* ==========================================================
   SECTION NAV (sticky in-page anchors)
   ========================================================== */
.fdc-pdp__nav {
  position: sticky;
  top: var(--pdp-header-offset);
  z-index: 20;
  background: var(--bg-primary, #070a0c);
  border-top: 1px solid var(--pdp-panel-border);
  border-bottom: 1px solid var(--pdp-panel-border);
  margin-bottom: var(--pdp-section-gap);
}
.fdc-pdp__nav ul {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.fdc-pdp__nav ul::-webkit-scrollbar { display: none; }
.fdc-pdp__nav a {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  white-space: nowrap;
  color: var(--text-secondary, #7d8a96);
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.07em;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.fdc-pdp__nav a:hover { color: var(--text-primary, #eef1f4); }
.fdc-pdp__nav a[aria-current='true'] {
  color: var(--lime, #c0ff14);
  border-bottom-color: var(--lime, #c0ff14);
}

/* ==========================================================
   CONTENT SECTIONS
   Real headings + real content in the DOM (no tab-hidden
   content) so it is crawlable and printable.
   ========================================================== */
.fdc-pdp__section {
  padding-bottom: var(--pdp-section-gap);
  /* Offset anchor jumps for the sticky header + nav */
  scroll-margin-top: calc(var(--pdp-header-offset) + 60px);
}
.fdc-pdp__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pdp-panel-border);
}
.fdc-pdp__section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--text-primary, #eef1f4);
}

/* Long-form description body */
.fdc-prose {
  max-width: 78ch;
  color: var(--text-secondary, #7d8a96);
  font-size: 14px;
  line-height: 1.75;
}
.fdc-prose > * + * { margin-top: 1em; }
.fdc-prose h2,
.fdc-prose h3,
.fdc-prose h4 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--text-primary, #eef1f4);
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-top: 1.6em;
}
.fdc-prose h2 { font-size: 24px; }
.fdc-prose h3 { font-size: 20px; }
.fdc-prose h4 { font-size: 17px; }
.fdc-prose strong { color: var(--text-primary, #eef1f4); font-weight: 700; }
.fdc-prose a { color: var(--lime, #c0ff14); text-decoration: underline; text-underline-offset: 2px; }
.fdc-prose ul,
.fdc-prose ol { padding-left: 20px; }
.fdc-prose li { margin-bottom: 6px; }
.fdc-prose li::marker { color: var(--lime, #c0ff14); }
.fdc-prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm, 6px); }
.fdc-prose blockquote {
  padding: 12px 18px;
  border-left: 3px solid var(--lime, #c0ff14);
  background: var(--bg-secondary, #0c1015);
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
}
/* Neutralise inline-styled callout boxes pasted into product copy
   (the light-blue pre-order box etc.) so they respect the theme. */
.fdc-prose div[style] {
  background: var(--bg-secondary, #0c1015) !important;
  border-color: var(--border-hover, rgba(255, 255, 255, 0.1)) !important;
  color: var(--text-secondary, #7d8a96) !important;
  border-radius: var(--radius-sm, 6px) !important;
}
.fdc-prose div[style] h3 { color: var(--text-primary, #eef1f4) !important; }
.fdc-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.fdc-prose table td,
.fdc-prose table th {
  border: 1px solid var(--pdp-panel-border) !important;
  padding: 9px 12px !important;
  text-align: left;
}
.fdc-prose table th { color: var(--text-primary, #eef1f4); }

/* Collapse very long descriptions behind a "read more" */
.fdc-prose--clamped {
  position: relative;
  max-height: 460px;
  overflow: hidden;
}
.fdc-prose--clamped::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to top, var(--bg-primary, #070a0c), transparent);
  pointer-events: none;
}
.fdc-prose-toggle {
  margin-top: 14px;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--border-hover, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-sm, 6px);
  color: var(--text-secondary, #7d8a96);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.fdc-prose-toggle:hover { border-color: var(--lime, #c0ff14); color: var(--lime, #c0ff14); }

/* ---- Spec table ----
   .fdc-specs-wrap wraps WooCommerce's own wc_display_product_attributes()
   output, so no filtering of core markup is needed. */
.fdc-specs,
.fdc-specs-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  border: 1px solid var(--pdp-panel-border);
  border-radius: var(--pdp-radius);
  overflow: hidden;
}
.fdc-specs caption,
.fdc-specs-wrap table caption {
  text-align: left;
  padding-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted, #4a5560);
}
.fdc-specs tr,
.fdc-specs-wrap table tr { border-bottom: 1px solid var(--pdp-panel-border); }
.fdc-specs tr:last-child,
.fdc-specs-wrap table tr:last-child { border-bottom: none; }
.fdc-specs tr:nth-child(odd),
.fdc-specs-wrap table tr:nth-child(odd) { background: var(--bg-secondary, #0c1015); }
.fdc-specs th,
.fdc-specs-wrap table th {
  width: 34%;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary, #eef1f4);
  vertical-align: top;
}
.fdc-specs td,
.fdc-specs-wrap table td {
  padding: 12px 16px;
  color: var(--text-secondary, #7d8a96);
  vertical-align: top;
}
.fdc-specs td p,
.fdc-specs-wrap table td p { margin: 0; }
.fdc-specs td a,
.fdc-specs-wrap table td a { color: var(--lime, #c0ff14); text-decoration: none; }
.fdc-specs td a:hover,
.fdc-specs-wrap table td a:hover { text-decoration: underline; }

/* ---- Accordion (mobile section collapse + FAQ) ---- */
.fdc-accordion {
  border: 1px solid var(--pdp-panel-border);
  border-radius: var(--pdp-radius);
  overflow: hidden;
}
.fdc-accordion__item { border-bottom: 1px solid var(--pdp-panel-border); }
.fdc-accordion__heading { margin: 0; font: inherit; }
.fdc-accordion__item:last-child { border-bottom: none; }
.fdc-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: transparent;
  border: none;
  color: var(--text-primary, #eef1f4);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.fdc-accordion__trigger:hover { background: var(--lime-glow, rgba(192, 255, 20, 0.12)); }
.fdc-accordion__trigger::after {
  content: '';
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 2px solid var(--text-muted, #4a5560);
  border-bottom: 2px solid var(--text-muted, #4a5560);
  transform: rotate(45deg);
  transition: transform 0.2s, border-color 0.2s;
}
.fdc-accordion__trigger[aria-expanded='true']::after {
  transform: rotate(-135deg);
  border-color: var(--lime, #c0ff14);
}
.fdc-accordion__panel {
  padding: 0 18px 16px;
  font-size: 13px;
  color: var(--text-secondary, #7d8a96);
  line-height: 1.65;
}
.fdc-accordion__panel[hidden] { display: none; }

/* ==========================================================
   RELATED / UPSELL RAILS
   Reuses .p-card markup from the homepage where available.
   ========================================================== */
.fdc-pdp__rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.fdc-pdp__rail .product,
.fdc-pdp__rail li {
  list-style: none;
  margin: 0;
}

/* ==========================================================
   MOBILE STICKY ADD TO CART
   ========================================================== */
.fdc-sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-card, #111820);
  border-top: 1px solid var(--border-hover, rgba(255, 255, 255, 0.1));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.fdc-sticky-atc.is-visible { transform: translateY(0); }
.fdc-sticky-atc__info { min-width: 0; flex: 1; }
.fdc-sticky-atc__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary, #eef1f4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fdc-sticky-atc__price {
  font-size: 15px;
  font-weight: 900;
  color: var(--lime, #c0ff14);
  line-height: 1.2;
}
.fdc-sticky-atc__btn {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lime, #c0ff14);
  color: var(--btn-text, #070a0c);
  border: none;
  border-radius: var(--radius-sm, 6px);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 0.07em;
  cursor: pointer;
  text-decoration: none;
}
.fdc-sticky-atc__btn:hover { background: var(--lime-dim, #9be300); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1200px) {
  .fdc-pdp__rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .fdc-pdp__hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .fdc-gallery,
  .fdc-buybox { position: static; }

  /* Thumbs move under the stage and scroll horizontally */
  .fdc-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .fdc-gallery__stage { order: 1; }
  .fdc-gallery__thumbs {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .fdc-pdp__rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .fdc-pdp { --pdp-header-offset: 96px; padding-bottom: 96px; }
  .fdc-pdp__breadcrumbs [aria-current='page'] { max-width: 22ch; }
  .fdc-gallery__thumb { width: 60px; height: 60px; }
  .fdc-gallery__arrow { display: none; }
  .fdc-buybox .cart { flex-wrap: nowrap; }
  .fdc-buybox .single_add_to_cart_button { flex: 1 1 auto; }
  .fdc-pdp__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fdc-sticky-atc { display: flex; }
  .fdc-specs th,
  .fdc-specs-wrap table th { width: 42%; padding: 10px 12px; }
  .fdc-specs td,
  .fdc-specs-wrap table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .fdc-pdp__nav a { height: 44px; padding: 0 13px; font-size: 15px; }
  .fdc-fulfillment__row { padding: 11px 13px; }
  .fdc-sticky-atc__btn { padding: 0 16px; font-size: 16px; }
}

/* ==========================================================
   LIGHT MODE
   Token flips handle most of it; these are the few places
   that need explicit surfaces.
   ========================================================== */
[data-theme='light'] .fdc-pdp {
  --pdp-panel-border: rgba(0, 0, 0, 0.08);
  --pdp-panel-bg: #ffffff;
}
[data-theme='light'] .fdc-pdp__nav { background: #f7f8fa; }
[data-theme='light'] .fdc-gallery__stage,
[data-theme='light'] .fdc-gallery__thumb { background: #ffffff; }
[data-theme='light'] .fdc-gallery__arrow {
  background: rgba(255, 255, 255, 0.92);
  color: #27272a;
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme='light'] .fdc-badge--store {
  background: #ffffff;
  color: #27272a;
  border-color: rgba(0, 0, 0, 0.12);
}
[data-theme='light'] .fdc-stock--in { color: #15803d; }
[data-theme='light'] .fdc-prose--clamped::after {
  background: linear-gradient(to top, #f7f8fa, transparent);
}
[data-theme='light'] .fdc-prose div[style] {
  background: #f4f4f5 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #52525b !important;
}
[data-theme='light'] .fdc-sticky-atc {
  background: #ffffff;
  border-top-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
}
[data-theme='light'] .fdc-restrict-list li {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.2);
  color: #dc2626;
}

/* ==========================================================
   THEME-CASCADE HARDENING
   The Bricks theme shell can impose intrinsic widths, auto
   margins, and centered text on content it wraps. Pin every
   content section to full width, left-aligned, regardless of
   what the parent cascade does.
   ========================================================== */
.fdc-pdp .fdc-pdp__inner,
.fdc-pdp .fdc-pdp__hero,
.fdc-pdp .fdc-pdp__section,
.fdc-pdp .fdc-pdp__section-head,
.fdc-pdp .fdc-pdp__nav,
.fdc-pdp .fdc-specs-wrap,
.fdc-pdp .fdc-accordion,
.fdc-pdp .fdc-fulfillment {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}
.fdc-pdp .fdc-pdp__inner {
  max-width: var(--max-width, 1400px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.fdc-pdp .fdc-pdp__section-title {
  text-align: left !important;
  margin: 0 !important;
  width: auto !important;
}
.fdc-pdp .fdc-specs,
.fdc-pdp .fdc-specs-wrap table {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  table-layout: fixed;
}
.fdc-pdp .fdc-prose {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
  /* keep the readable measure, but never narrower than the theme forces */
  max-width: 78ch !important;
  width: 100%;
}

/* ==========================================================
   MEMBERSHIP GATE
   Rendered in place of price + add-to-cart for guests and
   expired members. Class names avoid "price"/"amount" so the
   membership plugin's DOM-scrubbing JS ignores them.
   ========================================================== */
.fdc-locked-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px dashed var(--border-lime, rgba(192, 255, 20, 0.15));
  border-radius: var(--radius-sm, 6px);
  background: var(--lime-glow, rgba(192, 255, 20, 0.12));
  color: var(--lime, #c0ff14);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}
.fdc-locked-tag svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.fdc-member-gate {
  border: 1px solid var(--border-lime, rgba(192, 255, 20, 0.15));
  border-radius: var(--pdp-radius);
  background: var(--lime-glow, rgba(192, 255, 20, 0.12));
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fdc-member-gate__head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary, #eef1f4);
  font-size: 15px;
}
.fdc-member-gate__head strong { font-weight: 800; }
.fdc-member-gate__head svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--lime, #c0ff14);
  stroke-width: 2;
  flex-shrink: 0;
}
.fdc-member-gate p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary, #7d8a96);
}
.fdc-member-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  margin-top: 4px;
  background: var(--lime, #c0ff14);
  color: var(--btn-text, #070a0c);
  border: none;
  border-radius: var(--radius-sm, 6px);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.fdc-member-gate__btn:hover {
  background: var(--lime-dim, #9be300);
  box-shadow: 0 0 24px var(--lime-glow-strong, rgba(192, 255, 20, 0.35));
}
.fdc-member-gate__signin {
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #7d8a96);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fdc-member-gate__signin:hover { color: var(--lime, #c0ff14); }

/* Expired variant — amber */
.fdc-member-gate--expired {
  border-color: rgba(255, 193, 7, 0.3);
  background: rgba(255, 193, 7, 0.08);
}
.fdc-member-gate--expired .fdc-member-gate__head svg { stroke: #ffc107; }
.fdc-member-gate--expired .fdc-member-gate__btn {
  background: #ffc107;
  color: #1a1a1a;
}
.fdc-member-gate--expired .fdc-member-gate__btn:hover {
  background: #e0a800;
  box-shadow: 0 0 24px rgba(255, 193, 7, 0.35);
}
.fdc-locked-tag--expired,
.fdc-member-gate--expired .fdc-locked-tag {
  border-color: rgba(255, 193, 7, 0.3);
  background: rgba(255, 193, 7, 0.08);
  color: #ffc107;
}

/* Sticky bar gate variant */
.fdc-sticky-atc__lock {
  font-size: 12px;
  font-weight: 700;
  color: var(--lime, #c0ff14);
  line-height: 1.3;
}
.fdc-sticky-atc--gate .fdc-sticky-atc__btn { text-decoration: none; }

/* Membership plugin notices landing inside our related-product rail:
   keep them compact and card-friendly. */
.fdc-pdp ul.products .fdc-membership-notice {
  margin: 0 10px 10px !important;
  padding: 8px 10px !important;
  font-size: 11px !important;
}
.fdc-pdp ul.products .fdc-membership-notice p { font-size: 11px !important; }

/* Light mode */
[data-theme='light'] .fdc-member-gate--expired {
  border-color: rgba(180, 130, 0, 0.35);
  background: rgba(255, 193, 7, 0.12);
}
[data-theme='light'] .fdc-member-gate--expired .fdc-member-gate__head svg { stroke: #b45309; }
[data-theme='light'] .fdc-member-gate--expired .fdc-member-gate__btn {
  background: #b45309;
  color: #ffffff;
}
[data-theme='light'] .fdc-member-gate--expired .fdc-member-gate__btn:hover { background: #92400e; }
[data-theme='light'] .fdc-locked-tag--expired,
[data-theme='light'] .fdc-member-gate--expired .fdc-locked-tag { color: #b45309; }

/* ==========================================================
   PAGE WRAPPER — full width & background
   When the WooCommerce single-product.php wrapper renders the
   page (Bricks handoff), neutralise any boxed content wrapper
   around .fdc-pdp and paint the page background so no white
   gutters show beside the dark theme.
   ========================================================== */
body.single-product:has(.fdc-pdp) {
  background: var(--bg-primary, #070a0c);
}
body.single-product :is(#container, #content, #main, .site-main, .content-area, main, .woocommerce):has(> .fdc-pdp),
body.single-product :is(#container, #content, #main, .site-main, .content-area, main, .woocommerce):has(> div.product > .fdc-pdp),
.fdc-pdp-main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bg-primary, #070a0c);
  float: none !important;
}
/* Woo wraps the template output in div.product — make it transparent */
body.single-product div.product:has(> .fdc-pdp),
body.single-product #product-wrapper:has(.fdc-pdp) {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================
   RELATED / UPSELL PRODUCT LOOPS
   WooCommerce's default loop markup (ul.products), themed to
   match the homepage .p-card look. Browse-only: add-to-cart
   buttons in the rail are hidden by design.
   ========================================================== */
.fdc-pdp .related.products,
.fdc-pdp .upsells.products {
  max-width: var(--max-width, 1400px);
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 32px) var(--pdp-section-gap);
}
.fdc-pdp .related.products > h2,
.fdc-pdp .upsells.products > h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text-primary, #eef1f4);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pdp-panel-border);
}
.fdc-pdp ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
.fdc-pdp ul.products::before,
.fdc-pdp ul.products::after { display: none; }
.fdc-pdp ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #111820);
  border: 1px solid var(--pdp-panel-border);
  border-radius: var(--pdp-radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.fdc-pdp ul.products li.product:hover {
  border-color: var(--border-lime, rgba(192, 255, 20, 0.15));
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.fdc-pdp ul.products li.product > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
}
.fdc-pdp ul.products li.product img {
  width: 100% !important;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--card-img-bg, #090d11);
  padding: 10px;
  box-sizing: border-box;
  margin: 0 !important;
}
.fdc-pdp ul.products li.product .woocommerce-loop-product__title,
.fdc-pdp ul.products li.product h2,
.fdc-pdp ul.products li.product h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--text-primary, #eef1f4) !important;
  padding: 10px 12px 4px !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fdc-pdp ul.products li.product .price {
  color: var(--lime, #c0ff14) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 0 12px 12px !important;
  margin: 0 !important;
  margin-top: auto !important;
}
.fdc-pdp ul.products li.product .price del {
  color: var(--text-muted, #4a5560) !important;
  font-weight: 500;
  margin-right: 6px;
}
.fdc-pdp ul.products li.product .price ins {
  text-decoration: none;
  background: transparent;
}
/* Browse-only rail: hide loop add-to-cart & stock notices */
.fdc-pdp ul.products li.product .button,
.fdc-pdp ul.products li.product .add_to_cart_button,
.fdc-pdp ul.products li.product .added_to_cart,
.fdc-pdp ul.products li.product .ajax_add_to_cart,
.fdc-pdp ul.products li.product .wc-forward,
.fdc-pdp ul.products li.product .yith-wcwl-add-to-wishlist {
  display: none !important;
}
/* Out-of-stock / info notices inside cards — keep, but readable */
.fdc-pdp ul.products li.product .stock,
.fdc-pdp ul.products li.product .out-of-stock,
.fdc-pdp ul.products li.product p:not(.price) {
  font-size: 11px !important;
  line-height: 1.5 !important;
  color: var(--text-secondary, #7d8a96) !important;
  background: transparent !important;
  padding: 0 12px 10px !important;
  margin: 0 !important;
}
.fdc-pdp ul.products li.product .onsale {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
  background: var(--red, #ff3b5c);
  color: #fff;
  margin: 0;
  min-width: 0;
  min-height: 0;
  line-height: 1.6;
}
.fdc-pdp ul.products li.product { position: relative; }

@media (max-width: 1200px) {
  .fdc-pdp ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .fdc-pdp ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .fdc-pdp ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

[data-theme='light'] .fdc-pdp ul.products li.product:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

/* Focus visible — matches the header/homepage treatment */
.fdc-pdp a:focus-visible,
.fdc-pdp button:focus-visible,
.fdc-pdp input:focus-visible,
.fdc-pdp select:focus-visible,
.fdc-pdp summary:focus-visible,
.fdc-pdp [tabindex]:focus-visible,
.fdc-lightbox *:focus-visible {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3);
  border-radius: 3px;
}
.fdc-pdp a:focus:not(:focus-visible),
.fdc-pdp button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Touch targets — WCAG 2.5.5 / 2.5.8 */
@media (pointer: coarse) {
  .fdc-pdp button,
  .fdc-pdp .fdc-buybox__actions a,
  .fdc-pdp__nav a {
    min-height: 44px;
  }
  .fdc-gallery__thumb { min-width: 44px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .fdc-pdp *,
  .fdc-pdp *::before,
  .fdc-pdp *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fdc-gallery__track { scroll-behavior: auto; }
  .fdc-sticky-atc { transition: none; }
}

@media (forced-colors: active) {
  .fdc-fulfillment,
  .fdc-accordion,
  .fdc-specs,
  .fdc-specs-wrap table,
  .fdc-gallery__stage,
  .fdc-gallery__thumb { border: 1px solid ButtonText; }
  .fdc-gallery__thumb[aria-selected='true'] { outline: 2px solid Highlight; }
  .fdc-pdp .single_add_to_cart_button,
  .fdc-btn-primary,
  .fdc-sticky-atc__btn { border: 2px solid ButtonText; }
  .fdc-pdp *:focus-visible { outline: 2px solid Highlight !important; }
}

/* ==========================================================
   PRINT
   ========================================================== */
@media print {
  .fdc-pdp__nav,
  .fdc-sticky-atc,
  .fdc-gallery__thumbs,
  .fdc-gallery__zoom,
  .fdc-gallery__arrow,
  .fdc-buybox__actions,
  .fdc-pdp__rail { display: none !important; }
  .fdc-pdp { background: #fff; color: #000; }
  .fdc-prose--clamped { max-height: none; overflow: visible; }
  .fdc-prose--clamped::after { display: none; }
  .fdc-accordion__panel[hidden] { display: block !important; }
}