/* === HOMEPAGE.CSS === */

/* Section titles */
.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 1rem 1rem 0.5rem;
}

/* Horizontal carousel */
.home-scroll-section {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 1rem 1rem;
  gap: 0.8rem;
  scrollbar-width: none;
}
.home-scroll-section::-webkit-scrollbar {
  display: none;
}

/* Cards in scroll section */
.home-scroll-section .product-card {
  flex: 0 0 auto;
  width: 140px;
  scroll-snap-align: start;
  background: #151a28;
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  color: #fff;
  position: relative;
}

/* Product image */
.home-scroll-section .product-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

/* Affiliate badge */
.affiliate-badge {
  background-color: #ff4c4c;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 12px;
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Star rating */
.product-card .stars {
  color: #ffcd3c;
  font-size: 0.75rem;
  margin-bottom: 2px;
}

/* Price and title */
.product-card .title {
  font-size: 0.85rem;
  font-weight: 500;
  margin: 4px 0;
  line-height: 1.2;
}
.product-card .price {
  font-size: 0.75rem;
  color: #bbb;
}

/* BUY NOW Button */
.product-card .buy-btn {
  background: #ff9100;
  color: #000;
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.7rem;
  margin-top: 6px;
  display: inline-block;
}

/* Editor's Picks & Last Viewed */
.grid-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  padding: 0 1rem 2rem;
}
.grid-section .product-card {
  width: 100%;
}

/* Section spacing */
.home-section {
  margin-bottom: 2rem;
}

/* 🔄 Horizontal Scroll Container (Updated Padding) */
#category-container {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 4px 6px; /* 🔽 Further reduced padding */
  scroll-snap-type: x mandatory;
  background: transparent;
}

/* 🔷 Category Tile */
.category-item {
  flex: 0 0 auto;
  width: 72px; /* 🔼 Slightly wider to accommodate bigger image */
  text-align: center;
  border-radius: 16px;
  background: transparent;
  padding: 1px 0; /* 🔽 Slightly reduced internal padding */
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  transition: all 0.2s ease-in-out;
  scroll-snap-align: start;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 🟠 Circular Image Style (Increased Size) */
.category-item img {
  width: 72px;  /* 🔼 Increased from 64px */
  height: 72px; /* 🔼 Increased from 64px */
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 4px;
  background: transparent;
  border: 1.5px solid #f0f0f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 🔁 Hover Effect */
.category-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(1px);
}
/* Section Separators (Optional) */
#category-container::before,
#subcategory-container::before,
#subsubcategory-container::before {
  content: attr(data-label);
  font-size: 16px;
  font-weight: 600;
  color: #444;
  margin-right: 16px;
  align-self: center;
}

#subsubcategory-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 20px;
  padding: 0 12px;
}

.subsubcategory-item {
  padding: 10px 16px;
  background: var(--card-bg, #f1f1f1);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.2s ease;
}

.subsubcategory-item:hover {
  background: var(--hover-bg, #e0e0e0);
}

.no-items {
  font-size: 14px;
  color: gray;
  padding: 10px 16px;
}