/* Tamarindos Fashion Girls - Vista previa cute unicorn dark */
:root {
  --tfg-preview-bg: rgba(11, 8, 23, 0.84);
  --tfg-preview-card: linear-gradient(180deg, rgba(28,22,49,0.98), rgba(16,12,31,0.98));
  --tfg-preview-stroke: rgba(255,255,255,0.10);
  --tfg-preview-pink: #ff71c8;
  --tfg-preview-violet: #8e68ff;
  --tfg-preview-cyan: #6de6ff;
  --tfg-preview-gold: #ffd56b;
  --tfg-preview-text: #fff7fd;
  --tfg-preview-muted: rgba(255,255,255,0.72);
  --tfg-preview-shadow: 0 28px 80px rgba(0,0,0,.45);
}

.product-image img,
.modal-image img {
  cursor: zoom-in;
}

.product-image {
  position: relative;
}

.product-image::after {
  content: "Tap para ampliar";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(14, 10, 28, .62);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 800 .72rem/1 "Nunito", sans-serif;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.product-card:hover .product-image::after,
.product-card:focus-within .product-image::after,
.product-card .product-image.is-primed::after {
  opacity: 1;
  transform: translateY(0);
}

.tfg-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 28px);
  background:
    radial-gradient(circle at 18% 22%, rgba(255,113,200,.14), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(109,230,255,.16), transparent 24%),
    radial-gradient(circle at 72% 78%, rgba(142,104,255,.18), transparent 26%),
    var(--tfg-preview-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}
.tfg-preview-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
body.tfg-preview-open {
  overflow: hidden;
}

.tfg-preview-shell {
  position: relative;
  width: min(92vw, 860px);
  max-height: min(92dvh, 940px);
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  background: var(--tfg-preview-card);
  border: 1px solid var(--tfg-preview-stroke);
  box-shadow: var(--tfg-preview-shadow);
  overflow: hidden;
  transform: translateY(20px) scale(.98);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.tfg-preview-overlay.is-open .tfg-preview-shell {
  transform: translateY(0) scale(1);
}
.tfg-preview-shell::before,
.tfg-preview-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tfg-preview-shell::before {
  padding: 2px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,113,200,.95), rgba(142,104,255,.88), rgba(109,230,255,.92), rgba(255,213,107,.88));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.tfg-preview-shell::after {
  background:
    radial-gradient(circle at 8% 14%, rgba(255,255,255,.32) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 92% 13%, rgba(255,255,255,.25) 0 1.4px, transparent 1.4px 100%),
    radial-gradient(circle at 14% 86%, rgba(255,255,255,.22) 0 1.3px, transparent 1.3px 100%),
    radial-gradient(circle at 86% 88%, rgba(255,255,255,.24) 0 1.4px, transparent 1.4px 100%);
  opacity: .9;
}

.tfg-preview-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
}
.tfg-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 70px);
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--tfg-preview-text);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.tfg-preview-badge__icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tfg-preview-pink), var(--tfg-preview-violet) 55%, var(--tfg-preview-cyan));
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(142,104,255,.35);
}
.tfg-preview-badge strong {
  display: block;
  font: 800 .96rem/1.15 "Quicksand", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tfg-preview-badge small {
  display: block;
  margin-top: 2px;
  color: var(--tfg-preview-muted);
  font: 700 .72rem/1.1 "Nunito", sans-serif;
  letter-spacing: .02em;
}
.tfg-preview-close {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--tfg-preview-text);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 1.2rem;
  cursor: pointer;
}
.tfg-preview-close:hover {
  background: rgba(255,255,255,.16);
}

.tfg-preview-body {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 18px 14px;
}
.tfg-preview-image-wrap {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
    rgba(10, 8, 20, .9);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.tfg-preview-image-wrap::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px dashed rgba(255,213,107,.35);
  pointer-events: none;
}
.tfg-preview-image-wrap::after {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 90px;
  height: 56px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,213,107,.92), rgba(255,213,107,0) 58%),
    linear-gradient(180deg, rgba(255,113,200,.85), rgba(142,104,255,0));
  clip-path: polygon(50% 0%, 76% 64%, 50% 100%, 24% 64%);
  opacity: .88;
  filter: drop-shadow(0 10px 24px rgba(255,113,200,.28));
  pointer-events: none;
}
.tfg-preview-image {
  display: block;
  width: 100%;
  max-height: calc(92dvh - 180px);
  object-fit: contain;
  margin: 0 auto;
}
.tfg-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px 18px;
}
.tfg-preview-caption {
  min-width: 0;
}
.tfg-preview-caption strong {
  display: block;
  color: var(--tfg-preview-text);
  font: 800 1rem/1.2 "Quicksand", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tfg-preview-caption small {
  display: block;
  margin-top: 5px;
  color: var(--tfg-preview-muted);
  font: 700 .76rem/1.1 "Nunito", sans-serif;
}
.tfg-preview-tip {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--tfg-preview-text);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  font: 800 .76rem/1 "Nunito", sans-serif;
}

@media (max-width: 640px) {
  .product-image::after {
    opacity: 1;
    transform: translateY(0);
    font-size: .66rem;
    right: 8px;
    bottom: 8px;
    padding: 5px 8px;
  }
  .tfg-preview-overlay {
    padding: 10px;
  }
  .tfg-preview-shell {
    width: 100%;
    max-height: 92dvh;
    border-radius: 26px;
  }
  .tfg-preview-shell::before {
    border-radius: 26px;
  }
  .tfg-preview-header {
    padding: 13px 13px 10px;
    gap: 10px;
  }
  .tfg-preview-badge {
    max-width: calc(100% - 56px);
    padding: 8px 11px;
  }
  .tfg-preview-badge__icon {
    width: 30px;
    height: 30px;
    font-size: .92rem;
  }
  .tfg-preview-badge strong {
    font-size: .88rem;
  }
  .tfg-preview-badge small {
    font-size: .67rem;
  }
  .tfg-preview-close {
    width: 40px;
    height: 40px;
  }
  .tfg-preview-body {
    padding: 0 12px 12px;
  }
  .tfg-preview-image-wrap {
    border-radius: 22px;
  }
  .tfg-preview-image-wrap::before {
    inset: 8px;
    border-radius: 18px;
  }
  .tfg-preview-image-wrap::after {
    top: -20px;
    width: 76px;
    height: 48px;
  }
  .tfg-preview-image {
    max-height: calc(92dvh - 210px);
  }
  .tfg-preview-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 0 12px 14px;
  }
  .tfg-preview-caption strong {
    white-space: normal;
  }
  .tfg-preview-tip {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tfg-preview-overlay,
  .tfg-preview-shell,
  .product-image::after {
    transition: none !important;
  }
}
