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

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

html {
  --fm-header-h: calc(1.7rem + 52px + 1px);
  scroll-behavior: smooth;
  scroll-padding-top: var(--fm-header-h);
  color-scheme: dark;
}

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-header {
  position: sticky;
  top: 0;
  z-index: 100;
  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. */
@media (min-width: 768px) {
  .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;
  }
}

/* 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 {
  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;
  margin: 0;
  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;
  }
}

.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 #3a3a3a;
  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;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  margin-left: auto;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-sm);
  background: var(--fm-surface);
  color: var(--fm-text);
  cursor: pointer;
}

.fm-nav-toggle__bar {
  display: block;
  width: 100%;
  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: #3a3a3a;
  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 {
  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: #3a3a3a;
  transform: translateY(-2px);
}

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

.fm-card__media a {
  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;
}

.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: #8d8d8d;
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 0.35rem;
}

.fm-card__price del .woocommerce-Price-amount,
.fm-card__price del .amount {
  color: #8d8d8d;
}

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

.fm-card.outofstock {
  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;
}

