/* Product editorial layout. Keep WooCommerce's native gallery and variation updates. */
.single-product .site-header { position:sticky; top:var(--uai-admin-top,0px); z-index:100; }
.single-product .uai-shop-shell { max-width:none; padding:24px clamp(20px,2.2vw,44px) 80px; }
.woocommerce.single-product div.product { grid-template-columns:minmax(0,1.9fr) minmax(320px,1fr); gap:32px clamp(28px,3.2vw,64px); }
.woocommerce.single-product div.product div.images.woocommerce-product-gallery { align-self:stretch; overflow:visible; background:transparent; border-radius:0; }
.single-product .woocommerce-product-gallery__wrapper { height:100%; display:grid; grid-template-columns:minmax(0,1.8fr) minmax(0,1fr); grid-auto-rows:min-content; align-content:start; gap:20px; overflow:visible; background:transparent; border-radius:0; }
.woocommerce.single-product div.product div.images .woocommerce-product-gallery__image { grid-column:2; border-radius:20px; background:#f8f8f8; }
.woocommerce.single-product div.product div.images .woocommerce-product-gallery__image:first-child { grid-column:1; grid-row:1 / span var(--uai-gallery-rows,4); position:sticky; top:var(--uai-product-top,120px); align-self:start; }
.single-product .woocommerce-product-gallery__wrapper:not(:has(.woocommerce-product-gallery__image:nth-child(2))) { grid-template-columns:1fr; }
.single-product .woocommerce-product-gallery__image a,
.single-product .woocommerce-product-gallery__image:first-child a { display:block; min-height:0; padding:0; background:#f8f8f8; }
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery__image:first-child img { display:block; width:100%; height:auto; max-height:none; aspect-ratio:1; object-fit:contain; }
.single-product .woocommerce-product-gallery__image:first-child img { height:min(42vw,calc(100dvh - var(--uai-product-top,120px) - 24px)); aspect-ratio:auto; padding:18px; }
.single-product .woocommerce-product-gallery__image--placeholder { grid-column:1 / -1; }
.woocommerce.single-product div.product div.summary { padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; }
.woocommerce.single-product div.product .product_title { font-size:clamp(28px,2.7vw,52px); line-height:1.08; letter-spacing:-.045em; }
.single-product .summary form.variations_form, .single-product .summary form.grouped_form { display:block; }
.single-product .summary .variations { width:100%; }
.single-product .summary .variations select { max-width:100%; }
.woocommerce .woocommerce-ordering { float:none; margin:0; }
.woocommerce .woocommerce-ordering select { min-width:180px; max-width:240px; min-height:46px; padding:0 42px 0 16px; border:1px solid var(--uai-border,#d8e0e9); border-radius:10px; background-color:#fff; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; color:var(--uai-text,#1f2937); font:inherit; font-size:14px; appearance:none; cursor:pointer; transition:border-color .18s ease,box-shadow .18s ease; }
.woocommerce .woocommerce-ordering select:hover { border-color:var(--uai-blue,#1e4db7); }
.woocommerce .woocommerce-ordering select:focus-visible { outline:2px solid var(--uai-blue,#1e4db7); outline-offset:2px; box-shadow:0 0 0 4px rgba(30,77,183,.10); }
.woocommerce .woocommerce-ordering select { width:220px; font-family:var(--uai-body-font,system-ui,sans-serif); font-size:14px; font-weight:500; letter-spacing:0; line-height:1.4; text-overflow:ellipsis; }
.woocommerce .woocommerce-ordering select option { padding:8px 12px; font-family:var(--uai-body-font,system-ui,sans-serif); font-size:14px; font-weight:400; }
.uai-brand-products .woocommerce { display:flow-root; }
.uai-brand-products .woocommerce .woocommerce-result-count { float:left; display:flex; align-items:center; min-height:46px; margin:0; line-height:1.45; }
.uai-brand-products .woocommerce .woocommerce-ordering { float:right; width:auto; margin:0 0 20px 16px; }
.uai-brand-products .woocommerce ul.products { clear:both; }
@media(max-width:640px) { .uai-brand-products .woocommerce .woocommerce-result-count { float:none; min-height:0; margin:0 0 10px; }.uai-brand-products .woocommerce .woocommerce-ordering { float:none; margin:0 0 18px; }.uai-brand-products .woocommerce .woocommerce-ordering select { width:min(100%,280px); } }
.uai-product-information { grid-column:1 / -1; min-width:0; }
.uai-product-highlights { min-width:0; margin:0; padding:20px 28px 28px; border:1px solid #e9e9e9; border-radius:22px; }
.uai-product-highlights legend { padding:0 10px; font-size:18px; }
.uai-product-highlights > div { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px; }
.uai-product-highlights p { display:flex; flex-direction:column; justify-content:center; gap:4px; margin:0; padding:18px; border-radius:12px; background:#f8f8f8; overflow-wrap:anywhere; }
.uai-product-highlights strong { font-size:14px; font-weight:500; }
.uai-product-highlights span { font-size:12px; color:#777; }
.uai-tech-specs { max-width:1280px; margin:70px auto 20px; scroll-margin-top:var(--uai-product-top,120px); }
.uai-tech-specs h2 { margin:0 0 40px; font-size:clamp(36px,4.4vw,64px); letter-spacing:-.05em; line-height:1.1; }
.uai-tech-specs details { border-bottom:1px solid #e2e2e2; }
.uai-tech-specs summary { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:26px 0; font-size:20px; list-style:none; cursor:pointer; }
.uai-tech-specs summary::-webkit-details-marker { display:none; }
.uai-tech-specs summary::after { content:'+'; font-size:24px; }
.uai-tech-specs details[open] > summary::after { content:'−'; }
.uai-tech-specs summary:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.uai-tech-specs dl { display:grid; grid-template-columns:1fr 1fr; gap:32px 60px; margin:8px 0 36px; }
.uai-tech-specs dt { margin-bottom:8px; font-weight:500; }
.uai-tech-specs dd { margin:0; color:#69717b; overflow-wrap:anywhere; }
.uai-spec-description { padding:0 0 30px; line-height:1.8; overflow-wrap:anywhere; }
.uai-spec-description table { width:100%; border-collapse:collapse; }
.uai-spec-description th,.uai-spec-description td { padding:12px; border-bottom:1px solid #e2e2e2; text-align:left; }
/* The white page scrolls over the footer, revealing it below the service strip. */
.site > .site-content { position:relative; z-index:2; background:#fff; }
.site > .uai-service-strip { position:relative; z-index:2; border-radius:0 0 26px 26px; background:#fff; }
.site > .site-footer { width:100%; margin:0; border-radius:0; }
@media(max-width:900px) {
  .woocommerce.single-product div.product { grid-template-columns:minmax(0,1fr); gap:32px; }
  .single-product .woocommerce-product-gallery__image:first-child img { height:60vw; max-height:620px; }
  .single-product .woocommerce-product-gallery__wrapper { height:auto; }
  .single-product .site-header { position:relative; top:auto; }
  .woocommerce.single-product div.product div.images .woocommerce-product-gallery__image:first-child { top:20px; }
  .uai-tech-specs { margin-top:44px; }
}
@media(max-width:600px) {
  .single-product .woocommerce-product-gallery__wrapper { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:12px; }
  .woocommerce.single-product div.product div.images .woocommerce-product-gallery__image,
  .woocommerce.single-product div.product div.images .woocommerce-product-gallery__image:first-child { flex:0 0 88%; position:static; scroll-snap-align:start; border-radius:16px; }
  .single-product .woocommerce-product-gallery__image img,
  .single-product .woocommerce-product-gallery__image:first-child img,
  .single-product .woocommerce-product-gallery__image:not(:first-child) img { height:78vw; max-height:none; padding:12px; }
  .uai-tech-specs dl { grid-template-columns:1fr; gap:24px; }
  .uai-product-highlights { padding:12px 16px 20px; }
  .uai-spec-description { overflow-x:auto; }
}
