
/* product page */
.product-page {
  width: 80%;
  height: auto;
  display: flex;
  padding: 2rem; 
  margin: 4rem auto 0;
}

.filter-container {
  width: 20%;
}

.filters {
  width: 100%;
  padding: 1rem;
  border-right: 1px solid #ddd; 
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.filter-section {
  position: relative;
  cursor: pointer;
}

.toggle-div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.toggle-title {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1.125rem; 
  user-select: none;
  color: var(--title-color);
}

.toggle-icon {
  position: relative;
  transition: transform 0.3s ease-in-out;
  height: 1em;
  width: 1em;
  /* font-size: 1em; */
  opacity: .7;
}

.toggle-icon .horizontal {
  position: absolute;
  background-color: var(--text-color);
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.toggle-icon .vertical {
  position: absolute;
  background-color: var(--text-color);
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.filter-section .toggle-icon.closed .vertical {
  transition: all 0.5s ease-in-out;
  transform: rotate(0deg); 
  transform: translateX(-50%);
}

.filter-section .toggle-icon.closed .horizontal {
  transition: all 0.5s ease-in-out;
  transform: rotate(0deg); 
  transform: translateY(-50%);
  opacity: 1; 
}

.filter-section.active .toggle-icon.closed .vertical {
  transition: all 0.5s ease-in-out;
  transform: rotate(-90deg);
}

.filter-section.active .toggle-icon.closed .horizontal {
  transition: all 0.5s ease-in-out;
  transform: rotate(-90deg);
  opacity: 1;
}

.filter-section.active .toggle-icon.opened .vertical {
  transition: all 0.5s ease-in-out;
  transform: rotate(90deg);
}

.filter-section.active .toggle-icon.opened .horizontal {
  transition: all 0.5s ease-in-out;
  transform: rotate(90deg);
  opacity: 0;
}



/* Collapsible content (hidden by default) */
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  display: flex;
  flex-direction: column;
  gap: 0.2rem; 
  padding-left: 0.625rem; 
}

/* When expanded */
.filter-section.active .collapsible-content {
  max-height: 14rem;
}

.filter-section .collapsible-content {
  overflow-y: auto; 
}

.filter-section .collapsible-content::-webkit-scrollbar {
  width: 0.4rem;
}

.filter-section .collapsible-content::-webkit-scrollbar-thumb {
  background-color: var(--additional-Color); 
  border-radius: 5px;
}

.filter-section .collapsible-content::-webkit-scrollbar-track {
  background-color: #dddddd; 
  border-radius: 5px;
}


/** --- */
/* Hide the default radio button */
.custom-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  position: relative;
}

.custom-radio input[type="radio"] {
  display: none;
}

.radio-label-container {
  margin-left: 1rem;
  flex-grow: 1;
  overflow: hidden; 
  position: relative;
  max-width: 100%;
}

.radio-label {
  color: var(--text-color);
  font-size: 1.125rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: inline-block;
  transition: all 0.5s ease;
  position: relative;
}

.radio-label.scroll {
  text-overflow: clip;
}

.radio-label-container:hover .radio-label.scroll {
  animation: scrollText 5s linear infinite;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%); 
  }
}

.custom-radio-circle {
  width: 0.875rem;
  height: 0.875rem;
  border: 1px solid #555555;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.custom-radio input[type="radio"]:checked + .custom-radio-circle {
  background-color: var(--additional-Color);
  border-color: var(--additional-Color);
}

.custom-radio input[type="radio"]:checked + .custom-radio-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.5rem;
  height: 0.5rem;
  background-color: #ffffff;
  border-radius: 50%;
}

.custom-radio:hover .custom-radio-circle {
  border-color: var(--additional-Color);
  background-color: #f2f2f2;
}

.sub-category {
  margin-left: 1.5rem; /* Indentation for first-level subcategories */
}

.sub-sub-category {
  margin-left: 3rem; /* Additional indentation for second-level subcategories */
}

.sub-category .radio-label-container span, .sub-sub-category .radio-label-container span {
  font-size: 1rem;
}



/** --- */
.price-range {
  display: flex;
  flex-direction: column;
  gap: 0.625rem; 
}

.price-range h3 {
  font-size: 1.125rem;
  color: var(--title-color);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 2rem;
}

input[type="range"] {
  width: 100%;
  height: 2rem;
  position: absolute;
  pointer-events: none;
  background: transparent;
  z-index: 2;
  appearance: none; 
}

input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  width: 1rem;
  height: 1rem;
  background-color: #ffffff;
  border: 2px solid var(--additional-Color);
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none; 
}

input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  width: 1rem;
  height: 1rem;
  background-color: #ffffff;
  border: 2px solid var(--additional-Color);
  border-radius: 50%;
  cursor: pointer;
  appearance: none; 
}

/* input[type="range"]::-webkit-slider-runnable-track {
  height: 0.25rem;
  background-color: #ddd;
}

input[type="range"]::-moz-range-track {
  height: 0.25rem;
  background-color: #ddd;
} */

.slider-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 0.25rem; 
  background-color: #dddddd;
  width: 100%;
  z-index: 1;
}

.price-values {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--title-color);
  display: flex;
  justify-content: space-between; 
}




#filter-btn {
  width: max-content;
  margin: 1.25rem auto;
  padding: 0.5rem 3rem;
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
  border-radius: 5rem;
  cursor: pointer;
  font-size: 1.125rem;
  letter-spacing: 1px;
  font-weight: 500;
  z-index: 3;
  transition: background-color 0.3s ease-out;
}

#filter-btn:hover, #filter-btn:focus {
  background-color: var(--additional-Color);
  border: 2px solid var(--additional-Color);
  color: var(--white-text);
}





/** main product grid area */
.product-list {
  width: 80%;
  padding: 1rem; 
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  color: var(--title-color);
}

.custom-select {
  width: 1.5rem;
  height: 1.5rem;
  text-align: center;
  color: #555555; 
  background-color: transparent; 
  border: 1px solid #555555; 
  border-radius: 0.5rem; 
  appearance: none; /* Remove default select arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
}

.custom-select:hover,
.custom-select:focus {
  border-color: #a83a32;
  outline: none;
  cursor: pointer;
}


.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  /* grid-template-columns: repeat(3, 1fr); 
  gap: 1.25rem;  */
}




/* Product item styles */
.product-item {
  width: 30%;
  overflow: hidden; 
  border-radius: 0.75rem; 
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.product-item .new {
  width: auto;
  height: auto;
  padding: 0 10px;
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #00b46a;
  color: #ffffff; 
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25em 0.5em;
  border-radius: 0.5rem;
  text-transform: uppercase;

  text-align: center;
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, .2);
  z-index: 5;
  /* width: auto !important; */
  /* height: 30px !important; */
}

.item-images {
  width: 270px;
  height: 360px;
  position: relative;
  margin: 1rem;
  padding: 1rem;
  overflow: hidden; 
  border-radius: 0.75rem; 
  box-shadow: 0 4px 6px 2px rgba(0, 0, 0, 0.13), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.item-images img {
  width: 100%;
  height: 100%;
  margin: 0; 
  object-fit: cover;
  display: block;
  transition: all 0.8s ease; 
}

.hover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  opacity: 0;
  transition: all 0.3s ease; 
  transform: scale(1); 
  cursor: pointer;
} 

.image-hover-effect:hover .hover-image {
  opacity: 1;
  transform: scale(1.1); 
}

.image-hover-effect:hover .main-image {
  opacity: 0;
}

.item-icons {
  position: absolute;
  top: 1rem;
  right: -1rem;
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  z-index: 30;
  opacity: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

#add-to-wishlist {
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#add-to-wishlist label {
  width: 50%;
  height: 50%;
  cursor: pointer;
}

.item-icons svg {
  width: 100%;
  height: 100%;
}

#add-to-wishlist input:checked + svg .heart-path {
  fill: #111111; 
  stroke: #111111; 
}

.image-hover-effect:hover .item-icons {
  right: 1rem;
  opacity: 1;
}

.item-button {
  width: max-content;
  position: absolute;
  bottom: -1rem;
  left: 1rem;
  right: 1rem;
  z-index: 5;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 20px;
  margin: auto;
  border: none;
  border-radius: 5rem;
  background-color: #ffffff;
  opacity: 0;
  color: var(--title-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.item-button:hover {
  background-color: var(--additional-Color);
  color: var(--white-text);
}

.image-hover-effect:hover .item-button {
  bottom: 1rem;
  opacity: 1;
}

.item-product-infos {
  Width: 270px;
  position: relative;
  display: flex;
  flex-direction: column;
  font-weight: 500;
  margin: 1rem;
  padding: 0 1rem;
}

.product-name a {
  text-decoration: none; 
  text-transform: capitalize;
  color: inherit; 
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--title-color);
}

.product-price {
  font-size: 1rem;
  color: var(--text-color);
}

.empty-search {
  margin-top: 3rem;
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center;
  text-align: center;
  color: var(--title-color);
}

.empty-search img {
  width: 50%;
}

.empty-search h2 {
  font-size: 2rem;
}

.empty-search p {
  font-size: 1.25rem;
}













/* ----------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------- */


/* 
   ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
   ┃ Description: Responsive design          ┃
   ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛  
*/



@media (min-width: 1921px) {
  .product-page {
    width: 65%;
  }
}
/*======================================================================================================*/



@media (max-width: 1440px) {
  .product-page {
    width: 100%;
    padding: 2rem 3rem;
  }

  .item-images {
    width: 256px;
    height: 342px;
  }

  .item-product-infos {
    Width: 256px;
  }
}
/*======================================================================================================*/



@media (max-width: 1366px) {
  .item-images {
    Width: 216px;
    Height: 288px;
  }

  .item-product-infos {
    Width: 216px;
  }

}
/*======================================================================================================*/



@media (max-width: 1280px) {
  .product-page {
    padding: 2rem 2rem;
  }  

}
/*======================================================================================================*/



@media (max-width: 1024px) {
  .product-page {
    flex-direction: column;
    align-items: center;
  }

  .filter-container {
    width: 100%;
    background-color: #f5f5f5;
  }

  .filters {
    width: 60%;
    margin: auto;
    border-right: 0;
    padding: 1rem;
  }

  .product-list {
    width: 100%;
    /* padding: 0.5rem; */
  }

  .item-images {
    padding: 0.875rem;
  }

  .product-item .new {
    left: 0.875rem;
    top: 0.875rem;
  }

  .slider-container {
    width: 80%;
    margin: auto;
  }

  .item-icons {
    right: 1rem;
    opacity: 1;
  } 

  .item-product-infos {
    padding: 0 0.5rem;
  }
}
/*======================================================================================================*/



@media (max-width: 995px) {
  .item-button {
    display: none;
  } 
}
/*======================================================================================================*/



@media (max-width: 800px) {
  .item-images {
    Width: 189px;
    Height: 252px;
    padding: 0.75rem;
  }

  .product-item .new {
    left: 0.75rem;
    top: 0.75rem;
  }

  .item-product-infos {
    Width: 189px;
  }

  .product-name a {
    font-size: 1rem;
  }

  .product-price {
    font-size: 0.875rem;
  }

  #filter-title {
    font-size: 1.25rem;
  }
}
/*======================================================================================================*/



@media (max-width: 768px) {
  .product-item {
    width: 40%;
  }

  .item-images {
    padding: 0.5rem;
  }

  .product-item .new {
    left: 0.5rem;
    top: 0.5rem;
  }
}
/*======================================================================================================*/



@media (max-width: 720px) {
  .product-item {
    width: 50%;
  }
  
  .filters {
    width: 70%;
  }  

}
/*======================================================================================================*/



@media (max-width: 600px) {
  /* .product-item {
    width: 65%;
  } */
  .filters {
    width: 80%;
  }

}
/*======================================================================================================*/



@media (max-width: 500px) {
  .item-images {
    Width: 162px;
    Height: 216px;
  }

  .item-product-infos {
    Width: 162px;
  }

  .filters {
    width: 90%;
  }
  
  .product-page {
    padding: 2rem 1rem;
  }

  .product-list {
    padding: 0;
    margin-top: 1rem;
  }
}
/*======================================================================================================*/



@media (max-width: 410px) {
  .filters {
    width: 100%;
  }
}
/*======================================================================================================*/



@media (max-width: 375px) {
  .item-images {
    Width: 135px;
    Height: 180px;
  }

  .item-product-infos {
    Width: 135px;
  }
}
/*======================================================================================================*/



