/* Mobile First */
.section-category {
  padding: 40px 0;
}

.main-title {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 40px;
}

.main-content {
  gap: 32px;
}

.category-item {
  background: white;
  border-radius: 50px;
  padding: 5px 5px 5px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.category-item.active {
  background: var(--orange-color);
}

.category-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.category-count {
  background: var(--brown-color);
  color: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}

.category-item:not(.active) .category-count {
  background: #F9F9F9;
  color: #000;
}

.card-img {
  overflow: hidden;
  position: relative;
}

.image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.image-food-container {
  position: relative;
  width: 340px;
  height: 274px;
  background-image:url("/image/img-category.png");
  background-size: cover;
  background-position: center;
  clip-path: path("M 20,0 L 320,0 A 20,20 0 0,1 340,20 L 340,189 A 20,20 0 0,1 320,209 L 200.19,209 A 20,20 0 0,0 180.19,229 L 180.19,254 A 20,20 0 0,1 160.19,274 L 20,274 A 20,20 0 0,1 0,254 L 0,20 A 20,20 0 0,1 20,0 Z");
}

.btn-overlay {
  font-family: 'Inter', sans-serif;
  position: absolute;
  bottom: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  width: 144px;
  height: 52px;
  background: #391808;
  color: #fff;
  font-size: 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-overlay:hover {
  background: rgba(62, 39, 35, 1);
  color: #ffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.overlay-icon img {
  width: 18px;
  height: 18px;
}

/* Mobile Small */
@media (max-width: 320px) {
  .title-category {
    margin-bottom: 30px;
  }

  .image-food-container {
    width: 292px;
    height: 236px;
    clip-path: path("M 20,0 L 272,0 A 20,20 0 0,1 292,20 L 292,163 A 20,20 0 0,1 272,183 L 171.56,183 A 20,20 0 0,0 151.56,203 L 151.56,216 A 20,20 0 0,1 131.56,236 L 20,236 A 20,20 0 0,1 0,216 L 0,20 A 20,20 0 0,1 20,0 Z");
  }

  .btn-overlay {
    gap: 8px;
    width: 132px;
    height: 44px;
    border-radius: 12px;
  }

  .overlay-icon img {
    width: 16px;
    height: 16px;
  }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .main-title {
    font-size: 32px;
  }

  .title-category {
    margin-bottom: 40px;
  }
}

/* Desktop Styles */
@media (min-width: 992px) {
  .section-category {
    padding: 80px 0 100px 0;
  }

  .title-category {
    max-width: 600px;
  }

  .section-title {
    font-size: 20px;
  }

  .main-title {
    font-size: 48px;
  }

  .main-content {
    justify-content: space-between;
  }

  .category-list {
    max-width: 640px;
    width: 100%;
  }

  .categories-container {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .food-image {
    height: 300px;
  }

  .food-image-container {
    height: 300px;
  }
}

/* Desktop Large Styles */
@media (min-width: 1440px) {
  .image-wrapper {
    max-width: 456px;
  }

  .image-food-container {
    width: 456px;
    height: 456px;
    clip-path: path("M 40,0 L 416,0 A 40,40 0 0,1 456,40 L 456,315 A 40,40 0 0,1 416,355 L 308,355 A 40,40 0 0,0 268,395 L 268,416 A 40,40 0 0,1 228,456 L 40,456 A 40,40 0 0,1 0,416 L 0,40 A 40,40 0 0,1 40,0 Z");
  }

  .btn-overlay {
    width: 157px;
    height: 72px;
    font-size: 16px;
  }

  .overlay-icon img {
    width: 24px;
    height: 24px;
  }

  .main-content {
    gap: 80px;
  }

  .category-list {
    max-width: 744px;
  }
}
