/************ home slider styles ************/
.mst-hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin: 0 -12px;
}
.HomeProductCarouselSeeAllCard_homeProductCarouselSeeAllCard___AR1w {
  height: 100%;
  width: 100%;
  border-radius: 12px;
  --tw-bg-opacity: 1;
  background-color: #2e2e2e;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-decoration: none;
}

.cart-view-all-home {
  width: 80px;
  margin-bottom: 30px;
}

.HomeProductCarouselSeeAllCard_homeProductCarouselSeeAllCardButton__j88rl {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border-width: 1px;
  border: 1px solid #535353;
  background: transparent;
  padding: 0.75rem;
  font-size: 11px;
}

.mst-hero-slider__track {
  position: relative;
  aspect-ratio: 430 / 293;
}

.mst-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.mst-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.mst-hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mst-hero-pagination {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  z-index: 5;
}

.mst-hero-pagination button {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.mst-hero-pagination button.is-active {
  width: 24px;
  background: #fff;
}

/************ home slider styles END ************/

/************ home Categories styles ************/
.category-section {
  padding: 32px 0 40px;
  background: #fff;
}

#category-title {
  display: flex;
}

.section-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 600;
}

.section-title-padding {
  padding: 0 12px;
}

.category-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 26%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding: 24px;
  padding: 0 20px;
}

.category-grid::-webkit-scrollbar {
  display: none;
}

.category-card {
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  border: 1px solid transparent;
}

.category-name {
  margin-top: 12px;
  font-size: var(--font-mini);
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}
/************ home Categories styles END ************/
/************ home onsales product styles END ************/
.newest-products-section {
}

.newest-products-parent-inner {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 50%,
    rgba(255, 255, 255, 1) 50%
  );
  border-radius: 20px;
  margin: 0 -12px;
  padding: 24px;
}

.bgc-gray {
  background: linear-gradient(180deg, #f0f0f2 50%, rgba(255, 255, 255, 1) 50%);
}

.newest-products-parent-inner .btn-view-all {
  display: none;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  /* padding: 0 24px; */
}

.newest-title {
  font-size: var(--title-font-size);
}

.home-a-title {
  color: #fff;
  text-decoration: none;
}

.home-a-title-black {
  color: #101010;
  text-decoration: none;
}

.header-title-icon {
  width: 24px;
  height: 24px;
}

.home-heading-left-parent {
  display: flex;
  align-items: center;
  gap: 16px;
}

.heading-see-all-btn {
  font-size: var(--see-all-btn-font-size);
  color: var(--green-color);
}

.countdown-box-inner {
  display: none;
}

.countdown-box {
  background: #ffffff1a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: flex;
  gap: 20px;
  height: 48px;
  align-items: center;
}

.countdown-timer {
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: -5px;
  direction: ltr;
}

.products-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -24px;
}

.products-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 24px;
  scroll-padding: 20px;
}

.products-grid::-webkit-scrollbar {
  display: none;
}

/************ home brands cart styles ************/
.brands-section {
}

.brands-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 8px;
  padding: 0 12px;
}

.brand-card {
  display: block;
  border-radius: 6px;
  overflow: hidden;
}

.brand-card img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* مهم: لوگوها را بدون کشیدگی نشان می‌دهد */
  transition: transform 0.4s ease;
}

.brand-card:hover img {
  transform: scale(1.08);
}

/************ home brands cart styles END ************/
/************ home Blog styles ************/

.latest-blog-section {
  background: #fff;
}

.blog-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -12px;
  padding: 0 24px;
  scroll-padding: 20px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ededed;
  scroll-snap-align: start;
}

.blog-image {
  position: relative;
  height: 200px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 16px;
}

.blog-link {
  text-decoration: none;
  color: #5e5e5e;
}

.blog-title {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/************ home highlight chips styles ************/
.home-highlight-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -24px 20px;
  padding: 0 24px 4px;
}

.home-highlight-chips::-webkit-scrollbar {
  display: none;
}

.home-highlight-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: var(--dnd-radius-pill);
  background: var(--dnd-white);
  color: var(--dnd-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--dnd-border);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.home-highlight-chip:hover {
  border-color: var(--dnd-primary);
  color: var(--dnd-primary-dark);
}

.home-highlight-chip.is-active {
  background: var(--dnd-primary);
  color: var(--dnd-white);
  border-color: var(--dnd-primary);
}
/************ home highlight chips styles END ************/

/************ home brands cart styles END ************/

@media (min-width: 992px) {
    .mst-hero-slider__track {
      position: relative;
      aspect-ratio: 1000 / 450;
    }
  .HomeProductCarouselSeeAllCard_homeProductCarouselSeeAllCard___AR1w {
    display: none;
  }

  .brands-grid {
    gap: 12px;
    padding: 0;
  }

  .mst-hero-slider {
    border-radius: 20px;
    margin: 0;
  }
  .newest-products-parent-inner .btn-view-all {
    display: flex;
    align-items: center;
    background: linear-gradient(268deg, #ff5d5d, #c01e2d);
    height: 48px;
    padding: 10px 30px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
  }

  .products-grid {
    gap: 16px;
  }

  .newest-products-parent-inner {
    margin: unset;
  }

  .countdown-box-inner {
    display: flex;
    align-items: center;
    padding-left: 20px;
    border-left: 1px solid hsla(0, 0%, 100%, 0.25);
    gap: 10px;
  }

  .blog-grid {
    grid-auto-columns: 1fr;
    gap: 18px;
    padding: 0 12px;
  }
  .category-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-columns: unset;
    gap: 18px;
    padding: 0 12px;
    overflow: unset;
    scroll-snap-type: none;
  }

  .category-card {
    padding-right: 0;
  }
  #category-title {
    display: none;
  }
  .header-title-icon {
    width: 32px;
    height: 32px;
  }
  .section-title-padding {
    padding: 0;
  }
}

@media (min-width: 992px) {
}
