.marginTop {
  margin-top: 150px;
}

.category-header {
  padding: 60px 0 10px;
}

.category-header h2 {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  /* font-family: var(--font-fm2); */
}

.main-container {
  display: flex;
  /* max-width: 1300px; */
  margin: 50px auto;
  padding-inline: 5%;
  gap: 30px;
}

.sidebar {
  width: 250px;
  position: relative;
}

.sidebar h2 {
  font-size: 34px;
  margin-bottom: 30px;
  font-weight: 500;
}



.filter-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.filter-group {
  margin-bottom: 30px;
}

.filter-group ul {
  padding-left: 0;
}

.filter-group h3 {
  font-size: 18px;
  font-weight: 500;
}

#category-toggle i {
  font-size: 15px;
}

.filter-group ul {
  list-style: none;
}

.filter-group ul li {
  margin-bottom: 8px;
  cursor: pointer;
  color: #333;
  font-size: 16px;
}

.filter-group .colors {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.filter-group .color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
}

.color1 {
  background: #a57c56;
}

.color2 {
  background: #333;
}

.content {
  flex: 1;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left {
  font-size: 16px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-dropdown {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}




.layout-buttons button {
  padding: 8px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
  width: 30px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.layout-buttons button.active,
.layout-buttons button:hover {
  background-color: #000000;
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}







.add-to-cart {
  padding: 10px 16px;
  background: white;
  /* Default is white */
  color: transparent;
  /* Hide text initially */
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* On hover of entire product */
.product:hover .add-to-cart {
  background-color: #8a1344;
  color: white;
  /* Show text */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  border: none;
}




.product:hover {
  transform: translateY(-5px);
}

/* Image styling */
.product img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
  object-fit: contain !important;
  aspect-ratio: 244 / 325;
  cursor: pointer;
}



.product:hover .icon-container {
  opacity: 1;
  pointer-events: auto;
}

.icon-container i {
  background: white;
  color: #333;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.icon-container i:hover {
  background-color: #e91e63;
  color: white;
  transform: scale(1.1);
}



.product {
  position: relative;
  background: #fff;

  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.product.list-style {
  flex-direction: row;
  /* height: 270px; */
}

.product.list-style img {
  width: 270px;
  height: auto;
  margin-right: 35px;
}

.product.list-style .product-main-content {
  display: flex;
  flex-direction: column;
  width: calc(100% - 305px);
  flex-shrink: 1;
  gap: 10px;
  justify-content: center;
}

.product.list-style .add-to-cart {
  width: fit-content;
  height: 50px;
  border-radius: 5px;
  padding-inline: 40px;
  transform: translateY(0);
  opacity: 1;
  background-color: #8a1344;
  color: white;
}

.product.list-style p{
  font-size: 16px;
}

.product-desc {
  display: none;
}

.product-desc.active{
  display: block;
}

.product-desc p {
  font-size: 16px;
  color: var(--para-color);
  font-weight: 400;
}


.product:hover {
  transform: translateY(-5px);
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
  object-fit: contain !important;
}

.discount-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #8a1344;
  color: white;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 5px;
  font-weight: bold;
}

.product p {
  color: gray;
  font-size: 13px;
  margin: 5px 0;
  text-align: left;
}

.product h2 {
  font-size: 20px;
  font-weight: 400;
  margin: 10px 0;
  line-height: 1.3;
  color: #333;
  text-align: left;
  /* font-family: var(--font-fm2); */

  
}

.product h3 {
  color: #e91e63;
  font-size: 18px;
  margin: 5px
}

.toggle-header {
  font-size: 18px;
  font-weight: 500;
}

.icon-container {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product.list-style .icon-container {
  opacity: 1;
  flex-direction: row;
 position: unset;
 margin-top: 10px;

}

.product:hover .icon-container {
  opacity: 1;
  pointer-events: auto;
}

.icon-with-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
}

.icon-with-label i {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.icon-with-label i:hover {
  background-color: #8a1344;
  color: white;
  transform: scale(1.1);
}
.icon-with-label.active i {
  background-color: #8a1344;
  color: white;
  transform: scale(1.1);
}

.icon-label {
  position: absolute;
  right: 100%;
  margin-right: 8px;
  background-color: #333;
  color: #fff;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.icon-with-label:hover .icon-label {
  opacity: 1;
  transform: translateX(0);
}







.filter-group,
.filter-section {
  margin-bottom: 20px;
}

h3 {
  font-size: 18px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

ul {
  list-style: none;
  padding-left: 10px;
  margin-top: 10px;
}



li {
  margin-bottom: 5px;
  color: gray;
}

.filter-options {
  margin-top: 20px;
  padding-left: 0;
  display: none;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.filter-options.active {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.filter-options > div {
  cursor: pointer;
}

.price-filter-option {
  flex-direction: column;
  align-items: flex-start;
}

.price-filter-option > div.active {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  cursor: pointer;
  border: 2px solid transparent;
}

.color-circle.active {
  border: 2px solid black;
}

.filter-button {
  padding: 8px 14px;
  border: 1px solid #ccc;
  margin: 5px 5px 0 0;
  cursor: pointer;
  border-radius: 5px;
  background-color: white;
}

.filter-button.active {
  background-color: #333;
  color: white;
  border-color: #333;
}

.toggle-icon {
  font-weight: bold;
  font-size: 20px;
}

.toggle-icon i {
  font-size: 15px;
}


/* Star Ratings ke liye CSS */
.star-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #facc15;
  /* Tailwind ka yellow-400 */
  font-size: 0.7rem;
}


.price-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: Arial, sans-serif;
}

.old-price {
  color: #333;
  text-decoration: line-through;
  font-size: 16px;
}

.new-price {
  color: #8a1344;
  /* orange */
  font-weight: bold;
  font-size: 16px;
}








.highlight-features-wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 30px 10px;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
  flex-wrap: wrap;
}

.highlight-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 10px;
  flex: 1 1 200px;
  /* Ensure responsive width */
  min-width: 200px;
}

.feature-icon {
  margin-top: 3px;
}

.feature-text {
  font-size: 14px;
  color: #000;
}

.feature-divider {
  width: 1px;
  background-color: #ddd;
  height: 40px;
  align-self: center;
}

/* Responsive tweak: Stack on mobile */
@media (max-width: 768px) {
  .highlight-features-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .feature-divider {
    display: none;
  }
}



.sidebar-filter-open {
  display: none;
  position: fixed;
  background-color: #fff;
  /* border: 1px solid #000; */
  bottom: 50%;
  left: 0px;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 0 5px #f89e6aa8;
  z-index: 1001;
  transform: translateX(-25%) rotate(270deg);
}

.sidebar-filter-open h3 {
  font-size: 16px;
  font-weight: 600;
}

.close-filter-sidebar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  display: none;
}

.close-filter-sidebar i {
  font-size: 20px;

}



@media(max-width: 820px) {
  .sidebar {
    position: fixed;
    width: 400px;
    max-width: calc(100vw - 55px);
    background-color: white;
    height: 100%;
    left: 0;
    visibility: hidden;
    top: 0;
    z-index: 1111;
    transform: translateX(-100%);
    transition: all 0.4s ease-in-out;
    padding: 50px;
  }

  .sidebar-filter-open {
    display: block;
  }

  .sidebar.active {
    transform: translateX(0);
    visibility: visible;
  }

  .close-filter-sidebar {
    display: flex;

  }

}








@media(max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    padding-inline: 5%;
  }
}

@media(max-width: 500px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}


@media(max-width: 1080px) {
  .main-container {
    gap: 15px;
  }

  .product.list-style img {
    width: 240px;
    object-position: top;
  }

  .product.list-style .product-main-content {
    width: calc(100% - 275px);
  }

}