/* Only the entry mode changes; typography, gallery and inspector remain V1. */
.product-photo-first [data-inspection-only]{display:none!important}
.product-photo-first .product-purchase [data-product-customization]:not([data-has-gallery-colors]),
.product-photo-first .product-purchase [data-product-customization] .mk-option-group:not([data-gallery-color]){display:none!important}
.product-photo-first .product-purchase [data-product-customization] .mk-option-group[data-gallery-color]{border:0}
.product-photo-first .product-purchase .mk-option-group[data-gallery-color] .mk-option:not([data-gallery-color-value]){display:none!important}
.product-photo-first .product-3d-entry{display:flex;align-items:center;gap:12px;width:100%;padding:15px 20px;margin:22px 0 0;min-height:52px;font:500 14px var(--font);color:var(--ink);cursor:pointer;text-align:left}
.product-photo-first .product-3d-entry svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.3}
.product-photo-first .product-3d-entry span:last-child{margin-left:auto;font-size:20px}
.product-photo-first .product-3d-entry:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.product-photo-first .product-3d-note{font-size:11px;line-height:1.6;color:var(--muted);margin:10px 0 18px}
@media(max-width:820px){
  .product-photo-first .product-purchase .product-3d-entry,
  .product-photo-first .product-purchase .product-3d-note{grid-column:1/-1}
  .product-photo-first .product-3d-entry{margin-top:18px}
  .product-photo-first .product-3d-note{margin-bottom:5px}
  .product-photo-first .product-copy{position:relative!important}
}

@media(max-width:820px){.product-photo-first .product-3d-note{display:none}}
@media(max-width:820px){
 .product-photo-first .product-purchase.is-floating>:not(h1):not(.price):not(.purchase-row):not([data-has-gallery-colors]){display:none!important}
 .product-photo-first .product-purchase.is-floating{padding-block:10px}
 .product-photo-first .product-purchase.is-floating h1{font-size:15px}
}

/* Optional entry treatment: remove this block to restore the classic capsule. */
.product-photo-first:not([data-customize-entry=classic]) :is(.product-3d-entry,.product-home-action .product-home-preview-entry){background:linear-gradient(120deg,#242622,#3d4039);color:#fff;border:1px solid #54584e;border-radius:18px;box-shadow:0 8px 22px #24262220;padding:9px 12px 9px 10px;min-height:62px;transition:box-shadow .2s,transform .2s}
.product-photo-first:not([data-customize-entry=classic]) :is(.product-3d-entry,.product-home-action .product-home-preview-entry)>svg{box-sizing:content-box;padding:10px;background:#ffffff12;border:1px solid #ffffff24;border-radius:12px}
.product-photo-first:not([data-customize-entry=classic]) :is(.product-3d-entry,.product-home-action .product-home-preview-entry):hover{box-shadow:0 10px 26px #24262238;transform:translateY(-1px)}
.product-photo-first:not([data-customize-entry=classic]) .product-3d-entry:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.product-photo-first .product-experience-mobile{position:absolute;top:14px;left:18px;right:18px;z-index:5;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;pointer-events:none}
.product-experience-mobile>*{pointer-events:auto}
.product-photo-first .product-experience-mobile .product-3d-entry{width:auto;min-height:46px;margin:0;font-size:11px;border-radius:14px;gap:8px;padding:5px 10px 5px 5px}
.product-experience-mobile .product-3d-entry>svg{width:18px!important;height:18px!important;padding:6px!important;border-radius:9px!important}
.product-experience-mobile .product-3d-entry>span:last-child{font-size:16px}
@media(max-width:820px){.product-photo-first .product-gallery-frame .photo-expand-hint{top:76px}}

/* A single, lazy 3D model continues below the product story and returns here
   after full-screen inspection, restoring standard materials; fullscreen selection is retained separately. */
.product-home-banner{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);margin:52px 0 72px;background:#e9e8e3;border:1px solid #24262212;overflow:hidden;scroll-margin-top:106px}
.product-home-copy{align-self:center;padding:clamp(28px,4vw,64px)}
.product-home-eyebrow{font-size:10px;letter-spacing:.16em}
.product-home-copy h2{font-size:clamp(32px,3.6vw,54px);line-height:1.05;letter-spacing:-.045em;font-weight:400;margin:22px 0}
.product-home-copy p{max-width:360px;font-size:14px;line-height:1.8;color:#66685f;margin:0 0 26px}
.product-home-copy>small{display:block;margin-top:14px;font-size:11px;color:#66685f}
.product-home-action .product-home-preview-entry{position:static;display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:50px;min-width:180px;padding:12px 20px;border:1px solid #242622;background:#242622;color:#fff;border-radius:3px;box-shadow:none;font-size:14px;margin:0}
.product-home-action .product-home-preview-entry svg{width:22px;height:22px}
.product-home-action .product-home-preview-entry>span:last-child{font-size:20px;margin-left:12px}
.product-home-action .product-home-preview-entry:hover{background:#3d4039}
.product-home-action .product-home-preview-entry:focus-visible,.product-home-inspect:focus-visible{outline:2px solid #242622;outline-offset:4px}
.product-home-preview{position:relative;min-height:450px;background:radial-gradient(ellipse at 50% 45%,#f7f7f3,#dedfd8);isolation:isolate}
.creative-site .product-home-preview>.product-model-shell{position:absolute;inset:0;min-height:0;width:auto;height:auto;background:transparent}
.creative-site .product-home-preview>.product-model-shell>model-viewer{width:100%;height:100%;min-height:0}
.product-home-preview>.product-model-shell>:is(.creative-light-scene,.creative-studio-action,[data-model-lighting]){display:none!important}
.product-home-preview>.product-model-shell>.creative-model-motion{bottom:48px;left:50%;transform:translateX(-50%);width:max-content}
.product-home-model-label{position:absolute;top:22px;left:26px;right:26px;display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:.04em;pointer-events:none}
.product-home-model-label>span{font-size:10px;border:1px solid #24262230;padding:5px 7px}
.product-home-inspect{position:absolute;bottom:20px;right:26px;display:flex;align-items:center;gap:26px;background:none;border:0;border-bottom:1px solid #24262255;padding:8px 0;color:#242622;font:500 12px var(--font);cursor:pointer}
.product-home-inspect>span{font-size:18px}
.product-home-retry{position:absolute;left:20px;right:20px;bottom:70px;background:#f8f8f2ed;padding:12px;font-size:12px;text-align:center}
.product-home-retry button{background:none;border:0;text-decoration:underline;font:inherit;color:inherit;padding:8px;cursor:pointer}
@media(max-width:820px){
 .product-home-banner{grid-template-columns:1fr;margin:32px 0 44px}
 .product-home-copy{padding:30px 24px}
 .product-home-copy h2{margin:16px 0;font-size:36px}
 .product-home-copy p{font-size:13px;margin-bottom:22px}
 .product-home-preview{min-height:400px}
 .product-home-model-label{left:20px;right:20px;top:18px}
 .product-home-inspect{right:20px;bottom:16px}
}

/* The navigation shadow starts below the mobile header, avoiding a clipped band. */
@media(max-width:820px){
 .product-photo-first .creative-product-mobile-nav .creative-product-browser{box-shadow:0 12px 18px -8px #0002}
}

.product-photo-first .product-photo-dialog :is(.creative-home-preview,[data-combination-entry],[data-photo-return-model]){background:linear-gradient(120deg,#242622,#3d4039);color:#fff;border:1px solid #54584e;border-radius:14px;box-shadow:0 8px 22px #24262220;min-height:46px;padding:8px 12px;gap:9px;font-weight:600}
.product-photo-first .product-photo-dialog :is(.creative-home-preview,[data-combination-entry],[data-photo-return-model])>svg{box-sizing:content-box;width:18px;height:18px;padding:5px;background:#ffffff12;border:1px solid #ffffff24;border-radius:7px}
.product-photo-first .product-photo-dialog :is(.creative-home-preview,[data-combination-entry],[data-photo-return-model]):hover{background:#3d4039}

.product-photo-first .product-photo-dialog :is(.creative-home-preview,[data-combination-entry],[data-photo-return-model])>span{color:inherit}

/* Photo-backed colors remain directly selectable in the compact mobile purchase bar. */
@media(max-width:820px){
 .product-photo-first .product-purchase [data-has-gallery-colors]{grid-column:1/-1;margin:0;padding:0;border-radius:0;background:none;box-shadow:none}
 .product-photo-first .product-purchase [data-has-gallery-colors] [data-sales-fields]{display:flex;flex-direction:column;height:auto;min-height:0;gap:0;overflow:visible}
 .product-photo-first .product-purchase [data-has-gallery-colors] .mk-option-group[data-gallery-color]{display:block!important;flex:auto;width:100%;height:auto;margin:0;padding:0}
 .product-photo-first .product-purchase [data-has-gallery-colors] .mk-option-group[data-gallery-color]>.mk-option-trigger,
 .product-photo-first .product-purchase [data-has-gallery-colors] .mk-option-selected{display:none!important}
 .product-photo-first .product-purchase [data-has-gallery-colors] .mk-option-rail{display:flex}
 .product-photo-first .product-purchase [data-has-gallery-colors] .mk-option-values{display:flex;flex-wrap:nowrap;height:44px;gap:4px;padding:0}
 .product-photo-first .product-purchase.is-floating:has([data-has-gallery-colors]){row-gap:3px}
 .product-photo-first .product-purchase.is-floating:has([data-has-gallery-colors]) .purchase-row{margin-top:3px}
}

/* Product video shares the gallery dialog and retains playback when portaled. */
.product-video{position:relative;width:100%;height:100%;min-height:220px;background:var(--page-background,#f5f4f0);overflow:hidden}
.product-video video{display:block;width:100%;height:100%;object-fit:contain;max-height:80svh}
.product-video-controls{position:absolute;right:16px;bottom:16px;display:flex;gap:8px;z-index:4}
.product-video-controls button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 14px;border:1px solid #ffffff50;border-radius:24px;background:#242721e6;color:white;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;backdrop-filter:blur(12px)}
.product-video-controls button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.product-video-loading,.product-video-error{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:12px 18px;border-radius:24px;background:#f5f4f0de;color:#242721;font-size:13px;display:flex;gap:10px;align-items:center;white-space:nowrap}
.product-video-loading i{width:16px;height:16px;border:2px solid #24272140;border-top-color:#242721;border-radius:50%;animation:product-video-spin 1s linear infinite}
.product-video [hidden]{display:none!important}.product-gallery-video-frame .product-video-expand{position:absolute;right:16px;top:16px;z-index:5;pointer-events:auto;cursor:pointer}
.photo-dialog-video{position:absolute;inset:0}.photo-dialog-video[hidden]{display:none}.photo-dialog-video .product-video{height:100%}.photo-dialog-video video{max-height:none;height:100%}
.photo-dialog-video .product-video-expand{display:none}.photo-dialog-video .product-video-controls{bottom:calc(var(--inspection-action-bottom,24px) + 64px);right:calc(var(--inspection-side,380px) + 16px)}
@media(max-width:820px){.photo-dialog-video .product-video-controls{right:16px}}
.gallery-thumb-video{position:relative}.gallery-thumb-video b{position:absolute;inset:0;display:grid;place-content:center;background:#0003;color:white;text-shadow:0 1px 3px #000}
@keyframes product-video-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.product-video-loading i{animation:none}}

/* Media controls share the site's glass surface in page and fullscreen views. */
.creative-site .product-video-controls button{width:44px;height:44px;padding:10px;min-width:44px;min-height:44px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(38,40,36,.32);color:#fff;box-shadow:0 6px 22px #0002;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);appearance:none;-webkit-appearance:none}
.product-video-controls svg{width:20px;height:20px;display:block;pointer-events:none}
.gallery-thumb-video b{inset:0;display:flex;align-items:center;justify-content:center;line-height:1;border-radius:inherit;pointer-events:none}
.gallery-thumb-video b svg{display:block;width:22px;height:22px;flex:none;filter:drop-shadow(0 1px 3px #0008)}
.product-photo-dialog:not([data-media="model"]) .photo-dialog-stage>.creative-selection-loader{display:none!important}
.product-photo-dialog .photo-inspection-actions[hidden]{display:none!important}
.product-photo-dialog[data-media="video"] .photo-dialog-video{inset:0;width:100%;height:100%}
.product-photo-dialog[data-media="video"] .photo-dialog-video .product-video{min-height:0;background:transparent}
.product-photo-dialog[data-media="video"] .photo-dialog-video video{object-fit:contain;max-height:none;width:100%;height:100%}
.photo-dialog-video .product-video-controls{position:fixed;left:106px;right:auto;bottom:var(--inspection-action-bottom,var(--inspection-dock-bottom,24px));z-index:12}
@media(min-width:1101px){.creative-site .photo-dialog-gallery{max-height:calc(100dvh - var(--inspection-header-bottom,82px) - 16px)}}
@media(max-width:820px){
 .photo-dialog-video .product-video-controls{left:12px;right:auto}
 .creative-site.product-photo-first .product-experience-mobile .product-3d-entry{min-height:44px;padding:8px 12px;gap:8px;font-size:12px}
 .creative-site .creative-product-recommendations header>div:last-child{align-self:flex-end;margin-left:auto}
}
.creative-site button{ -webkit-tap-highlight-color:transparent }
.creative-site [data-rail-prev],.creative-site [data-rail-next],.creative-site [data-rail-toggle],.creative-site [data-qty-dec],.creative-site [data-qty-inc],.creative-site [data-photo-open]{color:var(--ink);-webkit-appearance:none;appearance:none}
