.woocommerce .mfn-variations-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 26px 0 22px;
  clear: both;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  padding: 0;
  border: 0;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr__heading {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr__heading label {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  min-width: 0;
  color: #11161f;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr__heading label::after {
  content: ":";
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr__selected {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 500;
  text-align: left;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options li {
  margin: 0;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid #d2d8e0;
  border-radius: 2px;
  background: #ffffff;
  color: #11161f;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.16s ease, color 0.2s ease;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options li a:hover {
  border-color: #11161f;
  box-shadow: 0 6px 16px rgba(17, 22, 31, 0.08);
  transform: translateY(-1px);
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options li.active a {
  border-color: #11161f;
  box-shadow: inset 0 0 0 1px #11161f;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options li.disabled a {
  color: #b7bec8;
  border-color: #dce1e8;
  box-shadow: none;
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options li.disabled a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 48.5%, rgba(193, 200, 210, 0.9) 49%, rgba(193, 200, 210, 0.9) 51%, transparent 51.5%);
  pointer-events: none;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options--images li a {
  width: 78px;
  min-width: 78px;
  height: 78px;
  min-height: 78px;
  padding: 4px;
  overflow: hidden;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr__image,
.woocommerce .mfn-variations-wrapper .ng-mfn-vr__image img {
  display: block;
  width: 100%;
  height: 100%;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr__image img {
  object-fit: contain;
  background: #f3f4f6;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options--sizes {
  gap: 0;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options--sizes li a {
  min-width: 92px;
  height: 62px;
  border-radius: 0;
  margin-left: -1px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options--sizes li:first-child a {
  margin-left: 0;
}

.woocommerce .mfn-variations-wrapper .mfn-reset-variations {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: -4px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.woocommerce .product.style-default .entry-summary .mfn-variations-wrapper .ng-mfn-vr {
  align-items: flex-start;
  justify-content: flex-start;
}

.woocommerce .ng-product-card--v2 .ng-product-card__image-preview {
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.woocommerce .ng-product-card--v2 .ng-product-card__swatches {
  position: relative;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 8px;
  margin: 12px 0 4px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: none;
  order: 4 !important;
}

.woocommerce ul.products li.product .ng-product-card--v2 .ng-product-card__price-row {
  order: 1 !important;
}

.woocommerce ul.products li.product .ng-product-card--v2 .ng-product-card__price-old {
  order: 2 !important;
}

.woocommerce ul.products li.product .ng-product-card--v2 .mfn-woo-product-title {
  order: 3 !important;
}

.woocommerce ul.products li.product .ng-product-card--v2 .ng-color-count {
  order: 5 !important;
}

.woocommerce ul.products li.product .ng-product-card--v2 .ng-product-card__reviews {
  display: none !important;
}

.woocommerce .ng-product-card--v2 .ng-product-card__swatch {
  position: relative;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 1px solid #d2d8e0;
  border-radius: 2px;
  background: #f3f4f6;
  box-sizing: border-box;
  text-decoration: none !important;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.woocommerce .ng-product-card--v2 .ng-product-card__swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.woocommerce .ng-product-card--v2 .ng-product-card__swatch:hover,
.woocommerce .ng-product-card--v2 .ng-product-card__swatch:focus-visible,
.woocommerce .ng-product-card--v2 .ng-product-card__swatch.is-active {
  border-color: #11161f;
  box-shadow: 0 6px 14px rgba(17, 22, 31, 0.08);
  transform: translateY(-1px);
}

.woocommerce ul.products li.product .ng-product-card--v2.is-previewing-swatch .ng-product-card__image-main,
.woocommerce ul.products li.product .ng-product-card--v2.is-previewing-swatch:hover .ng-product-card__image-main,
.woocommerce ul.products li.product .ng-product-card--v2.is-previewing-swatch:focus-within .ng-product-card__image-main {
  opacity: 0 !important;
  transform: none !important;
}

.woocommerce ul.products li.product .ng-product-card--v2.is-previewing-swatch .ng-product-card__image-preview,
.woocommerce ul.products li.product .ng-product-card--v2.is-previewing-swatch:hover .ng-product-card__image-preview,
.woocommerce ul.products li.product .ng-product-card--v2.is-previewing-swatch:focus-within .ng-product-card__image-preview {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 767px) {
  .woocommerce .mfn-variations-wrapper {
    gap: 18px;
    margin: 22px 0 18px;
  }

  .woocommerce .mfn-variations-wrapper .ng-mfn-vr__heading {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .woocommerce .mfn-variations-wrapper .ng-mfn-vr__selected {
    text-align: left;
    font-size: 15px;
  }

  .woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options--images li a {
    width: 64px;
    min-width: 64px;
    height: 64px;
    min-height: 64px;
  }

  .woocommerce .mfn-variations-wrapper .ng-mfn-vr .ng-mfn-vr-options--sizes li a {
    min-width: 72px;
    height: 54px;
    font-size: 18px;
  }
}
