/* 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;
}

.fm-pdp__main {
  position: relative;
  background: #0a0a0a;
  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-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;
}

.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: uppercase;
  color: var(--fm-text);
  margin: 0 0 1rem;
  max-width: 22ch;
}

.fm-pdp__stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: var(--fm-radius-sm);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.fm-pdp__stock.is-in {
  background: var(--fm-success);
  color: var(--fm-text);
}

/* Low stock (≤ threshold): urgency without solid OOS red */
.fm-pdp__stock.is-low {
  background: color-mix(in srgb, var(--fm-accent) 22%, var(--fm-surface));
  color: var(--fm-text);
  box-shadow: inset 0 0 0 1px var(--fm-accent);
}

.fm-pdp__stock.is-out {
  background: var(--fm-accent);
  color: var(--fm-text);
}

.fm-pdp__stock.is-select {
  background: var(--fm-border);
  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: #8d8d8d;
  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: #8d8d8d;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in srgb, var(--fm-accent) 65%, #8d8d8d);
}

.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-breadcrumb__short {
  display: none;
}

@media (max-width: 767px) {
  .fm-page--pdp .fm-breadcrumb__long {
    display: none;
  }

  .fm-page--pdp .fm-breadcrumb__short {
    display: inline;
  }
}

.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;
}

.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 {
  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__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;
  padding: 1.05rem 0.15rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fm-text);
  user-select: none;
}

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

.fm-pdp-docs__summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  color: var(--fm-muted);
  border: 1px solid var(--fm-border);
  border-radius: 4px;
}

.fm-pdp-docs__panel[open] > .fm-pdp-docs__summary::after {
  content: "–";
}

.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;
}

/* Added confirmation — one markup, two layouts */
.fm-added-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--fm-font);
  transition: opacity 0.5s ease;
}

.fm-added-bar.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.fm-added-bar__thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--fm-radius-sm);
  border: 1px solid var(--fm-border);
  background: var(--fm-surface);
  flex-shrink: 0;
}

.fm-added-bar__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.fm-added-bar__status {
  color: var(--fm-success);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fm-added-bar__name {
  color: var(--fm-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.fm-added-bar__cart {
  color: var(--fm-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.fm-added-bar__cart:hover {
  color: var(--fm-text);
}

.fm-added-bar__checkout {
  flex-shrink: 0;
  min-width: 7.25rem;
  padding: 0.75rem 1.05rem !important;
  font-size: 0.88rem !important;
  text-align: center;
}

@keyframes fm-added-flash {
  0%,
  100% {
    opacity: 1;
  }
  40% {
    opacity: 0.35;
  }
}

.fm-added-bar__status {
  animation: fm-added-flash 0.7s ease 1;
}

/* 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: #8d8d8d;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.3rem;
  }

  .fm-sticky-atc__price del .amount {
    color: #8d8d8d;
    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-added-bar {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--fm-header-h);
    z-index: 40;
    padding: 0.7rem 0.9rem;
    background: #000;
    border-bottom: 1px solid var(--fm-border);
  }

  body.fm-added-bar-on .fm-shipping-bar {
    margin-top: calc(1.4rem + 44px + 1px);
  }

  body.fm-added-bar-on .fm-sticky-atc {
    display: none !important;
  }

  .fm-added-bar__copy {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
  }

  .fm-added-bar__name {
    font-size: 0.82rem;
  }

  .fm-added-bar__cart {
    display: none;
  }
}

@media (min-width: 900px) {
  .fm-added-bar {
    grid-column: 1 / -1;
    gap: 0.85rem;
    padding: 0.55rem 0.75rem;
    background: var(--fm-bg-elevated);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
  }

  .fm-added-bar__copy {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  .fm-added-bar__name {
    flex: 1 1 auto;
    font-size: 0.92rem;
  }

  .fm-added-bar__status,
  .fm-added-bar__cart {
    flex-shrink: 0;
  }

  .fm-added-bar__cart {
    font-size: 0.85rem;
  }

  .fm-added-bar__checkout {
    padding: 0.65rem 1.15rem !important;
  }
}

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

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



