/* ════════════════════════════════════════════════════════════════════════════════
   CARRUSEL ELEGANTE — Últimos Productos
   Bootstrap 5.3.8 + OwlCarousel 2
   Identidad: Azul #081F3A + Naranja #F57C00
   ════════════════════════════════════════════════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 1. CONTENEDOR DEL CARRUSEL */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.products-carousel-app-wrapper {
  position: relative;
  padding: 0 60px;
  margin: 40px 0;
}

.product-carousel {
  position: relative;
}

.product-carousel .owl-stage {
  display: flex;
  gap: 24px;
  justify-content: center;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 2. TARJETA DE PRODUCTO — Uniforme y elegante */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(8, 31, 58, 0.06);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(8, 31, 58, 0.15);
  border-color: var(--color-accent);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 3. IMAGEN DEL PRODUCTO — Proporciones uniformes */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-white) 100%);
  padding: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.product-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

/* Ojo flotante — solo aparece al hover */
.product-card__actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  z-index: 10;
}

.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateY(0);
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.action-btn:hover {
  background: var(--color-accent);
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(245, 124, 0, 0.4);
}

.action-btn--primary {
  background: var(--color-accent);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 4. CUERPO DE LA TARJETA — Información del producto */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.product-card__body {
  padding: 14px 14px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  flex-grow: 1;
  margin: 0;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__title a:hover {
  color: var(--color-accent);
}

.product-card__price {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-current {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1rem;
}

.price-old {
  font-size: 0.85rem;
  color: var(--color-gray-muted);
  text-decoration: line-through;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 5. NAVEGACIÓN — Flechas elegantes */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.product-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 -20px;
  z-index: 20;
  pointer-events: none;
}

.product-carousel .owl-nav > div {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(8, 31, 58, 0.1);
  outline: none;
  padding: 0;
}

.product-carousel .owl-nav > div:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(245, 124, 0, 0.3);
}

.product-carousel .owl-nav .owl-prev {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.product-carousel .owl-nav .owl-next {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.product-carousel .owl-nav > div:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-carousel .owl-nav > div:disabled:hover {
  background: var(--color-white);
  color: var(--color-accent);
  transform: scale(1);
  box-shadow: 0 4px 16px rgba(8, 31, 58, 0.1);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 6. PAGINACIÓN — Dots elegantes */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.product-carousel .owl-dots {
  text-align: center;
  padding: 24px 0 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.product-carousel .owl-dots .owl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-carousel .owl-dots .owl-dot:hover {
  background: var(--color-accent);
  transform: scale(1.15);
}

.product-carousel .owl-dots .owl-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(245, 124, 0, 0.3);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 7. RESPONSIVE */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 1024px) {
  .products-carousel-app-wrapper {
    padding: 0 50px;
  }

  .product-carousel .owl-nav .owl-prev {
    left: -45px;
  }

  .product-carousel .owl-nav .owl-next {
    right: -45px;
  }
}

@media (max-width: 768px) {
  .products-carousel-app-wrapper {
    padding: 0 40px;
  }

  .product-carousel .owl-nav > div {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .product-carousel .owl-nav .owl-prev {
    left: -35px;
  }

  .product-carousel .owl-nav .owl-next {
    right: -35px;
  }

  .product-card__body {
    padding: 12px 12px;
  }
}

@media (max-width: 576px) {
  .products-carousel-app-wrapper {
    padding: 0 35px;
  }

  .product-carousel .owl-nav > div {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-width: 1.5px;
  }

  .product-carousel .owl-nav .owl-prev {
    left: -30px;
  }

  .product-carousel .owl-nav .owl-next {
    right: -30px;
  }

  .product-card {
    border-radius: 8px;
  }

  .product-card__image {
    aspect-ratio: 1 / 1;
    padding: 12px;
  }
}
