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

.title-bar {
  padding-right: 28px;
}

.section-title {
  font-size: 14px;
  margin-bottom: 24px;
}

.title {
  font-family: "VintageGlamore", Georgia, serif;
  font-size: 32px;
  line-height: 110%;
}

.best-seller-card {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  flex: 0 0 auto;
  max-width: 290px;
  width: 100%;
  height: 248px;
  margin-right: 40px;
}

.best-seller-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0.8) 100%);
  opacity: 1;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.best-seller-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.package-name {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  position: absolute;
  bottom: 45px;
  left: 45px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 1;
  visibility: visible;
}

.badge-seller img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Mobile Small */
@media (max-width: 320px) {
  .title-bar {
    padding-right: 0px;
  }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .section-best-seller {
    padding: 80px 0;
  }

  .title-bar {
    margin-bottom: 30px;
  }

  .best-seller-card {
    max-width: 340px;
    height: 300px;
    margin-right: 24px;
  }

  .food-image {
    height: 250px;
  }
}

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

  .bs-container {
    padding-left: 40px;
  }

  .best-seller-card::before {
    opacity: 0;
  }

  .best-seller-card:hover::before {
    opacity: 1;
  }

  .best-seller-card:hover .package-name {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .package-name {
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  }

  .title-bar {
    padding: 56px 40px 40px 0;
  }

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

  .title {
    font-size: 48px;
  }

  .best-seller-card {
    max-width: 440px;
    height: 360px;
  }
}

/* Desktop Large Styles */
@media (min-width: 1440px) {
  .best-seller-card {
    max-width: 560px;
    height: 480px;
    margin-right: 40px;
  }

  .title-bar {
    padding: 56px 40px 80px 0;
    margin-bottom: 0;
  }
}
