/* Product v4: equal columns, right-side buying information, left-side gallery. */
@media (min-width: 1000px) {
  html body.single-product.modwin-pdp-v2-preview div[id^="product-"].product {
    width: min(calc(100% - 48px), 1400px) !important;
    max-width: 1400px !important;
    margin-inline: auto !important;
  }
  html body.single-product.modwin-pdp-v2-preview .product-entry-wrapper,
  html body.single-product.modwin-pdp-v2-preview .product-entry-wrapper.is-width-constrained {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    direction: rtl !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    gap: clamp(24px,3vw,42px) !important;
    align-items: start !important;
    padding: clamp(20px,2.4vw,34px) !important;
    background: #f8f6f1 !important;
    border: 1px solid #e4ded3 !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 46px rgba(18,22,27,.06) !important;
  }
  html body.single-product.modwin-pdp-v2-preview .product-entry-wrapper > .summary,
  html body.single-product.modwin-pdp-v2-preview .product-entry-wrapper > .summary.entry-summary {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    position: static !important;
    top: auto !important;
    padding: clamp(20px,2.3vw,32px) !important;
    background: #fff !important;
    border: 1px solid #e6e0d6 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }
  html body.single-product.modwin-pdp-v2-preview .product-entry-wrapper > .woocommerce-product-gallery {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 12px !important;
    background: #eeebe4 !important;
    border-radius: 10px !important;
  }
  html body.single-product.modwin-pdp-v2-preview .product-entry-wrapper > .mpp2-product-breadcrumb {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
  html body.single-product.modwin-pdp-v2-preview .ct-product-gallery-container .flexy-container {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #f8f7f3 !important;
  }
  html body.single-product.modwin-pdp-v2-preview .ct-product-gallery-container .flexy-container > .flexy,
  html body.single-product.modwin-pdp-v2-preview .ct-product-gallery-container .flexy-view {
    height: clamp(430px,39vw,560px) !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }
  html body.single-product.modwin-pdp-v2-preview .ct-product-gallery-container .flexy-pills {
    height: auto !important;
    overflow: visible !important;
    margin-top: 12px !important;
  }
}

/* Selection states are driven by the existing WooCommerce variation JS. */
html body.single-product.modwin-pdp-v2-preview .mpp2-size-options {
  display: grid !important;
  grid-template-columns: repeat(auto-fit,minmax(64px,1fr)) !important;
  gap: 9px !important;
  overflow: visible !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-size-option {
  min-height: 48px !important;
  height: 48px !important;
  color: #20252b !important;
  background: #fff !important;
  border: 1.5px solid #d7d0c3 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background .16s,border-color .16s,color .16s !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-size-option:hover:not(:disabled),
html body.single-product.modwin-pdp-v2-preview .mpp2-size-option:focus-visible {
  color: #171b20 !important;
  background: #f4eee2 !important;
  border-color: #a8874f !important;
  outline: 2px solid #b59660 !important;
  outline-offset: 2px !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-size-option.is-selected,
html body.single-product.modwin-pdp-v2-preview .mpp2-size-option[aria-checked="true"] {
  color: #fff !important;
  background: #1b2026 !important;
  border-color: #1b2026 !important;
  box-shadow: inset 0 -3px 0 #c4a46b !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-size-option:disabled {
  color: #aaa59c !important;
  background: #f6f4f0 !important;
  border-color: #e7e2d9 !important;
  opacity: 1 !important;
  text-decoration: line-through !important;
  cursor: not-allowed !important;
}
html body.single-product.modwin-pdp-v2-preview .modwin-swatches .modwin-swatch,
html body.single-product.modwin-pdp-v2-preview .modwin-color-check {
  min-width: 44px !important;
  min-height: 44px !important;
  border: 2px solid #d7d0c3 !important;
  border-radius: 8px !important;
  background: #fff !important;
}
html body.single-product.modwin-pdp-v2-preview .modwin-swatches .modwin-swatch.active,
html body.single-product.modwin-pdp-v2-preview .modwin-color-check.on,
html body.single-product.modwin-pdp-v2-preview .modwin-color-check:has(input:checked) {
  border-color: #1b2026 !important;
  box-shadow: 0 0 0 2px #c4a46b !important;
}
html body.single-product.modwin-pdp-v2-preview .modwin-swatches .modwin-swatch:focus-visible,
html body.single-product.modwin-pdp-v2-preview .modwin-color-check:focus-within {
  outline: 2px solid #a8874f !important;
  outline-offset: 2px !important;
}
html body.single-product.modwin-pdp-v2-preview .modwin-swatches .modwin-swatch.disabled {
  opacity: .7 !important;
  cursor: not-allowed !important;
  background: #f5f5f4 !important;
  border-color: #d6d3d1 !important;
}
html body.single-product.modwin-pdp-v2-preview .modwin-swatches .modwin-swatch.disabled .modwin-swatch-name {
  color: #57534e !important;
}
html body.single-product.modwin-pdp-v2-preview .modwin-swatches .modwin-swatch-oos {
  color: #9f1239 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}
html body.single-product.modwin-pdp-v2-preview .single_add_to_cart_button:not(:disabled):not(.disabled) {
  color: #fff !important;
  background: #1b2026 !important;
  border: 1px solid #1b2026 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
html body.single-product.modwin-pdp-v2-preview .single_add_to_cart_button:not(:disabled):not(.disabled):hover {
  background: #333942 !important;
  transform: none !important;
}
/* Only the two active installment providers; retain their live price widgets. */
html body.single-product.modwin-pdp-v2-preview .snapppay-widget,
html body.single-product.modwin-pdp-v2-preview .mpp2-payment-marks {
  display: none !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-installments {
  margin-top: 18px !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list > .digipay-widget,
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list > #torobpay-variation-widget-container,
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list .torobpay-widget {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 104px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list > .digipay-widget,
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list .torobpay-widget {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px !important;
  background: #faf8f4 !important;
  border: 1px solid #ded6c8 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  direction: rtl !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list .digipay-widget-image,
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list .torobpay-widget-media {
  order: 0 !important;
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list .torobpay-widget-media img {
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list .digipay-widget-content,
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list .torobpay-widget-content {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: right !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list .digipay-widget-title,
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list .torobpay-widget-title {
  color: #1b2026 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list .digipay-widget-description,
html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list .torobpay-widget-description {
  color: #686c71 !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
}
/* Keep recommendation cards centered with the main product surface. */
html body.single-product.modwin-pdp-v2-preview .related.products,
html body.single-product.modwin-pdp-v2-preview .up-sells.products,
html body.single-product.modwin-pdp-v2-preview .woocommerce-tabs {
  width: min(calc(100% - 48px),1400px) !important;
  max-width: 1400px !important;
  margin: 32px auto 38px !important;
  box-sizing: border-box !important;
}
html body.single-product.modwin-pdp-v2-preview .related.products,
html body.single-product.modwin-pdp-v2-preview .up-sells.products {
  padding: clamp(24px,3vw,42px) !important;
  overflow: hidden !important;
}
html body.single-product.modwin-pdp-v2-preview .related.products > ul.products,
html body.single-product.modwin-pdp-v2-preview .up-sells.products > ul.products {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: clamp(12px,1.8vw,24px) !important;
}
html body.single-product.modwin-pdp-v2-preview .related.products > ul.products > li.product,
html body.single-product.modwin-pdp-v2-preview .up-sells.products > ul.products > li.product {
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
}
@media (max-width: 999px) {
  html body.single-product.modwin-pdp-v2-preview {
    overflow-x: clip !important;
  }
  html body.single-product.modwin-pdp-v2-preview .product-entry-wrapper,
  html body.single-product.modwin-pdp-v2-preview .product-entry-wrapper.is-width-constrained {
    display: flex !important;
    flex-direction: column !important;
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    min-width: 0 !important;
    margin: 12px auto 20px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  html body.single-product.modwin-pdp-v2-preview .product-entry-wrapper > .woocommerce-product-gallery {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  html body.single-product.modwin-pdp-v2-preview .ct-product-gallery-container .flexy-container {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  html body.single-product.modwin-pdp-v2-preview .ct-product-gallery-container .flexy-container > .flexy,
  html body.single-product.modwin-pdp-v2-preview .ct-product-gallery-container .flexy-view {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
  }
  html body.single-product.modwin-pdp-v2-preview .ct-product-gallery-container .flexy-pills {
    height: auto !important;
    overflow: visible !important;
    margin-top: 10px !important;
  }
  html body.single-product.modwin-pdp-v2-preview .product-entry-wrapper > .summary {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  html body.single-product.modwin-pdp-v2-preview .mpp2-size-options {
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  }
  html body.single-product.modwin-pdp-v2-preview .mpp2-installments-list {
    grid-template-columns: minmax(0,1fr) !important;
  }
  html body.single-product.modwin-pdp-v2-preview .related.products,
  html body.single-product.modwin-pdp-v2-preview .up-sells.products,
  html body.single-product.modwin-pdp-v2-preview .woocommerce-tabs {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin: 20px auto 30px !important;
  }
  html body.single-product.modwin-pdp-v2-preview .related.products > ul.products,
  html body.single-product.modwin-pdp-v2-preview .up-sells.products > ul.products {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}
