/* v0.56.7: One stable product-media stage for every aspect ratio.
 * FlexSlider can write an inline viewport height on initialization, thumbnail
 * selection or variation changes. Override only its height, never its track
 * width, transforms or slide ordering. Keep original media intact. */
.as59-product-page div.product .woocommerce-product-gallery{
  --ast-gallery-stage:clamp(180px,52vh,600px);
  --ast-gallery-stage:clamp(180px,52svh,600px);
  position:relative;min-width:0;box-sizing:border-box;
}
.as59-product-page div.product .woocommerce-product-gallery .flex-viewport{
  height:var(--ast-gallery-stage)!important;min-height:var(--ast-gallery-stage)!important;max-height:var(--ast-gallery-stage)!important;
  overflow:hidden!important;transition-property:none!important;border-radius:12px;
}
.as59-product-page div.product .woocommerce-product-gallery .woocommerce-product-gallery__image{
  height:var(--ast-gallery-stage)!important;min-height:0!important;max-height:var(--ast-gallery-stage)!important;
  overflow:hidden;box-sizing:border-box;
}
.as59-product-page div.product .woocommerce-product-gallery .woocommerce-product-gallery__image > a{
  display:flex!important;align-items:center;justify-content:center;width:100%;height:100%!important;min-height:0;overflow:hidden;
  border-radius:12px;background:#111526;cursor:zoom-in;
}
.as59-product-page div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img:not(.zoomImg){
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-height:0!important;
  object-fit:contain!important;object-position:center!important;border-radius:0!important;margin:0!important;
}
.as59-product-page div.product .woocommerce-product-gallery .flex-control-thumbs{
  grid-template-columns:repeat(auto-fill,minmax(56px,80px));justify-content:start;gap:8px;margin:12px 0 0!important;
}
.as59-product-page div.product .woocommerce-product-gallery .flex-control-thumbs li{min-width:0;overflow:hidden;}
.as59-product-page div.product .woocommerce-product-gallery .flex-control-thumbs img{
  display:block;width:100%!important;height:auto!important;aspect-ratio:1;object-fit:contain!important;background:#111526;box-sizing:border-box;
}
/* Only suppress the native trigger once the accessible replacement exists. */
.as59-product-page .ast-product-viewer-ready .woocommerce-product-gallery__trigger{display:none!important;}
.as59-product-page .ast-product-enlarge{position:absolute;z-index:5;top:24px;right:24px;display:flex;align-items:center;gap:8px;border:1px solid #786b9c;border-radius:999px;padding:9px 13px;min-height:44px;color:#fff;background:#171b2e;font-size:.85rem;font-weight:650;line-height:1.2;box-shadow:0 4px 18px #0006;}
.as59-product-page .ast-product-enlarge:hover{background:#39305b;}
@media(max-width:850px){.as59-product-page div.product .woocommerce-product-gallery{--ast-gallery-stage:clamp(180px,48vh,440px);--ast-gallery-stage:clamp(180px,48svh,440px);padding:12px;}.as59-product-page .ast-product-enlarge{top:20px;right:20px;}}
@media(max-height:480px) and (min-width:851px){.as59-product-page div.product .woocommerce-product-gallery{--ast-gallery-stage:clamp(150px,52vh,300px);--ast-gallery-stage:clamp(150px,52svh,300px);}}
/* Native modal top layer avoids clipping by the site shell and stays inside the visible viewport. */
html.ast-product-viewer-open,html.ast-product-viewer-open body{overflow:hidden!important;overscroll-behavior:none;}
#ast-product-viewer{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:clamp(8px,2vw,24px);background:#0b0d18;color:#f6f5ff;overflow:hidden;box-sizing:border-box;}
#ast-product-viewer:not([open]){display:none;}
#ast-product-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:clamp(6px,1.5vh,16px);}
#ast-product-viewer::backdrop{background:#080913e8;}
.ast-pv-toolbar,.ast-pv-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;}
.ast-pv-toolbar{padding-top:env(safe-area-inset-top);}.ast-pv-controls{padding-bottom:env(safe-area-inset-bottom);justify-content:center;}
.ast-pv-title{margin:0;font-size:clamp(.85rem,2vw,1.15rem);font-weight:650;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#ast-product-viewer button{appearance:none;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;border:1px solid #5b5677;border-radius:12px;background:#21253a;color:#fff;padding:8px 13px;line-height:1.1;font-size:.9rem;font-weight:650;}
#ast-product-viewer button:hover:not(:disabled){background:#3a3059;}#ast-product-viewer button:disabled{opacity:.35;cursor:default;}
.ast-pv-stage{min-height:0;min-width:0;overflow:hidden;display:grid;place-items:center;position:relative;background:#101322;border-radius:14px;}
#ast-product-viewer .ast-pv-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center;}
.ast-pv-status{min-width:75px;text-align:center;color:#c2c7da;font-size:.85rem;font-variant-numeric:tabular-nums;}
.ast-pv-error{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:16px;text-align:center;color:#fff;background:#101322;}.ast-pv-error[hidden]{display:none;}
@media(max-width:600px){.ast-pv-toolbar,.ast-pv-controls{gap:6px;}#ast-product-viewer button{padding:8px 10px;}.ast-pv-title{font-size:.85rem;}}
@media(max-height:350px){#ast-product-viewer{padding:4px;gap:4px;}#ast-product-viewer button{min-height:36px;}.ast-pv-stage{border-radius:4px;}}

/* v0.56.8 — Balanced product detail layout. Keep native slider track sizing,
 * variation forms, and all commerce controls intact. */
.as59-product-page div.product{gap:clamp(18px,2.5vw,36px);align-items:stretch;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);}
.as59-product-page div.product>.woocommerce-product-gallery,
.as59-product-page div.product>.summary{box-sizing:border-box;align-self:stretch;border-radius:20px;}
.as59-product-page div.product>.summary{padding:clamp(18px,2.2vw,32px);text-align:start;display:flex;flex-direction:column;gap:16px;}
.as59-product-page div.product>.summary>.product_title{font-size:clamp(25px,2.55vw,40px)!important;line-height:1.16;letter-spacing:-.035em;text-wrap:balance;margin:0!important;color:#f4f3ff;}
.as59-product-page div.product>.summary>.price{margin:0!important;line-height:1.2;font-size:clamp(25px,2.5vw,34px)!important;font-weight:700;font-variant-numeric:tabular-nums;color:#a3f0d5!important;}
.as59-product-page div.product .summary .price>.woocommerce-Price-amount,
.as59-product-page div.product .summary .price ins{color:#a3f0d5!important;}
.as59-product-page div.product .summary .price del{color:#b8bfd7!important;}
.as59-product-page div.product>.summary>.woocommerce-product-details__short-description{font-size:.95rem;line-height:1.65;color:#d3d9ed;}
.as59-product-page div.product>.summary>.woocommerce-product-details__short-description p{margin:0 0 .65em;}
.as59-product-page div.product>.summary>.woocommerce-product-details__short-description p:last-child{margin-bottom:0;}
.as59-product-page div.product>.summary>.ast-pod-preview-options{margin:0;padding:clamp(13px,1.4vw,20px);border-radius:14px;min-width:0;}
.as59-product-page .summary .ast-pod-preview-options h3,.as59-product-page .summary .ast-product-details h3{font-size:1.05rem;line-height:1.35;letter-spacing:-.015em;margin:0 0 10px;color:#e9e5ff;}
.as59-product-page .summary .ast-pod-preview-options p,.as59-product-page .summary .ast-product-details p{font-size:.9rem;line-height:1.6;margin:0 0 10px;color:#c4cde4;}
.as59-product-page .summary .ast-product-details p:last-child{margin-bottom:0;}
.as59-product-page .summary .ast-pod-preview-options table{table-layout:fixed;width:100%;margin:0;font-size:.9rem;font-variant-numeric:tabular-nums;}
.as59-product-page .summary .ast-pod-preview-options :is(th,td){padding:10px 6px;overflow-wrap:anywhere;vertical-align:middle;}
.as59-product-page .summary .ast-pod-preview-options :is(th,td):last-child{text-align:end;}
.as59-product-page .summary .ast-pod-preview-options tbody tr:last-child td{border-bottom:0;}
.as59-product-page div.product>.summary>.product_meta{margin:0;padding-top:12px;font-size:.8rem;line-height:1.55;}
.as59-product-page div.product>.summary>.ast-product-details{margin:0;padding:clamp(13px,1.4vw,20px);border-radius:14px;}
.as59-product-page div.product>.summary>form.cart{margin:0;max-width:100%;}
.as59-product-page div.product>.woocommerce-tabs .panel{margin:0!important;}
@media(min-width:851px){
  .as59-product-page div.product>.woocommerce-product-gallery{display:flex;flex-direction:column;justify-content:center;}
  .as59-product-page div.product>.woocommerce-product-gallery .flex-viewport{flex:1 0 auto;max-height:68vh!important;max-height:68svh!important;}
  .as59-product-page div.product>.woocommerce-product-gallery .flex-viewport>.woocommerce-product-gallery__wrapper{height:100%;}
  .as59-product-page div.product>.woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image{height:100%!important;max-height:none!important;}
  .as59-product-page div.product>.woocommerce-product-gallery .flex-control-thumbs{flex:none;}
}
@media(max-width:850px){
  .as59-product-page div.product{grid-template-columns:minmax(0,1fr);gap:20px;}
  .as59-product-page div.product>.summary{padding:18px;gap:14px;}
  .as59-product-page div.product>.summary>.product_title{font-size:clamp(24px,5vw,32px)!important;}
}
@media(max-width:380px){.as59-product-page div.product>.summary{padding:14px;}.as59-product-page .summary .ast-pod-preview-options :is(th,td){padding:8px 4px;font-size:.8rem;}}
.as59-product-page div.product>.summary>.ast-apparel-delivery{margin:0;padding:clamp(13px,1.4vw,20px);border-radius:14px;}
.as59-product-page .summary .ast-apparel-delivery h3{font-size:1.05rem;line-height:1.35;margin:0 0 10px;color:#e9e5ff;}
.as59-product-page .summary .ast-apparel-delivery p{font-size:.9rem;line-height:1.6;margin:0 0 10px;color:#c4cde4;}
.as59-product-page .summary .ast-apparel-delivery p:last-child{margin-bottom:0;}
