/* ===================== COUTY — Lightbox / Visualizador de Imagens ===================== */

/* Indica que a imagem é clicável para ampliar */
.card-img,
.card-img-wrap {
  cursor: zoom-in;
}

.card-img img,
.card-img-wrap img.card-img {
  cursor: zoom-in;
}

/* Ícone de lupa que aparece ao passar o mouse sobre a imagem do produto */
.card-img::after,
.card-img-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 16, 12, 0.55);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/><line x1='11' y1='8' x2='11' y2='14'/><line x1='8' y1='11' x2='14' y2='11'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.card-img:hover::after,
.card-img-wrap:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* ===================== Overlay principal ===================== */
.cty-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 6, 0.94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
  touch-action: none;
}

.cty-lightbox.is-open {
  display: flex;
  opacity: 1;
}

.cty-lb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cty-lb-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  transition: transform 0.15s ease-out, opacity 0.2s ease;
  transform-origin: center center;
  cursor: zoom-in;
  opacity: 0;
}

.cty-lb-img.is-loaded {
  opacity: 1;
}

.cty-lb-img.is-zoomed {
  cursor: grab;
}

.cty-lb-img.is-dragging {
  cursor: grabbing;
  transition: none;
}

/* ===================== Controles ===================== */
.cty-lb-close,
.cty-lb-prev,
.cty-lb-next,
.cty-lb-zoomin,
.cty-lb-zoomout {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #F7F1E8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.cty-lb-close:hover,
.cty-lb-prev:hover,
.cty-lb-next:hover,
.cty-lb-zoomin:hover,
.cty-lb-zoomout:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cty-lb-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  font-size: 26px;
  line-height: 1;
}

.cty-lb-prev,
.cty-lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.cty-lb-prev { left: 14px; }
.cty-lb-next { right: 14px; }

.cty-lb-zoomcontrols {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.cty-lb-zoomin,
.cty-lb-zoomout {
  position: static;
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.cty-lb-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #E8D5B0;
  pointer-events: none;
  text-align: center;
  padding: 0 16px;
}

.cty-lb-caption {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #F7F1E8;
}

.cty-lb-counter {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #C4762A;
  letter-spacing: 0.05em;
}

.cty-lb-hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(232, 213, 176, 0.6);
  margin-top: 2px;
}

@media (max-width: 640px) {
  .cty-lb-prev, .cty-lb-next { width: 40px; height: 40px; }
  .cty-lb-close { width: 38px; height: 38px; font-size: 22px; }
  .cty-lb-hint { display: none; }
  .cty-lb-img { max-width: 94vw; max-height: 76vh; }
}
