/* static/css/home.css: Homepage-specific styles. */


/* slider css start*/
.home-sliders-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
  max-width: 50%;
  width: 100%;
}
  
  .home-slider {
    max-width: 47%;
  }
  .home-slider .card {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
}
  .home-slider .card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}
.home-slider .card a {
  position: absolute;
  background: var(--category-title-bg);
  padding: 15px 40px;
  color: var(--text-color);
  font-weight: 900;
  letter-spacing: 12px;
  font-size: clamp(0.875rem, 0.625rem + 0.5208333333333333vw, 1.25rem);
}
.home-slider .card:hover a {
  background: var(--category-title-bg-hover);
}

.home-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.home-hero .hot-deal-banner {
  max-width: 50%;
  width: 100%;
}
.home-hero .hot-deal-banner img{
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  height: 100%;
}


/* home category css start*/
.category-container {
  text-align: center;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 2rem;
  justify-items:center;
}
.category-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: var(--text-color);
  max-width: 190px;
  width: 100%;
  display: flex;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card img {
  width: 100%;
  max-height: 150px;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.category-placeholder {
  width: 100%;
  height: 250px;
  background: #f0f0f0;
  border-radius: 10px;
}

.category-grid .category-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--category-overlay);
  color: white;
  padding: 10px;
  text-align: center;
  margin: 0;
  font-size: clamp(0.875rem, 0.6583333333333334rem + 0.4513888888888888vw, 1.2rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  hyphens: auto;
}
.category-container .primary-btn{
  max-width: 140px;
  margin-top: 20px;
}


h2.category-title{
  font-size:clamp(1.125rem, 0.375rem + 1.5625vw, 2.25rem);
  margin-right: 30px;
}



.home-section .category-slider-section {
  margin: 40px 0;
  position: relative;
}

.home-section .category-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.home-section .swiper-slide {
  height: auto;
}

.home-section .swiper-button-next::after,
.home-section .swiper-button-prev::after {
  font-size: 24px;
}
.home-section .swiper-button-next, 
.home-section .swiper-button-prev {
  position: static;
  margin: 0 5px;
  color: black;
  background: var(--primary-color);
  border-radius: 10px;
  padding: 10px 20px;
}