.meshere-product-gallery,
.meshere-product-gallery * {
  box-sizing: border-box;
}

.meshere-product-gallery {
  float: left;
  width: 48%;
  margin: 0 4% 2rem 0;
  color: #242424;
}

.single-product span.onsale,
.single-product .onsale,
.single-product .ast-on-card-button.ast-onsale-card,
.single-product .ast-onsale-card,
.meshere-product-gallery .onsale {
  display: none !important;
}

.meshere-gallery-main {
  position: relative;
  overflow: hidden;
  border: 1px solid #e6e2dc;
  background: #f8f7f4;
}

.meshere-gallery-viewport {
  overflow: hidden;
  width: 100%;
}

.meshere-gallery-track {
  display: flex;
  width: 100%;
  transition: transform 260ms ease;
  will-change: transform;
}

.meshere-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
}

.meshere-gallery-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 520px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.meshere-gallery-zoom img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.meshere-gallery-arrow,
.meshere-lightbox-arrow,
.meshere-lightbox-close {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.9);
  color: #242424;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transform: translateY(0) scale(1);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 120ms ease, opacity 180ms ease;
}

.meshere-gallery-arrow::before,
.meshere-lightbox-arrow::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  transform-origin: center;
}

.meshere-gallery-prev::before,
.meshere-lightbox-prev::before {
  transform: rotate(-135deg);
  margin-left: 5px;
}

.meshere-gallery-next::before,
.meshere-lightbox-next::before {
  transform: rotate(45deg);
  margin-right: 5px;
}

.meshere-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 54px !important;
  height: 54px !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  margin-top: -27px;
  font-size: 32px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
  text-indent: -9999px;
  overflow: hidden;
  transform: translateY(4px) scale(0.96);
  transition: opacity 160ms ease, visibility 160ms ease, background-color 140ms ease, color 140ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.meshere-gallery-arrow::before {
  text-indent: 0;
}

.meshere-gallery-main:hover .meshere-gallery-arrow,
.meshere-gallery-arrow:focus-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.meshere-gallery-prev {
  left: 12px;
}

.meshere-gallery-next {
  right: 12px;
}

.meshere-gallery-arrow:hover,
.meshere-lightbox-arrow:hover,
.meshere-lightbox-arrow:focus-visible,
.meshere-lightbox-close:hover,
.meshere-lightbox-close:focus-visible {
  background: #242424;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px) scale(1.04);
}

.meshere-gallery-arrow:not(:hover):not(:active):not(:focus-visible) {
  background: rgba(255, 255, 255, 0.9);
  color: #242424;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.meshere-gallery-arrow:active,
.meshere-lightbox-arrow:active,
.meshere-lightbox-close:active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  transform: translateY(1px) scale(0.96);
}

.meshere-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: thin;
}

.meshere-gallery-thumb {
  flex: 0 0 auto;
  width: var(--mpg-gallery-thumb-size, 72px);
  height: var(--mpg-gallery-thumb-size, 72px);
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 160ms ease, transform 120ms ease;
}

.meshere-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  object-fit: cover;
}

.meshere-gallery-thumb.is-active {
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1;
}

.meshere-gallery-thumb:hover,
.meshere-gallery-thumb:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.meshere-gallery-thumb:active {
  transform: translateY(0) scale(0.96);
}

.meshere-gallery-counter {
  margin-top: 8px;
  font-size: 13px;
  color: #6f6b66;
  text-align: center;
}

.summary .price .meshere-price-display,
.single-product .price .meshere-price-display {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: baseline;
  margin: 8px 0 18px;
}

.summary .price .meshere-price-current,
.single-product .price .meshere-price-current {
  color: #24272d;
  font-size: var(--mpg-price-current-size, 30px);
  font-weight: 700;
  line-height: 1.1;
}

.summary .price .meshere-price-regular,
.single-product .price .meshere-price-regular {
  color: #9a9a9a;
  font-size: var(--mpg-price-regular-size, 18px);
  font-weight: 400;
  line-height: 1.1;
  text-decoration-thickness: 1px;
}

.summary .price .meshere-price-save,
.single-product .price .meshere-price-save {
  color: #f04a2a;
  font-size: var(--mpg-price-save-size, 17px);
  font-weight: 500;
  line-height: 1.1;
}

.variations_form .single_variation .woocommerce-variation-price,
.variations_form .woocommerce-variation-price,
.variations_form .woocommerce-variation .price {
  display: none !important;
}

.single-product form.cart .reset_variations,
.variations_form .reset_variations {
  display: none !important;
}

.single-product form.cart .single_variation,
.single-product form.cart .single_variation_wrap,
.variations_form .single_variation,
.variations_form .single_variation_wrap {
  border-top: 0 !important;
  box-shadow: none !important;
}

.single-product form.cart .single_variation,
.variations_form .single_variation {
  padding-top: 0 !important;
}

.single-product form.cart .meshere-cart-actions,
.single-product form.cart .woocommerce-variation-add-to-cart.meshere-cart-actions {
  display: grid !important;
  grid-template-columns: minmax(132px, 150px) minmax(220px, 1fr);
  gap: 16px;
  align-items: end;
  width: 100%;
  margin: 24px 0 14px;
}

.single-product form.cart .quantity.meshere-quantity-host {
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.meshere-quantity {
  display: block;
  width: 100%;
  margin: 0;
}

.meshere-quantity-label {
  display: none;
  margin: 0 0 14px;
  color: #242424;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.meshere-quantity-controls {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  height: 58px;
  padding: 0 8px;
  border: 1px solid #ececec;
  border-radius: 999px;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.meshere-quantity-controls:hover,
.meshere-quantity-controls:focus-within {
  border-color: #d0d0d0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.meshere-quantity-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: transparent !important;
  color: #222222;
  cursor: pointer;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  box-shadow: none !important;
  transition: background-color 160ms ease, transform 100ms ease;
}

.meshere-quantity-button:hover,
.meshere-quantity-button:focus-visible {
  background: #f3f3f3 !important;
  transform: scale(1.06);
}

.meshere-quantity-button:active {
  transform: scale(0.92);
}

.meshere-quantity-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.meshere-quantity-minus {
  background: transparent !important;
}

.meshere-quantity-value {
  min-width: 28px;
  color: #222222;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.single-product form.cart .single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #171717 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center;
  text-transform: none;
  box-shadow: none !important;
  transition: background-color 180ms ease, transform 120ms ease, box-shadow 180ms ease, opacity 160ms ease;
}

.single-product form.cart .single_add_to_cart_button:hover,
.single-product form.cart .single_add_to_cart_button:focus-visible {
  background: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
  transform: translateY(-1px);
}

.single-product form.cart .single_add_to_cart_button:not(:hover):not(:active):not(:focus-visible) {
  background: #171717 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

.single-product form.cart .single_add_to_cart_button:active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16) !important;
  transform: translateY(1px) scale(0.99);
}

.single-product form.cart .single_add_to_cart_button.disabled,
.single-product form.cart .single_add_to_cart_button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.meshere-native-qty {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.variations_form .meshere-native-select,
.variations_form select[data-meshere-native-select="1"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.variations_form .meshere-variation-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  width: 100%;
  margin: 0 0 18px;
}

.variations_form .meshere-variation-current {
  display: none;
}

.variations_form .meshere-variation-swatch {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100%;
  padding: var(--mpg-swatch-padding-y, 7px) var(--mpg-swatch-padding-x, 10px) !important;
  border: 1px solid #a9a9a9 !important;
  border-radius: 4px !important;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  font: inherit;
  font-size: var(--mpg-swatch-font-size, 14px);
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateY(0) scale(1);
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background-color 160ms ease, opacity 160ms ease, transform 120ms ease;
}

.variations_form .meshere-variation-swatch:hover,
.variations_form .meshere-variation-swatch:focus-visible {
  border-color: #222222 !important;
  background: #fbfbfb;
  box-shadow: inset 0 0 0 1px #222222, 0 6px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.variations_form .meshere-variation-swatch.is-selected {
  border-color: #222222 !important;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #222222, 0 4px 12px rgba(0, 0, 0, 0.06);
}

.variations_form .meshere-variation-swatch:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: inset 0 0 0 1px #222222;
}

.variations_form .meshere-variation-swatch.is-disabled {
  cursor: not-allowed;
  opacity: 0.42;
  text-decoration: line-through;
}

.variations_form .meshere-variation-swatches.has-image-swatches {
  gap: 12px;
}

.variations_form .meshere-variation-swatches.has-image-swatches .meshere-variation-swatch {
  justify-content: flex-start;
  min-width: var(--mpg-image-swatch-min-width, 108px) !important;
  min-height: calc(var(--mpg-swatch-thumb-size, 38px) + (var(--mpg-swatch-padding-y, 7px) * 2)) !important;
  padding: var(--mpg-swatch-padding-y, 7px) var(--mpg-swatch-padding-x, 10px) !important;
  gap: 9px;
}

.variations_form .meshere-variation-swatch.has-thumb img {
  flex: 0 0 auto;
  display: block;
  width: var(--mpg-swatch-thumb-size, 38px);
  height: var(--mpg-swatch-thumb-size, 38px);
  border-radius: 0 !important;
  object-fit: cover;
}

.variations_form .meshere-external-image-swatch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  transform: translateY(0) scale(1);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 120ms ease, opacity 160ms ease;
}

.variations_form .meshere-external-image-swatch:hover,
.variations_form .meshere-external-image-swatch:focus-visible {
  border-color: #222222 !important;
  background: #fbfbfb;
  box-shadow: inset 0 0 0 1px #222222, 0 6px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.variations_form .meshere-external-image-swatch:active {
  transform: translateY(1px) scale(0.98);
}

.variations_form .meshere-external-thumb {
  flex: 0 0 auto;
  display: inline-flex;
  width: var(--mpg-swatch-thumb-size, 38px);
  height: var(--mpg-swatch-thumb-size, 38px);
}

.variations_form .meshere-external-thumb img {
  display: block;
  width: var(--mpg-swatch-thumb-size, 38px);
  height: var(--mpg-swatch-thumb-size, 38px);
  border-radius: 0 !important;
  object-fit: cover;
}

.variations_form .meshere-variation-swatch span {
  overflow-wrap: anywhere;
}

.variations_form table.variations {
  margin-bottom: 18px;
}

.variations_form table.variations th,
.variations_form table.variations td {
  display: block;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.variations_form table.variations th.label {
  padding-bottom: 6px;
}

.variations_form table.variations th.label label {
  margin: 0;
  color: #141b2d;
  font-size: 20px;
  line-height: 1.2;
}

.meshere-gallery-lightbox[hidden] {
  display: none !important;
}

.meshere-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(15, 15, 15, 0.9);
}

.meshere-gallery-lightbox img {
  display: block;
  max-width: min(1200px, 94vw);
  max-height: 90vh;
  object-fit: contain;
}

.meshere-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  font-size: 32px;
}

.meshere-lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 64px;
  margin-top: -32px;
  font-size: 42px;
  text-indent: -9999px;
  overflow: hidden;
}

.meshere-lightbox-arrow::before {
  text-indent: 0;
}

.meshere-lightbox-prev {
  left: 18px;
}

.meshere-lightbox-next {
  right: 18px;
}

.meshere-lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .meshere-product-gallery {
    float: none;
    width: 100%;
    margin-right: 0;
  }

  .meshere-gallery-zoom {
    min-height: 360px;
  }
}

@media (max-width: 520px) {
  .meshere-gallery-zoom {
    min-height: 300px;
  }

  .meshere-gallery-thumb {
    width: 62px;
    height: 62px;
  }

  .meshere-gallery-arrow {
    width: 42px !important;
    height: 42px !important;
    margin-top: -24px;
    font-size: 28px;
  }

  .meshere-gallery-lightbox {
    padding: 26px;
  }

  .single-product form.cart .meshere-cart-actions,
  .single-product form.cart .woocommerce-variation-add-to-cart.meshere-cart-actions {
    grid-template-columns: 1fr;
  }
}
