.marginTop {
  margin-top: 20px;
}

/* .category-header {
  width: 100%;
  height: 150px;
} */

/* Desktop */

.empty-cart-icons{
    display: flex;
    justify-content: center;
}

.empty-cart-icons IMG{
      width: 50vw !important;
      height: 40vw !important;
      overflow: hidden;
  }

.sidebars {
    position: fixed;
    width: 300px;
    height: 100%;
    background: white;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: 0.3s;
    visibility: hidden;
    z-index: 1211;
}

.filter-btn{
  padding: 12px;
    /* border-bottom: 1px solid rgba(227, 229, 229, 1); */
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: end !important;
    align-items: center;
    margin-bottom: 20px;
}

.sidebars.active {
    transform: translateX(0);
    visibility: visible;
    padding-inline: 20px;
}

.sidebar-filter-open{
  display: none !important;
}

.sidebar {
  width: 250px;
  position: relative;
  overflow: auto;
}

.sidebar h2 {
  font-size: 34px;
  margin-bottom: 30px;
  font-weight: 500;
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
      overflow-y: scroll;
    height: 75vh;
    scrollbar-width: thin;
    scrollbar-color: black #f1f1f1;
}

.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;
}

@media (min-width: 992px) {
  .main-container {
    align-items: flex-start;
  }

  .sidebar {
    position: sticky;
    top: 110px;
    align-self: flex-start;
    max-height: calc(100vh - 130px);
    overflow: hidden;
  }

  .filter-container {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding-right: 6px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: black #f1f1f1;
  }

  .content {
    min-width: 0;
    max-height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
  }

  .products-grid {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: black #f1f1f1;
  }
}


.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;
}


.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;
  flex-wrap: wrap;
  flex-direction: row;
}

.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;
}
.filter-buttons {
  padding: 8px 14px;
  border: 1px solid #ccc;
  margin: 5px 5px 0 0;
  cursor: pointer;
  border-radius: 5px;
  background-color: white;
}

.filter-buttons.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;
        justify-content: space-between;
        gap: 6px;
        font-size: var(--txt-font-mobile);
}


.old-price {
  color: #333;
  text-decoration: line-through;
        font-size: 14px;
          font-family: var(--font-fm2);
}

.new-price {
  color: #8a1344;
  /* orange */
  font-weight: bold;
        font-size: 14px;
          font-family: var(--font-fm2);
}

.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;
  padding: 0px 2%;
  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;
  }
  .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.product{
  border: none !important;
}

.Subcategory-list {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.subcate_container {
width: 100%;
        height: 100%;
        display: flex;
        gap: 15px;
        overflow-y: hidden;
        overflow-x: scroll;
        justify-content: start;
        align-items: center;
        padding: 0 10px;
}
.Category-Box {
         min-width: 70px;
        /* max-width: 100px; */
        padding: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        width: 100%;
        text-wrap: nowrap;
                text-transform: capitalize;
    }
.Category-Box img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}
.Category-Box h6 {
  color: var(--normal-txt-color);
  font-family: var(--main-font-family);
  font-weight: 500 !important;
  font-size: 16px;
  text-align: center;
}
.main-container {
  display: flex;
  margin: 50px auto;
  padding-inline: 2%;
  gap: 30px;
}

  .feature-divider {
    display: none;
  }
  /* Button Styles */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary {
    font-size: 19px;
  background: #fff5f7;;
  color: #333;
   border:1px solid  #8a1344;
}
.btn-primary:hover {
  background: #0056b3;
}
.btn-secondary {
  background: #f1f1f1;
  color: #333;
}
.btn-secondary:hover {
  background: #e0e0e0;
}

/* Modal Styles */
.addressmodal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center; align-items: center;
}
/* .modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
} */
.close-btn {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
}
.close-btn:hover {
  color: #000;
}

/* Address Cards */
.address-list {
  margin: 15px 0;
  max-height: 250px;
  overflow-y: auto;
}
.address-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.address-card h4 {
  margin: 0 0 5px;
  font-size: 16px;
  color: #333;
}
.address-card p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Form */
form label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}
form input, form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
form textarea {
  resize: none;
  height: 70px;
}
}

.input-box{
  display: flex;
    align-items: center;
    gap: 18px;
    font-size: 18px;
}

.sidebar-filter-open {
  display: flex;
  background-color: #fff;
  padding: 10px 0px;
  border-radius: 6px;
width: 100%;
  z-index: 1001;
  justify-content: space-around;

}

.line_throught{
      background-color: rgba(227, 229, 229, 1);
    display: flex;
    padding: 0.2px;
}

.filter_btn{
    padding: 12px;
    /* border-bottom: 1px solid rgba(227, 229, 229, 1); */
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: end;
    align-items: center;
}

.sidebar-filter-open h3 {
  font-size: 16px;
  font-weight: 600;
}

.close-filter-sidebars{
  position: relative;
    left: 115%;
    width: 40px;
    background: white;
    height: 40px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 22px;
}

.close-filter-sidebar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 10px;
    z-index: 1368;
   bottom: 63%;
    cursor: pointer;
    background: white;
    display: none;
    border-radius: 34px;
    transition: all 0.3s ease-in-out;
}

.close-filter-sidebar i {
  font-size: 20px;
}




@media (max-width: 820px) {
  .sidebar {
           position: fixed;
        width: 100%;
        border-top-right-radius: 20px;
        border-top-left-radius: 20px;
        background-color: white;
        height: 100%;
        left: 0;
        height: 68%;
        bottom: 0%;
        visibility: hidden;
        z-index: 1211;
        transform: translateY(100%);
        transition: all 0.3s 
ease-in-out;
        padding: 50px;
  }
.close-filter-sidebars{
    position: relative;
    left: 92%;
    width: 40px;
    background: white;
    height: 40px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 22px;
}

  .sidebars{
      position: fixed;
        width: 100%;
        top: unset !important;
        border-top-right-radius: 20px;
        border-top-left-radius: 20px;
        background-color: white;
        height: 100%;
        left: 0;
        height: fit-content;
        bottom: 0%;
        visibility: hidden;
        z-index: 1211;
        transform: translateY(100%);
        transition: all 0.3s ease-in-out;
        padding: 14px 5%;
  }

  .sidebars.active {
    transform: translateY(0);
    visibility: visible;
                  border-top-right-radius: 20px;
        border-top-left-radius: 20px;
  }

  .sidebar.active {
    transform: translateY(0);
    visibility: visible;
                 border-top-right-radius: 20px;
        border-top-left-radius: 20px;
  }

  .Popular{
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-block: 9%;
  }
  
}

@media (max-width: 992px) {
  .products-grid {
display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  /*.products-grid {*/
  /*display: flex;*/
  /*  flex-wrap: wrap;*/
  /*  gap: 15px;*/
  /*}*/

  .sidebar {
    padding-inline: 5%;
  }
  .marginTop {
    margin-top: 84px;
}

.main-container{
      margin-top: 8px;
}
}

@media (max-width: 500px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .empty-cart-icons IMG{
      width: 100vw !important;
      overflow: hidden !important;
      height: unset !important;
  }
}

@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);
  }
}

    /*my search bar*/

.search-container {
  position: relative;
}

.search-popup {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: auto;
  width: 40%;   /* default for large screens */
  max-height: 220px;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: none;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* Tablets */
@media (max-width: 992px) {
  .search-popup {
    width: 60%;   /* wider on tablets */
  }
}

/* Mobiles */
@media (max-width: 576px) {
  .search-popup {
    width: 90%;   /* almost full width */
    left: 5%;     /* center it */
    right: 5%;
  }


  .logo img{
    display: none;
  }

   .icon-container {
    display: flex;
    justify-content: space-between;
    /* margin-top: 15px; */
    opacity: 1;

  }

  .add-to-cart {
    background-color:#8a1344;
    opacity: 2;
    color: white;
    transform: none;
    transition: none;
  }
}

@media (max-width: 600px) {
  .header {
    display: none;
  }
  
  .filter-container {
      scrollbar-width: none;
  }

  .header_21 {
    position: sticky;
    top: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
  }

  .header_21 .logo {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .header_21 .logo strong {
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
  }

  .marginTop {
    margin-top: 0;
  }

  .category-header {
    background: #fff;
    padding: 10px 0 6px;
    border-bottom: 1px solid #efefef;
  }

  .subcate_container {
    gap: 12px;
    padding: 0 8px 8px;
    justify-content: flex-start;
  }

  .Category-Box {
    min-width: 84px;
    width: 84px;
    gap: 8px;
    padding: 0;
  }

  .Category-Box img {
    width: 76px;
    height: 76px;
    padding: 4px;
    /* border: 4px solid #2f3640;
    background: #dcc4a5; */
    object-fit: cover;
  }

  .Category-Box h6 {
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  .sidebar-filter-open {
    display: flex !important;
    /* position: sticky; */
    top: 69px;
    z-index: 1190;
    padding: 0;
    background: #fff;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
  }

  .sidebar-filter-open + .sidebar-filter-open,
  .sidebar-filter-open + .sidebar-filter-open + .sidebar-filter-open {
    display: none !important;
  }

  .filter_btn {
    justify-content: center;
    gap: 10px;
    padding: 14px 0;
  }

  .sidebar-filter-open h3 {
    font-size: 16px;
    font-weight: 600;
  }

  .line_throught {
    width: 1px;
    padding: 0;
    align-self: stretch;
  }

  .main-container {
    margin: 12px 0 90px;
    padding-inline: 8px;
    gap: 12px;
  }

  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
            padding-bottom: 70px;
  }
.content .filter_btn{
  display: none;
}
 .product {
    width: 100%;
    min-width: 100%;
    padding: 10px; /* spacing ke liye */
    box-sizing: border-box;
    border: 1px solid #ededed;
    border-radius: 12px;
    /*overflow: hidden;*/
    box-shadow: none;
}


.products-grid{
    overflow: auto;
    scrollbar-width: none;
    height: 100%;
}

  .product img {
    aspect-ratio: 0.8;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
  }

  .product_info {
    padding: 10px 10px 12px;
  }

  .product p {
    font-size: 15px;
    margin: 0 0 6px;
    min-height: 40px;
  }

  .new-pricebpcs {
    font-size: 15px;
  }

  .old-pricepcs {
    font-size: 11px;
    line-height: 1.35;
  }

  .price-container {
    gap: 6px;
    padding-block: 2px 0;
  }

  .discount-label {
    font-size: 11px;
    border-radius: 6px;
    padding: 3px 8px;
  }

  .wishlist-icon {
    top: 8px;
    right: 8px;
    padding: 6px;
  }

  .add-to-cart {
    display: none;
  }
}

.search-popup ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-popup li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.search-popup li:hover {
  background-color: #f0f0f0;
}

/* Category page refresh */
body {
  /* background: #f6f7fb; */
}

.category-header {
  padding: 10px 0 0;
  background: transparent;
}

.Subcategory-list {
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 0 2%;
}

.subcate_container {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  justify-content: flex-start;
  padding: 6px 0 14px;
  scrollbar-width: none;
}

.subcate_container::-webkit-scrollbar {
  display: none;
}

.Category-Box {
  width: 96px;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.Category-Box img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50px;
  /*border: 1px solid #eceef3;*/
  /*background: #fff;*/
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.Category-Box h6 {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  color: #273041;
}

.Category-Box:hover img {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.category-action-bar {
  display: none;
}

.main-container {
  /* max-width: 1400px; */
  margin: 20px auto 64px;
  padding: 0 0.3%;
  gap: 24px;
  align-items: flex-start;
}

.sidebar {
  width: 280px;
  min-width: 280px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.sidebar h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 600;
  color: #111827;
}

.filter-container {
  height: auto;
  gap: 18px;
  padding-right: 4px;
}

.filter-section {
  margin-bottom: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f7;
}

.filter-section:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.toggle-header {
  font-size: 15px;
  font-weight: 600;
  color: #1d2738;
}

.filter-options {
  margin-top: 12px;
  gap: 10px;
  padding-left: 0;
}

.filter-options.active {
  display: flex;
}

.filter-button,
.filter-buttons {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #d9dfeb;
  border-radius: 999px;
  background: #f8faff;
  font-size: 13px;
  font-weight: 500;
  color: #243041;
  transition: all 0.2s ease;
}

.filter-button:hover,
.filter-buttons:hover {
  border-color: #111;
  color: #111;
}

.filter-button.active,
.filter-buttons.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.color-circle {
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cfd6e3;
}

.color-circle.active {
  box-shadow: 0 0 0 2px #111;
  border-color: #fff;
}

.selected-filters {
  display: none;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid #edf1f7;
}

.selected-filters.active {
  display: block;
}

.selected-filters strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #111827;
}

#filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 24px;
  /* background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06); */
  max-height: none;
  overflow: visible;
}

.category-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #edf1f7;
}

.category-results-label {
  margin: 0;
  font-size: 15px;
  color: #697284;
}

.category-results-label span {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.category-sort-trigger {
  width: auto;
  padding: 10px 16px;
  border: 1px solid #dfe4ee;
  border-radius: 999px;
  background: #f8faff;
  justify-content: center;
  cursor: pointer;
}

.category-sort-trigger h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  overflow: visible !important;
  max-height: none !important;
  padding-right: 0;
}

.products-grid .product {
  width: 100% !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #ecf0f5 !important;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.products-grid .product:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.products-grid .product-img {
  display: block;
  position: relative;
  background: #f3f5fa;
}

.products-grid .product img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
  margin-bottom: 0px;
}

.products-grid .product_info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 14px;
}

.products-grid .product p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #1d2738;
  min-height: 40px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.products-grid .price-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.new-pricebpcs {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.old-pricepcs {
  font-size: 12px;
  color: #6b7280;
}

.discount-label {
  position: static;
  width: max-content;
  order: 3;
  padding: 5px 10px;
  border-radius: 999px;
  /* background: #fff2f6;
  color: #8a1344; */
  font-size: 11px;
  font-weight: 600;
}

.limited-deal {
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
}

.wishlist-icon {
  top: 12px;
  right: 12px;
  padding: 8px !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.add-to-cart {
  margin-top: auto;
  border-radius: 12px;
  min-height: 42px;
  font-size: 14px;
}

.empty-carts-messages {
  width: 207%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d7deea;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfcff 0%, #f4f7fb 100%);
}

.empty-cart-icons img {
  width: 100% !important;
  max-width: 320px;
  height: auto !important;
}

.sidebars {
  top: 0;
  right: 0;
  left: auto;
  width: min(420px, 100%);
  height: 100%;
  transform: translateX(100%);
  visibility: hidden;
  padding: 28px 24px;
  border-radius: 24px 0 0 24px;
  box-shadow: -18px 0 36px rgba(15, 23, 42, 0.12);
}

.sidebars.active {
  transform: translateX(0);
  visibility: visible;
}

.close-filter-sidebars {
  position: absolute;
  top: 18px;
  right: 18px;
  left: auto;
      z-index: 9999;
  background: #f4f6fb;
  display: none;
  cursor: pointer;
}

.Popular {
  padding-top: 44px;
}

.input-box {
  padding: 14px 12px;
  border: 1px solid #e6eaf2;
  border-radius: 16px;
  font-size: 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.input-box:hover {
  border-color: #111;
  background: #fbfcff;
}

@media (min-width: 821px) {
  .category-action-bar,
  .close-filter-sidebar {
    display: none !important;
  }

  .sidebar {
    position: sticky;
    top: 110px;
    align-self: flex-start;
    max-height: calc(100vh - 140px);
    overflow: hidden;
  }

  .filter-container {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c0c7d4 transparent;
  }
}

@media (max-width: 820px) {
  body {
    /* background: #fff; */
  }

  .category-header {
    padding-top: 6px;
  }

  .Subcategory-list {
    padding: 0 12px;
  }

  .subcate_container {
    gap: 12px;
    padding: 4px 0 12px;
  }

  .Category-Box {
    width: 84px;
    min-width: 84px;
    gap: 8px;
  }

  .Category-Box img {
    width: 74px;
    height: 74px;
    border-radius: 50px;
  }

  .Category-Box h6 {
    font-size: 12px;
  }

  .category-action-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    /* position: sticky; */
    top: 68px;
    z-index: 1180;
    padding: 10px 12px 12px;
    /* background: linear-gradient(180deg, #fff 0%, #fff 82%, rgba(255, 255, 255, 0) 100%); */
  }

  .category-action-bar .filter_btn {
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  }

  .category-action-bar .line_throught {
    display: none;
  }

  .main-container {
    margin: 12px 0 90px;
    padding: 0 12px;
  }

  .sidebar,
  .sidebars {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    min-width: 100%;
    height: auto;
    max-height: min(76vh, 680px);
    padding: 22px 16px 24px;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    visibility: hidden;
  }

  .sidebar.active,
  .sidebars.active {
    transform: translateY(0);
    visibility: visible;
  }

  .sidebar h2,
  .sidebars h2 {
    font-size: 24px;
    margin: 0 0 16px;
    padding-right: 48px;
  }

  .filter-container {
    max-height: calc(76vh - 96px);
    overflow-y: auto;
    padding-right: 4px;
  }

  .close-filter-sidebar,
  .close-filter-sidebars {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 35px;
    right: 16px;
    left: auto;
    bottom: auto;
    background: #f4f6fb;
    border-radius: 50%;
    display: none;
    cursor: pointer;
  }

  .content {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .category-results-toolbar {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-bottom: 8px;
  }

  .products-grid .product {
    border-radius: 18px;
    box-shadow: none;
  }

  .products-grid .product_info {
    padding: 12px;
    gap: 10px;
  }

  .products-grid .product p {
    font-size: 13px;
    min-height: 34px;
  }

  .new-pricebpcs {
    font-size: 16px;
  }

  .old-pricepcs {
    font-size: 11px;
  }

  .add-to-cart {
    display: none;
  }
}

@media (max-width: 480px) {
  .category-action-bar {
    top: 64px;
    gap: 10px;
    padding-inline: 10px;
  }

  .main-container {
    padding: 0 10px;
  }

  .products-grid {
    gap: 10px;
  }

  .products-grid .product {
    border-radius: 16px;
  }

  .Category-Box {
    width: 78px;
    min-width: 78px;
  }

  .Category-Box img {
    width: 70px;
    height: 70px;
  }
}

/* Sidebar filter redesign */
@media (min-width: 821px) {
  body {
    background: #fff;
  }

  .main-container {
    gap: 34px;
    margin-top: 12px;
  }

  .sidebar {
    width: 304px;
    min-width: 304px;
    padding: 0 0 24px;
    border: 0;
    border-right: 1px solid #eef1f5;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    top: 92px;
    max-height: calc(100vh - 112px);
  }

  .content {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .category-results-toolbar {
    padding: 0 0 18px;
    margin-bottom: 24px;
  }
}

.sidebar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 22px;
  margin: 0 22px;
  border-bottom: 1px solid #eceff5;
}

.sidebar-header-row h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
}

.clear-filters-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
}

.clear-filters-btn:hover {
  text-decoration: underline;
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 0;
}

.sidebar .filter-section {
  margin: 0;
  padding: 22px 22px 22px;
  border-bottom: 1px solid #eceff5;
}

.sidebar .filter-section:last-child {
  padding-bottom: 20px;
}

.filter-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-section-row h3,
.sidebar .toggle-header {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f2a3d;
}

.sidebar .toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-search-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f5f6fa;
  color: #707a8e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.checkbox-filter-list,
.selected-filters {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.selected-filters,
.selected-filters.active {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: flex;
}

#filters-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-check-link,
#filters-list .filter-buttons {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  text-align: left;
  text-decoration: none;
  color: #22304a;
  cursor: pointer;
}

.filter-check-link:hover,
#filters-list .filter-buttons:hover {
  color: #111827;
}

.filter-check-box {
  position: relative;
  width: 20px;
  min-width: 20px;
  height: 20px;
  border: 1.5px solid #c8cedc;
  border-radius: 3px;
  background: #fff;
}

.filter-check-link.active .filter-check-box,
#filters-list .filter-buttons.active .filter-check-box {
  border-color: #111827;
  background: #111827;
}

.filter-check-link.active .filter-check-box::after,
#filters-list .filter-buttons.active .filter-check-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-check-label {
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

.filter-check-count {
  font-size: 12px;
  line-height: 1.4;
  color: #8b95a7;
}

.filter-placeholder {
  font-size: 13px;
  color: #8b95a7;
}

.more-brands-link {
  border: 0;
  background: transparent;
  padding: 8px 0 0 34px;
  color: #0000;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.more-brands-link[hidden] {
  display: none !important;
}

.filter-section-price .filter-options {
  margin-top: 0;
}

.price-slider-visual {
  position: relative;
  height: 20px;
  margin-bottom: 12px;
}

.price-slider-track,
.price-slider-progress {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
}



.price-slider-thumb-start {
  left: 0;
}

.price-slider-thumb-end {
  right: 18%;
}

.price-range-display {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.price-filter-option {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.price-filter-option .filter-button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e1e5ef;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #42506a;
}

.price-filter-option .filter-button.active {
  border-color: #000000;
  background: #1e1b1c;
  color: #ffff;
}

.sidebar #color-options .filter-options,
.sidebar #filter_size_option .filter-options {
  gap: 10px;
}

@media (max-width: 820px) {
  .sidebar-header-row {
    margin: 0;
    padding: 0 0px 18px 0;
  }

  .clear-filters-btn {
    font-size: 12px;
  }

  .sidebar .filter-section {
    padding: 18px 0 10px;
  }

  .checkbox-filter-list,
  .selected-filters {
    gap: 0;
  }

  .filter-check-link,
  #filters-list .filter-buttons {
    padding: 8px 0;
  }

  .more-brands-link {
    padding-left: 34px;
  }

  .price-filter-option {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

