.c-product-grid__list.c-ip-product-tabs__list.c-ip-product-tabs__list--4-per-row.c-ip-product-tabs__list--grid.c-product-grid__list--4-per-row {
  display: grid;
  grid-template-columns: repeat(4, 0fr);
  /* gap: 20px; */
  justify-content: center;
}

@media (max-width: 1024px) {
  .c-product-grid__list.c-ip-product-tabs__list.c-ip-product-tabs__list--4-per-row.c-ip-product-tabs__list--grid.c-product-grid__list--4-per-row {
    grid-template-columns: repeat(3, 0fr);
  }
}

@media (max-width: 768px) {
  .c-product-grid__list.c-ip-product-tabs__list.c-ip-product-tabs__list--4-per-row.c-ip-product-tabs__list--grid.c-product-grid__list--4-per-row {
    grid-template-columns: repeat(2, 0fr);
  }
}

@media (max-width: 480px) {
  .c-product-grid__list.c-ip-product-tabs__list.c-ip-product-tabs__list--4-per-row.c-ip-product-tabs__list--grid.c-product-grid__list--4-per-row {
    grid-template-columns: 0fr;
  }
}




/* === Tarjeta de producto tipo cápsula === */
.product-card {
  background: var(--color-white);
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 0 1 auto !important;
  width: 20em !important;
  max-width: 20em !important;
}


.product-card:hover {
  transform: translateY(-4px);
}

/* === Íconos === */
.product-card .eye-overlay,
.product-card .heart-icon {
  position: absolute;
  z-index: 2;
}

.product-card .eye-overlay {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: var(--color-principal);
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-card:hover .eye-overlay {
  opacity: 1;
  visibility: visible;
}

.product-card .heart-icon {
  top: 10px;
  right: 10px;
  font-size: 20px;
  padding: 4px 6px;
  cursor: pointer;
}

/* === Imagen === */
.product-card .product-image {
  width: 100%;
  height: 40vh;
}

.product-card .product-image img.principal-image {
  width: 47vh !important;
  object-fit: cover;
  height: 100%;
  max-width: 100%;
}

.grid-badges {
  max-width: 100%;
  width: 100%;
}

/* === Botón Agregar al carrito === */
.product-card .add-to-cart {
  background: var(--color-principal);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  padding: 20px;
  font-size: 14px;
  font-weight: 400;
  height: 34px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* === Selector de cantidad === */
.product-card .quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.product-card .qty-btn,
.product-card .qty-input {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.product-card .qty-btn {
  border: 1px solid var(--color-rosado-suave);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.product-card .qty-input {
  height: 38px;
  text-align: center;
  padding: 8px;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
  color: var(--color-principal);
}

/* === Selector de color y aroma === */
.product-card .color-dots {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.product-card .dot,
.product-card .aroma-dot {
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.product-card .dot {
  width: 15px;
  height: 15px;
  border: 1px solid #ccc;
}

.product-card .aroma-dot {
  width: 25px;
  height: 25px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-card .dot.selected,
.product-card .aroma-dot.selected {
  background-color: var(--color-principal, #8b2e4d);
  color: white;
  transform: scale(1.2);
  box-shadow: 0 2px 6px var(--color-acento);
}

.product-card .aroma-dot:hover {
  background-color: var(--color-secundario);
  transform: scale(1.5);
}

/* === Tooltips === */
.product-card .dot::after,
.product-card .aroma-dot::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-secundario);
  color: var(--color-white);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.product-card .dot:hover::after,
.product-card .aroma-dot:hover::after {
  opacity: 1;
  visibility: visible;
}

/* === Footer: nombre y precio === */
.product-card .product-footer {
  background: var(--color-mas-claro);
  padding: 18px;
  width: 100%;
  height: 100%;
}

.product-card .product-footer .product-name,
.product-card .product-footer .price {
  font-size: 11px;
  font-weight: bold;
  line-height: 1.2;
}

.product-card .product-footer .product-name {
  color: var(--color-oscuro);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-card .product-footer .price {
  color: var(--color-oscuro);
  margin: 0;
}

.product-card .product-footer .old-price,
.product-card .price del {
  color: var(--color-secundario);
  text-decoration: line-through;
  margin-right: 6px;
}

.product-card .price ins {
  color: var(--color-oscuro);
  font-weight: bold;
  text-decoration: none;
}

.product-card .price>.woocommerce-Price-amount {
  color: var(--color-oscuro);
  font-weight: bold;
  font-size: 11px;
}

/* === Etiquetas === */
.product-card .badges {
  display: flex;
  gap: 6px;
  position: absolute;
  top: -5px;
  left: -10px;
  z-index: 3;
}

.product-card .badge-product {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  color: var(--color-white);
  white-space: nowrap;
  line-height: 1;
}

.product-card .badge-product.nuevo {
  background: var(--color-principal);
}

.product-card .badge-product.destacado {
  background: var(--color-principal);
}

.product-card .badge-product.oferta {
  background: var(--color-principal);
}

.c-ip-woocommerce-carousel__list .owl-stage-outer .product-card .badge-product.oferta {
  background: var(--color-oscuro);
}

/* === Wishlist y carga === */
.product-card .c-product-grid__icon {
  color: var(--accent-color);
}

.product-card .c-wishlist__btn--added .c-wishlist__btn-icon {
  content: "\f11e" !important;
  color: #e4c1b1 !important;
}

.product-card .c-wishlist__btn--added .c-wishlist__btn-icon--hover {
  display: inline-block !important;
}

.product-card .c-wishlist__btn--added .c-wishlist__btn-icon-normal {
  display: none !important;
}

.product-card .h-loading:after,
div.wpcf7 span.ajax-loader:after {
  color: #e4c1b1;
}

/* Grilla: reservar espacio para variaciones vacías */
.product-card .variations {
  min-height: 35px;
}

/* Carruseles: ocultar variaciones vacías, sin espacio reservado */
.owl-carousel .variations:empty,
.owl-carousel .variations:not(:has(*)) {
  display: none;
  min-height: 0;
}

.aroma-tags {
  padding: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.aroma-dot img {
  max-width: 100%;
}

.eye-quick-view-product {
  width: 25px !important;
}



div.on-sale-carousel .product-footer {
  color: var(--color-white) !important;
  background-color: var(--color-principal);
}

div.on-sale-carousel .product-footer .product-name,
div.on-sale-carousel .product-footer .price ins span {
  color: var(--color-white) !important;
}

div.on-sale-carousel .product-footer .price del span {
  color: var(--color-secundario) !important;
}

.owl-carousel .owl-item .eye-overlay .eye-open,
.eye-overlay .eye-open {
  display: none;
}

.owl-carousel .owl-item .eye-overlay:hover .eye-open,
.eye-overlay:hover .eye-open {
  display: inline-block;
}

.owl-carousel .owl-item .eye-overlay .eye-close,
.eye-overlay .eye-close {
  display: inline-block;
}

.owl-carousel .owl-item .eye-overlay:hover .eye-close,
.eye-overlay:hover .eye-close {
  display: none;
}


.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img.hover-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1s ease;
}

div.grid-badges div.product-image:hover img {
  transform: scale(1.2);
}

/* ✅ Este hover solo aplica si hay .hover-image */
div.grid-badges div.product-image:hover img.hover-image {
  opacity: 1 !important;
}

/* ✅ Solo ocultar la principal si existe una hover-image */
.product-image:hover img.principal-image:has(+ img.hover-image),
.product-image:hover img.principal-image+img.hover-image {
  opacity: 0;
}

@media (max-width: 768px) {
  .product-card,
  .product-type-simple
  {
    /* background-color: #f9f7f9; */
    padding-bottom: 0px !important;
  }
}

.product-screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Producto Agotado === */
.product-card .badge-product.agotado {
  background: var(--color-rosado-suave);
  color: var(--color-principal);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.product-card.out-of-stock .product-image {
  opacity: 0.6;
}

.product-card .disabled-form .qty-btn:disabled,
.product-card .disabled-form .qty-input:disabled,
.product-card .disabled-form .add-to-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.product-card .disabled-form .add-to-cart:disabled {
  background: #999;
}

/* Carruseles: bloque normal, sin flex que distribuya espacio */
.owl-carousel .product-card {
  display: block !important;
  height: auto !important;
  align-self: flex-start !important;
  margin: 0 auto;
}

.owl-carousel .product-card .product-footer {
  margin-top: 0 !important;
  flex: none !important;
}

/* =============================================
   MAGIA ANALÍ — Product Card Enhancements
   ============================================= */

/* --- Card container: bordes suaves + borde gradiente + sombra rosa --- */
.product-card {
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 16px rgba(124, 54, 80, 0.07),
              0 0 0 1px rgba(124, 54, 80, 0.04);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(124, 54, 80, 0.14),
              0 0 0 1.5px rgba(124, 54, 80, 0.08),
              0 0 20px rgba(244, 162, 186, 0.08);
}

/* --- Imagen: esquinas + hover zoom + shimmer overlay --- */
.product-card .grid-badges {
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.product-card .product-image {
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep sutil al hover de la imagen */
.product-card .product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    rgba(255, 215, 0, 0.04),
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
  transition: none;
}

.product-card:hover .product-image::after {
  animation: analiImgShimmer 0.8s 0.1s ease-out forwards;
}

@keyframes analiImgShimmer {
  0% { left: -100%; }
  100% { left: 150%; }
}

.product-card .product-image img.principal-image {
  transition: opacity 0.8s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

div.grid-badges div.product-image:hover img {
  transform: scale(1.06);
}

/* --- Eye overlay: glass circle --- */
.product-card .eye-overlay {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
              box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(124, 54, 80, 0.1),
              inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.product-card:hover .eye-overlay {
  transform: translate(-50%, -50%) scale(1);
}

.product-card .eye-overlay:hover {
  box-shadow: 0 4px 20px rgba(124, 54, 80, 0.2),
              inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.45);
}

/* --- Wishlist heart: glow + pulso --- */
.product-card .heart-icon {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.product-card .heart-icon:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 0 6px rgba(244, 162, 186, 0.5));
}

.product-card .c-wishlist__btn--added .c-wishlist__btn-icon--hover {
  animation: analiHeartPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(228, 193, 177, 0.6));
}

@keyframes analiHeartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* --- Quantity + botón: grupo redondeado unificado --- */
.product-card .quantity-selector {
  padding: 0 12px;
  gap: 0;
}

.product-card .qty-btn {
  border: 1.5px solid rgba(124, 54, 80, 0.1);
  background: #fff;
  transition: all 0.2s ease;
  font-weight: 600;
  color: var(--color-principal);
}

.product-card .qty-btn:first-of-type {
  border-radius: 12px 0 0 12px;
}

.product-card .qty-btn:last-of-type {
  border-radius: 0;
}

.product-card .qty-btn:hover {
  background: rgba(124, 54, 80, 0.04);
  border-color: rgba(124, 54, 80, 0.2);
}

.product-card .qty-input {
  border: 1.5px solid rgba(124, 54, 80, 0.1);
  border-left: none;
  border-right: none;
  border-radius: 0;
  font-weight: 600;
  background: #fff;
}

.product-card .add-to-cart {
  background: linear-gradient(135deg, var(--color-principal) 0%, var(--color-oscuro, #5a2038) 100%);
  border-radius: 0 12px 12px 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card .add-to-cart::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: analiCartShimmer 4s 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes analiCartShimmer {
  0%, 100% { left: -100%; }
  40% { left: 150%; }
  41%, 100% { left: 150%; }
}

.product-card .add-to-cart:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(124, 54, 80, 0.3);
}

/* --- Footer: gradiente + línea decorativa + pill precio --- */
.product-card .product-footer {
  background: linear-gradient(180deg, var(--color-mas-claro) 0%, rgba(255, 255, 255, 0.6) 100%);
  padding: 14px 18px 16px;
  position: relative;
  overflow: hidden;
  height: auto !important;
  flex: 1 0 auto;
  border-radius: 0 0 18px 18px;
}

/* Línea decorativa gradiente arriba del footer */
.product-card .product-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(124, 54, 80, 0.15),
    rgba(255, 215, 0, 0.2),
    rgba(124, 54, 80, 0.15),
    transparent
  );
  border-radius: 2px;
}

.product-card .product-footer .product-name {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--color-oscuro);
  transition: color 0.25s ease;
}

.product-card:hover .product-footer .product-name {
  color: var(--color-principal);
}

/* Precio como pill elegante */
.product-card .product-footer .price {
  margin-top: 4px;
}

.product-card .product-footer .price,
.product-card .price > .woocommerce-Price-amount {
  font-size: 12px;
  color: var(--color-principal) !important;
  font-weight: 700;
}

.product-card .product-footer .price > span.price {
  display: inline-block;
  background: rgba(124, 54, 80, 0.06);
  padding: 2px 10px;
  border-radius: 8px;
}

/* --- Badges: más elegantes --- */
.product-card .badge-product {
  border-radius: 0 0 10px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
}

/* --- Variaciones color dots: borde sutil --- */
.product-card .dot {
  border: 1.5px solid rgba(124, 54, 80, 0.15);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card .dot:hover {
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(124, 54, 80, 0.15);
}

.product-card .dot.selected {
  border-color: var(--color-principal);
  box-shadow: 0 0 0 2px rgba(124, 54, 80, 0.15),
              0 2px 8px rgba(124, 54, 80, 0.2);
}

/* --- On-sale carousel: gradiente en footer --- */
div.on-sale-carousel .product-footer {
  background: linear-gradient(135deg, var(--color-principal) 0%, var(--color-oscuro, #5a2038) 100%) !important;
}

div.on-sale-carousel .product-footer::before {
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    rgba(255, 215, 0, 0.15),
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

/* --- Mobile tweaks --- */
@media (max-width: 768px) {
  .product-card {
    border-radius: 14px;
  }

  .product-card .grid-badges {
    border-radius: 14px 14px 0 0;
  }

  .product-card .product-footer {
    border-radius: 0 0 14px 14px;
  }

  .product-card .add-to-cart {
    font-size: 12px;
    padding: 16px 12px;
  }

  .product-card .quantity-selector {
    padding: 0 8px;
    width: fit-content;
    margin: 0 auto;
  }

  .product-card .product-footer {
    padding: 12px 14px 14px;
  }
}