/* dfcustomhomecategory - scoped styles */
.dfhomecategory-section {
  padding: 40px 0 40px 20px; /* Remove right padding */
  background: #f5f0e1;
  text-align: center;
  overflow: hidden;
}

.dfhomecategory-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
}

.dfhomecategory-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 30px;
  max-width: none;               /* ← was: 1200px */
  margin: 0;
  overflow-x: auto;              /* ← NEW: enable horizontal scroll */
  padding: 10px 20px 20px 0;
  scroll-snap-type: x mandatory; /* ← NEW: smooth snapping */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;         /* ← NEW: hide scrollbar (Firefox) */
}

/* Hide scrollbar on Chrome/Safari */
.dfhomecategory-grid::-webkit-scrollbar {
  display: none;                 /* ← NEW */
}

.dfhomecategory-item {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-snap-align: start;
}

.dfhomecategory-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 15px;
}

.dfhomecategory-image-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dfhomecategory-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dfhomecategory-link:hover .dfhomecategory-image {
  transform: scale(1.05);
}

.dfhomecategory-no-image {
  background: #ddd;
}

.dfhomecategory-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #1a3a2a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  transition: background 0.3s ease;
}

.dfhomecategory-link:hover .dfhomecategory-btn {
  background: #c9a84c;
}

.dfhomecategory-arrow {
  font-size: 18px;
}

@media (max-width: 768px) {
  .dfhomecategory-grid {
    justify-content: flex-start;
    gap: 15px;
  }
  .dfhomecategory-item {
    flex: 0 0 150px;             /* ← slightly smaller on mobile */
  }
  .dfhomecategory-image-wrap {
    width: 150px;
    height: 150px;
  }

  
}

