.aroma-page__sort-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.aroma-page__loader {
  display: none;
  text-align: center;
  padding: 30px;
}

.aroma-page__products-list {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.filter-block {
  background: #ffffff;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  color: #000;
  width: 260px;
}

.filter-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;
  color: #000;
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: #000;
}

.filter-list li {
  margin-bottom: 8px;
}

.filter-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #FF6E24;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
}

.filter-list input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-list input[type="checkbox"]:checked {
  background-color: #FF6E24;
  border-color: #FF6E24;
}

.products-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.filter-column {
  width: 260px;
  flex-shrink: 0;
}

.products {
  flex: 1;
}

.sort-block select {
  background: #ffffff;
  color: #000;
  border: 1px solid #ff6e25;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.category-descr__title {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

.sort-block {
  font-size: 16px;
}

.sort-block select {
  background: #ffffff;
  color: #000;
  border: 1px solid #ff6e25;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.sort-block--desktop select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  outline: none;
}

.sort-block--desktop label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sort-block--desktop select:focus {
  outline: none;
  box-shadow: none;
}

.sort-block--desktop select option {
  background-color: #231E1B;
  color: #fff;
}

.sort-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.product-pagination {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.product-pagination__link {
  background: #231E1B;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid #231E1B;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  font-size: 18px;
  justify-content: center;
}

.product-pagination__link--current {
  border: 2px solid #FF6E24;
}

.product__price-row {
  display: flex;
  justify-content: space-around;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

#mobileFilterModal {
  display: none;
}

.filter-toggle-button {
  display: none;
}

.sort-block--mobile {
  display: none;
}

.h-title {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  font-size: 38px;
}

@media (max-width: 1024px) {
  .h-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  #mobileFilterModal {
    display: none;
  }

  #mobileFilterModal.active {
    display: block;
  }

  .filter-column {
    display: none !important;
  }

  .filter-toggle-button {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    width: 100%;
    justify-content: flex-end;
  }

  .filter-toggle-button img.filter-icon {
    width: 32px;
    height: 32px;
  }

  .mobile-filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    background: #231e1b;
    color: white;
    overflow-y: auto;
    padding: 0 16px 24px;
  }

  .mobile-filter-modal.active {
    display: block;
  }

  .close-filter-modal {
    background: none;
    border: none;
    color: #FF6E24;
    font-size: 20px;
    float: right;
    cursor: pointer;
    margin: 16px 0 8px auto;
    display: block;
  }

  .products__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 0;
  }

  .products__list-item {
    margin: 5px 0;
    width: auto !important;
    margin-left: 0 !important;
    padding-bottom: 120px !important;
    background-color: #231E1B;
    border-radius: 12px;
    overflow: hidden;
  }

  .products__list-img-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .product__add-to-cart-btn {
    font-size: 14px !important;
    padding: 12px 0 !important;
    width: 90% !important;
    margin-top: 12px !important;
  }

  .products__list-title {
    font-size: 15px;
  }

  .products__list-volume {
    font-size: 14px !important;
    min-width: auto;
  }

  .products-header h1 {
    font-size: 26px !important;
    margin-top: 0;
  }

  .sort-block--desktop {
    display: none;
  }

  .sort-block--mobile {
    display: inline-block;
  }

  .sort-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
  }

  .sort-wrapper select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
  }

  .sort-wrapper .sort-icon {
    width: 32px;
    height: 32px;
    z-index: 1;
  }

  #mobileFilterModal .filter-block {
    width: 86vw;
    margin: 18px auto;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(20,31,51,.06);
  }

  #mobileFilterModal .filter-block:first-of-type {
    margin-top: 8vh;
  }

  .filter-apply {
    display: block;
    width: 86vw;
    margin: 16px auto 24px;
    padding: 14px 18px;
    border: 0;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    background: #FF6E24;
    color: #fff;
    cursor: pointer;
  }

  .filter-apply:active {
    transform: translateY(1px);
  }
}

@media (max-width: 640px) {
  .h-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .products__list-img-wrapper {
    height: 300px;
    border-radius: 12px;
  }

  .product__price-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
  }
}

@media (max-width: 460px) {
  .products__list-item {
    margin: 5px 0;
    width: auto !important;
    margin-left: 0 !important;
  }
}
