/* ECP product presentation: dark studio, native variant images, clear choices. */
html body.ecp-product-presentation { color-scheme: dark; }
html body.ecp-product-presentation main .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  align-items: start !important;
  gap: clamp(24px,4vw,56px) !important;
  margin-bottom: 64px !important;
}
html body.ecp-product-presentation main .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column {
  min-width: 0 !important; margin: 0 !important; width: 100% !important;
}
html body.ecp-product-presentation main .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:last-child {
  box-sizing: border-box; padding: clamp(22px,2.6vw,36px) !important;
  border: 1px solid rgba(141,174,213,.15); border-radius: 16px;
  background: linear-gradient(145deg,rgba(15,29,47,.92),rgba(6,13,24,.95));
  box-shadow: 0 18px 56px rgba(0,0,0,.14);
}
html body.ecp-product-presentation main h1.wp-block-post-title {
  margin: 0 0 18px !important;
  font-size: clamp(2rem,3.25vw,3.1rem) !important; line-height: 1.07 !important;
  letter-spacing: -.045em !important;
}
html body.ecp-product-presentation .wp-block-woocommerce-product-price {
  margin: 0 0 14px !important;
}
html body.ecp-product-presentation .wp-block-woocommerce-product-summary {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  margin: 24px 0 28px !important; padding: 0 !important;
  color: #bccbda !important; line-height: 1.7 !important;
}
html body.ecp-product-presentation .woocommerce-product-gallery {
  box-sizing: border-box !important; float: none !important; margin: 0 !important;
  width: 100% !important; height: auto !important; min-height: 0 !important;
  aspect-ratio: auto !important; overflow: hidden !important;
  border: 1px solid rgba(130,168,210,.19) !important; border-radius: 16px !important;
  background: #091321 !important; box-shadow: 0 24px 65px rgba(0,0,0,.24) !important;
}
html body.ecp-product-presentation .woocommerce-product-gallery {
  background:
    radial-gradient(ellipse 32% 4.5% at 50% var(--ecp-floor-y,92%),rgba(0,0,0,.45),transparent 100%),
    radial-gradient(ellipse 68% 58% at 50% 43%,rgba(42,97,148,.21),transparent 85%),
    linear-gradient(rgba(134,176,219,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(134,176,219,.035) 1px,transparent 1px),
    linear-gradient(155deg,#101e30,#08111e 70%) !important;
  background-size: auto,auto,36px 36px,36px 36px,auto !important;
}
html body.ecp-product-presentation .woocommerce-product-gallery :is(
  .flex-viewport,.woocommerce-product-gallery__wrapper,.woocommerce-product-gallery__image,
  .woocommerce-product-gallery__image a,.woocommerce-product-gallery__image img
) { background: transparent !important; }
html body.ecp-product-presentation .woocommerce-product-gallery__image img:not(.zoomImg) {
  object-fit: contain !important; padding: 14px !important; box-sizing: border-box !important;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.20)) !important;
}
html body.ecp-product-presentation .woocommerce-product-gallery__trigger {
  top: 14px !important; right: 14px !important; width: 42px !important; height: 42px !important;
  border: 1px solid rgba(153,186,224,.25) !important; border-radius: 10px !important;
  background: rgba(7,16,28,.82) !important; color: #dcecff !important;
}
html body.ecp-product-presentation .woocommerce-product-gallery__trigger::before { border-color: #dcecff !important; }
html body.ecp-product-presentation .woocommerce-product-gallery__trigger::after { background: #dcecff !important; }
html body .ecp-product-photo-note {
  margin: 14px 4px 0 !important; font-size: .8rem !important;
  line-height: 1.55 !important; color: #8fa7bf !important;
}
html body.ecp-product-presentation form.variations_form {
  display: block !important; width: 100% !important; margin: 22px 0 0 !important;
  padding: 24px 0 0 !important; border-top: 1px solid rgba(139,172,213,.16) !important;
}
html body.ecp-product-presentation form.variations_form .variations {
  display: block !important; width: 100% !important; margin: 0 !important;
  padding: 0 !important; border: 0 !important; background: transparent !important;
}
html body.ecp-product-presentation form.variations_form .variations tbody {
  display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 20px !important;
}
html body.ecp-product-presentation form.variations_form .variations :is(tr,th,td) {
  display: block !important; box-sizing: border-box !important; width: 100% !important;
  padding: 0 !important; border: 0 !important; background: transparent !important;
}
html body.ecp-product-presentation form.variations_form .variations label {
  display: flex !important; align-items: center; justify-content: space-between;
  margin: 0 0 10px !important; color: #dce7f3 !important;
  font-size: .72rem !important; font-weight: 750 !important;
  letter-spacing: .09em; text-transform: uppercase;
}
html body.ecp-product-presentation .ecp-choice-value {
  color: #81b8f8; font-size: .78rem; font-weight: 500;
  letter-spacing: 0; text-transform: none;
}
html body.ecp-product-presentation .ecp-color-swatches {
  display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 8px !important; margin: 0 !important;
}
html body.ecp-product-presentation .ecp-color-swatch {
  display: flex !important; align-items: center !important; justify-content: flex-start !important;
  box-sizing: border-box !important; gap: 7px !important; min-width: 0 !important;
  min-height: 44px !important; padding: 9px 8px !important; margin: 0 !important;
  border: 1px solid rgba(146,178,215,.24) !important; border-radius: 8px !important;
  background: #0a1524 !important; color: #c9d6e6 !important; box-shadow: none !important;
  font-size: .72rem !important; font-weight: 600 !important; line-height: 1.2 !important;
  text-transform: none !important; letter-spacing: 0 !important; cursor: pointer;
  transition: border-color .16s,background .16s !important;
}
html body.ecp-product-presentation .ecp-color-swatch::before {
  content: ""; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28); background: var(--ecp-swatch,#777);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
html body.ecp-product-presentation .ecp-color-swatch:is(:hover,:focus-visible) {
  border-color: #77b3ff !important; background: #10243c !important;
}
html body.ecp-product-presentation .ecp-color-swatch:focus-visible {
  outline: 2px solid #77b3ff; outline-offset: 3px;
}
html body.ecp-product-presentation .ecp-color-swatch.is-selected {
  border-color: #68adff !important; background: #133052 !important; color: #fff !important;
  box-shadow: 0 0 0 1px rgba(80,161,255,.25) !important;
}
html body.ecp-product-presentation .ecp-color-swatch:disabled { opacity: .35; cursor: not-allowed; }
html body.ecp-product-presentation select.ecp-bundle-native {
  display: none !important;
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip-path: inset(50%) !important; white-space: nowrap !important;
}
html body.ecp-product-presentation form.variations_form .reset_variations {
  display: inline-block !important; margin-top: 12px !important;
  color: #86baff !important; font-size: .76rem !important; text-transform: none !important;
}
html body.ecp-product-presentation .single_variation_wrap {
  clear: both !important; margin-top: 22px !important;
}
html body.ecp-product-presentation .woocommerce-variation-add-to-cart {
  display: grid !important; grid-template-columns: 74px minmax(0,1fr) !important;
  align-items: stretch !important; gap: 12px !important; margin-top: 16px !important;
}
html body.ecp-product-presentation .woocommerce-variation-add-to-cart .quantity {
  display: block !important; width: 100% !important; margin: 0 !important;
}
html body.ecp-product-presentation .woocommerce-variation-add-to-cart .qty {
  box-sizing: border-box !important; width: 100% !important; min-height: 50px !important;
  border: 1px solid rgba(146,178,215,.27) !important; border-radius: 8px !important;
  background: #081321 !important; color: #fff !important;
}
html body.ecp-product-presentation .single_add_to_cart_button {
  float: none !important; width: 100% !important; min-height: 50px !important;
  padding: 12px 16px !important; margin: 0 !important; border-radius: 8px !important;
  background: linear-gradient(115deg,#1366e8,#2588f5) !important; color: #fff !important;
  font-size: .8rem !important; font-weight: 750 !important; letter-spacing: .025em !important;
}
html body.ecp-product-presentation .single_add_to_cart_button.disabled {
  opacity: .52 !important; cursor: not-allowed !important;
}
html body.ecp-product-presentation .wp-block-woocommerce-product-meta {
  margin-top: 24px !important; padding-top: 20px !important;
  border-top: 1px solid rgba(139,172,213,.13); font-size: .76rem; color: #8fa7bf;
}
html body img:is([src*="ecp-psa-"],[src*="ecp-stand-"],[src*="ecp-bundle-psa-"]) {
  background-color: transparent !important;
}
html body.ecp-product-presentation main .wp-block-woocommerce-product-collection {
  clear: both !important; margin-top: 60px !important; padding-top: 36px !important;
  border-top: 1px solid rgba(139,172,213,.16);
}
@media(max-width:1024px) and (min-width:783px) {
  html body.ecp-product-presentation .ecp-color-swatches { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media(max-width:782px) {
  html body.ecp-product-presentation main .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) {
    grid-template-columns: minmax(0,1fr) !important; gap: 24px !important; margin-bottom: 40px !important;
  }
  html body.ecp-product-presentation main h1.wp-block-post-title {
    font-size: clamp(1.95rem,7.5vw,2.6rem) !important;
  }
  html body.ecp-product-presentation main .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:last-child {
    padding: 24px 20px !important;
  }
  html body.ecp-product-presentation main .wp-block-woocommerce-product-collection { margin-top: 40px !important; }
}
@media(max-width:420px) {
  html body.ecp-product-presentation .ecp-color-swatches { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media(prefers-reduced-motion:reduce) {
  html body.ecp-product-presentation .ecp-color-swatch { transition: none !important; }
}

/* Keep photography visible while configuring; compact the buying information. */
html body.ecp-product-presentation .wp-block-woocommerce-product-image-gallery {
  width: 100% !important; max-width: none !important; height: auto !important;
}
html body.ecp-product-presentation main .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:first-child {
  position: sticky; top: 24px;
}
html body.ecp-product-presentation .ecp-tax-notice {
  margin: 0 0 18px !important; font-size: .75rem !important;
  line-height: 1.5 !important; color: #95a8bd !important;
}
html body.ecp-product-presentation .ecp-tax-notice small { font-size: inherit !important; }
html body.ecp-product-presentation main .wp-block-post-excerpt {
  margin: 0 0 24px !important; font-size: .94rem !important; line-height: 1.6 !important;
  color: #becddd !important;
}
html body.ecp-product-presentation main .wp-block-post-excerpt p { margin: 0 !important; }
html body.ecp-product-presentation .wp-block-woocommerce-add-to-cart-form {
  margin-top: 0 !important;
}
html body.ecp-product-presentation form.variations_form { margin-top: 0 !important; }
html body.ecp-product-presentation form.variations_form .variations label { line-height: 1.4 !important; }
html body.ecp-product-presentation:is(.postid-164,.postid-229,.postid-294,.postid-674) main .wp-block-woocommerce-product-collection .wc-block-product-template {
  grid-template-columns: repeat(2,minmax(0,1fr)) !important; width: 100% !important;
}
@media(max-width:782px) {
  html body.ecp-product-presentation main .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:first-child {
    position: static;
  }
  html body.ecp-product-presentation:is(.postid-164,.postid-229,.postid-294,.postid-674) main .wp-block-woocommerce-product-collection .wc-block-product-template {
    grid-template-columns: minmax(0,1fr) !important;
  }
}

html body.ecp-product-presentation.postid-28 .woocommerce-product-gallery { --ecp-floor-y: 75%; }

/* Match the native variation loading overlay to the dark purchase panel. */
html body.ecp-product-presentation .blockUI.blockOverlay { background: #081321 !important; opacity: .72 !important; border-radius: 10px !important; }

@media(max-width:782px) {
  html body.ecp-product-presentation .wp-block-woocommerce-product-image-gallery { max-width: 560px !important; margin-inline: auto !important; }
}
