.categories-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
  text-align: center;
}

.categories-header {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.categories-header h2 {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin: 0 0 10px 0;
}

.header-underline {
  width: 80px;
  height: 4px;
  background-color: #2E7D32;
  border-radius: 4px;
}

.categories-scroll-container {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 20px;
  /* Hide scrollbar for webkit but keep it functional */
  scrollbar-width: none; 
}

.categories-scroll-container::-webkit-scrollbar {
  display: none;
}

.categories-track {
  display: flex;
  gap: 20px;
  /* Ensure it doesn't wrap and allows horizontal scrolling */
  width: max-content;
}

.category-card {
  position: relative;
  width: 320px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-bg-image {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}

.category-content {
  position: absolute;
  bottom: 25px;
  left: 25px;
  text-align: left;
  z-index: 2;
}

.category-content h3 {
  color: white;
  font-size: 1.5rem;
  margin: 0 0 5px 0;
  font-weight: 700;
}

.view-collection {
  color: #66BB6A;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}

.category-card:hover .view-collection {
  gap: 8px;
}

@media (max-width: 768px) {
  .category-card {
    width: 260px;
    height: 220px;
  }
}
