/* Toung Un product image zoom v1.0 — drop-in styling */
[data-toung-zoom], .toung-zoom-target {
  cursor: zoom-in;
}
.toung-zoom-target:focus-visible {
  outline: 3px solid #d08c20;
  outline-offset: 4px;
}
.toung-zoom-target-wrap { position: relative; }
.toung-zoom-target-wrap::after {
  content: "⌕  TAP TO ZOOM";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border: 2px solid #2b2017;
  background: #fff9ed;
  color: #2b2017;
  box-shadow: 3px 3px 0 #c38b24;
  font: 800 11px/1.2 system-ui, sans-serif;
  pointer-events: none;
  letter-spacing: .055em;
  z-index: 2;
}
@media (hover:hover) {
  .toung-zoom-target-wrap::after { content: "⌕  CLICK TO ZOOM"; }
  .toung-zoom-target-wrap::after { opacity: .88; transition: opacity .18s; }
  .toung-zoom-target-wrap:hover::after { opacity: 1; }
}
.toung-zoom-overlay[hidden] { display: none !important; }
.toung-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  flex-direction: column;
  background: rgba(12, 10, 8, .97);
  color: white;
  isolation: isolate;
  overscroll-behavior: contain;
}
.toung-zoom-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right));
  background: rgba(18, 15, 13, .96);
  border-bottom: 1px solid rgba(255,255,255,.18);
  font: 700 14px/1.35 system-ui,sans-serif;
}
.toung-zoom-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.toung-zoom-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 4px;
  color: #fff;
  background: #30261e;
  cursor: pointer;
  font: 700 24px/1 system-ui,sans-serif;
  touch-action: manipulation;
}
.toung-zoom-btn:focus-visible { outline: 3px solid #e6b545; outline-offset: 2px; }
.toung-zoom-btn:hover { background: #5b4223; }
.toung-zoom-btn:disabled { opacity: .35; cursor: default; }
.toung-zoom-close { background: #c58a1f; color: #21170d; font-size: 28px; border-color: #e5ba69; }
.toung-zoom-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: zoom-in;
}
.toung-zoom-stage.is-zoomed { cursor: grab; }
.toung-zoom-stage.is-dragging { cursor: grabbing; }
.toung-zoom-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
}
.toung-zoom-info {
  min-height: 31px;
  padding: 6px 12px max(8px, env(safe-area-inset-bottom));
  color: #ddd2c5;
  background: rgba(18,15,13,.96);
  font: 12px/1.4 system-ui,sans-serif;
  text-align: center;
}
@media(max-width:640px) {
  .toung-zoom-bar { gap: 6px; }
  .toung-zoom-btn { width: 42px; height: 42px; }
  .toung-zoom-title { font-size: 12px; }
  .toung-zoom-target-wrap::after { font-size: 10px; right: 8px; bottom: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .toung-zoom-target-wrap::after { transition: none; }
}
