/* DEMO Atelier — Product Detail Gallery & Mobile Save Scent
   Three concept views, no fabricated product photographs or transactions. */
body[data-page="product"] .product-gallery{min-width:0;}
body[data-page="product"] .product-art{
  isolation:isolate;
  background-color:#e9ddcc;
}
body[data-page="product"] .product-art.pux-is-photo{
  background:#e8dbc9;
}
body[data-page="product"] .product-art.pux-is-photo>.bottle,
body[data-page="product"] .product-art.pux-is-photo>.s05-art-texture,
body[data-page="product"] .product-art.pux-is-photo>.s05-stage-stamp{
  visibility:hidden;
}
body[data-page="product"] .product-art .pux-stage-photo{
  position:absolute;
  inset:0;
  z-index:3;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  background:#e9ddcc;
}
body[data-page="product"] .pux-stage-photo[hidden]{display:none!important;}
body[data-page="product"] .pux-image-index,
body[data-page="product"] .pux-kind{
  position:absolute;
  z-index:5;
  display:flex;
  align-items:center;
  min-height:28px;
  padding:6px 9px;
  background:#fff6eae9;
  color:#452a31;
  border:1px solid #7b615d38;
  font:700 11px/1.2 var(--sans);
  letter-spacing:.12em;
}
body[data-page="product"] .pux-image-index{top:15px;left:15px;}
body[data-page="product"] .pux-kind{
  left:15px;
  bottom:15px;
  max-width:calc(100% - 170px);
  font-size:10px;
  letter-spacing:.08em;
}
body[data-page="product"] .pux-expand{
  position:absolute;
  z-index:6;
  bottom:14px;
  right:14px;
  min-height:44px;
  min-width:124px;
  padding:8px 12px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  border:1px solid #7c6258a8;
  background:#fff7eced;
  color:#42272f;
  font:700 10px/1.2 var(--sans);
  letter-spacing:.075em;
  cursor:pointer;
}
body[data-page="product"] .pux-expand svg{width:17px;height:17px;flex:none;}
body[data-page="product"] .pux-expand:hover{background:#fff;color:#23131d;}
body[data-page="product"] .pux-expand:focus-visible,
body[data-page="product"] .pux-thumbnail:focus-visible,
body[data-page="product"] .pux-save-shortcut:focus-visible{
  outline:3px solid #b28a58;
  outline-offset:3px;
}
body[data-page="product"] .product-art>.s05-stage-stamp{display:none;}
body[data-page="product"] .s05-thumbs.pux-thumbnails{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:11px;
  align-items:stretch;
}
body[data-page="product"] .pux-thumbnail{
  position:relative;
  display:flex;
  overflow:hidden;
  justify-content:center;
  align-items:center;
  min-height:102px;
  width:100%;
  padding:0;
  background:#e8d9c8;
  color:#41262f;
  border:2px solid transparent;
  border-radius:0;
  cursor:pointer;
  transition:border-color .2s,filter .2s;
}
body[data-page="product"] .pux-thumbnail:hover{filter:brightness(1.03);}
body[data-page="product"] .pux-thumbnail.is-active{
  border-color:#5e3041;
  box-shadow:inset 0 0 0 2px #fff9ec;
}
body[data-page="product"] .pux-thumbnail .detail-shot{
  width:100%;
  height:120px;
  min-height:0;
  object-fit:cover;
  display:block;
}
body[data-page="product"] .pux-thumb-index{
  position:absolute;
  left:5px;
  top:5px;
  min-width:24px;
  padding:4px 5px;
  background:#fff5eae8;
  font:700 10px/1.1 var(--sans);
  letter-spacing:.08em;
}
body[data-page="product"] .pux-mini-bottle{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  height:88px;
  width:58px;
  filter:drop-shadow(3px 8px 6px #482b3550);
}
body[data-page="product"] .pux-mini-bottle i{
  display:block;
  height:22px;
  width:30px;
  border-radius:3px 3px 0 0;
  background:linear-gradient(90deg,#2d2227,#5f4651,#20151c);
}
body[data-page="product"] .pux-mini-bottle b{
  display:block;
  height:61px;
  width:52px;
  border:4px solid #f0d6b9;
  border-radius:10px;
  background:linear-gradient(90deg,#8c4e3b,#dab28e,#ad6f4d);
}
body[data-page="product"]:has(.bottle.fleur) .pux-mini-bottle b{
  border-radius:25px 25px 16px 16px;
  background:linear-gradient(90deg,#a96f71,#f2d1bf,#c28e8b);
}
body[data-page="product"]:has(.bottle.nocturne) .pux-mini-bottle b{
  border-radius:4px;
  background:linear-gradient(90deg,#513444,#8d5a60,#452836);
}
/* Lightbox is an actual accessible native dialog in the browser top layer. */
.pux-viewer{
  inset:0;
  width:min(940px,calc(100vw - 30px));
  max-width:none;
  height:min(840px,calc(100dvh - 30px));
  max-height:none;
  margin:auto;
  padding:0;
  border:1px solid #bda994;
  border-radius:0;
  color:#3d2630;
  background:#fbf4e7;
  overflow:hidden;
}
.pux-viewer[open]{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
}
.pux-viewer::backdrop{background:rgba(18,12,18,.86);backdrop-filter:blur(3px);}
.pux-viewer-top{
  min-height:81px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px clamp(16px,3vw,30px);
  gap:18px;
  border-bottom:1px solid #d9c8b3;
}
.pux-viewer-top>div{display:grid;gap:4px;}
.pux-viewer-top span{
  font:700 10px/1.3 var(--sans);
  letter-spacing:.12em;
  color:#845b45;
}
.pux-viewer-top strong{font:400 35px/1 var(--serif);}
.pux-viewer-close,.pux-viewer-prev,.pux-viewer-next{
  display:grid;
  place-items:center;
  background:transparent;
  border:1px solid #c3ae9b;
  color:#412630;
  cursor:pointer;
  min-width:48px;
  min-height:48px;
  font-size:21px;
}
.pux-viewer-close:hover,.pux-viewer-prev:hover,.pux-viewer-next:hover{
  background:#eaded1;
}
.pux-viewer-close:focus-visible,.pux-viewer-prev:focus-visible,.pux-viewer-next:focus-visible{
  outline:3px solid #a5794e;
  outline-offset:2px;
}
.pux-viewer-canvas{
  min-height:0;
  display:flex;
  overflow:hidden;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,#decbbc,#fff0df 57%,#ccb3a1);
}
.pux-viewer-canvas.pux-viewer-photo{background:#2a2127;}
.pux-viewer-content{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  min-height:0;
}
.pux-viewer-content>img{
  max-width:100%;
  max-height:100%;
  width:100%;
  height:100%;
  object-fit:contain;
}
.pux-viewer-illustration{
  width:100%;
  height:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  background:radial-gradient(ellipse,#f9e7d1 0%,#dfc6b3 76%);
}
.pux-viewer-illustration .bottle{
  position:relative!important;
  width:clamp(160px,27%,240px)!important;
  max-height:82%;
  filter:drop-shadow(12px 25px 12px #593c4944);
}
.pux-viewer-bottom{
  min-height:84px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 48px;
  align-items:center;
  gap:12px;
  padding:13px clamp(14px,3vw,28px);
  border-top:1px solid #d9c8b3;
}
.pux-viewer-description{
  text-align:center;
  color:#624a43;
  font:700 11px/1.5 var(--sans);
  letter-spacing:.12em;
}
.pux-mobile-save{display:none;}
@media(max-width:800px){
  body[data-page="product"] .product-page-main{
    display:flex;
    flex-direction:column;
  }
  body[data-page="product"] .product-gallery{display:contents;}
  body[data-page="product"] .product-art{order:1;}
  body[data-page="product"] .s05-thumbs.pux-thumbnails{order:2;}
  body[data-page="product"] .product-info{order:3;}
  body[data-page="product"] .pux-thumbnail{min-height:80px;}
  body[data-page="product"] .pux-thumbnail .detail-shot{height:82px;}
  .pux-mobile-save{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:80;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    min-height:76px;
    padding:10px max(15px,env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(15px,env(safe-area-inset-right));
    border-top:1px solid #cdb8a4;
    box-shadow:0 -4px 18px rgba(43,21,28,.09);
    background:#fbf4e7f7;
    backdrop-filter:blur(12px);
    transform:translateY(110%);
    visibility:hidden;
    pointer-events:none;
    opacity:0;
    transition:transform .22s,opacity .22s,visibility .22s;
  }
  .pux-mobile-save.is-visible{
    transform:translateY(0);
    visibility:visible;
    pointer-events:auto;
    opacity:1;
  }
  .pux-save-caption{display:grid;gap:4px;min-width:0;}
  .pux-save-caption strong{
    color:#3c2530;
    font:500 clamp(23px,5.7vw,31px)/1 var(--serif);
    white-space:nowrap;
    text-overflow:ellipsis;
    overflow:hidden;
  }
  .pux-save-caption span{
    color:#785d54;
    font:700 9px/1.35 var(--sans);
    letter-spacing:.07em;
  }
  .pux-save-shortcut{
    flex:none;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    gap:7px;
    min-width:132px;
    min-height:48px;
    padding:11px 15px;
    background:#381724;
    color:#fff4e7;
    font:700 11px/1.2 var(--sans);
    letter-spacing:.05em;
    border:1px solid #381724;
    cursor:pointer;
  }
  body:has(#overlay.is-open) .pux-mobile-save{visibility:hidden;pointer-events:none;opacity:0;}
  .pux-viewer{height:calc(100dvh - 20px);width:calc(100vw - 20px);}
  .pux-viewer-top{min-height:70px;padding:12px 15px;}
  .pux-viewer-top strong{font-size:30px;}
  .pux-viewer-top span{font-size:9px;}
  .pux-viewer-bottom{min-height:69px;}
  .pux-viewer-description{font-size:10px;letter-spacing:.08em;}
}
@media(max-width:540px){
  body[data-page="product"] .product-art{
    height:clamp(290px,89vw,345px);
    min-height:0;
  }
  body[data-page="product"] .pux-kind{
    bottom:9px;
    left:9px;
    max-width:calc(100% - 146px);
    font-size:9px;
    min-height:31px;
    line-height:1.2;
  }
  body[data-page="product"] .pux-expand{
    bottom:9px;
    right:9px;
    min-width:117px;
    min-height:44px;
    padding:8px;
    font-size:9px;
  }
  body[data-page="product"] .pux-image-index{top:9px;left:9px;}
  body[data-page="product"] .product-gallery .s05-thumbs.pux-thumbnails{gap:8px;}
  body[data-page="product"] .product-info{padding-top:12px;}
  body[data-page="product"] .pux-thumbnail{height:76px;min-height:76px;}
  body[data-page="product"] .pux-thumbnail .detail-shot{height:76px;}
  body[data-page="product"] .pux-mini-bottle{transform:scale(.78);}
  .pux-save-caption span{font-size:8.5px;}
}
@media(max-width:360px){
  .pux-save-shortcut{min-width:120px;padding:10px 11px;font-size:10px;}
  .pux-save-caption strong{font-size:22px;}
  .pux-save-caption span{font-size:8px;}
  body[data-page="product"] .pux-kind{max-width:calc(100% - 130px);}
}
@media(prefers-reduced-motion:reduce){
  .pux-mobile-save,body[data-page="product"] .pux-thumbnail{transition:none!important;}
}
/* Ensure display:contents gallery participates as full-width flex items on tablets. */
@media(max-width:800px){
 body[data-page="product"] .product-page-main .product-art,
 body[data-page="product"] .product-page-main .s05-thumbs.pux-thumbnails,
 body[data-page="product"] .product-page-main .product-info{
   width:100%;
   min-width:0;
   align-self:stretch;
 }
}

/* Readable functional labels at phone sizes. */
@media(max-width:540px){
 body[data-page="product"] .pux-kind{font-size:10.5px;letter-spacing:.02em;}
 body[data-page="product"] .pux-expand{font-size:10px;letter-spacing:.03em;}
 .pux-save-caption span{font-size:10px;letter-spacing:.01em;}
}
@media(max-width:360px){.pux-save-caption span{font-size:9.5px;}}
