#hero {
  background-image: url(/imgs/home/home-3.png);
  -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent);
  opacity: 0.9;
  background-blend-mode: luminosity;
  height: 90vh;
  width: 100%;
  background-size: clamp(30%, 40vw, 40%);
  background-repeat: no-repeat;
  background-position: top 25% right 14%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: start;
  padding: 20px clamp(20px, 5vw, 100px) 80px clamp(20px, 5vw, 100px);
  margin-top: 40px;
}

#hero #welcome-user {
  color: #4b5b74;
  padding-bottom: clamp(60px, 15vw, 120px);
  font-weight: 700;
  font-size: clamp(14px, 3vw, 120%);
}

#hero h4 {
  color: #4b5b74;
  padding-bottom: 10px;
}

#hero h2 {
  color: #4b5b74;
}

#hero h1 {
  color: #E6C87C;
}

#hero p {
  color: #4b5b74;
  font-size: clamp(14px, 3vw, 110%);
}

/* Featured section */
#feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 90px clamp(20px, 5vw, 150px);
  gap: 20px;
}

.fe-box {
  text-align: center;
  border: 1px solid #b3b9cf;
  padding: 25px 30px;
  border-radius: 4px;
  box-shadow: 10px 10px 54px rgba(0, 0, 0, 0.08);
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 150px;
  /* transition: transform 0.3s ease; */
}

#fe-box-wh {
  padding: 25px 0px;
}

.fe-box:hover {
  box-shadow: 2px 12px 60px rgba(202, 202, 246, 0.08);
  cursor: pointer;
}

.fe-box:active {
  transform: scale(1.1);
}

.fe-box:focus {
  transform: scale(1.1);
  outline: none;
}

#feature .fe-box img {
  width: clamp(80px, 15vw, 190px);
  height: clamp(100px, 20vw, 250px);
  object-fit: contain;
}

#feature .fe-box #women-hijab {
  width: clamp(100px, 18vw, 260px);
}

.fe-box h5 {
  padding: 9px 9px 6px 9px;
  line-height: 1;
  border-radius: 4px;
  color: #dadeec;
  background-color: #676e79;
  border: 1px solid #E6C87C;
  width: 80%;
  max-width: 100px;
  box-shadow: 0px 0px 8px #E6C87C;
  padding-top: 8px;
  margin-top: 15px;
  font-size: clamp(10px, 2vw, 12px);
}

/* Banner section */
#banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url(/imgs/banner/banner7.jpg);
  width: 100%;
  height: clamp(30vh, 40vh, 50vh);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  margin: 70px 0;
}

#banner h4, #banner h2 {
  color: #313544;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px #E6C87C;
}

/* Products section */
#product1 {
  text-align: center;
  margin-top: 50px;
}

#product1 .product img {
  width: 100%;
  height: 250px;
  border-radius: 20px;
  object-fit: cover;
}

#product1 .products-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px clamp(20px, 5vw, 150px);
}

#product1 .product {
  width: 23%;
  min-width: 250px;
  max-width: 300px;
  padding: 10px 12px;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 5px 5px 9px #dbdbdb;
  margin: 15px 0;
  transition: box-shadow 0.2s ease;
  position: relative;
}

#product1 .product .desc {
  text-align: start;
  padding: 10px 0;
}

#product1 .product .desc span {
  color: #606063;
  font-size: clamp(12px, 3vw, 14px);
}

#product1 .product .desc h5 {
  padding-top: 7px;
  color: #1a1a1a;
  font-size: clamp(14px, 3vw, 16px);
}

#product1 .product .desc h4 {
  padding-top: 7px;
  font-size: clamp(14px, 3vw, 15px);
  font-weight: 700;
  color: #9E7B4E;
}

#product1 .product .cart-icon {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50px;
  background-color: #C59A6B;
  font-weight: 550;
  color: white;
  position: absolute;
  right: 15px;
  bottom: 15px;
  text-align: center;
}

#product1 .product .cart-icon:active{
  transform: scale(1.2);
}


/* Main product card styling */
#product1 .product {
  width: clamp(200px, 25vw, 300px);
  min-width: 180px;  /* ← This is the main culprit on mobile */
  max-width: 320px;
  /* ... rest of your styles ... */
}



/* ===== Home Videos Section ===== */
#home-videos {
  text-align: center;
  padding: 40px 80px;
}

#home-videos h2 {
  font-size: 32px;
  color: #222;
  margin-bottom: 10px;
}

#home-videos > p {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
}

#home-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-video-card {
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  transition: transform 0.2s ease;
  cursor: pointer;
  text-align: left; /* ✅ Added: Aligns text to the left */
}

.home-video-card:hover {
  transform: translateY(-5px);
}

.home-video-card video {
  width: 100%;
  display: block;
  max-height: 240px;
  object-fit: cover;
  background: #000;
  border-radius: 8px;
}

.home-video-card h4 {
  margin: 0;
  font-size: 15px;
  color: #222;
  font-weight: 600;
  padding: 1px 0;
}

.fa-globe {
  color: #65676b;     /* Facebook's gray text color */
  opacity: 0.7;       /* Semi-transparent */
  font-size: 13px;    /* Small size */
}


/* Media Queries for iPad */
@media (max-width: 1024px) {
  #hero {
    background-size: 45%;
    background-position: top 25% right 8%;
    height: 70vh;
  }
  
  #hero #welcome-user {
    padding-bottom: 60px;
  }
  
  .fe-box h6 {
    width: 100%;
  }
}

/* Media Queries for tablets */
@media (max-width: 799px) {
  #hero {
    background-size: 55%;
    background-position: top 30% right 5%;
    padding: 20px clamp(15px, 4vw, 70px) 60px clamp(15px, 4vw, 70px);
    height: 60vh;
  }
  
  #hero #welcome-user {
    padding-bottom: 40px;
  }
  
  #feature {
    padding: 90px clamp(15px, 4vw, 30px);
    gap: 15px;
  }
  
  #feature .fe-box img {
    width: clamp(70px, 12vw, 110px);
    height: clamp(80px, 15vw, 140px);
  }

  .fe-box {
    padding: 25px 0px;
}
  
  #feature .fe-box #women-hijab {
    width: clamp(100px, 18vw, 280px);
  }
  
  #banner {
    background-size: cover;
    background-position: center;
    height: 35vh;
    padding: 15px;
  }
  
  #banner h4, #banner h2 {
    font-size: clamp(14px, 4vw, 18px);
  }

  #product1 .products-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(10px, 3vw, 20px);
    padding: 5px 0;
  }


  /* Videos css */
  #home-videos {
    padding: 30px 20px;
  }

  #home-videos-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  #home-videos h2 {
    font-size: 24px;
  }

  .home-video-card video {
    max-height: 280px;
  }
}

@media(max-width: 555px) {
  
  #product1 .product {
    width: clamp(200px, 25vw, 300px);
    min-width: 180px;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 5px 5px 9px #dbdbdb;
    margin: 15px auto;
    transition: box-shadow 0.2s ease;
    position: relative;
    flex: 1 1 auto;
  }


   /* Videos CSS  */
   #home-videos {
    padding: 20px 15px;
  }

  #home-videos-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .home-video-card video {
    max-height: 220px;
  }

  #home-videos-grid {
    gap: 10px;
  }
}

/* Media Queries for mobile */
@media (max-width: 480px) {
  #hero {
    background-size: 70%;
    background-position: top 35% right 0%;
    height: 50vh;
    padding: 20px 15px 40px 15px;
    margin-top: 20px;
  }
  
  #hero #welcome-user {
    padding-bottom: 20px;
    font-size: 12px;
  }
  
  #feature {
    justify-content: center;
    gap: 10px;
  }
  
  .fe-box {
    min-width: 120px;
    padding: 15px;
  }
  
  #banner {
    height: 30vh;
  }

  /* Videos CSS  */
  #home-videos {
    padding: 20px 15px;
  }

  #home-videos-grid {
    grid-template-columns: 1fr;
  }

  .home-video-card video {
    max-height: 200px;
  }
}

@media (max-width: 444px) {
  #product1 .products-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #product1 .product {
    width: calc(50% - 10px) !important;
    min-width: 0 !important;
    margin: 0 0 15px 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }

  /* Make sure there's no extra spacing */
  #product1 .product:first-child {
    margin-left: 0 !important;
  }

  #product1 .product img {
    width: 100% !important;
    height: auto !important;
    max-height: 150px;
    object-fit: cover;
  }

 

  #product1 .product .cart-icon {
    width: 25px;
    height: 25px;
    line-height: 25px;
   
    right: 15px;
    bottom: 15px;
    
    font-size: 80%;
  }

  #feature {
    padding: 40px clamp(15px, 4vw, 30px);
  }



   /* Videos CSS  */
   #home-videos {
    padding: 20px 15px;
  }

  #home-videos-grid {
    grid-template-columns: 1fr;
  }

  .home-video-card video {
    max-height: 200px;
  }
}

/* 
@media (max-width: 444px) {

  #product1 .product .desc span {
    font-size: 10px !important;
  }

  #product1 .product .desc h5 {
    font-size: 12px !important;
    white-space: normal;
    word-break: break-word;
  }

  #product1 .product .desc h4 {
    font-size: 13px !important;
  }

  #product1 .product .cart-icon {
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 12px !important;
    right: 8px !important;
    bottom: 8px !important;
  }

  #product1 .product .desc {
    padding: 5px 0 !important;
  }

  #category-span {
    font-size: 10px !important;
    padding-right: 5px !important;
  }
} */