/* Aurora frame viewer: an oversized image rail and a floating product panel. */
.product-dialog{
 --viewer-info-width:clamp(440px,32vw,640px);
 --gallery-controls-height:0px;
 --viewer-stage-height:calc(100dvh - 72px - var(--gallery-controls-height));
 --slide-width:clamp(620px,calc(100vw - var(--viewer-info-width) - 64px),1280px);
 width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;background:var(--bg)
}
.product-dialog[open]{display:flex;flex-direction:column}
.product-dialog-head{height:72px;min-height:72px;padding:12px 28px;display:grid;grid-template-columns:1fr auto 1fr;gap:20px;z-index:5;background:var(--panel)}
.product-dialog-head>span{font-size:11px;letter-spacing:2.6px;color:var(--text);text-align:center}
.product-dialog-head .close-button{justify-self:end;border-radius:50%;width:44px;height:44px}
.viewer-back{display:inline-flex;align-items:center;gap:12px;justify-self:start;min-height:44px;font-size:12px;color:var(--secondary-text);padding:0}
.viewer-back svg{width:20px;height:20px}.viewer-back:hover{color:var(--accent-text)}
#product-content{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.product-scroll{flex:1;min-height:0;overflow:hidden;position:relative;scroll-padding:0}
.product-layout{display:block;position:relative;height:100%;min-height:0}
.product-gallery,.product-gallery.dark{height:100%;width:100%;padding:0;background:var(--gallery-background,var(--bg));display:flex;flex-direction:column}
.gallery-overview{height:auto;flex:1;min-height:0;position:relative;background:var(--gallery-background,var(--bg));--stage-height:var(--viewer-stage-height)}
.gallery-rail{position:relative;display:flex;align-items:stretch;gap:0;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:none;scroll-behavior:auto;overscroll-behavior-x:contain;scrollbar-width:none;cursor:grab;touch-action:pan-y pinch-zoom;outline-offset:-5px;-webkit-user-select:none;user-select:none}
.gallery-rail::-webkit-scrollbar{display:none}
.gallery-rail::after{display:none}
.gallery-rail.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.gallery-slide{position:relative;flex:0 0 var(--slide-width);min-width:0;height:100%;overflow:hidden;scroll-snap-align:none}
.gallery-slide .gallery-picture{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;padding:40px;cursor:inherit;outline-offset:-6px}
.gallery-slide .gallery-picture .visual{flex:none;width:min(100%,calc((var(--viewer-stage-height) - 80px) * var(--visual-ratio,1)));max-height:none;margin:0;pointer-events:none}
.gallery-slide .gallery-picture .custom-visual{width:100%;height:100%;background:transparent}
.gallery-slide .gallery-picture .custom-visual img{object-fit:contain}
.gallery-slide img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none;pointer-events:none}
.gallery-enlarge{position:absolute;top:22px;right:28px;background:#0c1418e8;color:#e6f5f7;border:1px solid #ffffff35;border-radius:3px;backdrop-filter:blur(12px);z-index:2;padding:10px 13px;font-size:12px}
.gallery-enlarge:hover{color:var(--cyan);border-color:var(--cyan)}
.gallery-enlarge span{display:inline}
.product-details{position:absolute;right:80px;bottom:calc(var(--gallery-controls-height) + 124px);width:var(--viewer-info-width);max-height:calc(var(--viewer-stage-height) - 152px);overflow-y:auto;overscroll-behavior:contain;padding:32px 32px 20px;background:#0e171bec;color:#eef4f6;border:1px solid #ffffff25;border-top:2px solid var(--cyan);border-bottom:0;border-radius:5px 5px 0 0;backdrop-filter:blur(20px);z-index:3;scrollbar-width:thin;scrollbar-color:#4b6570 transparent}
.product-details .eyebrow{font-size:11px;letter-spacing:2px;margin-bottom:14px;color:#12cfdf}
.product-details h2{font-size:clamp(32px,2.7vw,44px);line-height:1.12;letter-spacing:-.8px;margin:0}
.product-details .modal-price{font-size:29px;line-height:1.4;margin-top:12px;color:#eef4f6}
.product-details .demo-price{display:none}
.product-details .product-description{font-size:16px;line-height:1.75;margin:16px 0 22px;color:#b8cbd2}
.product-details .option-label{font-size:14px;color:#d4e3e8;margin-bottom:10px}
.product-details .option-label span{color:#93a9b3}
.product-details .size-options{display:flex;gap:6px;flex-wrap:wrap}
.product-details .size-options button{min-width:44px;min-height:48px;flex:1;padding:10px 8px;font-size:14px;border:1px solid #41606b;background:#17262e;color:#e5eff2}
.product-details .size-options button[aria-pressed=true]{background:#12cfdf;color:#061316;border-color:#12cfdf;outline:none}
.product-details .size-hint{font-size:12px;line-height:1.65;color:#8fa5af;margin-top:10px}
.product-details .product-error{font-size:12px;line-height:1.5;margin:8px 0 0;min-height:0;color:#ffbaaa}
.product-details .product-error:empty{display:none}





.product-purchase{position:absolute;right:80px;bottom:calc(var(--gallery-controls-height) + 28px);width:var(--viewer-info-width);height:96px;padding:16px 32px 22px;border:1px solid #ffffff25;border-top:0;border-radius:0 0 5px 5px;background:#0e171bec;backdrop-filter:blur(20px);z-index:3;gap:0}
.product-purchase>div{display:none}
.product-purchase .add-cart-button{width:100%;min-width:0;max-width:none;min-height:58px;height:58px;font-size:15px;padding:13px 18px;flex:1}
[data-theme="light"] .product-details,[data-theme="light"] .product-purchase{background:#fffffff0;border-color:#c8d7dc;color:#14262e}
[data-theme="light"] .product-details .eyebrow{color:#007d89}
[data-theme="light"] .product-details .modal-price{color:#14262e}
[data-theme="light"] .product-details .product-description{color:#405d69}
[data-theme="light"] .product-details .option-label{color:#274450}
[data-theme="light"] .product-details .option-label span,[data-theme="light"] .product-details .size-hint{color:#5d7782}
[data-theme="light"] .product-details .size-options button{background:#edf3f5;border-color:#c0d2da;color:#264552}
[data-theme="light"] .product-details .size-options button[aria-pressed=true]{background:#12cfdf;color:#061316;border-color:#12cfdf}




[data-theme="light"] .product-details .product-error{color:#ab301c}
@media(max-width:1100px){
 .product-dialog{--viewer-stage-height:clamp(340px,66svh,620px);--slide-width:90vw}
 .product-dialog-head{height:64px;min-height:64px;padding:10px 20px}
 .product-scroll{overflow-y:auto;scroll-padding-top:0}
 .product-layout{height:auto}
 .product-gallery,.product-gallery.dark{height:calc(var(--viewer-stage-height) + var(--gallery-controls-height))}
 .gallery-overview{height:auto;min-height:0}
 .gallery-slide .gallery-picture{padding:26px 24px}
 .gallery-slide .gallery-picture .visual{width:min(100%,calc((var(--viewer-stage-height) - 48px) * var(--visual-ratio,1)))}
 .gallery-enlarge{top:16px;right:20px}
 .product-details{position:static;width:100%;max-height:none;overflow:visible;border:0;border-top:1px solid var(--line);border-radius:0;padding:28px 5% 32px;background:var(--panel);color:var(--text);backdrop-filter:none}
 .product-details h2{font-size:32px}
 .product-details .modal-price{color:var(--text)}
 .product-details .product-description{font-size:16px;color:var(--secondary-text);max-width:760px}
 .product-details .size-options{max-width:560px}
 .product-details .size-hint{font-size:13px}


 .product-purchase{position:static;width:100%;height:auto;min-height:76px;border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 5% calc(12px + env(safe-area-inset-bottom));gap:20px;background:var(--panel);flex-shrink:0;backdrop-filter:none}
 .product-purchase>div{display:grid;gap:2px;min-width:0}
 .product-purchase .purchase-title{display:none}
 .product-purchase .purchase-price{font-size:20px}
 .product-purchase .add-cart-button{flex:0 1 340px;width:auto;min-width:156px;max-width:64%;height:50px}
}
@media(max-width:650px){
 .product-dialog{--slide-width:100%;--viewer-stage-height:clamp(340px,65svh,560px)}
 .product-dialog-head{height:58px;min-height:58px;gap:10px;padding:7px 14px}
 .product-dialog-head>span{font-size:9px;letter-spacing:1.7px}
 .viewer-back>span:last-child{display:none}
 .viewer-back{width:44px;justify-content:center}
 .gallery-rail{gap:0}
 .product-gallery.is-photographic .gallery-slide{flex-basis:100%}
 .gallery-slide .gallery-picture{padding:24px 20px}
 .gallery-slide .gallery-picture .visual{width:min(100%,calc((var(--viewer-stage-height) - 48px) * var(--visual-ratio,1)))}
 .gallery-enlarge{top:13px;right:14px;min-width:44px;padding:10px}
 .gallery-enlarge span{display:none}
 .product-details{padding:25px 20px 30px}
 .product-details h2{font-size:29px}
 .product-details .size-hint{font-size:12px}
 .product-purchase{padding-inline:16px;gap:12px}
 .product-purchase .purchase-price{font-size:19px}
 .product-purchase .add-cart-button{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.gallery-rail{scroll-behavior:auto!important}}

/* Only quiet arrows remain on the image stage. */
.gallery-side-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:64px;display:grid;place-items:center;padding:10px;border:0;background:transparent;color:#fff;mix-blend-mode:difference;opacity:.75;z-index:4;touch-action:manipulation}
.gallery-side-arrow svg{width:24px;height:24px;stroke-width:1.4}
.gallery-side-arrow.is-prev{left:16px}
.gallery-side-arrow.is-next{left:auto;right:16px}
.gallery-side-arrow:hover:not(:disabled){opacity:1;color:var(--cyan);mix-blend-mode:normal}
.gallery-side-arrow:disabled{opacity:.18;cursor:default;pointer-events:none}
.gallery-side-arrow:focus-visible{outline:2px solid var(--cyan);outline-offset:-3px;mix-blend-mode:normal}
@media(max-width:650px){.gallery-side-arrow{width:44px;height:56px;padding:10px}.gallery-side-arrow svg{width:22px;height:22px}.gallery-side-arrow.is-prev{left:4px}.gallery-side-arrow.is-next{left:auto;right:4px}}
@media(max-width:380px){.product-dialog-head>span{font-size:8px;letter-spacing:1.3px}}

/* Keep studio photographs edge to edge at their original aspect ratios. */
.product-gallery.is-photographic{height:var(--viewer-stage-height)}
.product-gallery.is-photographic .gallery-slide{flex-basis:calc(var(--viewer-stage-height) * var(--photo-ratio,1))}
.product-gallery.is-photographic .gallery-picture{padding:0}
.product-gallery.is-photographic .gallery-picture .visual{width:100%;height:100%;max-height:none}
@media(max-width:1100px){
 .product-gallery.is-photographic{--viewer-stage-height:min(66svh,calc(100vw / var(--gallery-wide-ratio,1.5)),620px)}
}

@media(any-pointer:coarse){
 .gallery-rail{overflow-x:hidden;touch-action:pan-y pinch-zoom}
 .gallery-slide,.gallery-picture{touch-action:pan-y pinch-zoom}
}
.gallery-slide .gallery-picture .custom-visual img{inset:0;width:100%;height:100%}
