.marketplace-homepage {
  padding-bottom: 10px;
}

.marketplace-homepage .homepage-content-body {
  padding: 0 80px 10px 80px;
}

.marketplace-hero {
  background-color: #008577;
  position: relative;
  overflow: hidden;
  height: 750px;
}

.marketplace-hero #custom-search-input {
  width: 40%;
  transition: width 0.6s ease;
}

.marketplace-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.marketplace-hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -47%);
  object-fit: cover;
}

/* overlay to improve text readability over the video */
.marketplace-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Adjust opacity as needed */
  z-index: 1;
}

.marketplace-hero .dogpack-search-bar {
  width: 40%;
}

.welcome-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-align: center;
  z-index: 10;
  width: 100%;
}

.welcome-text h1 {
  font-size: 50px;
  font-weight: 500;
  margin-bottom: 25px;
  line-height: 44px;
  color: #ffffff;
  letter-spacing: -0.72px;
}

.top-searches-container {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.top-searches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 18px 0;
  gap: 8px;
}

.search-tag {
  color: var(--Gray-700, #344054);
  text-align: center;
  font-family: "Be Vietnam Pro";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px; /* 150% */

  padding: 6px 15px;

  transition: all 0.2s ease;
  border-radius: 16px;
  background: var(--Gray-100, #f2f4f7);
}

.search-filter-icon {
  display: flex;
  width: 32px;
  height: 32px;
  padding: 10px 12px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  border: 1px solid var(--Gray-300, #d0d5dd);
  background: #fff;
  cursor: pointer;
}

.become-seller {
  text-align: center;
  margin-top: 20px;
}

.become-seller a {
  color: var(--White, #fff);
  font-family: "Be Vietnam Pro";
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px; /* 155.556% */
  text-decoration-line: underline;
  text-decoration-style: solid;
  transition: all 0.3s ease;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
}

.see-more {
  color: #108482;
  font-weight: 600;
  font-size: 18px;
}

.see-more:hover {
  text-decoration: none;
  color: #006b5e;
}

.product-sections-row {
  margin-bottom: 30px;
}

.product-section-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px 32px;
  height: 100%;
  border: 1px solid #f0f0f0;
}

.product-section-card .section-heading h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: #1d2939;
}

.product-section-card .section-heading h3 .text-danger {
  color: var(--Error-600, #e6341d) !important;
  font-size: 22px;
  font-weight: 500;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  height: 170px;
}

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

.product-item:hover .product-img {
  transform: scale(1.05);
}

.category-slider-container {
  position: relative;
}

.category-container {
  display: flex;
  overflow-x: auto;
  gap: 28px;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scroll-behavior: smooth; /* Smooth scrolling when using the arrows */
}

.category-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  color: #008577;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.category-arrow:hover {
  background-color: #008577;
  color: white;
}

.category-prev {
  left: 5px;
}

.category-next {
  right: 5px;
}

.category-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.category-card {
  min-width: 295px;
  max-width: 300px;
  min-height: 295px;
  height: 160px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card .categories-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 15px;
}

.category-card .categories-overlay h3 {
  color: white;
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.shops-container {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 0;
  scrollbar-width: none;
}

.shops-container::-webkit-scrollbar {
  display: none;
}

.shop-card {
  min-width: 180px;
  padding: 10px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shop-card .shop-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
}

.ratings {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--Gray-600, #475467);
  font-family: "Be Vietnam Pro";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px; /* 150% */
}

.marketplace-homepage .categorySwiper {
  width: 100%;
  padding: 20px 0;
}

.marketplace-homepage .swiper-slide {
  width: auto; /* Let slides take their natural width */
  margin-right: 15px; /* Add spacing between slides */
}

.marketplace-homepage .swiper-button-prev,
.marketplace-homepage .swiper-button-next {
  color: #333;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.marketplace-homepage .swiper-button-prev:after,
.marketplace-homepage .swiper-button-next:after {
  font-size: 18px;
  font-weight: bold;
}

.marketplace-homepage .swiper-button-prev {
  left: 0;
}

.marketplace-homepage .swiper-button-next {
  right: 0;
}

.productsSaleSwiper .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
  width: 285px;
}

.productsSaleSwiper .swiper-slide .product-card {
  width: 100%;
}

.seller-background-section {
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  min-height: 570px;
  background: radial-gradient(
      71.77% 87.12% at 58.52% 53.51%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.25) 36.57%,
      rgba(0, 0, 0, 0.4) 60.76%,
      rgba(0, 0, 0, 0.5) 75.12%
    ),
    url(../../img/marketplace/seller_background.webp) lightgray 50% / cover
      no-repeat;
  padding: 5% 0;
}

.seller-background-section .discoverdogfrindly {
  padding-left: 70px;
}

.seller-background-section .btn-theme-sm {
  font-size: 16px;
}

@media only screen and (max-width: 1024px) {
  .marketplace-hero-video {
    transform: translate(-44%, -47%);
  }

  .marketplace-homepage .homepage-content-body {
    padding: 0 16px;
  }

  .marketplace-hero .dogpack-search-bar {
    width: 90%;
  }

  .welcome-text {
    padding: 0 16px;
  }

  .welcome-text h1 {
    font-size: 28px;
  }

  .search-input {
    padding: 10px 15px;
  }

  .top-searches-container {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .top-searches {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 5px;
    scrollbar-width: none;
    margin: 0px;
    width: -webkit-fill-available; /* Chrome, Edge, Safari */
    width: -moz-available;
  }

  .category-card {
    min-width: 150px;
    min-height: 150px;
  }

  .category-arrow {
    display: none !important;
  }

  .category-slider-container {
    padding: 0; /* No need for padding on mobile */
  }

  .marketplace-homepage .swiper-button-prev,
  .marketplace-homepage .swiper-button-next {
    display: none;
  }

  .seller-background-section {
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .seller-background-section .discoverdogfrindly {
    padding-left: 32px;
  }
}

@media (max-width: 576px) {
  .welcome-text h1 {
    font-size: 24px;
  }

  .search-tag {
    white-space: nowrap;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .product-section-card {
    padding: 15px;
  }

  .product-section-card .section-heading h3 {
    font-size: 16px;
  }
}
