.featured-categories {
  padding: 4rem 1rem;
  background: #fff;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #4b5563; /* gray-600 */
}

.link-button {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: #2563eb; /* blue-600 */
  text-decoration: none;
  transition: gap 0.2s;
}

.link-button:hover {
  gap: 0.75rem;
}

.link-button .arrow-icon {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .link-button { display: flex; }
}

.grid.cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid.cards { grid-template-columns: repeat(2,1fr); }
}

@media (min-width: 1024px) {
  .grid.cards { grid-template-columns: repeat(4,1fr); }
}

.card {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb; /* gray-200 */ 
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 12rem; /* 48 */
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.9);
  color: #374151; /* gray-800 */
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.description {
  color: #4b5563;
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-count {
  font-size: 0.875rem;
  color: #6b7280; /* gray-500 */
}

.card-footer .arrow-icon {
  width: 1rem;
  height: 1rem;
  color: #2563eb;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover .card-footer .arrow-icon {
  opacity: 1;
}

/* categories browse section */
.browse-categories {
  background: #f9fafb; /* gray-50 */
}

.browse-categories .section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.browse-categories .section-subtitle {
  color: #4b5563;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.categories-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.cat-card {
  background: #fff;    
  padding: 1rem 0;
  border-radius: 0.75rem;
  border: 1px solid #ccc;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  width: calc(50% - 0.5rem);
}

.cat-card:hover {
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  transform: translateY(-0.25rem);
}

.cat-card .icon-wrapper {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.cat-card:hover .icon-wrapper {
  background: #ebf4ff;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-name {
  text-align: center;
  margin-bottom: 0.5rem;
}

.cat-count {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

@media (min-width: 768px) {
  .cat-card { width: calc(25% - 0.75rem); }
}
