/* Equal photo canvases preserve original relative package sizes; zoom is intentional. */
[data-image-zoom] { position: relative; cursor: zoom-in; }
[data-image-zoom]:focus-visible { outline: 3px solid #526A49; outline-offset: 4px; }
[data-image-zoom] > .image-zoom-affordance {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82,106,73,.3);
  border-radius: 50%;
  color: #3F4340;
  background: rgba(253,251,247,.94);
  font: 20px/1 system-ui, sans-serif;
  pointer-events: none;
}
[data-image-zoom] > .image-zoom-affordance[hidden] { display: none; }
[data-image-zoom] > .image-zoom-affordance svg { display: block; width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  [data-image-zoom].is-zoom-hover { overflow: hidden; }
  [data-image-zoom].is-zoom-hover img.image-zoom-target {
    transform: scale(1.8) !important;
    transform-origin: var(--image-zoom-x, 50%) var(--image-zoom-y, 50%) !important;
    transition: transform 160ms ease-out;
  }
}
/* Use the same full square canvas for every package. Do not enlarge short jars
   independently to compete with tall bottles. The supplied photo proportions
   are preserved, not claimed to be a calibrated real-world centimetre scale.
   The collection hero, cart and full-resolution viewer retain their own layout. */
:is(.tl-reference-card__media, .product-media, .tl-ritual__photo, .ritual-media, .tl-detail-photo, .detail-photo, .tl-story-photo, .story-media)[data-image-zoom] {
  position: relative;
  display: block;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  box-shadow: none;
}
:is(.tl-reference-card__media, .product-media, .tl-ritual__photo, .ritual-media, .tl-detail-photo, .detail-photo, .tl-story-photo, .story-media)[data-image-zoom] > img {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: none;
  box-shadow: none;
}
.product-card:has(> .product-media[data-image-zoom]),
.product-card:has(> .product-media[data-image-zoom]):hover { box-shadow: none; transform: none; }
.image-zoom-dialog:not([open]) { display: none; }
.image-zoom-dialog[open] {
  display: flex;
  flex-direction: column;
  width: min(1240px, calc(100vw - 28px));
  height: min(940px, calc(100dvh - 28px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 16px;
  border: 1px solid #DAD6CE;
  border-radius: 14px;
  color: #3F4340;
  background: #FDFBF7;
  box-shadow: 0 20px 80px rgba(0,0,0,.24);
  font-family: 'Cairo', system-ui, sans-serif;
}
html[lang="en"] .image-zoom-dialog { font-family: 'Nunito Sans', system-ui, sans-serif; }
.image-zoom-dialog::backdrop { background: rgba(24,28,24,.72); }
.image-zoom-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; }
.image-zoom-title { margin: 0; font: inherit; font-size: 19px; font-weight: 700; line-height: 1.5; }
.image-zoom-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-block: 8px; flex-shrink: 0; }
.image-zoom-dialog button, .image-zoom-full-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #C5CABF;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: #3F4340;
  background: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
}
.image-zoom-dialog button:disabled { opacity: .45; cursor: default; }
.image-zoom-dialog :focus-visible { outline: 3px solid #526A49; outline-offset: 3px; }
.image-zoom-close { flex-shrink: 0; }
.image-zoom-level { min-width: 64px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; direction: ltr; }
.image-zoom-instructions { margin: 0 0 10px; font-size: 14px; line-height: 1.7; color: #5D625D; text-align: center; flex-shrink: 0; }
.image-zoom-viewport {
  position: relative;
  flex: 1 1 0;
  min-height: 120px;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  direction: ltr;
  border: 1px solid #E3DFD6;
  border-radius: 8px;
  background: #F4F1EB;
}
.image-zoom-viewport[data-zoomed="true"] { cursor: grab; }
.image-zoom-viewport.is-dragging { cursor: grabbing; user-select: none; }
.image-zoom-stage { display: grid; place-items: center; min-width: 100%; min-height: 100%; }
.image-zoom-stage img.image-zoom-image {
  display: block;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: none;
  filter: none;
  user-select: none;
  -webkit-user-drag: none;
}
.image-zoom-dialog [hidden] { display: none !important; }
.image-zoom-caption { margin: 10px 0 0; font-size: 14px; line-height: 1.6; text-align: center; flex-shrink: 0; }
.image-zoom-status { margin: 8px 0 0; font-size: 14px; line-height: 1.6; text-align: center; flex-shrink: 0; }
.image-zoom-status:empty { display: none; }
.image-zoom-recovery { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; flex-shrink: 0; }
@media (max-width: 600px) {
  .image-zoom-dialog[open] { width: calc(100vw - 12px); height: calc(100dvh - 12px); padding: 10px; border-radius: 10px; }
  .image-zoom-title { font-size: 17px; }
  .image-zoom-instructions { font-size: 14px; }
  .image-zoom-toolbar { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-image-zoom].is-zoom-hover img.image-zoom-target, .image-zoom-dialog, .image-zoom-dialog * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
