#sub-product1 {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding-left: clamp(20px, 6vw, 90px);   /* ← Separate left padding */
  padding-right: clamp(20px, 6vw, 90px);  /* ← Separate right padding */
  padding-top: 20px;
  padding-bottom: 10px;
  text-align: left;  /* ← Changed from center */
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 60px;
  gap: 20px;
}

#sub-product1-title{
 display: flex;
 justify-content: center;
 align-items: center;
}

#sub-product1-title h2{
  margin-bottom: 8px;
}

#sub-product1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 35%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 60%;
  height: 1px;
  background-color: #212121;
}

#sub-product1-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

#sub-product1-text h2 {
  margin-right: clamp(10px, 5vw, 60px);
  font-size: clamp(20px, 5vw, 32px);
}

#hijab-img {
  height: clamp(80px, 15vw, 150px);
  box-shadow: 0px 1px 1px #E6C87C;
  margin-right: clamp(10px, 3vw, 30px);
}

#sub-hijab-title {
  color: #4b5b74;
  font-size: clamp(18px, 4vw, 28px);
}

#sub-navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
}

#sub-navbar li {
  list-style: none;
  padding: 0 clamp(5px, 2vw, 10px);
  position: relative;
  color: #4b5b74;
}

#sub-navbar li a {
  text-decoration: none;
  font-size: clamp(12px, 3vw, 17px);
  font-weight: 600;
  color: #4b5b74;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

/* Animation scaling when click */
#sub-navbar li a:active {
  transform: scale(1.2);
}

#sub-navbar li a.active::after {
  content: '';
  height: 2px;
  width: 75%;
  background-color: #c7b271;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(1px);
}

#category-span {
  color: red;
  padding-right: clamp(10px, 8vw, 8vw);
  font-size: clamp(12px, 3vw, 14px);
}

/* Smooth loading animation for products */
.product {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 0.4s ease forwards;
}

/* Remove the underline from all text */
.product-link {
  text-decoration: none;
  color: inherit;
}

.product-link:hover {
  text-decoration: none;
}

/* For mobile - allow text to wrap */
@media (max-width: 768px) {
  #sub-navbar li a {
    white-space: normal;
    font-size: 12px;
  }
  
  #sub-navbar li {
    padding: 5px;
  }

  #sub-product1-title h2 {
    margin-bottom: 0px;
  }

  #sub-product1-title {
    padding: 0 12px;
}

}

@media(max-width: 555px){

  #product1 {
    text-align: center;
    margin-top: 0px;
}

  #sub-navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  cursor: pointer;
  gap: 2px;
  padding: 0px;
  }

  #sub-product1 {
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 40px;
    gap: 10px;
}

#hijab-img {
  margin-left: auto;
  }

  #sub-product1-title h2 {
    margin-bottom: 0px;
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Stagger effect - each product appears with slight delay */
.product:nth-child(1) { animation-delay: 0.05s; }
.product:nth-child(2) { animation-delay: 0.1s; }
.product:nth-child(3) { animation-delay: 0.15s; }
.product:nth-child(4) { animation-delay: 0.2s; }
.product:nth-child(5) { animation-delay: 0.25s; }
.product:nth-child(6) { animation-delay: 0.3s; }
.product:nth-child(7) { animation-delay: 0.35s; }
.product:nth-child(8) { animation-delay: 0.4s; }
.product:nth-child(9) { animation-delay: 0.45s; }
.product:nth-child(10) { animation-delay: 0.5s; }
.product:nth-child(11) { animation-delay: 0.55s; }
.product:nth-child(12) { animation-delay: 0.6s; }