/* ==========================================================
   zv-qa.css — the customer QA pass (2026-11)

   Loaded by the pages it touches (product page, home slider, try-on studio,
   cart), each with an is_file guard, so it is a stand-alone file: the shared
   style.css is not edited. Colours come from the theme variables.
   ========================================================== */

/* ---------- product page: the choices come first ---------- */
.pd-fixed-fabric{margin:.9rem 0 0;display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;}
.pd-fixed-fabric[hidden]{display:none;}
.pd-fixed-label{font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);}
.pd-fixed-chip{
  display:inline-block;padding:.35rem .85rem;border-radius:2rem;
  border:1.5px solid var(--violet);color:var(--ink);font-size:.85rem;font-weight:600;background:#fff;
}
/* Fabric that changes the price: the name and what it starts at, on two lines. */
.pd-opt-pill--priced{display:inline-flex;flex-direction:column;align-items:flex-start;gap:.05rem;padding:.5rem 1rem .5rem;text-align:left;line-height:1.25;}
.pd-opt-pill--priced small{font-size:.72rem;font-weight:500;opacity:.8;}
.pd-opt-note{margin-top:.45rem;font-size:.8rem;color:var(--muted);}
/* The first thing to choose is set apart from the rows below it. */
.pd-opts .pd-opt--fabric{padding-bottom:1.05rem;border-bottom:1px dashed rgba(31,27,46,.14);}

.pd-about{padding-top:1.15rem;border-top:1px solid rgba(31,27,46,.08);}
.pd-about[hidden]{display:none;}
.pd-about-title{font-family:'Sora',sans-serif;font-size:1rem;font-weight:700;margin:0 0 .45rem;}
.pd-about #pdDesc{max-width:60ch;line-height:1.65;}

/* Title, price and the choices share one left edge on every width. */
#productDetail .col-lg-6 > .pd-eyebrow-row,
#productDetail #pdName,
#productDetail .pd-price{text-align:left;}
#productDetail #pdName{line-height:1.25;overflow-wrap:anywhere;}

/* ---------- photo: the Zoom button ---------- */
button.pd-zoom-hint{
  border:0;cursor:pointer;font-family:inherit;
  min-height:2.4rem;padding:.4rem .95rem;
  right:.75rem;bottom:.75rem;
}
button.pd-zoom-hint:hover{background:#fff;color:var(--ink);}
button.pd-zoom-hint:focus-visible{outline:2px solid var(--violet);outline-offset:2px;}
@media (pointer:coarse){
  button.pd-zoom-hint{min-height:2.75rem;padding:.45rem 1.1rem;font-size:.82rem;font-weight:600;color:var(--ink);}
}
/* The photo itself never takes the finger from the page while the viewer is closed. */
.pd-gallery-main{touch-action:pan-y;}

/* ---------- full-screen viewer ---------- */
.pd-viewer{padding:0;}
.pd-viewer-stage{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  padding:3.75rem 1rem 4.75rem;overflow:hidden;touch-action:none;cursor:zoom-in;
}
.pd-viewer.is-zoomed .pd-viewer-stage{cursor:grab;}
.pd-viewer-stage img{
  max-width:100%;max-height:100%;object-fit:contain;border-radius:.5rem;
  touch-action:none;user-select:none;-webkit-user-select:none;transform-origin:center center;will-change:transform;
}
.pd-viewer-close{
  width:auto;height:2.75rem;border-radius:2rem;padding:0 1.05rem 0 .9rem;gap:.45rem;
  background:rgba(255,255,255,.95);color:#1b1730;font-size:.95rem;font-weight:600;z-index:2;
  box-shadow:0 4px 18px rgba(0,0,0,.35);
}
.pd-viewer-close:hover{background:#fff;}
.pd-viewer-close:focus-visible,.pd-viewer-tools button:focus-visible{outline:3px solid var(--violet);outline-offset:2px;}
.pd-viewer-close .bi{font-size:1rem;}
.pd-viewer-tools{
  position:absolute;left:50%;bottom:2.35rem;transform:translateX(-50%);z-index:2;
  display:flex;gap:.6rem;
}
.pd-viewer-tools button{
  width:3rem;height:3rem;border-radius:50%;border:0;cursor:pointer;
  background:rgba(255,255,255,.95);color:#1b1730;font-size:1.15rem;
  display:flex;align-items:center;justify-content:center;box-shadow:0 4px 18px rgba(0,0,0,.35);
}
.pd-viewer-tools button:disabled{opacity:.4;cursor:default;}
.pd-viewer-help{
  position:absolute;left:0;right:0;bottom:.7rem;margin:0;padding:0 1rem;z-index:2;
  text-align:center;font-size:.74rem;color:rgba(255,255,255,.72);pointer-events:none;
}
/* The hint says what the device can do: a finger zooms with + and - only; a mouse can also click the photo. */
.pd-help-touch{display:none;}
@media (pointer:coarse){
  .pd-help-touch{display:inline;}
  .pd-help-mouse{display:none;}
}

/* Photo n of N, and the previous / next buttons (product with more than one photo). */
.pd-viewer-count{
  position:absolute;top:1rem;left:1rem;z-index:2;height:2.75rem;padding:0 1rem;border-radius:2rem;
  display:flex;align-items:center;background:rgba(0,0,0,.5);color:#fff;font-size:.9rem;font-weight:600;
  font-variant-numeric:tabular-nums;pointer-events:none;
}
.pd-viewer-count[hidden],.pd-viewer-nav[hidden]{display:none;}
.pd-viewer-nav{
  position:absolute;top:50%;margin-top:-1.4rem;z-index:2;width:2.8rem;height:2.8rem;border-radius:50%;border:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-size:1.2rem;
  background:rgba(255,255,255,.88);color:#1b1730;box-shadow:0 4px 18px rgba(0,0,0,.35);
}
.pd-viewer-nav--prev{left:.6rem;}
.pd-viewer-nav--next{right:.6rem;}
.pd-viewer-nav:hover{background:#fff;}
.pd-viewer-nav:focus-visible{outline:3px solid var(--violet);outline-offset:2px;}
/* Waiting for the next photo to arrive: the old one stays, dimmed, with a spinner. */
.pd-viewer.is-loading .pd-viewer-stage img{opacity:.45;}
.pd-viewer.is-loading::after{
  content:"";position:absolute;top:50%;left:50%;width:2.2rem;height:2.2rem;margin:-1.1rem 0 0 -1.1rem;z-index:1;
  border:3px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;pointer-events:none;
  animation:pdvSpin .8s linear infinite;
}
@keyframes pdvSpin{to{transform:rotate(360deg);}}
/* The new photo slides in from the side it was asked for. */
@keyframes pdvInNext{from{opacity:0;transform:translateX(44px);}to{opacity:1;transform:none;}}
@keyframes pdvInPrev{from{opacity:0;transform:translateX(-44px);}to{opacity:1;transform:none;}}
.pd-viewer-stage img.is-slide-next{animation:pdvInNext .22s ease-out;}
.pd-viewer-stage img.is-slide-prev{animation:pdvInPrev .22s ease-out;}
@media (prefers-reduced-motion:reduce){
  .pd-viewer-stage img.is-slide-next,.pd-viewer-stage img.is-slide-prev{animation:none;}
  .pd-viewer.is-loading::after{animation-duration:2s;}
}

/* ==========================================================
   Home page: the slider and what sits under it
   ========================================================== */

/* A quicker change between slides (it was .55s on top of a 3 s wait; the wait is data-interval in partials/hero_slider.php). */
.hero-slider__slide{transition-duration:.4s;}

/* Boutique home: the buttons no longer sit ON the photo (they hid the hems of the sarees); they sit in a strip
   under it, as they already do on a phone. */
@media (min-width:768px){
  .hm-bt .bt-hero-copy{position:static;padding:1.15rem 1rem .1rem;}
  .hm-bt .bt-hero-copy a{box-shadow:none;}
  .hm-bt .bt-hero-copy .bt-btn--light{border-color:var(--primary-color);}
}
/* Phones and tablets already have "Shop Now" in the header (and it stays there while the page scrolls):
   the same button under the slider, on the same screen, was shown twice. */
@media (max-width:991.98px){
  .hm-bt .bt-hero-copy .bt-btn:not(.bt-btn--light){display:none;}
}

/* The note under the slider: delivery, payment and who to ask (partials/hero_note.php). */
.hero-note{background:#fff;border-top:1px solid rgba(31,27,46,.07);border-bottom:1px solid rgba(31,27,46,.07);}
.hero-note__list{
  list-style:none;margin:0;padding:.7rem 0;
  display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem 1.6rem;
  font-size:.86rem;line-height:1.4;color:var(--muted);
}
.hero-note__list li{display:inline-flex;align-items:center;gap:.5rem;}
.hero-note__list li > i{flex:none;color:var(--violet);font-size:1.05rem;}
.hero-note__list b{color:var(--ink);font-weight:600;}
.hero-note .pd-trust-link{padding:0;border:0;background:none;color:var(--violet);font-weight:600;text-decoration:underline;text-underline-offset:2px;font-size:inherit;}
.hero-note .pd-trust-link:hover{color:var(--violet-dark,var(--violet));}
@media (max-width:575.98px){
  .hero-note__list{justify-content:flex-start;gap:.3rem .9rem;padding:.6rem 0;font-size:.78rem;}
  .hero-note__list li{align-items:flex-start;}
  .hero-note__list li > i{margin-top:.1rem;font-size:.95rem;}
}

/* ==========================================================
   The AI Try-On example (home page): click the picture to pause / play
   ========================================================== */
.tp-demo-frame{cursor:pointer;}
.tp-demo.is-loading .tp-demo-frame,.tp-demo.is-failed .tp-demo-frame{cursor:default;}
/* A large play mark in the middle while it is paused, so it is plain how to start it again; a pause mark shows
   (faintly) when the pointer is over a playing picture. Never while it plays and nobody is pointing: the
   saree is not covered. */
.tp-demo-frame::after{
  content:"";position:absolute;left:50%;top:50%;z-index:2;width:4.4rem;height:4.4rem;border-radius:50%;
  transform:translate(-50%,-50%) scale(.88);opacity:0;pointer-events:none;
  background:rgba(31,27,46,.66) center/42% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z'/%3E%3C/svg%3E");
  transition:opacity .15s ease,transform .15s ease;
}
.tp-demo.is-paused .tp-demo-frame::after{opacity:1;transform:translate(-50%,-50%) scale(1);}
.tp-demo.is-playing .tp-demo-frame::after{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Crect x='6' y='5' width='4.2' height='14' rx='1'/%3E%3Crect x='13.8' y='5' width='4.2' height='14' rx='1'/%3E%3C/svg%3E");
}
@media (hover:hover) and (pointer:fine){
  .tp-demo.is-playing .tp-demo-frame:hover::after{opacity:.72;transform:translate(-50%,-50%) scale(1);}
}
@media (max-width:575.98px){.tp-demo-frame::after{width:3.6rem;height:3.6rem;}}
@media (prefers-reduced-motion:reduce){.tp-demo-frame::after{transition:none;}}

/* ---------- product page: the photo stays in view while the details are read (desktop) ---------- */
@media (min-width:992px){
  /* z-index: a sticky box is its own stacking layer, so without one the enlarged picture (.pd-zoom-panel, which
     opens over the product column) was painted UNDER the column's positioned parts that come later in the page
     (AI try-on, colour circles, the Standard / Custom size cards, the add-on box). 10 puts the whole gallery above
     them; the site header (1030) and every dialog stay above it. */
  #productDetail .pd-gallery{position:sticky;top:6.5rem;align-self:start;z-index:10;}
}
