/* ZARIAH Studio — Product Detail Experience v1
   Scoped to product detail routes only. Keeps existing markup, product data,
   cart hooks, desktop navigation and checkout integrations intact. */
:root{--pd-paper:#fbf7f1;--pd-ink:#292522;--pd-muted:#81776f;--pd-gold:#c5a06a;--pd-line:#e8e0d7}
body:has(.product-layout){background:var(--pd-paper)}
body:has(.product-layout) .ann{padding:9px 12px;font-size:9px;letter-spacing:.2em}
body:has(.product-layout) header{min-height:88px}
body:has(.product-layout) main{max-width:1320px;padding-left:clamp(18px,4vw,58px);padding-right:clamp(18px,4vw,58px)}
body:has(.product-layout) .breadcrumb{padding:23px 0 18px;font-size:9px;letter-spacing:.14em}
body:has(.product-layout) .product-layout{grid-template-columns:minmax(0,1.08fr) minmax(340px,.82fr);gap:clamp(38px,6vw,92px);align-items:start;padding:8px 0 76px}
body:has(.product-layout) .gallery{min-width:0;position:relative}
body:has(.product-layout) .main-image{background:#f2e9e1;overflow:hidden;cursor:zoom-in}
body:has(.product-layout) .main-image>img{width:100%;aspect-ratio:4/5;max-height:780px;object-fit:contain;background:#f2e9e1;transition:opacity .22s ease}
body:has(.product-layout) .badge{top:18px;left:18px;padding:9px 13px;background:rgba(251,247,241,.94);color:#5c5148;font-size:9px;letter-spacing:.16em}
body:has(.product-layout) .thumbs{gap:10px;margin-top:13px;padding:2px 1px 8px;scrollbar-width:thin;scrollbar-color:#c5a06a transparent}
body:has(.product-layout) .thumb{flex:0 0 clamp(62px,8vw,94px);border:1px solid transparent;background:#f2e9e1;transition:border-color .2s ease,opacity .2s ease;overflow:hidden}
body:has(.product-layout) .thumb img{width:100%;aspect-ratio:1;object-fit:cover}
body:has(.product-layout) .thumb.is-active{border-color:var(--pd-gold);box-shadow:0 0 0 1px var(--pd-gold)}
body:has(.product-layout) .product-copy{position:sticky;top:24px;padding:24px 0 0;max-width:510px}
body:has(.product-layout) .eyebrow{font-size:9px;letter-spacing:.22em;color:#9c805c}
body:has(.product-layout) h1{font-size:clamp(42px,4.2vw,62px);line-height:.98;letter-spacing:-.025em;margin:16px 0 12px}
body:has(.product-layout) .price{font:400 20px/1.2 Inter,sans-serif;margin:18px 0 20px;color:var(--pd-ink)}
body:has(.product-layout) .description{font-size:13px;line-height:1.9;color:#756b63;max-width:440px}
body:has(.product-layout) .availability{display:flex;align-items:center;gap:8px;margin:22px 0;padding:12px 0;border-top:1px solid var(--pd-line);border-bottom:1px solid var(--pd-line);font-size:10px;letter-spacing:.06em}
body:has(.product-layout) .availability:not(.sold):before{content:"";width:6px;height:6px;border-radius:50%;background:#71866b;display:inline-block}
body:has(.product-layout) .specs{margin-top:24px;border-top:0}
body:has(.product-layout) .specs div{padding:13px 0;border-bottom:1px solid var(--pd-line);font-size:10px;line-height:1.5}
body:has(.product-layout) .specs span{letter-spacing:.1em;text-transform:uppercase;color:#91857b}
body:has(.product-layout) .specs strong{font-size:11px;color:#443c36}
body:has(.product-layout) .order-btn{min-height:54px;display:flex;align-items:center;justify-content:center;margin-top:25px;padding:16px 20px;background:var(--pd-ink);border:1px solid var(--pd-ink);color:#fff;font-size:10px;letter-spacing:.18em;transition:background .2s ease,color .2s ease}
body:has(.product-layout) .order-btn:hover{background:transparent;color:var(--pd-ink)}
body:has(.product-layout) .z-wa-enquire{min-height:48px;border-color:#d8cabb!important;color:#51473f!important;font-size:9px}
body:has(.product-layout) .note{font-size:10px;line-height:1.8;color:#8a7f75}
body:has(.product-layout) .back-link{margin-top:26px;padding-bottom:5px;border-bottom:1px solid #c5a06a;font-size:9px;letter-spacing:.14em}
body:has(.product-layout) .more{padding:52px 0;border-top:1px solid var(--pd-line)}
body:has(.product-layout) .more h2{font-size:42px}
body:has(.product-layout) footer{line-height:1.8;color:#91857b}

/* Image-only zoom viewer. No other page element receives zoom behavior. */
.pd-zoom{position:fixed;inset:0;z-index:1000000;display:grid;grid-template-rows:auto 1fr auto;background:rgba(25,22,20,.97);color:#fff;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}
.pd-zoom.is-open{opacity:1;visibility:visible}
.pd-zoom-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;min-height:60px}
.pd-zoom-label{font:9px Inter,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#d9c9b6}
.pd-zoom-actions{display:flex;align-items:center;gap:8px}
.pd-zoom button{appearance:none;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.06);color:#fff;min-width:38px;height:38px;padding:0 10px;font:400 17px Inter,sans-serif;cursor:pointer}
.pd-zoom button:focus-visible{outline:2px solid #c5a06a;outline-offset:3px}
.pd-zoom-close{font-size:23px!important}
.pd-zoom-stage{position:relative;min-height:0;display:grid;place-items:center;overflow:hidden;touch-action:none}
.pd-zoom-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform:translate3d(0,0,0) scale(1);transform-origin:center;will-change:transform;user-select:none;-webkit-user-drag:none;touch-action:none}
.pd-zoom-hint{text-align:center;padding:12px 18px 18px;color:#c8b9a9;font:9px Inter,sans-serif;letter-spacing:.12em}
body.pd-zoom-lock{overflow:hidden!important;overscroll-behavior:none!important}
@media(max-width:760px){
 body:has(.product-layout) .ann{padding:8px 10px;font-size:8px}
 body:has(.product-layout) header{height:auto;min-height:0;padding:17px 14px 12px;display:flex;flex-direction:column;gap:12px}
 body:has(.product-layout) .brand{font-size:32px;line-height:.95}
 body:has(.product-layout) .brand small{margin-top:5px;font-size:8px}
 body:has(.product-layout) nav{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;margin:0;padding:10px 1px 8px;overflow-x:auto;white-space:nowrap;scrollbar-width:none;border-top:1px solid var(--pd-line)}
 body:has(.product-layout) nav::-webkit-scrollbar{display:none}
 body:has(.product-layout) nav a{flex:0 0 auto;padding:0 13px;font-size:8px;letter-spacing:.12em}
 body:has(.product-layout) nav a:first-child{padding-left:2px}
 body:has(.product-layout) main{padding:0 14px 42px}
 body:has(.product-layout) .breadcrumb{padding:17px 0 14px;font-size:8px;line-height:1.7;letter-spacing:.1em}
 body:has(.product-layout) .product-layout{display:flex;flex-direction:column;gap:0;padding:0 0 48px}
 body:has(.product-layout) .gallery{width:100%}
 body:has(.product-layout) .main-image{width:100%;aspect-ratio:4/5;max-height:66svh;display:grid;place-items:center}
 body:has(.product-layout) .main-image>img{width:100%;height:100%;max-height:66svh;aspect-ratio:auto;object-fit:contain}
 body:has(.product-layout) .badge{top:12px;left:12px;padding:7px 10px;font-size:8px}
 body:has(.product-layout) .thumbs{gap:8px;margin-top:9px;padding-bottom:7px}
 body:has(.product-layout) .thumb{flex-basis:clamp(58px,16vw,76px)}
 body:has(.product-layout) .product-copy{position:static;width:100%;max-width:none;padding:28px 2px 0}
 body:has(.product-layout) .eyebrow{font-size:8px;letter-spacing:.2em}
 body:has(.product-layout) h1{font-size:clamp(38px,10vw,48px);line-height:1.02;margin:12px 0 8px}
 body:has(.product-layout) .price{font-size:18px;margin:13px 0 15px}
 body:has(.product-layout) .description{font-size:12px;line-height:1.85}
 body:has(.product-layout) .availability{margin:18px 0;padding:11px 0;font-size:9px}
 body:has(.product-layout) .specs{margin-top:20px}
 body:has(.product-layout) .specs div{padding:12px 0;font-size:9px}
 body:has(.product-layout) .specs strong{max-width:60%;font-size:10px}
 body:has(.product-layout) .order-btn{min-height:52px;margin-top:22px;font-size:9px}
 body:has(.product-layout) .note{font-size:9px}
 body:has(.product-layout) .more{padding:38px 0}
 body:has(.product-layout) .more h2{font-size:34px}
 .pd-zoom-bar{padding:10px 12px;min-height:54px}
 .pd-zoom-actions{gap:6px}
 .pd-zoom button{min-width:36px;height:36px}
 .pd-zoom-image{max-width:100vw;max-height:calc(100svh - 112px)}
}
@media(prefers-reduced-motion:reduce){.pd-zoom,body:has(.product-layout) .order-btn{transition:none}}

/* Product page viewport stability + restrained editorial discovery panel */
html:has(body .product-layout){width:100%;max-width:100%;overflow-x:clip}
body:has(.product-layout){width:100%;max-width:100%;overflow-x:clip}
body:has(.product-layout) main{width:100%;min-width:0}
body:has(.product-layout) .gallery,body:has(.product-layout) .product-copy{min-width:0}
body:has(.product-layout) .pd-related{padding:34px 0 48px;border-top:1px solid var(--pd-line)}
body:has(.product-layout) .pd-related>h2{font:400 clamp(32px,4vw,44px)/1.05 'Cormorant Garamond',serif;text-align:center;margin:0 0 28px;color:var(--pd-ink)}
body:has(.product-layout) .pd-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
body:has(.product-layout) .pd-related-card{min-width:0}
body:has(.product-layout) .pd-related-image{display:block;overflow:hidden;background:#f2e9e1}
body:has(.product-layout) .pd-related-image img{display:block;width:100%;aspect-ratio:4/5;object-fit:contain;background:#f2e9e1;transition:transform .4s ease}
body:has(.product-layout) .pd-related-image:hover img{transform:scale(1.025)}
body:has(.product-layout) .pd-related-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:7px;padding:12px 0 10px}
body:has(.product-layout) .pd-related-meta h3{font:400 19px/1.12 'Cormorant Garamond',serif;margin:0}
body:has(.product-layout) .pd-related-meta strong{font:400 10px Inter,sans-serif;white-space:nowrap;padding-top:3px}
body:has(.product-layout) .pd-related-link{display:inline-flex;padding:0 0 5px;border-bottom:1px solid #c5a06a;font:400 8px Inter,sans-serif;letter-spacing:.14em;color:#74675c}
body:has(.product-layout) .pd-discover-more{padding:28px 0 70px!important;border:0!important;text-align:center}
body:has(.product-layout) .pd-discover-kicker{display:block;font:500 9px Inter,sans-serif;letter-spacing:.24em;color:#a18460;margin-bottom:10px}
body:has(.product-layout) .pd-discover-title{font:400 clamp(34px,5vw,54px)/1.05 'Cormorant Garamond',serif;color:var(--pd-ink);margin:0 0 18px}
body:has(.product-layout) .pd-discover-cta{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:48px;padding:0 26px;border:1px solid #b99668;color:#51463b;background:transparent;font:500 9px Inter,sans-serif;letter-spacing:.18em;transition:background .2s ease,color .2s ease,border-color .2s ease}
body:has(.product-layout) .pd-discover-cta span{font:400 16px Inter,sans-serif;color:#a18460}
body:has(.product-layout) .pd-discover-cta:hover{background:var(--pd-ink);border-color:var(--pd-ink);color:#fff}
body:has(.product-layout) .pd-discover-cta:hover span{color:#e1c18f}
@media(max-width:760px){
 body:has(.product-layout) .pd-related{padding:26px 0 30px}
 body:has(.product-layout) .pd-related>h2{font-size:32px;margin-bottom:20px}
 body:has(.product-layout) .pd-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
 body:has(.product-layout) .pd-related-meta{display:flex;gap:5px;padding:9px 0 8px}
 body:has(.product-layout) .pd-related-meta h3{font-size:18px;line-height:1.08;overflow-wrap:anywhere}
 body:has(.product-layout) .pd-related-meta strong{font-size:9px}
 body:has(.product-layout) .pd-related-link{font-size:7px}
 body:has(.product-layout) .pd-discover-more{padding:24px 0 48px!important}
 body:has(.product-layout) .pd-discover-title{font-size:38px;margin-bottom:15px}
 body:has(.product-layout) .pd-discover-cta{min-height:46px;padding:0 22px;font-size:8px}
}
@media(prefers-reduced-motion:reduce){body:has(.product-layout) .pd-related-image img,body:has(.product-layout) .pd-discover-cta{transition:none}}


/* Product detail Buy Now CTA: directly beneath Add to Bag */
body:has(.product-layout) .z-product-buy-now{
  display:block!important;width:100%!important;min-height:54px!important;
  margin:10px 0 0!important;padding:16px 20px!important;
  border:1px solid #B99768!important;border-radius:0!important;
  background:#B99768!important;color:#fff!important;
  font:500 10px Inter,sans-serif!important;letter-spacing:.15em!important;
  text-align:center!important;text-transform:uppercase!important;cursor:pointer!important;
}
body:has(.product-layout) .z-product-buy-now:hover{background:#A98254!important;border-color:#A98254!important}
body:has(.product-layout) .z-product-buy-now:focus-visible{outline:2px solid #292522!important;outline-offset:3px!important}
