/* Foxtrot Mike — Reset, layout, header, shipping bar, mobile nav, buttons. */

/* ========== Reset / base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* 0.7rem padding top and bottom, 52px logo, 1px border. */
  --fm-header-h: calc(1.4rem + 52px + 1px);
  /* 0.55rem padding top and bottom, one 0.7rem line, 1px border. */
  --fm-banner-h: calc(1.1rem + 1.5 * 0.7rem + 1px);
  --fm-chrome-h: var(--fm-header-h);
  scroll-behavior: smooth;
  scroll-padding-top: var(--fm-chrome-h);
  color-scheme: dark;
}

html:has(.fm-shipping-bar) {
  --fm-chrome-h: calc(var(--fm-header-h) + var(--fm-banner-h));
}

/* Checkout header uses 0.4rem of vertical padding and has no announcement bar. */
html:has(.fm-header--checkout) {
  --fm-header-h: calc(0.8rem + 52px + 1px);
}

body {
  margin: 0;
  font-family: var(--fm-font);
  font-weight: 400;
  background: var(--fm-bg);
  color: var(--fm-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--fm-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--fm-accent);
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

button,
input,
select {
  font-family: inherit;
}

/* WC country/state Select2 (account, checkout, anywhere). Dropdown is portaled to body. */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  height: 2.7rem;
  min-height: 2.7rem;
  padding: 0 0.8rem;
  background: var(--fm-bg) !important;
  border: 1px solid var(--fm-border) !important;
  border-radius: var(--fm-radius-sm);
  color: var(--fm-text) !important;
  box-shadow: none !important;
  outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--fm-text) !important;
  line-height: 1.4;
  padding: 0 1.5rem 0 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--fm-muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.55rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--fm-muted) transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--fm-muted) transparent;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--fm-accent) !important;
}

.select2-dropdown {
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  color: var(--fm-text);
  border-radius: var(--fm-radius-sm);
  overflow: hidden;
  z-index: 100050;
}

.select2-search--dropdown {
  padding: 0.5rem;
}

.select2-search--dropdown .select2-search__field {
  width: 100%;
  padding: 0.45rem 0.65rem;
  background: var(--fm-bg);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-sm);
  color: var(--fm-text);
  font: inherit;
}

.select2-search--dropdown .select2-search__field:focus {
  outline: 2px solid var(--fm-accent);
  outline-offset: 1px;
  border-color: var(--fm-accent);
}

.select2-container--default .select2-results__option {
  padding: 0.5rem 0.85rem;
  color: var(--fm-text);
  background: var(--fm-surface);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  background: var(--fm-accent);
  color: #fff;
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
  background: var(--fm-surface-hover);
  color: var(--fm-text);
}

.select2-container--default .select2-results__option--disabled,
.select2-results__message {
  color: var(--fm-muted);
}

.select2-container--default .select2-results > .select2-results__options {
  background: var(--fm-surface);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fm-skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.55rem 0.9rem;
  background: var(--fm-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--fm-radius-sm);
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.fm-skip:focus,
.fm-skip:focus-visible,
.fm-skip:hover {
  color: #fff;
}

.fm-skip:focus,
.fm-skip:focus-visible {
  position: fixed;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
}

/* ========== Layout ========== */
.fm-container {
  width: min(100% - 3rem, var(--fm-max));
  margin-inline: auto;
}

.site-main {
  min-height: 50vh;
}

/* ========== Header ========== */
.fm-chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
}

.fm-header {
  position: relative;
  z-index: 2;
  background: #000;
  border-bottom: 1px solid var(--fm-border);
}

.fm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 1.15rem;
}

.fm-logo-link {
  order: 1;
}

/* Store header: logo is the viewport center. Nav sits in the left half, tools in the right.
   1.12.78: desktop bar from 1000px; below that the drawer header (pages.css, fm-theme.js). */
@media (min-width: 1000px) {
  .fm-header:not(.fm-header--checkout) .fm-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }

  .fm-header:not(.fm-header--checkout) .fm-logo-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    z-index: 2;
  }

  .fm-header:not(.fm-header--checkout) .fm-nav {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    justify-content: flex-start;
    margin-left: 0;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .fm-header:not(.fm-header--checkout) .fm-nav > a,
  .fm-header:not(.fm-header--checkout) .fm-nav__shop-link {
    white-space: nowrap;
  }

  .fm-header:not(.fm-header--checkout) .fm-header__tools {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  /* 1.13.14: larger store logo so the ring text reads (was 52px). */
  .fm-header:not(.fm-header--checkout) .fm-header__inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .fm-header:not(.fm-header--checkout) .fm-logo {
    width: 72px;
    height: 72px;
  }
}

/* Checkout: one row. Label, logo, cart. Logo matches the store header. */
.fm-header--checkout .fm-header__inner {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.4rem 1.15rem;
}

.fm-header--checkout .fm-header__lock,
.fm-header--checkout .fm-logo-link,
.fm-header--checkout .fm-header__tools {
  grid-column: auto;
  grid-row: auto;
  position: static;
  top: auto;
  left: auto;
  width: auto;
  height: auto;
  margin: 0;
  align-self: center;
}

.fm-header--checkout .fm-header__lock {
  order: 1;
  flex: 1 1 0;
  line-height: 1;
  text-align: left;
}

.fm-header--checkout .fm-logo-link {
  order: 2;
  flex: 0 0 52px;
}

.fm-header--checkout .fm-logo {
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
}

.fm-header--checkout .fm-header__tools {
  order: 3;
  flex: 1 1 0;
  justify-content: flex-end;
}

.fm-nav {
  order: 2;
  margin-left: auto;
}

.fm-header__tools {
  order: 3;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.fm-nav-toggle {
  order: 4;
}

.fm-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: #1a1a1a;
}

.fm-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.fm-nav > a,
.fm-nav__shop-link {
  color: var(--fm-text);
  padding: 0.35rem 0.85rem;
  position: relative;
  opacity: 0.92;
}

.fm-nav > a::after,
.fm-nav__shop-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0.85em;
  background: #444;
}

.fm-nav > a:last-child::after,
.fm-nav__shop:last-child .fm-nav__shop-link::after {
  display: none;
}

.fm-nav > a:hover,
.fm-nav__shop-link:hover {
  color: var(--fm-accent);
  opacity: 1;
}

.fm-nav__shop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fm-nav__caret {
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s ease;
}

/* Shop tray: full-bleed extension of the bar, flush to the header. */
.fm-nav__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 120;
  margin: 0;
  padding: 1.35rem 1.15rem 1.45rem 2rem;
  grid-template-columns: 14rem 14rem auto;
  column-gap: 3.5rem;
  background: #111;
  border: 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--fm-font);
  font-size: 0.875rem;
}

.fm-nav__shop.is-open .fm-nav__panel {
  display: grid;
}

.fm-nav__shop.is-open .fm-nav__shop-label {
  box-shadow: inset 0 -1px 0 currentColor;
}

.fm-nav__shop.is-open .fm-nav__shop-link {
  color: #fff;
  opacity: 1;
}

.fm-nav__shop.is-open .fm-nav__caret {
  transform: rotate(225deg) translateY(-1px);
}

.fm-nav__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  min-width: 0;
}

.fm-nav__col strong {
  display: block;
  margin: 0 0 0.55rem;
  font-family: var(--fm-font-display);
  font-size: 11px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #a0a0a0;
}

.fm-nav__panel a {
  display: inline-flex;
  align-items: center;
  /* 1.12.93 (PARTS-05): text lines up with the column heading; the hover bar sits in the gutter. */
  margin: 0 0 0 calc(-0.7rem - 2px);
  padding: 0.34rem 0.45rem 0.34rem 0.7rem;
  border-left: 2px solid transparent;
  border-radius: 0;
  color: #cfcfcf;
  font-family: var(--fm-font);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  opacity: 1;
  transition: none;
}

.fm-nav__panel a:hover,
.fm-nav__panel a:focus-visible {
  color: #fff;
  background: none;
  border-left-color: #e31c23;
  opacity: 1;
}

.fm-nav__all::after {
  content: "\2192";
  margin-left: 0.4rem;
}

@media (max-width: 1000px) {
  .fm-nav__panel {
    grid-template-columns: 1fr 1fr auto;
    column-gap: 1.75rem;
  }
}

/* 1.12.75: platform trays reuse the More tray. One column: links, then "Shop all {Platform}". */
@media (min-width: 1000px) {
  .fm-nav__plat .fm-nav__caret {
    display: none;
  }

  .fm-nav__panel--plat {
    grid-template-columns: 14rem;
    row-gap: 0.5rem;
  }

  /* 1.12.93: More > Build ends with "Shop all", spaced like the platform trays' "Shop all {Platform}". */
  .fm-nav__col--build .fm-nav__all {
    margin-top: 0.5rem;
  }
}

.fm-search-toggle,
.fm-account-link,
.fm-header__tools .fm-nav__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fm-text);
  cursor: pointer;
  opacity: 0.92;
}

.fm-header__tools .fm-nav__cart {
  position: relative;
  margin-left: 0;
  padding-left: 0 !important;
  border-left: 0;
  text-decoration: none;
}

.fm-search-toggle:hover,
.fm-account-link:hover,
.fm-header__tools .fm-nav__cart:hover {
  color: var(--fm-accent);
  opacity: 1;
}

.fm-search-toggle[aria-expanded="true"] {
  color: var(--fm-accent);
  opacity: 1;
}

.fm-search-toggle svg,
.fm-account-link svg,
.fm-header__tools .fm-nav__cart svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

/* Search field grows left from the icon. It stays in the header row. */
.fm-search {
  --fm-search-w: min(16.5rem, calc(50vw - 14rem));
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.fm-search-panel {
  display: flex;
  justify-content: flex-end;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  transition: width 0.22s ease;
}

.fm-search-form {
  display: flex;
  align-items: center;
  width: var(--fm-search-w);
  margin: 0;
  padding: 0;
}

.fm-search-form__input {
  width: 100%;
  height: 2.5rem;
  margin: 0;
  padding: 0 0.85rem;
  border: 1px solid var(--fm-border-strong);
  border-radius: var(--fm-radius-sm);
  background: #141414;
  color: var(--fm-text);
  font-family: inherit;
  font-size: 0.92rem;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.fm-search-form__input::placeholder {
  color: var(--fm-muted);
}

.fm-search-form__input:focus {
  outline: none;
  border-color: var(--fm-accent);
}

.fm-search-form__submit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.fm-search-open .fm-search-panel {
  width: var(--fm-search-w);
  pointer-events: auto;
}

body.fm-search-open .fm-search-form__input {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .fm-search-panel,
  .fm-search-form__input {
    transition: none;
  }
}

.fm-search-suggest {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 40;
  width: 100%;
  margin: 0;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-sm);
  background: var(--fm-surface);
  overflow: hidden;
  overflow-y: auto;
  max-height: min(24rem, 60vh);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.fm-search-suggest__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-bottom: 1px solid var(--fm-border);
  background: transparent;
  color: var(--fm-text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.fm-search-suggest__item:last-child {
  border-bottom: 0;
}

.fm-search-suggest__item:hover,
.fm-search-suggest__item.is-active {
  background: var(--fm-surface-hover, #222);
  color: var(--fm-text);
}

.fm-search-suggest__thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  background: #0a0a0a;
  border-radius: 4px;
}

.fm-search-suggest__thumb--empty {
  display: block;
  background: #111;
}

.fm-search-suggest__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.fm-search-suggest__name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-search-suggest__price {
  font-size: 0.8rem;
  color: var(--fm-muted);
}

.fm-search-suggest__item--all {
  justify-content: center;
  color: var(--fm-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.fm-search-suggest__item--all:hover,
.fm-search-suggest__item--all.is-active {
  color: var(--fm-accent-hover);
}

.fm-search-suggest__empty {
  padding: 0.85rem 1rem;
  color: var(--fm-muted);
  font-size: 0.9rem;
  text-align: center;
}

.fm-nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fm-nav__cart svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

.fm-nav__badge {
  position: absolute;
  top: 0.15rem;
  right: 0.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--fm-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ========== Free shipping bar ========== */
.fm-trust-short {
  display: none;
}

.fm-shipping-bar {
  background: #111;
  color: var(--fm-text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 0;
  border-bottom: 1px solid #1c1c1c;
}

.fm-shipping-bar .fm-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fm-shipping-bar__text {
  margin: 0;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fm-shipping-bar__text.is-leave {
  opacity: 0;
  transform: translateY(-6px);
}

.fm-shipping-bar__text.is-enter {
  opacity: 0;
  transform: translateY(6px);
}

.fm-shipping-bar__text a {
  color: inherit;
  text-decoration: none;
}

.fm-shipping-bar__text a:hover {
  color: var(--fm-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.fm-shipping-bar__flag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.55rem;
  line-height: 0;
  vertical-align: middle;
}

.fm-shipping-bar__flag .fm-origin-mark__svg {
  width: 18px;
  height: auto;
}

.fm-origin-mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--fm-muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.fm-origin-mark__flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.fm-origin-mark__svg {
  display: block;
  width: 22px;
  height: auto;
  border-radius: 1px;
}

.fm-origin-mark__text {
  min-width: 0;
}

/* ========== Mobile nav toggle ========== */
.fm-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  /* 1.13.05 (audit D3): 44px tap target. */
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin-left: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fm-text);
  cursor: pointer;
}

.fm-nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--fm-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.fm-nav-open .fm-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.fm-nav-open .fm-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.fm-nav-open .fm-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Buttons ========== */
.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: var(--fm-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  text-decoration: none !important;
  line-height: 1.2;
}

.fm-btn--primary,
.button.fm-btn--primary,
.woocommerce a.button.fm-btn--primary,
.woocommerce button.button.fm-btn--primary {
  background: var(--fm-accent) !important;
  color: #fff !important;
}

.fm-btn--primary:hover,
.woocommerce a.button.fm-btn--primary:hover {
  background: var(--fm-accent-hover) !important;
  color: #fff !important;
}

.fm-btn--ghost {
  background: transparent;
  color: var(--fm-text);
  border: 1px solid var(--fm-border);
}

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

.fm-btn--block {
  width: 100%;
}

.fm-btn--disabled,
.fm-card .fm-btn--disabled,
.button.fm-btn--disabled {
  background: var(--fm-surface) !important;
  color: var(--fm-muted) !important;
  border: 1px solid var(--fm-border);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.85;
}

.woocommerce a.button.fm-card__sold-out,
.fm-card a.fm-card__sold-out {
  background: var(--fm-surface) !important;
  color: var(--fm-muted) !important;
  border: 1px solid var(--fm-border) !important;
  pointer-events: auto;
  cursor: pointer;
}

.woocommerce a.button.fm-card__sold-out:hover,
.fm-card a.fm-card__sold-out:hover {
  background: #1a1a1a !important;
  color: var(--fm-text) !important;
}

.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.added_to_cart {
  background: var(--fm-accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--fm-radius-sm) !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.25rem !important;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--fm-accent-hover) !important;
}

/* Product card — shop, home featured, PDP related, empty cart. */
.fm-card {
  /* Containing block for absolute children (Woo's sale-price screen-reader text),
     so overflow clips them inside scroll rails instead of widening the page. */
  position: relative;
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
  height: 100%;
}

.fm-card:hover {
  border-color: var(--fm-border-strong);
  transform: translateY(-2px);
}

.fm-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #0a0a0a;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

/* Soft stand-in while the sharp photo downloads. The img covers it. */
.fm-card__media::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-card__media a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.fm-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  transition: transform 0.25s ease;
}

/* 1.13.51: _fm_card_fit = contain (template-parts/product-card.php): whole photo, no crop. */
.fm-card__media--contain img {
  object-fit: contain;
}

.fm-card__media .woocommerce-placeholder,
.fm-card__media img.woocommerce-placeholder {
  object-fit: contain;
  opacity: 0.35;
}

.fm-card:hover .fm-card__media img {
  transform: scale(1.03);
}

.fm-card__badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: var(--fm-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.48rem;
  border-radius: 3px;
  z-index: 2;
  line-height: 1;
}

.fm-card__body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  background: var(--fm-surface);
}

.fm-card__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--fm-text);
}

.fm-card__title a {
  color: inherit;
}

.fm-card__title a:hover {
  color: var(--fm-accent);
}

.fm-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0.2rem 0 0.75rem;
}

.fm-card__price .woocommerce-Price-amount {
  color: #fff;
  font-weight: 700;
}

.fm-card__price .amount bdi {
  font-variant-numeric: tabular-nums;
}

.fm-card__price del {
  color: var(--fm-muted-dim);
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 0.35rem;
}

.fm-card__price del .woocommerce-Price-amount,
.fm-card__price del .amount {
  color: var(--fm-muted-dim);
}

.fm-card__price ins {
  text-decoration: none;
  color: #fff;
}

.fm-card .button,
.fm-card .add_to_cart_button,
.fm-card .fm-btn {
  width: 100%;
  margin-top: auto;
  text-align: center;
  padding: 0.8rem 1rem !important;
  font-size: 0.9rem !important;
}

/* WooCommerce appends this link after AJAX add to cart. It is not a .button. */
.woocommerce .fm-card a.added_to_cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.8rem 1rem !important;
  background: transparent !important;
  color: #fff !important;
  border: 1px solid var(--fm-accent) !important;
  border-radius: var(--fm-radius-sm) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-align: center;
  text-decoration: none;
}

.woocommerce .fm-card a.added_to_cart:hover,
.woocommerce .fm-card a.added_to_cart:focus-visible {
  background: transparent !important;
  color: #fff !important;
  border-color: var(--fm-accent-hover) !important;
}

.fm-card.outofstock .fm-card__media,
.fm-card.outofstock .fm-card__title,
.fm-card.outofstock .fm-card__price {
  opacity: 0.58;
}

.fm-card.outofstock .fm-card__media img {
  filter: grayscale(0.4);
}

.fm-card.outofstock:hover {
  transform: none;
  border-color: var(--fm-border);
}

.fm-card.outofstock .fm-card__title,
.fm-card.outofstock .fm-card__price,
.fm-card.outofstock .fm-card__price .woocommerce-Price-amount {
  color: var(--fm-muted);
}

.fm-product-grid .product,
.fm-product-grid li.product,
.fm-related ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
  list-style: none;
}


/* ========== Totals (cart + checkout share these rows) ========== */
.fm-totals {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  font-variant-numeric: tabular-nums;
}

.fm-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--fm-text);
}

.fm-totals__value {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--fm-text);
}

.fm-totals__value .amount,
.fm-totals__value .woocommerce-Price-amount {
  color: var(--fm-text) !important;
  font-weight: inherit !important;
  font-size: inherit !important;
}

.fm-totals__dash {
  color: var(--fm-muted);
  font-weight: 400;
}

.fm-totals__note {
  margin: -0.5rem 0 0;
  text-align: right;
  font-size: 0.875rem;
  color: var(--fm-muted);
}

.fm-totals__row--total {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--fm-border);
  font-size: 1.125rem;
  font-weight: 700;
}

.fm-totals__row--total .fm-totals__value {
  font-weight: 700;
}

.fm-totals__row--total small,
.fm-totals__row--total .includes_tax {
  display: none;
}

.fm-totals__nudge {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fm-muted);
}

/* 1.13.05 (audit C5): $150–$198 band — brighter copy and a thin meter under it. */
.fm-totals__nudge.is-near {
  color: var(--fm-text);
}

.fm-totals__meter {
  height: 4px;
  margin-top: 0.45rem;
  background: var(--fm-border);
  border-radius: 999px;
  overflow: hidden;
}

.fm-totals__meter > span {
  display: block;
  height: 100%;
  width: var(--fm-ship-fill, 0%);
  background: var(--fm-success);
  border-radius: inherit;
}

/* Coupon row (CART-07): "Coupon FM-WELCOME10" on one line, muted "Remove" under it. */
.fm-totals__row--coupon {
  align-items: flex-start;
}

.fm-totals__coupon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.fm-totals__code {
  white-space: nowrap;
}

.fm-totals__minus {
  margin-right: 0.05em;
}

/* Muted text link, no brackets. The box is 44px tall (negative margins keep the row tight). */
.fm-totals .woocommerce-remove-coupon,
.fm-totals .fm-totals__remove {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  margin: -0.6rem 0 -0.85rem;
  padding: 0;
  color: var(--fm-muted);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
}

.fm-totals .fm-totals__remove:hover,
.fm-totals .fm-totals__remove:focus-visible {
  color: var(--fm-text);
  text-decoration: underline;
}

/* Shared rail arrow (homepage product rows + From the Range). 44px target. */
.fm-rail-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--fm-border);
  background: var(--fm-bg-elevated);
  color: var(--fm-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.fm-rail-btn:hover:not(:disabled) {
  border-color: var(--fm-accent);
  background: var(--fm-surface);
}

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

.fm-rail-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* SW-11: one breadcrumb everywhere: "›", full trail, last crumb truncates on narrow screens. */
.fm-breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--fm-muted);
}

.fm-breadcrumb > a,
.fm-breadcrumb > .fm-breadcrumb__sep {
  flex: 0 0 auto;
  white-space: nowrap;
}

.fm-breadcrumb > a {
  color: var(--fm-muted);
}

/* 1.13.05 (audit D3): ~44px tap height on touch screens without moving the layout. */
@media (pointer: coarse) {
  .fm-breadcrumb > a {
    padding-block: 0.8rem;
    margin-block: -0.8rem;
  }
}

.fm-breadcrumb__sep {
  opacity: 0.5;
}

.fm-breadcrumb__current {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Small outline FFL pill (cards, PDP). */
.fm-ffl-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  border: 1px solid var(--fm-muted);
  border-radius: var(--fm-radius-sm);
  color: var(--fm-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

/* Cards: price + optional FFL pill on one line; titles reserve two lines so prices and
   buttons line up across a row (CAT-02); 4:3 photo frame (SHOP-05). */
.fm-card__price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
}

.fm-card__price-row .fm-card__price {
  margin: 0;
}

/* SHOP-06: under 640px the FFL pill always gets its own row under the price, so it never
   jumps between inline and wrapped depending on the price length. */
@media (max-width: 639px) {
  .fm-card__price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }
}

.fm-card__title {
  min-height: 2.6em;
}

.fm-card__media {
  aspect-ratio: 4 / 3;
}

/* Shipping method chooser (only when a package has more than one rate). */
.fm-totals__methods {
  list-style: none;
  margin: 0.25rem 0 0.5rem;
  padding: 0;
}

.fm-totals__methods li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--fm-muted);
  font-size: 0.875rem;
}

.fm-totals__methods input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--fm-accent);
}

.fm-totals__methods label {
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}

.fm-totals__methods input:checked + label {
  color: var(--fm-text);
}

.fm-totals__methods .woocommerce-Price-amount {
  font-variant-numeric: tabular-nums;
}

.fm-totals__methods input[type="radio"]:focus-visible {
  outline: 2px solid var(--fm-accent);
  outline-offset: 2px;
  border-radius: 50%;
}

/* ==========================================================================
   Store notices, focus, reduced motion (was assets/css/notices.css, folded in
   rereview-2 to save a render-blocking request; after the base rules, as before).
   ========================================================================== */
/* Foxtrot Mike — Store notices, focus, reduced motion. */

/* Compact inline alerts (PDP FFL, product warnings, checkout FFL). */
.fm-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  margin: 1.1rem 0 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--fm-text);
  background: color-mix(in srgb, var(--fm-warning) 12%, var(--fm-surface));
  border: 1px solid color-mix(in srgb, var(--fm-warning) 42%, var(--fm-border));
  border-radius: var(--fm-radius-sm);
}

.fm-pdp .fm-callout {
  max-width: 28rem;
}

.fm-pdp .fm-callout + .fm-callout {
  margin-top: 0.55rem;
}

.fm-callout__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fm-warning) 20%, transparent);
  color: var(--fm-warning);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.fm-callout__icon::before {
  content: "!";
  font-family: var(--fm-font);
  font-style: normal;
  font-weight: 800;
}

.fm-callout__text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--fm-text);
}

/* ========== Store notices (cart remove, ATC, checkout, global) ========== */
.woocommerce-notices-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.woocommerce-notices-wrapper:empty {
  display: none;
}

/* Base toast / banner */
.fm-notice,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem 0.9rem;
  width: min(100% - 3rem, var(--fm-max));
  margin: 0 auto 1rem;
  padding: 0.9rem 1.05rem;
  list-style: none;
  background: var(--fm-bg-elevated);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--fm-bg) 55%, transparent);
  color: var(--fm-text);
  font-size: 0.925rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Kill WC default blue/green bars and pseudo icons */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after {
  display: none !important;
  content: none !important;
}

.fm-notice--success,
.woocommerce-message {
  align-items: center;
  border-color: color-mix(in srgb, var(--fm-success) 35%, var(--fm-border));
  border-left: 3px solid var(--fm-success);
}

.fm-notice--error,
.woocommerce-error {
  border-color: color-mix(in srgb, var(--fm-accent) 40%, var(--fm-border));
  border-left: 3px solid var(--fm-accent);
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
}

.fm-notice--info,
.woocommerce-info {
  border-color: color-mix(in srgb, var(--fm-muted) 25%, var(--fm-border));
  border-left: 3px solid #5a5a5a;
}

.fm-notice__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--fm-surface);
  color: var(--fm-muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.fm-notice__icon::before {
  content: "i";
  font-family: var(--fm-font);
  font-style: normal;
  font-weight: 700;
}

.fm-notice--success .fm-notice__icon,
.woocommerce-message .fm-notice__icon {
  margin-top: 0;
  color: var(--fm-success);
  background: color-mix(in srgb, var(--fm-success) 14%, transparent);
}

.fm-notice--success .fm-notice__icon::before,
.woocommerce-message .fm-notice__icon::before {
  content: "✓";
  font-size: 1rem;
}

.fm-notice--error .fm-notice__icon,
.woocommerce-error .fm-notice__icon {
  color: var(--fm-accent);
  background: color-mix(in srgb, var(--fm-accent) 14%, transparent);
}

.fm-notice--error .fm-notice__icon::before,
.woocommerce-error .fm-notice__icon::before {
  content: "!";
}

.fm-notice--info .fm-notice__icon,
.woocommerce-info .fm-notice__icon {
  color: var(--fm-muted);
  background: color-mix(in srgb, var(--fm-muted) 12%, transparent);
}

.fm-notice__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.fm-notice__body > * {
  margin: 0;
}

/* Error list items */
.woocommerce-error.fm-notice {
  margin-bottom: 1rem;
}

.woocommerce-error .fm-notice__item,
.woocommerce-error > li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.15rem 0;
  list-style: none;
  color: var(--fm-text);
}

/* Links: Undo, View cart, etc. */
.fm-notice a,
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--fm-accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.fm-notice a:hover,
.woocommerce-message a:hover,
.woocommerce-info a:hover,
.woocommerce-error a:hover {
  color: var(--fm-accent-hover);
  border-bottom-color: var(--fm-accent-hover);
}

/* “Undo?” stays a small chip the same height as the removal line. */
.woocommerce-message a.restore-item,
.fm-notice a.restore-item,
.woocommerce-message .restore-item,
.fm-notice--success a[href*="undo"],
.woocommerce-message a[href*="undo_item"],
.woocommerce-message a[href*="removed_item"] {
  display: inline-flex;
  align-items: center;
  height: 1.45em;
  margin-left: 0.15rem;
  padding: 0 0.55rem;
  border: 1px solid color-mix(in srgb, var(--fm-accent) 55%, var(--fm-border));
  border-radius: 999px;
  border-bottom: 1px solid color-mix(in srgb, var(--fm-accent) 55%, var(--fm-border));
  background: color-mix(in srgb, var(--fm-accent) 12%, transparent);
  font-size: inherit;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.woocommerce-message a.restore-item:hover,
.fm-notice a.restore-item:hover,
.woocommerce-message a[href*="undo_item"]:hover,
.woocommerce-message a[href*="removed_item"]:hover {
  background: var(--fm-accent);
  color: #fff;
  border-color: var(--fm-accent);
}

/* Inside cart layout: sit above title cleanly */
.fm-is-cart .woocommerce-notices-wrapper .fm-notice,
.fm-is-cart .woocommerce-notices-wrapper .woocommerce-message,
.fm-is-cart .woocommerce-notices-wrapper .woocommerce-info,
.fm-is-cart .woocommerce-notices-wrapper .woocommerce-error,
.fm-is-checkout .woocommerce-notices-wrapper .fm-notice,
.fm-is-checkout .woocommerce-notices-wrapper .woocommerce-message,
.fm-is-checkout .woocommerce-notices-wrapper .woocommerce-info,
.fm-is-checkout .woocommerce-notices-wrapper .woocommerce-error {
  width: 100%;
  margin-bottom: 0;
}

.fm-is-cart .woocommerce-notices-wrapper,
.fm-is-checkout .woocommerce-notices-wrapper {
  margin-bottom: 1.15rem;
}

/* Store-wide pages (shop, PDP, account) */
body.woocommerce-page .woocommerce-notices-wrapper,
.fm-page > .woocommerce-notices-wrapper,
.woocommerce .woocommerce-notices-wrapper {
  width: min(100% - 3rem, var(--fm-max));
  margin-inline: auto;
}

@media (max-width: 599px) {
  .fm-notice,
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error {
    padding: 0.8rem 0.9rem;
    font-size: 0.875rem;
  }

}

/* ========== A11y: focus-visible + reduced motion ========== */
a:focus-visible,
button:focus-visible,
.fm-btn:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--fm-accent);
  outline-offset: 2px;
}

/* Soften default focus ring when mouse-only (keyboard still gets :focus-visible). */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

.fm-404__inner {
  padding: 3rem 0 4rem;
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.fm-404__code {
  margin: 0 0 0.35rem;
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fm-accent);
}

.fm-404 .fm-content-header h1 {
  margin-bottom: 1rem;
}

.fm-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* CARD-EQ (1.12.39): every card in a row/rail is the same size. Title clamped to 2 lines
   with reserved height, price + FFL row has a reserved height (the pill never adds height),
   button pinned to the bottom. */
.fm-card__title {
  height: 2.6em;
  min-height: 2.6em;
  line-height: 1.3;
  overflow: hidden;
}

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

.fm-card__price-row {
  min-height: 1.75rem;
  flex-wrap: nowrap;
}

.fm-card__price {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.fm-card__price-row .fm-ffl-pill {
  flex: none;
}

@media (max-width: 639px) {
  /* Price on one line, FFL pill on the line below: both lines are always reserved. */
  .fm-card__price-row {
    height: calc(1.3rem + 0.375rem + 1.3rem); /* 1.13.05: pill line is 20.4px; 1.25rem clipped its border. */
    min-height: 0;
    justify-content: flex-start;
    overflow: hidden;
  }

  /* 1.13.05: the price line is exactly the 1.3rem the row reserves, and never shrinks. */
  .fm-card__price-row .fm-card__price {
    flex: none;
    line-height: 1.3rem;
  }
}

.fm-card__body > .fm-btn,
.fm-card__body > .button {
  margin-top: auto;
}

/* CARD-ATC (1.12.39): card Add to Cart feedback. WooCommerce's injected text link is
   hidden; the button and its View cart / Checkout pair keep the same box. */
.fm-card .added_to_cart.wc-forward {
  display: none !important;
}

.fm-card .fm-btn.is-loading,
.fm-card .fm-btn.is-added {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  pointer-events: none;
}

.fm-card .fm-btn.is-loading {
  opacity: 0.85;
}

.fm-card .fm-btn.loading::after,
.fm-card .fm-btn.added::after {
  display: none !important;
}

.fm-card-atc__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fm-card-spin 0.7s linear infinite;
}

@keyframes fm-card-spin {
  to {
    transform: rotate(360deg);
  }
}

.fm-card-atc__icon {
  width: 1rem;
  height: 1rem;
}

@keyframes fm-badge-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.fm-nav__badge.is-bump {
  animation: fm-badge-bump 0.45s ease;
}

.fm-card .fm-btn[hidden],
.fm-card .button[hidden] {
  display: none !important;
}

/* 1.12.93: ghost card buttons (Notify me on out-of-stock and Coming Soon items) stay ghost;
   the global .button rule above would paint them red. */
.fm-card .button.fm-btn--ghost {
  background: transparent !important;
  color: var(--fm-text) !important;
  border: 1px solid var(--fm-border) !important;
}

.fm-card .button.fm-btn--ghost:hover,
.fm-card .button.fm-btn--ghost:focus-visible {
  background: var(--fm-surface-hover) !important;
  border-color: var(--fm-border-strong) !important;
}

/* ========== 1.12.94: AJAX add to cart (assets/js/atc.js) ========== */

/* Button while adding: same size and colour, spinner + "Adding…", no second click. */
.fm-atc-busy {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: progress !important;
  pointer-events: none;
}

.fm-atc-busy:disabled,
.fm-atc-busy[aria-disabled="true"] {
  opacity: 1 !important;
}

.fm-atc-spinner {
  flex: none;
  width: 1rem;
  height: 1rem;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0.85;
  animation: fm-card-spin 0.7s linear infinite;
}

.fm-page--pdp .fm-fbt__add .fm-atc-spinner {
  width: 0.875rem;
  height: 0.875rem;
}

/* Error: WooCommerce's message next to the button, no popup. */
.fm-atc-error {
  margin: 0.625rem 0 0;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(227, 28, 35, 0.45);
  border-left: 3px solid var(--fm-accent);
  border-radius: var(--fm-radius-sm);
  background: rgba(227, 28, 35, 0.08);
  color: var(--fm-text);
  font-family: var(--fm-font);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.fm-card .fm-atc-error {
  margin-top: 0.5rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
}

.fm-fbt__info .fm-atc-error {
  margin-top: 0.375rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
}

/* Added to cart popup: under the header cart icon (desktop); full-width panel under the header on phones. */
.fm-atc-pop {
  position: fixed;
  z-index: 300;
  right: 1.5rem;
  width: 22.5rem;
  max-width: calc(100vw - 1.5rem);
  box-sizing: border-box;
  padding: 1rem;
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  color: var(--fm-text);
  font-family: var(--fm-font);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.fm-atc-pop.is-in {
  opacity: 1;
  transform: none;
}

.fm-atc-pop:focus {
  outline: none;
}

/* 1.12.95: focus lands on the popup box itself (then its controls); no red ring round the whole box. */
.fm-atc-pop:focus-visible {
  outline: none;
}

/* Caret under the cart icon. */
.fm-atc-pop::before {
  content: "";
  position: absolute;
  /* 1.12.95: centred on --fm-atc-caret-x (cart icon centre, set by atc.js). 12px square. */
  top: -7px;
  left: calc(var(--fm-atc-caret-x, calc(100% - 1.75rem)) - 6px);
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  background: var(--fm-surface);
  border-left: 1px solid var(--fm-border);
  border-top: 1px solid var(--fm-border);
  transform: rotate(45deg);
}

.fm-atc-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: -0.25rem -0.25rem 0.75rem 0;
}

.fm-atc-pop__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fm-text);
}

.fm-atc-pop__title::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--fm-success);
}

.fm-atc-pop__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: var(--fm-radius-sm);
  background: transparent;
  color: var(--fm-muted);
  cursor: pointer;
}

.fm-atc-pop__close:hover,
.fm-atc-pop__close:focus-visible {
  background: var(--fm-surface-hover);
  color: var(--fm-text);
}

.fm-atc-pop__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
}

.fm-atc-pop__item > .fm-atc-pop__info:first-child {
  grid-column: 1 / 3;
}

.fm-atc-pop__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--fm-radius-sm);
  border: 1px solid var(--fm-border);
  background: var(--fm-bg);
}

.fm-atc-pop__info {
  min-width: 0;
}

.fm-atc-pop__info p,
.fm-atc-pop__price {
  margin: 0;
}

.fm-atc-pop__name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fm-atc-pop__opts {
  margin-top: 0.125rem !important;
  color: var(--fm-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.fm-atc-pop__qty {
  margin-top: 0.125rem !important;
  color: var(--fm-muted);
  font-size: 0.8125rem;
}

.fm-atc-pop__price {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

.fm-atc-pop__sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--fm-border);
  color: var(--fm-muted);
  font-size: 0.875rem;
}

.fm-atc-pop__sub-val {
  color: var(--fm-text);
  font-weight: 700;
  font-size: 1rem;
}

.fm-atc-pop__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.fm-atc-pop__btn {
  min-height: 44px;
  padding: 0 0.75rem !important;
  font-size: 0.9375rem;
  white-space: nowrap;
}

@media (max-width: 699px) {
  .fm-atc-pop {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    padding: 0.875rem;
  }

  .fm-atc-pop__close {
    width: 44px;
    height: 44px;
    margin: -0.375rem -0.375rem -0.375rem 0;
  }

  .fm-atc-pop__head {
    margin: -0.25rem 0 0.5rem;
  }

  .fm-atc-pop__item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .fm-atc-pop__thumb {
    width: 48px;
    height: 48px;
  }

  .fm-atc-pop__sub,
  .fm-atc-pop__actions {
    margin-top: 0.75rem;
  }

  .fm-atc-pop__btn {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-atc-pop {
    transition: none;
    transform: none;
  }

  /* Spinners keep turning (they are the only progress cue), just slower. */
  .fm-atc-spinner,
  .fm-card-atc__spinner {
    animation-duration: 1.6s;
  }

  .fm-nav__badge.is-bump {
    animation: none;
  }
}
