/* Product Gallery Override CSS - Easy to remove */

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Medium.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #111; /* fondo oscuro elegante */
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.product-info h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.product-info p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Override existing styles for gallery */
.product-gallery .product-card {
  height: auto;
  min-height: 350px;
}

.product-gallery .product-card img {
  height: 250px;
  object-fit: cover;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .product-gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }
}

/* Promotion & New Style Badges for Carousel */
.carousel-item {
  position: relative;
}

.carousel-product-img,
.carousel-item img,
.carousel-item video {
  position: relative;
}

.promo-badge {
  position: absolute;
  top: 15px;
  /* left: 15px; */
  right: 15px;
  max-width: calc(100% - 30px);
  background: linear-gradient(45deg, #ff0000, #ff4444);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(255,0,0,0.5);
  z-index: 20;
  animation: pulse 2s infinite;
  text-align: center;
} 

@media (max-width: 768px) {
  .promo-badge {
    font-size: 12px;
    padding: 4px 8px;
    top: 10px;
  }
}



.new-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(45deg, #00ff88, #00cc66);
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0,255,136,0.5);
  z-index: 20;
}

@media (max-width: 768px) {
  .new-badge {
    font-size: 12px;
    padding: 4px 8px;
    top: 10px; /* below promo if both */
  }

  .sound-toggle {
    width: 52px;
    height: 52px;
    font-size: 22px;
    bottom: 15px;
  }
}

/* Video Sound Toggle Styles */
.video-container {
  position: relative;
  display: block;
}

.sound-toggle {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.sound-toggle:hover,
.sound-toggle:focus {
  background: rgba(255,100,100,0.9);
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 6px 25px rgba(255,100,100,0.4);
  border-color: rgba(255,255,255,0.6);
}

.sound-toggle:active {
  transform: translateX(-50%) scale(1.05);
}

.sound-on .sound-toggle i {
  color: #00ff88;
  text-shadow: 0 0 12px rgba(0,255,136,0.8);
}

.sound-off .sound-toggle i {
  color: #bbb;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.carousel-caption {
  position: relative;
  z-index: 10;
}
