/* Assigned product imagery is centered and never cropped by the read-only size controls. */
body {
  --phx-media-surface: #20150f;
  --phx-media-landscape: url('../phoenix/phoenix-desert-scene-v3.webp');
}
.phx-product-media,
.hl-qv__media,
.single-product .woocommerce-product-gallery .ct-media-container {
  background-color: var(--phx-media-surface);
}
.phx-product-media,
.single-product .woocommerce-product-gallery .ct-media-container {
  display: grid;
  place-items: center;
}
.phx-product-media { aspect-ratio: 1; }
.single-product .woocommerce-product-gallery .ct-media-container {
  width: 100%;
  aspect-ratio: 1;
}
.single-product .woocommerce-product-gallery .ct-media-container > img:not(.zoomImg),
.phx-product-media > img,
.hl-qv__media > img {
  display: block;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  -webkit-mask-image: none;
  mask-image: none;
}
.single-product .woocommerce-product-gallery .ct-media-container > img:not(.zoomImg) {
  position: static;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 !important;
}
.phx-product-media > img,
.hl-qv__media > img { width: 100%; height: auto; max-height: 75vh; }
.woocommerce ul.products .ct-media-container img {
  object-fit: contain;
  object-position: center;
  -webkit-mask-image: none;
  mask-image: none;
}
body.single-product .pswp__bg,
body.single-product .pswp__img,
body.single-product .woocommerce-product-gallery .zoomImg {
  background-color: var(--phx-media-surface, #0a0a0a);
  -webkit-mask-image: none;
  mask-image: none;
}
.phx-variant-options { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 16px; }
.phx-variant-options button { min-height: 44px; padding: 10px 18px; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.phx-variant-options button[aria-pressed="true"] { color: #0a0a0a; background: #ffb34d; border-color: #ffb34d; }
.phx-variant-options button:focus-visible { outline: 3px solid #ffb34d; outline-offset: 3px; }
.phx-size-table { min-width: 0; }
.phx-size-table table { width: 100%; }

/* Round two: matching square media planes and compact information rhythm.
   Assigned artwork remains unmasked and uncropped. Normalized files own vial size. */
body .woocommerce ul.products li.product .ct-media-container,
body [data-products] .product .ct-media-container,
body .phx-product-media,
body .hl-qv__media,
body.single-product .woocommerce-product-gallery .ct-media-container {
  background-color: var(--phx-media-surface) !important;
  background-image: var(--phx-media-landscape) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  aspect-ratio: 1 !important;
  padding: 0;
  border: 0;
  overflow: hidden;
}
body .woocommerce ul.products li.product .ct-media-container,
body [data-products] .product .ct-media-container {
  width: 100%;
}
body .woocommerce ul.products li.product .ct-media-container > img,
body [data-products] .product .ct-media-container > img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
body .phx-product-media > img,
body .hl-qv__media > img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: 1;
  background: transparent;
}
body .woocommerce ul.products li.product,
body .hl-related ul.products li.product,
body [data-products] .product { --product-element-spacing: 8px; }
body .woocommerce ul.products li.product figure,
body .hl-related ul.products li.product figure,
body [data-products] .product figure {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
body .woocommerce ul.products li.product figure .hl-qv-btn,
body .hl-related ul.products li.product figure .hl-qv-btn {
  margin: 0;
  min-height: 44px;
  padding-block: 8px;
}
body .woocommerce ul.products li.product .woocommerce-loop-product__title,
body .hl-related ul.products li.product .woocommerce-loop-product__title,
body [data-products] .product .woocommerce-loop-product__title {
  margin-block: 0 5px;
  line-height: 1.35;
}
body .woocommerce ul.products li.product .price,
body .hl-related ul.products li.product .price,
body [data-products] .product .price { margin-block: 0 8px; }
body .hl-qv__layout { gap: 16px; }
body .hl-qv__media { align-self: start; }
body.single-product .woocommerce-product-gallery::before { display: none; }
body.single-product .woocommerce-product-gallery .hl-pdp-subtabs { margin-top: 12px; margin-bottom: 24px; }
/* The summary and its blocks supply their own rhythm; avoid stacked rules. */
body.single-product .entry-summary .ct-product-divider,
body.single-product .entry-summary .ct-divider { display: none; }
body.single-product .entry-summary .hl-pdp-trust { border-top: 0; padding-top: 0; }
/* Zoom and lightbox must keep the same dark surround instead of white. */
body.single-product .pswp__bg { background: #20150f !important; }
body.single-product .pswp__img,
body.single-product .woocommerce-product-gallery .zoomImg {
  background-color: #20150f !important;
  background-image: var(--phx-media-landscape) !important;
  background-size: cover !important;
}
@media (max-width: 720px) {
  body .hl-qv__layout { gap: 14px; }
  body .hl-qv__media { width: min(100%, 390px); margin-inline: auto; }
  body .hl-qv__panel { padding: 54px 16px 20px; }
}

/* Round three: identical foreground scale on catalog, detail and Quick view.
   1.10 preserves the full cap/base and makes the approved alpha silhouette 87% high. */
body .woocommerce ul.products li.product .ct-media-container > img:not(.zoomImg),
body [data-products] .product .ct-media-container > img:not(.zoomImg),
body .phx-product-media > img,
body .hl-qv__media > img,
body.single-product .woocommerce-product-gallery .ct-media-container > img:not(.zoomImg) {
  transform: scale(1.10);
  transform-origin: center;
}
body.single-product .pswp__img,
body.single-product .woocommerce-product-gallery .zoomImg {
  background-position: center !important;
  background-repeat: no-repeat !important;
}
