/* IFT Product Viewer */
.iftavv,.iftavv *,.iftavv *::before,.iftavv *::after{box-sizing:border-box}
.iftavv{width:100%;max-width:1050px;margin:35px auto;font-family:Arial,Helvetica,sans-serif;color:#111;line-height:1.4}
.iftavv [hidden]{display:none!important}

/* header */
.iftavv .iftavv-header{text-align:center;padding:10px 15px 25px}
.iftavv .iftavv-brand{font-size:12px;letter-spacing:3px;font-weight:900;margin:0 0 10px;text-transform:uppercase}
.iftavv h2.iftavv-title{margin:0;padding:0;font-family:inherit;font-size:clamp(28px,5vw,48px);line-height:1.05;font-weight:900;letter-spacing:-1px;text-transform:uppercase;color:#111}
.iftavv .iftavv-help{margin:14px 0 0;font-size:11px;letter-spacing:1px;font-weight:700;color:#6b6b6b;text-transform:uppercase}

/* viewer */
.iftavv .iftavv-viewer{position:relative;width:100%;height:600px;overflow:hidden;background:#fff;border:1px solid #ddd;cursor:grab;
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
  touch-action:pan-y} /* vertical swipes still scroll the page; horizontal swipes rotate */
.iftavv .iftavv-viewer.zoomed{touch-action:none} /* zoomed in: drag pans the image */
.iftavv .iftavv-viewer.dragging{cursor:grabbing}
.iftavv .iftavv-viewer:focus-visible{outline:3px solid #1a73e8;outline-offset:-3px}
.iftavv .iftavv-img{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none;margin:0;padding:25px;object-fit:contain;
  transform-origin:center center;pointer-events:none;user-select:none;-webkit-user-drag:none;border:0;box-shadow:none;border-radius:0}
.iftavv .iftavv-counter{position:absolute;right:18px;top:18px;background:#111;color:#fff;padding:9px 13px;font-size:10px;letter-spacing:1.5px;font-weight:900;text-transform:uppercase}
.iftavv .iftavv-hint{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);background:rgba(0,0,0,.82);color:#fff;padding:10px 17px;
  font-size:10px;letter-spacing:1.5px;font-weight:900;white-space:nowrap;pointer-events:none;text-transform:uppercase;transition:opacity .3s ease}
.iftavv .iftavv-hint.is-hidden{opacity:0}

/* controls */
.iftavv .iftavv-controls{min-height:82px;display:flex;justify-content:space-between;align-items:stretch;background:#f5f5f5;border:1px solid #ddd;border-top:0}
.iftavv button.iftavv-btn{-webkit-appearance:none;appearance:none;margin:0;border:0;border-radius:0;box-shadow:none;text-shadow:none;text-transform:uppercase;
  font-family:inherit;font-weight:800;letter-spacing:normal;cursor:pointer;transition:background-color .15s,opacity .15s}
.iftavv button.iftavv-btn:focus-visible{outline:3px solid #1a73e8;outline-offset:2px}
.iftavv button.iftavv-btn:disabled{opacity:.3;cursor:not-allowed}

.iftavv button.iftavv-side{min-width:150px;padding:0 10px;background:transparent;color:#111;font-size:26px;line-height:1}
.iftavv button.iftavv-side:hover:not(:disabled),.iftavv button.iftavv-side:focus:not(:disabled){background:#e9e9e9;color:#111}
.iftavv button.iftavv-side span{font-size:11px;letter-spacing:1px;margin:0 7px}

.iftavv .iftavv-zoom{display:flex;align-items:center;gap:8px}
.iftavv button.iftavv-sq{width:50px;height:50px;padding:0;background:#111;color:#fff;font-size:27px;line-height:1}
.iftavv button.iftavv-sq:hover:not(:disabled),.iftavv button.iftavv-sq:focus:not(:disabled){background:#333;color:#fff}
.iftavv .iftavv-zoom div{width:95px;text-align:center}
.iftavv .iftavv-zoom small{display:block;font-size:8px;color:#8a8a8a;letter-spacing:1px;text-transform:uppercase}
.iftavv .iftavv-zoom strong{display:block;font-size:12px;letter-spacing:2px;text-transform:uppercase}

.iftavv .iftavv-bottom{text-align:center;padding:14px}
.iftavv button.iftavv-reset{background:#fff;color:#111;border:1px solid #aaa;padding:8px 18px;font-size:10px;letter-spacing:1.5px;font-weight:900}
.iftavv button.iftavv-reset:hover:not(:disabled),.iftavv button.iftavv-reset:focus:not(:disabled){background:#f0f0f0;color:#111}

/* specs + stock */
.iftavv .iftavv-specs{background:#111;color:#fff;padding:21px 15px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 25px;text-align:center;letter-spacing:1.5px;font-size:13px;text-transform:uppercase}
.iftavv .iftavv-specs strong{font-weight:800}
.iftavv .iftavv-stock{border:1px solid #ddd;border-top:0;text-align:center;padding:12px;font-size:10px;font-weight:900;letter-spacing:1.5px;text-transform:uppercase}

/* single image: no rotation UI */
.iftavv.iftavv--single .iftavv-side,.iftavv.iftavv--single .iftavv-counter,.iftavv.iftavv--single .iftavv-hint{display:none}
.iftavv.iftavv--single .iftavv-controls{justify-content:center}

@media (max-width:700px){
  .iftavv h2.iftavv-title{font-size:29px}
  .iftavv .iftavv-help{font-size:9px}
  .iftavv .iftavv-viewer{height:430px}
  .iftavv .iftavv-img{padding:8px}
  .iftavv button.iftavv-side{min-width:70px}
  .iftavv button.iftavv-side span{display:none}
  .iftavv button.iftavv-sq{width:44px;height:44px}
  .iftavv .iftavv-zoom div{width:60px}
  .iftavv .iftavv-zoom small{display:none}
  .iftavv .iftavv-specs{gap:8px 12px;font-size:10px;letter-spacing:.7px}
}
@media (prefers-reduced-motion:reduce){
  .iftavv .iftavv-hint,.iftavv button.iftavv-btn{transition:none}
}

/* ── compact mode: viewer embedded in the anvil buy panel ── */
.iftavv.iftavv--compact{margin:0;max-width:none}
.iftavv.iftavv--compact .iftavv-viewer{height:440px;border:0}
.iftavv.iftavv--compact .iftavv-controls{min-height:60px;border-left:0;border-right:0;border-bottom:0}
.iftavv.iftavv--compact button.iftavv-side{min-width:96px;font-size:22px}
.iftavv.iftavv--compact button.iftavv-sq{width:40px;height:40px;font-size:22px}
.iftavv.iftavv--compact .iftavv-zoom div{width:64px}
.iftavv.iftavv--compact .iftavv-zoom small{display:none}
.iftavv.iftavv--compact .iftavv-bottom{padding:0 0 12px;background:#f5f5f5}
.iftavv.iftavv--compact .iftavv-img{padding:18px}
@media (max-width:760px){
  .iftavv.iftavv--compact .iftavv-viewer{height:340px}
  .iftavv.iftavv--compact button.iftavv-side{min-width:64px}
  .iftavv.iftavv--compact .iftavv-img{padding:8px}
}
