/* Layout */
.shop-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  margin: 30px auto;
  max-width: 1280px;
  padding: 0 20px;
}
.results-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:20px 0px;
}
.results-wrapper h3{
    font-family: Mulish;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    color:rgba(19, 26, 34, 0.77);
    margin:0;

}
@media (max-width: 960px) {
  .shop-wrap {
    grid-template-columns: 1fr;
  }
}


.checbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
    padding-top: 5px;
}

/* Hide the browser's default checkbox */
.checbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  border: 1px solid #131A22;
  border-radius:5px;
}

/* On mouse-over, add a grey background color */
/*.checbox-container:hover input ~ .checkmark {*/
/*  background-color: #ccc;*/
/*}*/

/* When the checkbox is checked, add a blue background */
.checbox-container input:checked ~ .checkmark {
  background-color: #C7AA8C;
   border: 0px;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checbox-container .checkmark:after {
    left: 8px;
    top: 3px;
    width: 9px;
    height: 13px;
  
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  
}
/* Sidebar */
.sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 0px 20px 24px 20px;
}
.sidebar h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: Mulish;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 1%;
    vertical-align: middle;

}
.block {
  margin-bottom: 24px;
}
.block-title {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}
.block label {
font-family: Mulish;
font-weight: 400;
font-style: Regular;
font-size: 14px;
leading-trim: NONE;
line-height: 100%;
letter-spacing: 1%;
vertical-align: middle;
color:#131A22;
margin-bottom:0px;
}
.block label.block-title{
    font-family: Mulish;
font-weight: 700;
font-style: Bold;
font-size: 16px;
leading-trim: NONE;
line-height: 100%;
letter-spacing: 1%;
vertical-align: middle;
color:#131A22;
margin-bottom:17px;
}
.selected-price-row label.block-title{
    font-family: Mulish;
font-weight: 700;
font-style: Bold;
font-size: 16px;
leading-trim: NONE;
line-height: 100%;
letter-spacing: 1%;
vertical-align: middle;
color:#131A22;
margin-bottom:0px;
}
.block input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #111; /* modern browsers */
}

.selected-price-row #priceMaxVal{
    font-family: Mulish;
font-weight: 700;
font-style: Bold;
font-size: 16px;
leading-trim: NONE;
line-height: 100%;
letter-spacing: 1%;
text-align: right;
vertical-align: middle;
color:#C7AA8C;
}
/* Range slider */
.selected-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  margin-bottom: 17px;
}
.range-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  margin-top: 17px;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #111 100%, #e5e7eb 100%);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #C7AA8C;
  cursor: pointer;
  border: none;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #C7AA8C;
  border: none;
  cursor: pointer;
}

/* Products header */
.products-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding:10px 15px;
  border:1px solid rgba(19, 26, 34, 0.1);
}
.products-head input[type="search"] {
  flex: 1;
  max-width: 320px;
  border:none;
  border-radius: 8px;
  font-size: 14px;
}
.products-head select {
  border-radius: 8px;
    border: none;
    background: #fff;
    font-size: 14px;
    display: flex
;
    max-width: 15%;
    width: 100%;
}
.search.wrapper {
    display: flex;
    align-items: center;
    max-width: 83%;
    width: 100%;
}
.search.wrapper input {
    width: 95%;
    max-width: unset;
    outline:none;
}
.search.wrapper svg {
    width: 5%;
}
.vertical-line {
    display: flex;
    max-width: 2%;
    width: 100%;
    justify-content: end;
}
.count {
  font-size: 13px;
  color: #666;
}

/* Product grid */
.product-grid
 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap:20px 10px;
}
.custom-product-card {
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.prod-img {
    overflow: hidden;
}
.custom-product-card img {
  width: 100%;
  height: auto;
  transition: 0.3s;
}
.custom-product-card img:hover {
    transform: scale(1.1);
}
.custom-product-card h4 {
    margin: 0 0 10px;
    font-family: Mulish;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color:#131A22;
    opacity:0.7;

    /* 👇 Line clamp properties */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Sirf 2 lines dikhe */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.price del {
    display: none;
}

.custom-product-card .price {
    display: block;
    font-family: Mulish;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    color: rgba(61, 49, 49, 0.7) !important;
}

.sidebar .close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 20px;
  color: #131A22;
  cursor: pointer;
  display: none; /* Initially hidden */
}

@media only screen and (max-width:1024px){
    .search.wrapper{
        max-width: 75%;
    }
}
@media only screen and (max-width:960px){
    .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    background: #fff;
    width: 280px;
    z-index: 9999;
    transform: translateX(100%); /* hide outside screen */
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
  }
  form#filtersForm {
    height: auto;
    overflow-y: auto;
    max-height: 90vh;
}
   .sidebar.active {
    transform: translateX(0);/* slide-in */
    padding:20px 15px;
  }
.sidebar .close-btn {
    display: block; /* Show cross icon */
  }
  /* Hide sidebar in grid */
  .shop-wrap {
    display: flex;
    flex-direction: column;
  }

  /* Filter icon visible only in mobile */
  .filter-icon {
    display: block;
    cursor: pointer;
  }
}
@media (min-width: 961px) {
  .filter-icon {
    display: none;
  }
}
/* Responsive tweaks */
@media (max-width: 768px) {
  .products-head input[type="search"] {
        max-width: 90%;
    }
    

.products-head select {
  max-width: 6%;
  appearance: none; /* Remove default icon */
  background:url("https://stage.misselli.com/wp-content/uploads/2025/09/Vector.png");
  background-size: contain;
        width: 20px;
        height: 20px;
        background-repeat: no-repeat;
        display: flex;
        justify-content: flex-end;
        outline: none;
}
.products-head{
    gap:10px;
}
.search.wrapper svg {
    width: 18px;
    height: 18px;
}
.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.custom-product-card h4 {
    font-size: 14px;
    line-height: 20px;
}
.custom-product-card .price{
    font-size:18px;
}
}
