/* =========================================================
   Product detail gallery (strip slider)
   Used by detail.html:
   .pd-gallery -> .pd-strip-wrap -> .pd-strip#pd-strip -> .pd-panel > img
   Controls: .pd-strip-controls with .pd-nav-btn buttons
   ========================================================= */

/* Only on product detail page: remove the centered frame effect */
.tryon-flow.pd-page{
    max-width: none;
    margin: 0;
    padding: 0;
  }
  
  /* Gallery container: pull to the left edge of the content area */
  .pd-gallery{
    margin-left: -16px;            /* cancels .pd-wrap padding */
    width: calc(100% + 16px);
    border: 0;
    background: transparent;
    padding: 0;
  }
  
  /* The strip wrapper */
  .pd-strip-wrap{
    width: 100%;
  }
  
  /* Horizontal slider */
  .pd-strip{
    display: flex;
    gap: 0;
  
    overflow-x: auto;
    overflow-y: hidden;
  
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  
    padding: 0 0 12px;
  
    position: relative;
    z-index: 1;
  
    /* keep it behaving like a left column (not full-page takeover) */
    max-width: 860px;
  }
  
  /* Focus ring only (no rounded corners) */
  .pd-strip:focus{
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.10);
  }
  
  /* Each image panel (same size) */
  .pd-panel{
    flex: 0 0 780px;
    scroll-snap-align: start;
  
    height: clamp(360px, 52vh, 540px);
    background: #ffffff;
  
    display: grid;
    place-items: center;
  
    overflow: hidden;
  
    border-left: 1px solid rgba(0,0,0,0.06);
    border-right: 1px solid rgba(0,0,0,0.06);
  
    border-radius: 0 !important;  /* square edges */
  }
  
  .pd-panel img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0 !important;  /* square edges */
  }
  
  /* Bigger premium scrollbar */
  .pd-strip::-webkit-scrollbar{
    height: 18px;
  }
  
  .pd-strip::-webkit-scrollbar-thumb{
    background: rgba(0,0,0,0.30);
    border-radius: 999px;
    border: 4px solid #ffffff;
  }
  
  .pd-strip::-webkit-scrollbar-track{
    background: transparent;
  }
  
  /* Firefox */
  .pd-strip{
    scrollbar-width: auto;
    scrollbar-color: rgba(0,0,0,0.30) transparent;
  }
  
  /* Bottom controls near scrollbar */
  .pd-strip-controls{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 6px 0 0;
  
    /* align with strip width */
    max-width: 860px;
  }
  
  /* Minimal arrows (NO circles) */
  .pd-nav-btn{
    border: 0;
    background: transparent;
    padding: 6px 6px;
    cursor: pointer;
  
    font-size: 20px;
    line-height: 1;
    color: rgba(0,0,0,0.65);
  
    box-shadow: none;
  }
  
  .pd-nav-btn:hover{
    color: rgba(0,0,0,0.90);
  }
  
  .pd-scrollbar-spacer{
    height: 1px;
  }
  
  /* Mobile */
  @media (max-width: 900px){
    .pd-gallery{
      margin-left: 0;
      width: 100%;
    }
  
    .pd-strip{
      max-width: 100%;
    }
  
    .pd-panel{
      flex: 0 0 92vw;
      height: clamp(320px, 46vh, 520px);
    }
  
    .pd-strip::-webkit-scrollbar{
      height: 14px;
    }
  
    .pd-strip-controls{
      max-width: 100%;
    }
  }
  
  /* RTL */
  html[dir="rtl"] .pd-strip{ direction: rtl; }
  html[dir="rtl"] .pd-panel{ direction: ltr; }

  /* Hide native scrollbar arrow buttons (Chrome/Edge/Safari on some systems) */
.pd-strip::-webkit-scrollbar-button{
    width: 0;
    height: 0;
    display: none;
  }

  .pd-strip{
    scroll-snap-type: x mandatory;   /* important */
    scroll-behavior: smooth;
  }
  
  .pd-panel{
    scroll-snap-align: start;
    scroll-snap-stop: always;        /* helps “step” feeling */
  }
  