/* BLUE LENS v185 — isolated product-image inspection layer. */
.bs-blue-lens-launch{
  position:absolute;
  right:16px;
  bottom:16px;
  z-index:4;
  min-height:48px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:999px;
  background:rgba(10,21,36,.92);
  color:#fff;
  box-shadow:0 12px 30px rgba(10,21,36,.2);
  font:700 13px/1 "IBM Plex Sans Arabic",Arial,sans-serif;
  cursor:pointer;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.bs-blue-lens-launch svg{width:19px;height:19px;flex:0 0 auto}
.bs-blue-lens-launch:hover,.bs-blue-lens-launch:focus-visible{background:#0a1524;outline:3px solid rgba(191,151,70,.45);outline-offset:2px}

body.bs-blue-lens-open{overflow:hidden!important;touch-action:none}
.bs-blue-lens{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  background:#f1eee8;
  color:#11100e;
  opacity:0;
  visibility:hidden;
  transform:translateZ(0);
  transition:opacity .18s ease,visibility .18s ease;
}
.bs-blue-lens.is-open{opacity:1;visibility:visible}
.bs-blue-lens__head{
  min-height:78px;
  padding:12px max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid #d8d2c8;
  background:#f8f6f2;
}
.bs-blue-lens__identity{min-width:0}
.bs-blue-lens__identity small{display:block;margin-bottom:3px;color:#9a7432;font:700 10px/1.2 Arial,sans-serif;letter-spacing:1.8px;direction:ltr;text-align:right}
.bs-blue-lens__identity strong{display:block;overflow:hidden;font-size:clamp(15px,2vw,21px);line-height:1.35;white-space:nowrap;text-overflow:ellipsis}
.bs-blue-lens__truth{display:flex;align-items:center;gap:7px;margin-top:3px;color:#6b665f;font-size:11px}
.bs-blue-lens__truth i{width:7px;height:7px;border-radius:50%;background:#9a7432}
.bs-blue-lens__close{
  min-width:132px;
  min-height:48px;
  padding:0 16px;
  border:1px solid #11100e;
  background:#11100e;
  color:#fff;
  font:700 13px/1 "IBM Plex Sans Arabic",Arial,sans-serif;
  cursor:pointer;
}
.bs-blue-lens__close:hover,.bs-blue-lens__close:focus-visible{background:#302d29;outline:3px solid rgba(191,151,70,.45);outline-offset:2px}
.bs-blue-lens__stage{
  position:relative;
  min-width:0;
  min-height:0;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(10,21,36,.035) 1px,transparent 1px),
    linear-gradient(rgba(10,21,36,.035) 1px,transparent 1px),
    #ebe7df;
  background-size:28px 28px;
  cursor:grab;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
}
.bs-blue-lens__stage.is-dragging{cursor:grabbing}
.bs-blue-lens__canvas{
  position:absolute;
  left:50%;
  top:50%;
  will-change:transform;
  transform:translate(-50%,-50%) translate3d(0,0,0) scale(1);
  transform-origin:center;
}
.bs-blue-lens__canvas img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
.bs-blue-lens__hint{
  position:absolute;
  left:50%;
  bottom:20px;
  z-index:2;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 32px);
  padding:9px 13px;
  border-radius:999px;
  background:rgba(10,21,36,.86);
  color:#fff;
  font-size:11px;
  pointer-events:none;
  transition:opacity .18s ease;
}
.bs-blue-lens.has-moved .bs-blue-lens__hint{opacity:0}
.bs-blue-lens__limit{
  position:absolute;
  top:16px;
  left:50%;
  z-index:3;
  transform:translate(-50%,-8px);
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  color:#11100e;
  box-shadow:0 8px 22px rgba(10,21,36,.14);
  font-size:11px;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
}
.bs-blue-lens__limit.is-visible{opacity:1;transform:translate(-50%,0)}
.bs-blue-lens__controls{
  min-height:84px;
  padding:12px max(18px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-top:1px solid #d8d2c8;
  background:#f8f6f2;
}
.bs-blue-lens__zoomset{display:flex;align-items:center;border:1px solid #bbb3a8;background:#fff}
.bs-blue-lens__zoomset button,.bs-blue-lens__reset{
  min-width:54px;
  min-height:48px;
  padding:0 14px;
  border:0;
  border-left:1px solid #d8d2c8;
  background:#fff;
  color:#11100e;
  font:700 13px/1 Arial,sans-serif;
  cursor:pointer;
}
.bs-blue-lens__zoomset button:first-child{border-left:0}
.bs-blue-lens__zoomset button.is-active{background:#0a1524;color:#fff}
.bs-blue-lens__zoomset button:disabled{color:#aaa49b;cursor:not-allowed}
.bs-blue-lens__zoomset button:focus-visible,.bs-blue-lens__reset:focus-visible{outline:3px solid rgba(191,151,70,.55);outline-offset:2px;position:relative;z-index:2}
.bs-blue-lens__reset{min-width:122px;border:1px solid #bbb3a8;font-family:"IBM Plex Sans Arabic",Arial,sans-serif}

@media (max-width:700px){
  .bs-blue-lens-launch{right:10px;bottom:10px;min-height:44px;padding:0 13px;font-size:11.5px}
  .bs-blue-lens__head{min-height:70px;padding-top:calc(9px + env(safe-area-inset-top));gap:10px}
  .bs-blue-lens__identity small{font-size:9px}
  .bs-blue-lens__identity strong{font-size:14px}
  .bs-blue-lens__truth{font-size:10px}
  .bs-blue-lens__close{min-width:52px;width:52px;padding:0;font-size:0}
  .bs-blue-lens__close:after{content:"×";font:400 28px/1 Arial,sans-serif}
  .bs-blue-lens__controls{min-height:78px;gap:7px;padding-left:10px;padding-right:10px}
  .bs-blue-lens__zoomset{flex:1;max-width:260px}
  .bs-blue-lens__zoomset button{flex:1;min-width:0;padding:0 10px}
  .bs-blue-lens__reset{min-width:96px;padding:0 9px;font-size:11px}
}

@media (prefers-reduced-motion:reduce){
  .bs-blue-lens,.bs-blue-lens__hint,.bs-blue-lens__limit{transition:none!important}
}
