.products-list {
  display: grid;
}

hr {
  border: 1px solid var(--bordergray);
  width: 100%;
}

.products {
  background-color: #ffffff;
  box-shadow: var(--mainshadow);
  border-radius: var(--border-sm);
}

.product-box {
  padding: 1rem;
  box-shadow: 0 1px 5px rgba(0,0,0,.2);
  border-radius: var(--border-sm);
  transition: .25s ease-in-out;
  cursor: pointer;
}
.product-box:hover {
  box-shadow: 0 1px 17px rgba(0, 0, 0, 0.37);
}

.product-details{
  top: 1rem;
  left: 1rem;
}

.product-box-img {
  overflow: hidden;
  border-radius: var(--border-sm);
}

.owl-carousel .product-box {
  width: 100%;
  direction: rtl !important;
  background-color: #ffff;
  margin: 0;
  /* box-shadow: 0 4px 12px -8px gray; */
}

.cart-btn {
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 50%;
  padding: 1.5rem;
  color: #2d8c33;
  transform: translateX(50%);
  bottom: -26px;
  font-size: 2rem;
  transition: .1s linear;
  z-index: 111;
}

.cart-btn:hover {
  color: #469c4c;
}

.like-btn {
  width: 10px;
  height: 10px;
  background-color: rgb(224, 92, 92);
  border-radius: 50%;
  padding: 1.5rem;
  color: white;
}

.products-filter {
  background-color: white;

}

.products-filter .dropdown-menu {
  right: auto !important;
  left: 0 !important;
  min-width: unset !important;
}

.products-search input {
  padding: .5rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid gray;
}

.products-search input:focus {
  outline: none;
}

.products-search a {
  left: 1rem;
  top: 8px;
}

.products-search {
  width: 60%;
}

.product-special {
  border-radius: var(--border-md);
  background-color: #ff5656;
  border-bottom: 5px solid #DB2121;
  box-shadow: var(--mainshadow);
}

.product-special-header img {
  width: 17rem;
}

.owl-dots {
  margin: 2rem 0 0 0 !important;
}

.products-sort {
  font-size: 1.25rem;
  gap: 2rem;
}

.products-sort li a {
  transition: .25s ease-in-out;

}

.products-sort li a:focus {
  color: var(--darkblue);
}

.fa-sort-amount-down {
  font-size: 1.75rem;
}

.product-price {
  font-weight: 700;
}

.monetary-unit {
  font-size: 1rem !important;
  margin-right: .3rem;
}

.product-box-img .star {
  left: .5rem;
  top: .5rem;
  color: gold;
  font-size: 1.5rem;
}

.product-inventory {
  font-size: 1.2rem;
}

.product-counter {
  box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
  overflow: hidden;
}

.product-counter span {
  font-size: 2rem;
}

.product-caption h4{
  padding: 1rem 0;
  margin: 0 !important;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*  */

.for-dropdown {
  margin: 0 !important;
}

.section-dropdown {
  display: grid !important;
  grid-template-columns: auto;
  gap: 2rem 0;
}



.section-dropdown .cart img {
  width: 6rem;
}

.sec-center {
  position: relative;
  text-align: center;
  z-index: 200;
  /* width: 20rem; */
}

[type="checkbox"]:checked,
[type="checkbox"]:not(:checked) {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.dropdown-sub,
#dropdown {
  display: none;
}

.dropdown:checked+label,
.dropdown:not(:checked)+label {
  position: relative;
  font-weight: 500;
  font-size: 15px;
  transition: all 200ms linear;
  cursor: pointer;
  box-shadow: 0 12px 35px 0 rgba(255, 235, 167, .15);
}

.dropdown:checked+label:before,
.dropdown:not(:checked)+label:before {
  position: fixed;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  z-index: -1;
  cursor: auto;
  pointer-events: none;
}

.dropdown:checked+label:before {
  pointer-events: auto;
}

.dropdown:not(:checked)+label .uil {
  font-size: 24px;
  margin-left: 10px;
  transition: transform 200ms linear;
}

.dropdown:checked+label .uil {
  transform: rotate(180deg);
  font-size: 24px;
  margin-left: 10px;
  transition: transform 200ms linear;
}

.section-dropdown {
  position: absolute;
  background-color: white;
  /* background-color: rgb(223 223 223); */
  top: 70px;
  /* left: 0;
  width: 100%; */
  left: -16rem;
  width: 34rem;
  border-radius: 4px;
  display: block;
  box-shadow: 0 14px 35px 0 rgba(9, 9, 12, 0.4);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 200ms linear;
}


.dropdown:checked~.section-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.section-dropdown:before {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  content: '';
  display: block;
  z-index: 1;
}

.section-dropdown:after {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
  content: '';
  display: block;
  z-index: 2;
  transition: all 200ms linear;
}

/* .section-dropdown a {
  position: relative;
  color: rgb(0, 0, 0);
  transition: all 200ms linear;
  font-size: 15px;
  border-radius: 2px;
  padding: 5px 0;
  padding-left: 20px;
  padding-right: 15px;
  margin: 2px 0;
  text-align: left;
  text-decoration: none;
  display: flex;
} */



/* .section-dropdown a:hover {
  background-color: #ffeba7;
} */

.section-dropdown a .uil {
  font-size: 22px;
}

.dropdown-sub:checked+label,
.dropdown-sub:not(:checked)+label {
  position: relative;
  color: #fff;
  transition: all 200ms linear;
  font-weight: 500;
  font-size: 15px;
  border-radius: 2px;
  padding: 5px 0;
  padding-left: 20px;
  padding-right: 15px;
  text-align: left;
  text-decoration: none;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
  justify-content: space-between;
  -ms-flex-pack: distribute;
  cursor: pointer;
}

.dropdown-sub:checked+label .uil,
.dropdown-sub:not(:checked)+label .uil {
  font-size: 22px;
}

.dropdown-sub:not(:checked)+label .uil {
  transition: transform 200ms linear;
}

.dropdown-sub:checked+label .uil {
  transform: rotate(135deg);
  transition: transform 200ms linear;
}

.dropdown-sub:checked+label:hover,
.dropdown-sub:not(:checked)+label:hover {
  background-color: #ffeba7;
}

.section-dropdown-sub {
  position: relative;
  display: block;
  width: 100%;
  pointer-events: none;
  opacity: 0;
  max-height: 0;
  padding-left: 10px;
  padding-right: 3px;
  overflow: hidden;
  transition: all 200ms linear;
}

.dropdown-sub:checked~.section-dropdown-sub {
  pointer-events: auto;
  opacity: 1;
  max-height: 999px;
}

.section-dropdown-sub a {
  font-size: 14px;
}

.section-dropdown-sub a .uil {
  font-size: 20px;
}

@media only screen and (max-width: 768px) {
  .fa-shopping-cart {
    font-size: 20px !important;
  }
}

@media only screen and (max-width: 992px) {
  .sort {
    display: block !important;
  }

  .products-sort {
    display: none !important;
  }
}

@media only screen and (max-width: 1920px) {
  .sort {
    display: none;
  }
  .products-sort {
    display: block;
  }
}

@media (min-width: 0px){
  .products-list {
    grid-template-columns: repeat(1, minmax(100px, 1fr));
    gap: 1rem;
  }
}


@media (min-width: 576px){
  .products-list {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 768px){
  .products-list {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}



@media (min-width: 1400px){
  .products-list {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 2rem;
  }
}


@media (min-width: 1600px){
  .products-list {
    grid-template-columns: repeat(5, minmax(250px, 1fr));
  }
}

.dropdown-menu>li>a {
  padding: 3px 3px;
}

.topic button,
.sort button {
  height: 3.5rem !important;
}

.forum-dropdown .dropdown-menu {
  width: auto !important;
  position: absolute;
  right: 0 !important;
  left: 0 !important;
  min-width: unset !important;
}

.last-homework-search input {
  padding: .5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--secondary);
  height: 3.5rem;
}

.last-homework-search input:focus {
  outline: none;
}

.last-homework-search a {
  left: 1rem;
}

.last-homework-search {
  width: 40%;
}