
.shop-container {
    display: flex;
    padding: 20px;
}

.shop-sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
   width: max-content;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.shop-sidebar h2, .shop-sidebar h3 {
    margin-bottom: 10px;
}

.shop-sidebar ul {
    list-style: none;
    padding: 0;
}

.shop-sidebar label{
    width: 261px;
}
.product h4{
    /* color: #6633cc; */
    color: var(--blue);
    font-size: 1.15rem;
    font-family: var(--secondaryFont);

}
.product p{
    /* white-space: nowrap; */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    letter-spacing: -1px;
    margin-bottom: 0;
    font-weight: 400;
}

del{
    color: gray;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

b{
    /* font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--red);
    font-weight: 700;
    font-size: 1.2rem;
}
.shop-sidebar li, .shop-sidebar h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pagination-controls-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    justify-content: center;
    padding: 10px;
    border-top: 1px solid #ddd;
    margin-top: 20px;
    scrollbar-width: none; /* Firefox */
}

.pagination-controls-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.product-discount{
    background: lightgreen;
    color: #fff;
}

.pagination-controls-scroll button {
    min-width: 40px;
    padding: 6px 12px;
    border: none;
    background-color: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0; /* prevents button from shrinking in scroll */
    transition: background-color 0.2s ease;
}

.pagination-controls-scroll button:hover {
    background-color: #e0e0e0;
}

.pagination-controls-scroll button.active {
    background-color: #333;
    color: white;
}


.shop-sidebar button {
    width: 100%;
    padding: 10px;
    background-color: var(--pink);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

main {
    flex-grow: 1;
    margin-left: 20px;
}

.search-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-sort input, .search-sort select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.small-device-category{
    display: none;
}
.product {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    position: relative;
    width: 250px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.product-image-container{
    /* width: calc(100% + 2rem); */
    width: 100%;
    padding-bottom: 1rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* object-fit: cover; */
}

.product img {
    width: 90%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    object-fit: cover;

}
.product img:hover{
    cursor: pointer;
    transform: scale(1.15);
}

.new, .bestseller {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.bestseller {
    background-color: #ff9800;
}

.product-btn-container> button {
    /* background-color: #28a745; */
    background-color: var(--red);
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
    border: none;
    
    padding: 9px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

/* button:hover {
    background-color: var(--yellow);
    color: var(--white);
} */

/* .product[data-category] {
    display: none;
} */
.product-list{
    justify-content: center;
}

.product-btn-container > button:hover{
    background-color: var(--cyan) ;
    color: var(--blue) ;
    box-shadow: 0 0 5px #fff,
    0 0 3px #fff,
    0 0 5px var(--cyan),
    0 0 10px var(--cyan);
    
  }


  .shop-sidebar> button:hover{
    background-color: #6633cc ;
    /* color: var(--blue) ; */

  }


.btn{
    background-color: transparent !important;
    cursor: pointer;
}
.btn:focus{
    box-shadow: none !important;
}
.btn:hover{
    background-color: var(--yellow) !important;
}


#mobileFilterBtn {
  width: 47%;
  /* position: fixed; */
  /* bottom: 20px; */
  /* left: 25%; */
  background: #1e90ff;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  /* z-index: 10000; */
  display: none;
}

#mobileFilterPanel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  box-shadow: -2px 0 10px rgba(0,0,0,0.15);
  padding: 20px;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
}

#closeFilterPanel {
  background: none;
  border: none;
  font-size: 20px;
  float: right;
  cursor: pointer;
}

#mobileFilterPanel button.apply {
  background-color: #28a745;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  margin-top: 20px;
}

#mobileFilterPanel button.clear {
  background-color: #dc3545;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
}

@media  screen and (max-width: 1024px) {
    .shop-sidebar label{
        width: 179px;
    }
    
}
@media screen and (max-width: 768px) {
   .product{
    width: 200px;
   }
   .product-name{
    font-size: 0.8rem !important;

   }
   .product  p{
    font-size: 0.8rem;
   }
    
}

@media  (max-width: 1025px) {
    .product{
        width: 220px;
       }
    
}

@media (max-width: 500px) {
    .shop-sidebar{
        display: none;
    }
    main{
        margin: 0;
    }
    input,select, label{
        width: 47%;
    }
    .small-device-category{
        display: block;
    }
    .product{
        width: 172px;
       }

}

@media  (max-width: 400px) {
    .product{
        width: 157px;
       }

    .product-name{
        margin-bottom: 0.2rem;
    }

    .product button{
        padding: 5px 0;
        font-size: 0.7rem;
        margin-top: 7px;
    }
    
}

@media  (max-width: 375px) {
    .product{
        width: 129px;
       }
    }
