.woocommerce .woocommerce-breadcrumb,
.fm-breadcrumb {
  margin-bottom: 1rem;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(233, 226, 214, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--fm-shadow-soft);
}

.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-product-card {
  margin: 0 !important;
  width: auto !important;
}

.fm-product-card__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(233, 226, 214, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--fm-shadow-card);
  backdrop-filter: blur(10px);
}

.fm-product-card__media {
  position: relative;
  display: block;
  padding: 1rem;
  background:
    radial-gradient(circle at top left, rgba(139, 111, 71, 0.08), transparent 28%),
    linear-gradient(180deg, #fcfaf6, #f7f3eb);
}

.fm-product-card__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transform: scale(0.98);
  transition: transform var(--fm-transition);
}

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

.fm-product-card__flag,
.fm-sale-badge,
.woocommerce span.onsale {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 30px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fm-sale-badge,
.woocommerce span.onsale {
  background: rgba(180, 35, 24, 0.92);
}

.fm-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.25rem;
}

.fm-product-card__topline {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.fm-product-card__category {
  min-height: 1.2rem;
  margin: 0;
  color: var(--fm-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fm-product-card__stock {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--fm-success);
  font-size: 0.72rem;
  font-weight: 700;
}

.fm-product-card__title {
  font-size: 1.08rem;
  line-height: 1.3;
  margin-bottom: 0.55rem;
}

.fm-product-card__hint {
  color: var(--fm-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.fm-product-card__price-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  color: var(--fm-text);
}

.fm-product-card__price-wrap .price {
  color: var(--fm-text) !important;
  font-size: 1.08rem;
  font-weight: 700;
}

.fm-product-card__price-wrap del {
  color: var(--fm-muted);
  opacity: 0.7;
}

.fm-product-card__footer {
  margin-top: 1rem;
}

.fm-product-card__button {
  width: 100%;
}

.fm-single-product {
  display: block;
}

.fm-product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid rgba(233, 226, 214, 0.92);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.82));
  box-shadow: var(--fm-shadow-soft);
}

.single-product .product_title {
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  margin-bottom: 0.6rem;
}

.fm-product-category {
  margin-bottom: 0.85rem;
}

.single-product div.product p.price,
.single-product div.product span.price {
  color: var(--fm-text);
  font-size: 1.6rem;
  font-weight: 700;
}

.single-product .woocommerce-product-details__short-description,
.single-product div.product .woocommerce-product-details__short-description p,
.single-product .variations label,
.single-product .reset_variations {
  color: var(--fm-muted);
}

.single-product div.product form.cart {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.single-product div.product form.cart .quantity {
  margin: 0 !important;
}

.single-product div.product form.cart .quantity input {
  min-height: 50px;
  width: 86px;
}

.single-product .woocommerce-product-gallery,
.single-product .summary {
  width: auto !important;
  float: none !important;
}

.single-product .woocommerce-product-gallery__wrapper,
.single-product .flex-viewport,
.single-product .woocommerce-product-gallery__image img {
  border-radius: 28px;
}

.single-product .product_meta {
  padding-top: 1.15rem;
  border-top: 1px solid var(--fm-line);
  color: var(--fm-muted);
}

.fm-product-microcopy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.15rem 0 0.25rem;
}

.fm-product-assurances {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.3rem;
}

.fm-product-assurance {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(233, 226, 214, 0.92);
  background: rgba(248, 244, 238, 0.78);
}

.fm-product-assurance span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--fm-gold);
}

.fm-product-assurance span svg {
  width: 18px;
  height: 18px;
}

.fm-product-assurance strong {
  display: block;
  margin-bottom: 0.25rem;
}

.fm-product-assurance p {
  color: var(--fm-muted);
  margin: 0;
}

.single-product .woocommerce-tabs {
  margin-top: 2rem;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid rgba(233, 226, 214, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--fm-shadow-soft);
}

.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0.75rem;
  padding: 0 !important;
  margin: 0 0 1.25rem !important;
  overflow-x: auto;
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  border: 1px solid rgba(233, 226, 214, 0.92) !important;
  border-radius: 999px !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  padding: 0.75rem 1rem !important;
}

.single-product section.related.products,
.up-sells.upsells.products,
.cross-sells {
  margin-top: 2rem;
}

.single-product section.related.products > h2,
.up-sells.upsells.products > h2,
.cross-sells > h2,
.woocommerce-cart .cart-collaterals > h2,
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-order > h2,
.woocommerce-order-details > h2,
.woocommerce-customer-details > h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.woocommerce-cart-form,
.cart-collaterals,
.woocommerce-checkout .col2-set,
.woocommerce-checkout-review-order,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-order,
.woocommerce-order-details,
.woocommerce-customer-details,
.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-Addresses .woocommerce-Address {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(233, 226, 214, 0.92);
  border-radius: 30px;
  box-shadow: var(--fm-shadow-soft);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #payment #place_order,
.woocommerce-account .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
  border-radius: 999px !important;
}

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li + li {
  margin-top: 0.65rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(248, 244, 238, 0.72);
  font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: var(--fm-accent);
  color: #fff;
}

.woocommerce form .form-row {
  padding: 0;
  margin: 0 0 1rem;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.demo_store {
  border-radius: 18px;
  border: 1px solid rgba(233, 226, 214, 0.92);
  box-shadow: none;
}

.woocommerce-info,
.woocommerce-message,
.demo_store {
  background: rgba(15, 118, 110, 0.06);
  color: var(--fm-text);
}

.woocommerce-error {
  background: rgba(180, 35, 24, 0.08);
}

.woocommerce .quantity .qty {
  width: 86px;
}

.woocommerce table.shop_table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(233, 226, 214, 0.92);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 1rem;
  border-top: 1px solid rgba(233, 226, 214, 0.92);
}

.woocommerce table.shop_table tr:first-child th,
.woocommerce table.shop_table tr:first-child td {
  border-top: 0;
}

.woocommerce-cart .cart-collaterals,
.woocommerce-checkout .woocommerce-checkout-review-order {
  margin-top: 1rem;
}

.woocommerce-checkout #payment {
  background: rgba(248, 244, 238, 0.72) !important;
  border-radius: 22px !important;
}

@media (max-width: 1180px) {
  .woocommerce .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .fm-product-shell,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .shop-toolbar,
  .fm-product-card__topline {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .single-product .woocommerce-tabs,
  .fm-product-shell,
  .woocommerce-cart-form,
  .cart-collaterals,
  .woocommerce-checkout .col2-set,
  .woocommerce-checkout-review-order,
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    border-radius: 24px;
  }
}


.single-product .summary.entry-summary {
  display: flex;
  flex-direction: column;
}

.single-product .summary .woocommerce-variation-add-to-cart,
.single-product .summary form.cart {
  gap: 0.9rem;
}

.single-product table.variations {
  width: 100%;
  margin: 1.2rem 0 0.85rem !important;
  border: 0;
}

.single-product table.variations td,
.single-product table.variations th {
  padding: 0;
  border: 0;
}

.single-product table.variations tbody,
.single-product table.variations tr {
  display: block;
}

.single-product table.variations tr + tr {
  margin-top: 0.95rem;
}

.fm-variations-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.fm-variations-shell {
  display: grid;
  gap: 1rem;
  margin: 1.1rem 0 0.4rem;
}

.fm-variation-group {
  display: grid;
  grid-template-columns: minmax(84px, 110px) minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
}

.fm-variation-group__label {
  color: var(--fm-muted);
  font-weight: 700;
  font-size: 0.98rem;
}

.fm-variation-group__options {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.fm-variation-option {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color var(--fm-transition), transform var(--fm-transition), box-shadow var(--fm-transition), background var(--fm-transition);
}

.fm-variation-option:hover {
  border-color: rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
}

.fm-variation-option.is-active {
  border-color: var(--fm-accent);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.14);
  background: rgba(255, 255, 255, 1);
}

.fm-variation-option.is-disabled {
  opacity: 0.38;
  pointer-events: none;
  box-shadow: none;
}


.fm-variation-option--pill {
  min-height: 40px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1;
  color: var(--fm-text);
}

.fm-variation-option__text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: var(--fm-text);
  font-size: 0.96rem;
}

.fm-variation-option--image {
  padding: 0;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}

.fm-variation-option__media,
.fm-variation-option__media img,
.fm-variation-option__fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.fm-variation-option__media img {
  object-fit: cover;
}

.fm-variation-option__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  color: var(--fm-text);
  font-weight: 700;
}

.single-product .reset_variations {
  display: inline-flex !important;
  align-items: center;
  margin-top: 0.25rem;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .single-product .product_title {
    text-align: center;
  }

  .fm-variation-group {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    justify-items: center;
    text-align: center;
  }

  .fm-variation-group__label {
    text-align: center;
  }

  .fm-variation-group__options {
    justify-content: center;
  }

  .fm-variation-option--image {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }
}


/* v1.3.0 archive and product refinements */
.fm-product-card__topline--center,
.fm-product-card__price-wrap--center,
.fm-product-card__title {
  text-align: center;
  justify-content: center;
}

.fm-product-card__topline--center {
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
}

.fm-product-card__title a {
  display: inline-block;
}

.fm-product-card__price-wrap--center {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
}

.fm-product-card__price-wrap--center .price {
  width: 100%;
  text-align: center;
}

.fm-archive-swatches {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.15rem 0 0.95rem;
}

.fm-archive-swatches__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255,255,255,0.96);
}

.fm-archive-swatches__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-archive-swatches__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fm-text);
}

.fm-product-card__button {
  text-transform: none;
}


/* v1.3.1 refinements */
.fm-product-card__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 300px;
}

.fm-archive-swatches--overlay {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.fm-archive-swatches__item {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.fm-product-card__footer {
  display: none;
}

.fm-product-card__body {
  align-items: center;
}

.fm-product-card__category,
.fm-product-card__title,
.fm-product-card__price-wrap--center .price,
.fm-product-card__price-wrap {
  width: 100%;
}

.fm-product-card__price-wrap {
  text-align: center;
}

.fm-product-shell {
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.single-product .woocommerce-product-gallery {
  margin: 0;
}

.single-product .woocommerce-product-gallery__trigger,
.single-product .flex-control-thumbs {
  display: none !important;
}

.single-product .woocommerce-product-gallery__wrapper,
.single-product .flex-viewport {
  border-radius: 24px;
  overflow: hidden;
}

.single-product .woocommerce-product-gallery__image a {
  cursor: default;
}

.single-product .woocommerce-product-gallery__image img {
  object-fit: contain;
  background: transparent;
}

.fm-variation-group--image .fm-variation-group__options {
  gap: 0.5rem;
}

.fm-variation-option--image {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.fm-variation-option--image:hover,
.fm-variation-option--image.is-active {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.fm-variation-option--image .fm-variation-option__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
}

.fm-variation-option--image .fm-variation-option__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.08));
}

.fm-variation-option--image.is-active .fm-variation-option__media img {
  transform: translateY(-1px);
}

.fm-variation-option--image.is-empty .fm-variation-option__media {
  border-bottom: 2px solid rgba(15, 23, 42, 0.12);
}

.fm-variation-option--pill {
  min-height: 36px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--fm-text);
  background: #fff;
}

.fm-variation-option--pill .fm-variation-option__text {
  color: var(--fm-text) !important;
}

.fm-product-microcopy span,
.fm-product-assurance p {
  color: var(--fm-text);
}

.fm-product-assurance {
  background: rgba(248, 244, 238, 0.62);
}

@media (max-width: 980px) {
  .fm-product-shell {
    grid-template-columns: 1fr;
  }
}

/* v1.4.51 archive card lock + premium consistency */
.fm-product-card__inner {
  position: relative;
}

.fm-product-card__swatches-wrap {
  min-height: 3.2rem;
}

.fm-product-card__body {
  display: grid;
  grid-template-rows: auto minmax(3.1em, auto) auto;
  gap: 0.55rem;
  align-content: start;
}

.fm-product-card__topline--center {
  min-height: 3.2rem;
  justify-content: flex-start;
}

.fm-product-card__meta {
  min-height: 1rem;
  margin: 0;
}

.fm-product-card__stock {
  min-width: 6.8rem;
  justify-content: center;
}

.fm-product-card__stock--muted {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(18, 24, 38, 0.52);
}

.fm-product-card__title {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.fm-product-card__price-wrap {
  min-height: 3.5rem;
}

.fm-product-card__price-wrap .rc-preco-mini {
  width: 100%;
}
