/* Fluxmart shop/product-card styles. Loaded on catalog and product contexts. */
.fm-shop-description {
  border-radius: var(--fm-radius-lg);
  border-width: 1px;
  border-color: var(--fm-color-line);
  background-color: var(--fm-color-surface);
  padding: var(--fm-card-padding);
  font-size: var(--fm-type-body-sm);
  line-height: var(--fm-leading-body);
  color: var(--fm-color-muted);
}
@media (min-width: 768px) {

  .fm-shop-description {
    padding: var(--fm-card-padding) calc(var(--fm-card-padding) * 1.4);
  }
}
.fm-shop-description .term-description,
  .fm-shop-description .page-description {
  max-width: 48rem;
}
.fm-shop-description p:last-child {
  margin-bottom: 0px;
}
.fm-shop-toolbar {
  display: flex;
  flex-direction: column;
  border-radius: var(--fm-radius-lg);
  border-width: 1px;
  border-color: var(--fm-color-line);
  background-color: var(--fm-color-surface);
  box-shadow: var(--fm-shadow-md);
}
@media (min-width: 768px) {

  .fm-shop-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.fm-shop-toolbar {
    gap: calc(var(--fm-form-gap) * 0.9);
    padding-inline: calc(var(--fm-card-padding) + 0.125rem);
    padding-block: calc(var(--fm-card-padding) * 0.85);
  }
.fm-shop-toolbar__meta {
  position: relative;
  display: flex;
  min-width: 0px;
  flex-direction: column;
    gap: 0.25rem;
    padding-inline-start: calc(var(--fm-card-padding) + 0.25rem);
}
.fm-shop-toolbar__meta::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 2.5rem;
    transform: translateY(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--fm-color-accent), color-mix(in srgb, var(--fm-color-accent) 35%, transparent));
  }
.fm-shop-toolbar__eyebrow {
  display: inline-flex;
  font-size: var(--fm-type-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
    color: var(--fm-color-accent-strong);
}
.fm-shop-toolbar__summary {
  margin: 0px;
  font-size: var(--fm-type-body-sm);
  line-height: var(--fm-leading-body);
    color: color-mix(in srgb, var(--fm-color-text) 88%, var(--fm-color-muted) 12%);
}
.fm-shop-toolbar__count,
  .fm-shop-toolbar__count .woocommerce-result-count {
  margin: 0px;
  font-size: var(--fm-type-caption);
  font-weight: 500;
  line-height: var(--fm-leading-caption);
  color: var(--fm-color-muted);
}
.fm-shop-toolbar__sort,
  .fm-shop-toolbar__sort form {
  margin: 0px;
}
.fm-shop-toolbar__sort .orderby {
  border-radius: 9999px;
  border-width: 1px;
  background-color: var(--fm-color-surface);
  font-size: var(--fm-type-body-sm);
  line-height: var(--fm-leading-label);
  color: var(--fm-color-text);
  outline: 2px solid transparent;
  outline-offset: 2px;
    border-color: var(--fm-color-line);
    min-height: calc(var(--fm-control-height) + 0.125rem);
    padding-inline: calc(var(--fm-input-padding-x) + 0.125rem);
    padding-right: calc(var(--fm-input-padding-x) * 2.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.fm-shop-toolbar__sort .orderby:focus {
    border-color: var(--fm-color-accent);
  }
@media (max-width: 767px) {
    .fm-shop-toolbar__meta::before {
      top: 0.25rem;
      transform: none;
      height: calc(100% - 0.5rem);
    }
  }
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: var(--fm-woo-grid-gap) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
.woocommerce ul.products::before,
  .woocommerce ul.products::after,
  .woocommerce-page ul.products::before,
  .woocommerce-page ul.products::after {
    content: none !important;
    display: none !important;
  }
.woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
  }
.woocommerce ul.products li.product .button {
    margin-top: 0 !important;
  }
.fm-product-card {
  margin: 0px;
  display: flex;
  height: 100%;
  list-style-type: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--fm-radius-lg);
  border-width: 1px;
  border-color: var(--fm-color-line);
  background-color: var(--fm-color-surface);
  transition: all 0.2s ease;
    width: 100% !important;
    box-shadow:
      0 1px 0 rgba(30, 30, 30, 0.03),
      0 18px 44px -30px rgba(30, 30, 30, 0.22);
}
.fm-product-card:hover {
    border-color: color-mix(in srgb, var(--fm-color-accent) 40%, var(--fm-color-line));
    box-shadow:
      0 1px 0 rgba(30, 30, 30, 0.04),
      0 26px 56px -32px rgba(30, 30, 30, 0.26);
    transform: translateY(-0.24rem);
  }
.fm-product-card__media {
  position: relative;
  overflow: hidden;
    aspect-ratio: 10 / 5.55;
    background:
      radial-gradient(circle at top, color-mix(in srgb, var(--fm-color-surface) 88%, var(--fm-color-accent) 12%), transparent 54%),
      linear-gradient(180deg, color-mix(in srgb, var(--fm-color-surface) 92%, var(--fm-color-bg) 8%), color-mix(in srgb, var(--fm-color-surface) 76%, var(--fm-color-accent-soft) 24%));
}
.fm-product-card__image-link {
  position: relative;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: calc(var(--fm-woo-card-padding) * 0.5);
}
.fm-product-card__image-link::before {
    content: none;
  }
.fm-product-card__image-link img {
  position: relative;
  z-index: 1;
  max-height: 100%;
  width: 100%;
  max-width: 59%;
  transition: transform 0.3s ease;
    aspect-ratio: 4 / 3;
    -o-object-fit: contain;
       object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(30, 30, 30, 0.08));
}
.fm-product-card:hover .fm-product-card__image-link img {
    transform: scale(1.03);
  }
.fm-product-card__image-link img.woocommerce-placeholder {
    opacity: 0.7;
  }
.woocommerce ul.products li.product.fm-product-card .onsale,
  .woocommerce-page ul.products li.product.fm-product-card .onsale,
  .woocommerce span.onsale.fm-product-card__badge {
  position: absolute;
  z-index: 2;
  margin: 0px;
  display: inline-flex;
  align-items: center;
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  font-size: var(--fm-type-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
    left: 1rem !important;
    right: auto !important;
    top: 1rem !important;
    min-width: auto !important;
    min-height: 2rem !important;
    padding: 0 0.875rem !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, white 72%, transparent) !important;
    background: linear-gradient(135deg, var(--fm-color-accent), var(--fm-color-accent-strong)) !important;
    color: white !important;
    box-shadow: 0 10px 18px rgba(168, 137, 92, 0.2) !important;
    text-align: center !important;
    line-height: 1;
}
.fm-product-card__body {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  padding: var(--fm-woo-card-padding);
    border-top: 1px solid color-mix(in srgb, var(--fm-color-line) 88%, white 12%);
}
.fm-product-card__eyebrow {
  margin-bottom: 0.375rem;
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  border-radius: 9999px;
  padding: 0.25em 0.6em;
  font-size: var(--fm-type-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
    background: var(--fm-color-accent-soft);
    color: var(--fm-color-accent-strong);
}
.fm-product-card__title {
  margin: 0px;
  font-family: var(--fm-font-heading), ui-serif, Georgia, serif;
  font-size: var(--fm-type-body-lg);
  font-weight: 600;
  line-height: var(--fm-leading-h5);
  color: var(--fm-color-text);
    padding: 0 !important;
}
.fm-product-card__title a {
  color: inherit;
  text-decoration-line: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.fm-product-card__title a:hover {
    color: var(--fm-color-accent-strong);
  }
.fm-product-card__rating {
  margin-top: 0.5rem;
  min-height: 1.125rem;
}
/* Shared star-rating color — applies across all product contexts */
.fm-product-card__rating .star-rating,
  .fm-product-summary .star-rating,
  .fm-product-tabs-section .star-rating {
    color: var(--fm-color-accent);
  }
.fm-product-card__rating .star-rating::before,
  .fm-product-summary .star-rating::before,
  .fm-product-tabs-section .star-rating::before {
    color: var(--fm-color-line);
  }
.fm-product-card__rating .star-rating {
  margin: 0px;
}
.fm-product-card__rating .count {
  font-size: var(--fm-type-small);
  line-height: var(--fm-leading-small);
  color: var(--fm-color-muted);
}
.fm-product-card__price,
  .fm-product-card__price .price {
  margin-bottom: 0px;
  margin-top: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  -moz-column-gap: 0.5rem;
       column-gap: 0.5rem;
  row-gap: 0.25rem;
  font-size: var(--fm-type-body-lg);
  font-weight: 600;
    color: var(--fm-color-accent-strong);
}
.fm-product-card__price .price > .woocommerce-Price-amount,
  .fm-product-card__price .price > .amount {
    font-weight: 700;
  }
.fm-product-card__price {
    position: relative;
  }
.fm-product-card__price::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 1px;
    background: color-mix(in srgb, var(--fm-color-accent) 28%, var(--fm-color-line));
  }
.fm-product-card__price del {
  font-size: var(--fm-type-body-sm);
  font-weight: 500;
    color: var(--fm-color-muted);
}
.fm-product-card__price ins {
  text-decoration-line: none;
}
.fm-product-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
}
.fm-product-card__actions--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: 0.625rem;
    align-items: stretch;
  }
/* Buy Now card button — dark solid, no cart icon */
.fm-product-card__button--buy-now::before {
    content: none !important;
  }
.fm-product-card__button--buy-now {
    border-color: var(--fm-color-primary-strong) !important;
    background: var(--fm-color-primary-strong) !important;
    color: var(--fm-white) !important;
    min-height: var(--fm-control-height) !important;
    max-height: var(--fm-control-height);
    height: var(--fm-control-height);
  }
.fm-product-card__button--buy-now:hover,
  .fm-product-card__button--buy-now:focus-visible {
    border-color: var(--fm-color-primary) !important;
    background: var(--fm-color-primary) !important;
    transform: translateY(-1px);
  }
.fm-product-card__actions .button,
  .fm-product-card__actions .added_to_cart {
  display: inline-flex !important;
  width: 100%;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45em;
  line-height: 1.2 !important;
  text-decoration: none;
  margin: 0;
  min-height: var(--fm-control-height) !important;
  max-height: var(--fm-control-height);
  height: var(--fm-control-height);
}
