.template-collection {
  position: relative;
}

.main-collection-template {
  margin-top: 40px;
  padding: 20px 0;
}

.container-collection {
  width: 100%;
  max-width: 1680px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 2vw;
  gap: 2vw;
}

.collection-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  gap: 30px;
}

.collection-content {
  display: flex;
  flex-direction: column;
  width: 75%;
  gap: 40px;
}

.collection-header {
  width: 100%;
  display: flex;
  align-items: center;
}

.collection-header img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  border-radius: 50px;
}

.banner-mobile {
  display: none;
}

.collection-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 3vw;
}

.container-pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  position: relative;
}

.container-pagination .prev {
  position: absolute;
  left: 5%;
}

.container-pagination .next {
  position: absolute;
  right: 5%;
}

.container-pagination .page {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-pagination .current {
  border-radius: 5px;
}

.categories-filters {
  width: 100%;
  height: fit-content;
  max-height: 425px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 40px;
  padding: 25px;
  gap: 10px;
}

.categories-filters h4 {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

.categories-filters h4 a {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

.category-filter {
  width: 100%;
  max-height: inherit;
  overflow-y: scroll;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.category-filter li a {
  display: flex;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.category-filter::-webkit-scrollbar {
  width: 6px;
}

.category-filter::-webkit-scrollbar-thumb {
  border-radius: 50px;
}

.category-filter::-webkit-scrollbar-track {
  border-radius: 50px;
}

.categories-filters-order {
  max-height: none;
}

.category-filter-order {
  align-items: flex-start;
  overflow: hidden;
}

.category-filter-order li label {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.category-filter-order li label span {
  font-size: 16px;
  font-weight: 700;
  text-align: start;
}

.checkbox-link {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.container-pagination-2 {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 5px;
  position: relative;
}

.container-pagination-2 ul {
  margin: 0;
  padding: 0;
}

.product-collection {
  width: 224px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 20px;
  padding: 15px 18px;
  transition: all 0.5s ease;
}

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

.product-collection:hover .form-button-item-collection {
  opacity: 1;
}

.div-collection-image {
  width: 100%;
  height: 192px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  position: relative;
}

.div-collection-image a {
  width: 100%;
  height: 100%;
}

.div-collection-image a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.collection-discount {
  width: 66px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: clamp(10px, 8.315px + 0.2193vw, 12px);
  font-weight: 600;
  position: absolute;
  top: 6%;
  left: 6%;
}

.item-collection-description {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-collection-name {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  font-size: clamp(12px, 9.474px + 0.3289vw, 15px);
  font-weight: normal;
  text-align: left;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}

.item-price-installment {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-price-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  line-height: 20px;
  gap: 0 5px;
}

.item-collection-price {
  width: fit-content;
  font-size: clamp(16px, 13.474px + 0.3289vw, 19px);
  font-weight: bold;
}

.price-compare-collection {
  width: fit-content;
  font-size: clamp(13px, 11.315px + 0.2193vw, 15px);
  text-decoration: line-through;
}

.installment-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.cart-installment {
  font-size: clamp(13px, 11.315px + 0.2193vw, 15px);
}

.form-button-item-collection {
  transition: all 0.5s ease;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-button-item-collection button {
  padding: 8px 18px;
  font-size: clamp(13px, 11.315px + 0.2193vw, 15px);
  outline: none;
  border: none;
  font-weight: 600;
  border-radius: 6px;
  margin-top: 5px;
  line-height: 15px;
}

.ryviu-item-collection {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.ryviu-item-collection ryviu-widget-total {
  width: fit-content;
  line-height: 0;
}

.filter-order-mobile {
  display: none;
  width: 100%;
  align-items: center;
}

.filter-button {
  width: 45%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  border-radius: 24px;
  padding: 10px 20px;
}

.order-button {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  border-radius: 24px;
  padding: 10px 20px;
}

.filter-order-drawer {
  display: none;
  width: 100vw;
  height: 100vh;
  justify-content: flex-start;
  background-color: transparent;
  z-index: 20;
  position: fixed;
  top: 0;
}

.filter-order-drawer::before {
  content: "";
  width: 100%;
  height: 100%;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
}

.drawer-content-order {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: fit-content;
  max-height: 100vh;
  opacity: 1;
  position: absolute;
  z-index: 1;
  padding: 20px 10px;
  border-radius: 15px;
  bottom: -445px;
  transition: all 0.5s ease;
}

.drawer-content-order h4 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  width: 100%;
}

.filter-categories-drawer {
  display: none;
  width: 100vw;
  height: 100vh;
  justify-content: flex-start;
  background-color: transparent;
  z-index: 20;
  position: fixed;
  top: 0;
}

.filter-categories-drawer::before {
  content: "";
  width: 100%;
  height: 100%;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
}

.drawer-content-categories {
  display: flex;
  flex-direction: column;
  width: 90%;
  height: fit-content;
  max-height: 100vh;
  opacity: 1;
  position: absolute;
  z-index: 1;
  padding: 20px 10px;
  border-radius: 0 15px 15px 0;
  top: 0;
  left: -90%;
  transition: all 0.5s ease;
}

.drawer-content-categories h4 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  width: 100%;
}

.category-filter-mobile {
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .main-collection-template {
    margin-top: 0;
    padding-bottom: 20px;
  }

  .container-collection {
    flex-direction: column;
    padding: 0 2vw;
  }

  .collection-filters {
    width: 100%;
  }

  .collection-content {
    width: 100%;
  }

  .categories-filters {
    display: none;
  }

  .collection-header img {
    border-radius: 20px;
  }

  .product-collection {
    width: 165px;
  }

  .div-collection-image {
    width: 100%;
    height: 100%;
  }

  .collection-discount {
    width: 70px;
  }

  .filter-order-mobile {
    display: flex;
  }
}

@media (max-width: 768px) {
  .form-button-item-collection {
    opacity: 1;
  }
}

@media (max-width: 740px) {
  .collection-list {
    justify-content: center;
  }
}

@media (max-width: 525px) {
  .collection-content {
    gap: 20px;
  }

  .banner-desktop {
    display: none;
  }

  .collection-header .banner-collection {
    aspect-ratio: 2.5 / 1;
  }

  .collection-header .banner-mobile {
    display: flex;
    aspect-ratio: 1.5 / 1;
  }
}

@media (max-width: 425px) {
  .container-pagination {
    display: none;
  }
  .container-pagination-2 {
    display: flex;
  }
}

@media (max-width: 355px) {
  .collection-list {
    justify-content: center;
  }

  .container-pagination-2 ul {
    width: 100%;
  }
}
