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