/* ==== COLLECTION SECTION ==== */
.collection {
  padding: 80px 0;
  background-color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;

  /* 🔑 Fix scroll stacking */
  position: relative;  
  z-index: 1;          
}

.collection .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* ==== HEADER DE SECCIÓN ==== */
.section-header {
  margin-bottom: 50px;
}

.section-subtitle {
  color: #d6c7b2;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}

.section-title {
  font-size: 36px;
  font-weight: bold;
  color: #6D5A42;
  margin-bottom: 30px;
}

/* ==== FILTROS (TABS) ==== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 12px 25px;
  border: 2px solid #d6c7b2;
  background: transparent;
  color: #6D5A42;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.filter-tab.active {
  background-color: #6D5A42;
  color: #fff;
  border-color: #6D5A42;
}

.filter-tab:hover {
  background-color: #A0896B;
  color: #fff;
  border-color: #A0896B;
}

/* ==== GRID DE PRODUCTOS ==== */
.products-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* ==== CARD DE PRODUCTO ==== */
.product-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(109, 90, 66, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(109, 90, 66, 0.2);
}

/* ==== IMAGEN DEL PRODUCTO ==== */
.product-image {
  height: 250px;
  background: linear-gradient(45deg, #f2e7d9, #e9dfd1);
  position: relative;
}

.product-image::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 70%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}

/* ==== BADGES & ACTIONS ==== */
.discount-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #6D5A42;
  color: #fff;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

.product-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-btn {
  width: 35px;
  height: 35px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(109, 90, 66, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6D5A42;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.action-btn:hover {
  background: #6D5A42;
  color: #fff;
  transform: scale(1.1);
}

/* ==== COUNTDOWN ==== */
.countdown {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  gap: 5px;
}

.countdown-item {
  background: rgba(109, 90, 66, 0.9);
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  min-width: 40px;
}

.countdown-number {
  font-weight: bold;
  font-size: 14px;
}

.countdown-label {
  font-size: 10px;
}

/* ==== INFO DEL PRODUCTO ==== */
.product-info {
  padding: 20px;
}

.product-brand {
  color: #A0896B;
  font-size: 12px;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-weight: 600;
}

.product-name {
  font-size: 16px;
  font-weight: bold;
  color: #6D5A42;
  margin-bottom: 10px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.stars {
  color: #d6c7b2;
}

.rating-number {
  font-weight: bold;
  color: #6D5A42;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-price {
  font-size: 18px;
  font-weight: bold;
  color: #6D5A42;
}

.original-price {
  font-size: 14px;
  color: #A0896B;
  text-decoration: line-through;
}

/* 🌙 DARK MODE */
body.dark .collection {
  background-color: #1e1e1e;
}

body.dark .section-title {
  color: #f6f1e8;
}

body.dark .filter-tab {
  border-color: #8d775d;
  color: #f6f1e8;
}

body.dark .filter-tab.active,
body.dark .filter-tab:hover {
  background-color: #bea583;
  color: #fff;
  border-color: #bea583;
}

body.dark .product-card {
  background: #2a2a2a;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

body.dark .product-brand {
  color: #d7c6ac;
}

body.dark .product-name,
body.dark .rating-number,
body.dark .current-price {
  color: #f6f1e8;
}

body.dark .original-price {
  color: #a69988;
}
