/* =================================================================== */
/* CATEGORY DETAIL PAGE SPECIFIC STYLES                               */
/* =================================================================== */

/* Subcategory Navigation Section */
.subcategoryNav {
  background: #ffffff;
  padding: 40px 0px;
  border-bottom: 1px solid #e0e0e0;
}

.subcategoryContainer {
  margin: 0 auto;
  max-width: calc(100% - 11vw);
}

.subcategoryDescription {
  font-size: 15px;
  line-height: 1.8;
  color: #666666;
  margin: 0 0 30px 0;
  text-align: right;
  font-family: 'Heebo', sans-serif;
  max-width: 100%;
  color: #000;
  text-align: center;

/* רץ */
  font-family: Heebo;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 166.667% */
  max-width: 60%;
  margin: auto;
  margin-bottom: 40px;
}

.subcategoryGrid {
  display: flex;
  gap: 30px;
  justify-content: flex-start;
  align-items: center;
}

.subcategoryItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  border-radius: 0px;
}

.subcategoryImageWrapper {
  width: 388px;
  height: 388px;
  background: #f8f8f8;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.subcategoryItem.active .subcategoryImageWrapper {
  border-color: #007bff;
  background: #f0f7ff;
}

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

.subcategoryImage {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.subcategoryLabel {
  margin-top: 12px;
  font-size: 14px;
  color: #333333;
  font-family: 'Rubik', 'Heebo', sans-serif;
  text-align: center;
  transition: color 0.3s ease;
  font-weight: 400;
  color: #000;
  text-align: center;
  font-family: Heebo;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px; /* 125% */
}

.subcategoryItem.active .subcategoryLabel {
  color: #007bff;
  font-weight: 500;
  color: #000;
  text-align: center;
  font-family: Heebo;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px; /* 125% */
}

.subcategoryItem:hover .subcategoryLabel {
  color: #007bff;
}

/* Products Grid Section */
.productsSection {
  padding: 60px 0px;
  min-height: 600px;
}

.productsContainer {
  margin: 0 auto;
  max-width: calc(100% - 11vw);
}

.productsGrid {
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.productsGrid > a,
.productsGrid > div {
  width: 100%;
  display: flex;
  justify-content: center;
  width: 31%;
}



.productCard {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    direction: rtl;
    border-radius: 0;
    overflow: visible;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: none;
    background: #F8F8F8;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .productsGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .subcategoryGrid {
    gap: 20px;
  }
  
  .subcategoryImageWrapper {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 992px) {
  .productsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .subcategoryGrid {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .subcategoryItem {
    flex: 0 0 calc(25% - 15px);
  }
}

@media (max-width: 768px) {
  .subcategoryNav {
    padding: 30px 15px;
  }
  
  .subcategoryDescription {
    font-size: 14px;
    margin-bottom: 25px;
  }
  
  .subcategoryGrid {
    gap: 15px;
  }
  
  .subcategoryItem {
    flex: 0 0 calc(50% - 10px);
  }
  
  .subcategoryImageWrapper {
    width: 80px;
    height: 80px;
  }
  
  .subcategoryLabel {
    font-size: 12px;
    margin-top: 8px;
  }
  
  .productsSection {
    padding: 40px 15px;
  }
  
  .productsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .productsGrid {
    grid-template-columns: 1fr;
  }
  
  .subcategoryItem {
    flex: 0 0 calc(50% - 10px);
  }
}

.subcategoryDescription h2{
	margin-bottom: 20px;
}
.subcategoryDescription a{
	text-decoration: underline;
}

@media only screen and (max-width: 1440px) {
	.subcategoryDescription{
		max-width: 100%;
		padding-left: 20px;
		padding-right: 20px;
		font-size: 17px;
		line-height:25px;
	}
	.subcategoryDescription h2{
		font-size: 23px;
	}
}
