/* ===============================
        FEATURED SECTION
=============================== */

.featured-section {
  position: relative;
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 2rem;
  color: #0c0c0c;
}

/* ===============================
        SLIDER
=============================== */

.featured-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}

.featured-slider::-webkit-scrollbar {
  display: none; /* Chrome & Safari */
}

/* ===============================
        PRODUCT CARD
=============================== */

.featured-card {
  flex: 0 0 280px;
  background: white;
  border-radius: 1rem;
  overflow: visible; /* NECESARIO para que el corazón no se corte */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  position: relative;
}
.featured-card a {
  text-decoration: none !important;
  color: inherit;
}

.featured-card a:hover {
  text-decoration: none !important;
}

.featured-card:hover {
  transform: translateY(-6px);
}

/* Imagen */
.card-image-container {
  position: relative;
  width: 100%;
  height: 180px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
}

/* ===============================
        FAVORITE BUTTON ❤️
=============================== */

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  font-size: 1.6rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 20;
  transition: transform 0.2s ease;
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active .heart-icon {
  color: red;
}

/* ===============================
        CARD CONTENT
=============================== */

.card-content {
  padding: 1rem;
}

.feature-tag {
  display: inline-block;
  background: #e8e8e8;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-right: 4px;
  color: #444;
}

/* View Button */
.view-button {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.5rem 1rem;
  background: #00ff88;
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.view-button:hover {
  background: #00995a;
}

/* ===============================
        SLIDER BUTTONS
=============================== */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: #007bff;
  color: white;
}

.prev-btn {
  left: -10px;
}

.next-btn {
  right: -10px;
}

/* ===============================
        RESPONSIVE DESIGN
=============================== */

@media (max-width: 1024px) {
  .prev-btn { left: 5px; }
  .next-btn { right: 5px; }
}

@media (max-width: 768px) {
  .featured-card {
    flex: 0 0 85%;
  }

  .featured-title {
    font-size: 2rem;
  }

  .favorite-btn {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .featured-title {
    font-size: 1.6rem;
  }

  .featured-card {
    flex: 0 0 90%;
  }

  .card-image-container {
    height: 150px;
  }
}
