/* Foxtrot Mike — Single product gallery and summary (mockup 02). */

/* ========== Product detail (mockup 02) ========== */
.fm-page--pdp {
  width: min(100% - 3rem, var(--fm-max));
  margin: 1.75rem auto 4rem;
}

.fm-page--pdp .fm-breadcrumb {
  margin: 0.35rem 0 1.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.fm-page--pdp .fm-breadcrumb__current {
  color: var(--fm-muted);
  font-weight: 500;
}

.fm-pdp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .fm-pdp {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem 3rem;
  }
}

/* Gallery */
.fm-pdp__gallery {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

/* Desktop: cap the gallery column by viewport height so the square frame
   sits above the fold on short laptops (14.5rem = header + shipping bar +
   breadcrumb to frame top + 2rem clearance; floor 25rem). The details column
   keeps its normal width (0.425 share, same as the old 1.15fr/0.85fr split)
   and sits next to the image with the normal 3rem gap; spare width goes to
   the far right. Uncapped screens get exactly the old 1.15fr/0.85fr split. */
@media (min-width: 900px) {
  .fm-pdp {
    grid-template-columns:
      min(calc((100% - 3rem) * 0.575), max(25rem, calc(100vh - 14.5rem)))
      minmax(0, calc((100% - 3rem) * 0.425));
    grid-template-columns:
      min(calc((100% - 3rem) * 0.575), max(25rem, calc(100svh - 14.5rem)))
      minmax(0, calc((100% - 3rem) * 0.425));
    justify-content: start;
  }
}

.fm-pdp__main {
  position: relative;
  background-color: #0a0a0a;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: var(--fm-radius);
  border: 1px solid var(--fm-border);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.fm-pdp__main::before {
  content: "";
  position: absolute;
  inset: -16px;
  background-image: inherit;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: blur(16px);
  transform: scale(1.08);
  pointer-events: none;
}

.fm-pdp__main-img,
.fm-pdp__placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fm-pdp__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
}

.fm-pdp__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm-pdp__thumbs--single {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.fm-pdp__thumbs--single li:first-child {
  grid-column: 1;
}

/* 1.12.80: Coming Soon product or selected variation: placeholder hero only. Covers a single or a
   multi-thumb list. display:none also drops the gallery's flex gap, so nothing is left under the hero. */
.fm-pdp__gallery[data-fm-coming-soon] .fm-pdp__thumbs {
  display: none;
}

.fm-pdp__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-sm);
  background: #0a0a0a;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fm-pdp__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
  padding: 0;
}

.fm-pdp__thumb:hover {
  border-color: var(--fm-surface-hover);
}

.fm-pdp__thumb.is-active {
  border-color: var(--fm-accent);
  box-shadow: 0 0 0 1px var(--fm-accent);
}

.fm-pdp__thumb:focus-visible {
  outline: 2px solid var(--fm-accent);
  outline-offset: 2px;
}

/* Summary / buy box */
.fm-pdp__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-top: 0.15rem;
}

.fm-pdp__title {
  font-family: var(--fm-font);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: none;
  color: var(--fm-text);
  margin: 0 0 1rem;
  max-width: 22ch;
}

/* One lead-time line ("Ships in 1–2 business days" / "On backorder"; "Built to order" is not shown since 1.12.67).
   Out of stock replaces it. No pill, no status color. */
.fm-pdp__stock {
  display: block;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--fm-text);
}

.fm-pdp__stock[hidden] {
  display: none;
}

.fm-pdp__stock.is-out {
  color: var(--fm-muted);
}

.fm-pdp__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--fm-text);
  margin: 0 0 0.45rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.fm-pdp__price .woocommerce-Price-amount,
.fm-pdp__price .amount {
  color: inherit;
  font-weight: inherit;
}

.fm-pdp__price del {
  color: var(--fm-muted-dim);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  order: -1;
}

.fm-pdp__price del .woocommerce-Price-amount,
.fm-pdp__price del .amount {
  color: var(--fm-muted-dim);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in srgb, var(--fm-accent) 65%, var(--fm-muted-dim));
}

.fm-pdp__price ins {
  text-decoration: none;
  color: var(--fm-text);
  font-size: 1.85rem;
  font-weight: 800;
}

.fm-pdp__price ins .woocommerce-Price-amount,
.fm-pdp__price ins .amount {
  color: var(--fm-text);
  font-weight: 800;
}

.fm-pdp__save {
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 0.22rem 0.48rem;
  border-radius: var(--fm-radius-sm);
  background: color-mix(in srgb, var(--fm-accent) 20%, var(--fm-surface));
  color: var(--fm-text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.fm-pdp__summary > .fm-origin-mark {
  margin: 0.15rem 0 0.95rem;
  max-width: 28rem;
}

/* Credova is checkout-only — hide plugin widgets on product surfaces. */
.single-product .credova,
.single-product [class*="credova"],
.fm-card .credova,
.fm-card [class*="credova"],
.woocommerce ul.products .credova,
.woocommerce ul.products [class*="credova-"],
.fm-related .credova,
.fm-related [class*="credova"] {
  display: none !important;
}

/* Cart form */
.fm-pdp__cart {
  width: 100%;
  max-width: 28rem;
}

.fm-pdp__config {
  margin: 0 0 0.45rem;
  color: var(--fm-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.fm-pdp__config[hidden] {
  display: none;
}

.fm-pdp__trust {
  list-style: none;
  align-self: stretch;
  box-sizing: border-box;
  width: 100%;
  max-width: 28rem;
  margin: 1.15rem 0 0;
  padding: 1.05rem 0 0;
  border-top: 1px solid var(--fm-border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fm-pdp__trust li {
  margin: 0;
  color: var(--fm-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.fm-pdp-after {
  margin-top: 2.25rem;
}

.fm-pdp-after .fm-specs {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.fm-pdp-after .fm-specs__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 2.5rem;
}

@media (max-width: 700px) {
  .fm-pdp-after .fm-specs__list {
    grid-template-columns: 1fr;
  }
}

.fm-pdp__cart form.cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin: 0;
}

.fm-pdp__cart .woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
  margin-top: 0.15rem;
}

.fm-pdp__cart .quantity {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: transparent;
  overflow: hidden;
  width: 100%;
  max-width: 28rem;
  margin: 0 !important;
}

.fm-pdp__cart .quantity .qty,
.fm-pdp__cart .quantity input.qty {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: 2.6rem;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid var(--fm-border) !important;
  border-right: 1px solid var(--fm-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--fm-text) !important;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}

.fm-pdp__cart .quantity .qty::-webkit-outer-spin-button,
.fm-pdp__cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.fm-pdp__qty-btn {
  display: inline-flex;
  flex: 0 0 2.6rem;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fm-text);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.fm-pdp__qty-btn:hover {
  background: var(--fm-surface);
  color: var(--fm-text);
}

.fm-pdp__qty-btn:focus-visible {
  outline: 2px solid var(--fm-accent);
  outline-offset: -2px;
}

.fm-pdp__cart .single_add_to_cart_button,
.fm-pdp__cart button.single_add_to_cart_button,
.fm-pdp__cart .fm-pdp__add {
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 1rem 1.25rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border-radius: var(--fm-radius) !important;
  background: var(--fm-accent) !important;
  color: var(--fm-text) !important;
  border: 0 !important;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.fm-pdp__cart .single_add_to_cart_button:hover:not(:disabled):not(.disabled) {
  background: var(--fm-accent-hover) !important;
}

/* OOS / incomplete — ATC not available */
.fm-pdp__cart .single_add_to_cart_button:disabled,
.fm-pdp__cart .single_add_to_cart_button.disabled,
.fm-pdp__cart .single_add_to_cart_button.fm-atc--oos {
  background: var(--fm-surface) !important;
  color: var(--fm-muted) !important;
  border: 1px solid var(--fm-border) !important;
  cursor: not-allowed !important;
  opacity: 1;
  pointer-events: none;
  box-shadow: none !important;
}

/* 1.12.94: while adding, the button stays red and the same size (disabled only to stop a second add). */
.fm-pdp__cart .single_add_to_cart_button.fm-atc-busy:disabled,
.fm-pdp__cart .single_add_to_cart_button.fm-atc-busy.disabled {
  background: var(--fm-accent) !important;
  color: var(--fm-text) !important;
  border: 0 !important;
  cursor: progress !important;
}

.fm-pdp__cart .single_add_to_cart_button.fm-atc--oos {
  color: var(--fm-text) !important;
  border-color: color-mix(in srgb, var(--fm-accent) 40%, var(--fm-border)) !important;
  background: color-mix(in srgb, var(--fm-accent) 12%, var(--fm-surface)) !important;
}

.fm-pdp__zoom {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.fm-pdp__zoom:focus-visible {
  outline: 2px solid var(--fm-accent);
  outline-offset: 2px;
}

/* Lightbox */
.fm-lightbox {
  position: relative;
  width: min(96vw, 1100px);
  max-height: 92vh;
  margin: auto;
  padding: 2.5rem 3.25rem;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-bg);
  color: var(--fm-text);
}

.fm-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.fm-lightbox__img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.fm-lightbox__close,
.fm-lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fm-border);
  background: var(--fm-surface);
  color: var(--fm-text);
  cursor: pointer;
}

.fm-lightbox__close {
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
}

.fm-lightbox__nav {
  top: 50%;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-size: 1.5rem;
  transform: translateY(-50%);
}

.fm-lightbox__nav--prev { left: 0.55rem; }
.fm-lightbox__nav--next { right: 0.55rem; }

.fm-lightbox__nav[hidden] {
  display: none;
}

.fm-lightbox__close:hover,
.fm-lightbox__nav:hover {
  border-color: var(--fm-accent);
  color: var(--fm-accent);
}

/* Full-width spec sheet + collapsed copy */
.fm-pdp-docs {
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--fm-border);
}

.fm-pdp-docs--short {
  padding-top: 1.5rem;
  border-top: 1px solid var(--fm-border);
}

.fm-pdp-docs__panel {
  border-bottom: 1px solid var(--fm-border);
}

.fm-pdp-docs__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--fm-text);
  user-select: none;
}

.fm-pdp-docs__summary::-webkit-details-marker {
  display: none;
}

/* One chevron for every PDP collapsible (PDP9-09): points down closed, up open. */
.fm-pdp-docs__summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 0.35rem 0.25rem 0;
  border-right: 2px solid var(--fm-muted);
  border-bottom: 2px solid var(--fm-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.fm-pdp-docs__panel[open] > .fm-pdp-docs__summary::after {
  margin-bottom: -0.25rem;
  transform: rotate(-135deg);
}

@media (prefers-reduced-motion: reduce) {
  .fm-pdp-docs__summary::after {
    transition: none;
  }
}

.fm-pdp-docs__summary:hover {
  color: #fff;
}

.fm-pdp-docs__summary:focus-visible {
  outline: 2px solid var(--fm-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.fm-pdp-docs__body {
  padding: 0 0 1.35rem;
}

.fm-pdp-docs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

@media (min-width: 700px) {
  .fm-pdp-docs__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fm-pdp-docs__cell {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--fm-border);
}

.fm-pdp-docs__cell:first-child {
  border-top: 0;
}

@media (min-width: 700px) {
  .fm-pdp-docs__cell:nth-child(2) {
    border-top: 0;
  }

  .fm-pdp-docs__cell:nth-child(odd) {
    padding-right: 1.5rem;
  }

  .fm-pdp-docs__cell:nth-child(even) {
    padding-left: 1.5rem;
    border-left: 1px solid var(--fm-border);
  }
}

.fm-pdp-docs__cell dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm-muted);
}

.fm-pdp-docs__cell dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--fm-text);
}

.fm-pdp-docs__extras {
  margin: 0.35rem 0 0;
  padding: 0.75rem 0 0 1.15rem;
  color: var(--fm-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.fm-pdp-docs__extras li + li {
  margin-top: 0.35rem;
}

.fm-pdp-docs__prose {
  max-width: 68ch;
}

.fm-pdp-docs__prose p {
  margin: 0 0 0.85rem;
  color: var(--fm-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.fm-pdp-docs__prose p:last-child {
  margin-bottom: 0;
}

.fm-pdp-docs__prose--notes p {
  font-size: 0.88rem;
}

/* Related rail */
.fm-related {
  margin: 3rem 0 0;
}

.fm-related__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
  color: var(--fm-text);
}

.fm-related__grid,
.fm-related ul.products {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

@media (min-width: 600px) {
  .fm-related__grid,
  .fm-related ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .fm-related__grid,
  .fm-related ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fm-related ul.products::before,
.fm-related ul.products::after {
  display: none !important;
}

.fm-related ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

/* Phone: swipe the row. The next card stays in view, same as the homepage featured row. */
@media (max-width: 599px) {
  .fm-related__grid,
  .fm-related ul.products {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--fm-border) transparent;
    width: 100%;
    max-width: 100%;
  }

  .fm-related ul.products::-webkit-scrollbar {
    height: 6px;
  }

  .fm-related ul.products::-webkit-scrollbar-thumb {
    background: var(--fm-border);
    border-radius: 999px;
  }

  .fm-related ul.products > li.product {
    flex: 0 0 78%;
    width: 78% !important;
    max-width: 78%;
    min-width: 0;
    scroll-snap-align: start;
  }

  /* Two title lines on every card, so a long name cannot change the box. */
  .fm-related .fm-card__title {
    height: 2.6em;
    line-height: 1.3;
    overflow: hidden;
  }

  .fm-related .fm-card__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .fm-related .fm-card:hover {
    transform: none;
  }
}

/* Sticky ATC — mobile only */
.fm-sticky-atc {
  display: none;
}

@media (max-width: 899px) {
  .fm-sticky-atc:not([hidden]) {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: #000;
    border-top: 1px solid var(--fm-border);
  }

  body.fm-sticky-atc-on {
    padding-bottom: 5.25rem;
  }

  .fm-sticky-atc__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }

  .fm-sticky-atc__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
  }

  .fm-sticky-atc__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fm-text);
  }

  .fm-sticky-atc__price del {
    color: var(--fm-muted-dim);
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.3rem;
  }

  .fm-sticky-atc__price del .amount {
    color: var(--fm-muted-dim);
    text-decoration: line-through;
  }

  .fm-sticky-atc__price ins {
    text-decoration: none;
  }

  .fm-sticky-atc__price .fm-pdp__save {
    display: none;
  }

  .fm-sticky-atc__btn {
    flex-shrink: 0;
    min-width: 8.5rem;
    padding: 0.75rem 1rem !important;
    font-size: 0.88rem !important;
  }

  .fm-sticky-atc__btn:disabled,
  .fm-sticky-atc__btn.disabled {
    background: var(--fm-surface) !important;
    color: var(--fm-muted) !important;
    border: 1px solid var(--fm-border) !important;
    cursor: not-allowed;
  }

  .fm-sticky-atc__btn.fm-atc-busy:disabled,
  .fm-sticky-atc__btn.fm-atc-busy.disabled {
    background: var(--fm-accent) !important;
    color: #fff !important;
    border: 0 !important;
    cursor: progress;
  }
}

@media (max-width: 720px) {
  .fm-lightbox {
    padding: 2.75rem 0.75rem 1rem;
  }

  .fm-lightbox__nav {
    width: 2rem;
    height: 2rem;
  }
}




/* PDP details: Overview + grouped spec table + How it works (v1.12.0) */
.fm-pdp-after .fm-pdp-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.fm-pdp-after .fm-pdp-details--single {
  grid-template-columns: minmax(0, 760px);
}
.fm-pdp-details__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fm-text);
}
.fm-pdp-details__overview p,
.fm-pdp-how p {
  margin: 0 0 0.75rem;
  max-width: 65ch;
  font-size: 1rem;
  line-height: 1.6;
  color: #d4d4d4;
}
.fm-pdp-details__list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  max-width: 65ch;
  color: #d4d4d4;
  line-height: 1.6;
}
.fm-pdp-details__list li { margin: 0.25rem 0; }
/* 1.13.51: lists inside the Overview copy, and copy gated on the configuration. */
.fm-pdp-details__list--overview { margin: 0 0 0.75rem; }
.fm-pdp-details__overview [data-fm-if][hidden] { display: none !important; }
.fm-pdp-details__list--muted { color: var(--fm-muted); font-size: 0.875rem; margin-top: 1rem; }
.fm-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.fm-spec-table th,
.fm-spec-table td {
  padding: 0.6rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--fm-border);
}
.fm-spec-table th[scope="row"] {
  width: 40%;
  padding-right: 1rem;
  font-weight: 400;
  color: var(--fm-muted);
}
.fm-spec-table td { color: var(--fm-text); }
.fm-spec-table__group th {
  padding-top: 1.25rem;
  font-weight: 600;
  color: var(--fm-text);
}
.fm-spec-table tbody:first-child .fm-spec-table__group th { padding-top: 0.25rem; }
.fm-pdp-how h3 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fm-text);
}
.fm-pdp-how h2 + h3,
.fm-pdp-how .fm-pdp-docs__prose > h3:first-child { margin-top: 0; }
@media (max-width: 799px) {
  .fm-pdp-after .fm-pdp-details { grid-template-columns: 1fr; gap: 2rem; }
}

/* PDP9-05: FFL requirement directly under the price. */
.fm-pdp__ffl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--fm-text);
  font-size: 0.875rem;
}

/* PDP9-04: 120px qty stepper inline, left of Add to Cart, on one row. */
.fm-pdp__cart .woocommerce-variation-add-to-cart,
.fm-pdp__cart form.cart:not(.variations_form) {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}

.fm-pdp__cart .woocommerce-variation-add-to-cart > *,
.fm-pdp__cart form.cart:not(.variations_form) > * {
  flex: 1 1 100%;
}

.fm-pdp__cart .woocommerce-variation-add-to-cart > .quantity,
.fm-pdp__cart form.cart:not(.variations_form) > .quantity {
  flex: 0 0 7.5rem;
  width: 7.5rem;
  max-width: 7.5rem;
}

.fm-pdp__cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
.fm-pdp__cart form.cart:not(.variations_form) > .single_add_to_cart_button {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
}

.fm-pdp__cart .woocommerce-variation-add-to-cart > input[type="hidden"],
.fm-pdp__cart form.cart:not(.variations_form) > input[type="hidden"] {
  display: none;
}

.fm-pdp__qty-btn {
  flex-basis: 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
}

.fm-pdp__cart .quantity .qty,
.fm-pdp__cart .quantity input.qty {
  height: 2.75rem;
}

/* PDP9-09: How it works / RMB buffer use the shared panel at full width; the prose keeps a
   65ch measure (RMB-05). When Notes follows, the two read as one stack (one divider). */
.fm-pdp-after > .fm-pdp-docs--how {
  margin-top: 2.5rem;
}

.fm-pdp-after:has(> .fm-pdp-docs--how:not([hidden]):last-child) + .fm-pdp-docs {
  margin-top: 0;
  border-top: 0;
}

.fm-pdp-how__link {
  color: var(--fm-text);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fm-pdp__fits {
  margin: 0.75rem 0 0;
  color: var(--fm-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.fm-pdp__fits-label {
  color: var(--fm-text);
  font-weight: 600;
}

/* Frequently bought together (1.12.63): one card, rows split by 1px dividers. */
.fm-page--pdp .fm-fbt {
  align-self: stretch;
  box-sizing: border-box;
  width: 100%;
  max-width: 28rem;
  margin-top: 1.5rem;
}

.fm-page--pdp .fm-fbt__label {
  margin: 0 0 0.75rem;
  color: var(--fm-muted);
  font-family: var(--fm-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fm-page--pdp .fm-fbt__list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
}

.fm-page--pdp .fm-fbt__item {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
}

.fm-page--pdp .fm-fbt__item + .fm-fbt__item {
  border-top: 1px solid var(--fm-border);
}

.fm-page--pdp .fm-fbt__thumb {
  display: block;
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  border-radius: var(--fm-radius-sm);
  background: var(--fm-bg);
}

/* 1.12.64: whole photo, no zoom or crop. */
.fm-page--pdp .fm-fbt__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fm-page--pdp .fm-fbt__info {
  min-width: 0;
}

.fm-page--pdp .fm-fbt__name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fm-text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fm-page--pdp .fm-fbt__name:hover {
  text-decoration: underline;
}

.fm-page--pdp .fm-fbt__price {
  display: block;
  margin-top: 0.25rem;
  /* 1.12.70: the current price is always white 600; only the struck regular price (del) is muted. */
  color: var(--fm-text);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fm-page--pdp .fm-fbt__price del {
  margin-right: 0.25rem;
}

.fm-page--pdp .fm-fbt__price ins {
  text-decoration: none;
}

.fm-page--pdp .fm-fbt__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 4.5rem;
  min-height: 2.25rem;
  padding: 0 1rem;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-sm);
  background: var(--fm-surface-hover);
  color: var(--fm-text);
  font-family: var(--fm-font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.fm-page--pdp .fm-fbt__add:hover,
.fm-page--pdp .fm-fbt__add:focus-visible {
  border-color: var(--fm-muted);
  color: var(--fm-text);
}

.fm-page--pdp .fm-fbt__add.is-loading {
  color: var(--fm-muted);
  cursor: progress;
}

.fm-page--pdp .fm-fbt__add.is-added {
  border-color: var(--fm-border);
  color: var(--fm-muted);
}

@media (max-width: 700px) {
  .fm-page--pdp .fm-fbt__item {
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .fm-page--pdp .fm-fbt__add {
    min-height: 2.75rem;
  }
}

/* FBT bundle pricing (1.12.65): "$10 off each with ISU-9" + struck regular price. */
.fm-page--pdp .fm-fbt__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

/* 1.12.70: the heading stays on one line; when the deal text doesn't fit beside it (390), it drops under it. */
.fm-page--pdp .fm-fbt__label > span:first-child {
  white-space: nowrap;
}

.fm-page--pdp .fm-fbt__save {
  color: var(--fm-muted);
  font-family: var(--fm-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.fm-page--pdp .fm-fbt__price del {
  margin-right: 0.25rem;
  color: var(--fm-muted);
  font-weight: 400;
}

.fm-page--pdp .fm-fbt__price del .amount {
  color: var(--fm-muted);
}

.fm-page--pdp .fm-fbt__price ins {
  color: var(--fm-text);
  font-weight: 600;
  text-decoration: none;
}

/* 1.12.70: the RMB tag hides while a non-RMB buffer is selected. */
.fm-pdp__rmb[hidden] {
  display: none;
}

/* RMB standard (1.12.66): same row as the FFL line, stacked under it. */
.fm-pdp__ffl + .fm-pdp__rmb {
  margin-top: -0.5rem;
}

/* 1.12.67: PDP FFL and RMB pills share one look: white 1px outline, white text (radius/size from .fm-ffl-pill). */
.fm-pdp__ffl .fm-ffl-pill {
  border-color: var(--fm-text);
  color: var(--fm-text);
}

/* FBT variable picks (1.12.87): Choose links to the product page; same button as + Add. In a list
   with a Choose button every button takes the wider Choose width so the column stays even. */
.fm-page--pdp .fm-fbt__list--choose .fm-fbt__add {
  min-width: 5.5rem;
}

/* 1.12.90: PDP video. Same column and heading as Overview; poster swaps to the player on click. */
.fm-pdp-video {
  max-width: 760px;
}
.fm-pdp-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--fm-border);
  border-radius: 10px;
  background: var(--fm-surface, #1a1a1a);
}
.fm-pdp-video__play {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
}
.fm-pdp-video__poster,
.fm-pdp-video__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.fm-pdp-video__poster {
  object-fit: cover;
}
.fm-pdp-video__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: -2rem 0 0 -2rem;
  border-radius: 50%;
  background: var(--fm-accent, #e31c23);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}
.fm-pdp-video__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  margin-left: 0.2rem;
}
.fm-pdp-video__play:hover .fm-pdp-video__icon,
.fm-pdp-video__play:focus-visible .fm-pdp-video__icon {
  transform: scale(1.06);
}
.fm-pdp-video__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  border-radius: 10px;
}
.fm-pdp-video__credit {
  margin: 0.6rem 0 0;
  color: var(--fm-muted);
  font-size: 0.875rem;
}
.fm-pdp-video__credit a {
  color: var(--fm-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fm-pdp-video__credit a:hover {
  color: var(--fm-text);
}
@media (max-width: 799px) {
  .fm-pdp-video__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: -1.75rem 0 0 -1.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fm-pdp-video__icon { transition: none; }
}
