/* Imagen con Productos — estilos estáticos (las variables las inyecta la plantilla) */

.iwp-wrapper {
  display: grid;
  margin: 0 auto;
  align-items: start;
}

/* ---------- Columna imagen ---------- */
.iwp-image-col { position: relative; }

.iwp-image-wrap {
  position: relative;
  border-radius: var(--iwp-radius);
  overflow: hidden;
  background: #f0f0f0;
}

.iwp-hero-img,
.iwp-image-wrap .iwp-placeholder-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iwp-image-wrap .iwp-placeholder-svg {
  background: linear-gradient(135deg, #e9e9ee 25%, #f4f4f7 25%, #f4f4f7 50%, #e9e9ee 50%, #e9e9ee 75%, #f4f4f7 75%);
  background-size: 24px 24px;
}

/* ---------- Hotspots ---------- */
.iwp-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.iwp-dot-inner {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--iwp-accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .2s;
  position: relative;
}

.iwp-dot-inner::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--iwp-accent);
  opacity: .25;
  animation: iwp-pulse 2s ease-in-out infinite;
}

@keyframes iwp-pulse {
  0%, 100% { transform: scale(1); opacity: .25; }
  50%      { transform: scale(1.4); opacity: .1; }
}

.iwp-dot:hover .iwp-dot-inner { transform: scale(1.2); }

.iwp-dot-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

.iwp-dot:hover .iwp-dot-tooltip,
.iwp-dot:focus .iwp-dot-tooltip { opacity: 1; }

/* ---------- Columna productos ---------- */
.iwp-products-col { position: relative; }

.iwp-heading {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--iwp-text);
  margin: 0 0 16px;
}

.iwp-carousel-track {
  display: grid;
  grid-template-columns: repeat(var(--iwp-cols), 1fr);
  gap: 12px;
}

/* ---------- Tarjeta de producto ---------- */
.iwp-product-card {
  background: #fff;
  border-radius: var(--iwp-radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.iwp-product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.11);
  transform: translateY(-2px);
}

.iwp-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.iwp-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
  overflow: hidden;
}

.iwp-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 12px;
  box-sizing: border-box;
  transition: transform .3s;
}

.iwp-card-placeholder {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
}

.iwp-product-card:hover .iwp-card-img { transform: scale(1.04); }

.iwp-badge-discount,
.iwp-badge-sold {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  line-height: 1;
}

.iwp-badge-discount { background: var(--iwp-accent); color: #fff; }
.iwp-badge-sold { background: #888; color: #fff; }

.iwp-card-info { padding: 10px 12px 12px; flex: 1; }

.iwp-card-vendor {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #999;
  margin: 0 0 3px;
}

.iwp-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--iwp-text);
  margin: 0 0 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.iwp-card-prices { display: flex; align-items: baseline; gap: 6px; }

.iwp-price { font-size: 15px; font-weight: 800; color: var(--iwp-accent); }

.iwp-compare-price { font-size: 12px; color: #aaa; text-decoration: line-through; }

.iwp-delivery {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  margin: 6px 0 0;
}

.iwp-atc-form { padding: 0 12px 12px; }

.iwp-atc-btn {
  display: block;
  width: 100%;
  background: var(--iwp-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background .2s;
}

.iwp-atc-btn:hover { background: var(--iwp-accent2); color: #fff; }

/* ---------- Flechas ---------- */
.iwp-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .15s, border-color .15s;
}

.iwp-nav-btn.iwp-prev { left: -18px; }
.iwp-nav-btn.iwp-next { right: -18px; }

.iwp-nav-btn:hover { background: var(--iwp-accent); border-color: var(--iwp-accent); }
.iwp-nav-btn:hover svg { stroke: #fff; }

.iwp-empty { color: #aaa; font-size: 13px; padding: 20px 0; }
