#product-pairs {
  padding-bottom: 48px;
}

#product-pairs .ostriym-category-desc--top {
  max-width: 920px;
}

#product-pairs .ostriym-category-desc--top p {
  text-align: left !important;
}

#product-pairs .ostriym-category-intro {
  margin-top: 40px;
}

#product-pairs .ostriym-main-bottom {
  margin-top: 40px;
}

.pp-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(620px, 1fr));
}

.pp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  gap: 16px;
  padding: 12px;
  border: 1px solid transparent;
  transition: all 0.1s ease;
}

.pp-card:hover {
  border-color: #000;
}

.pp-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pp-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 12px;
}

.pp-item.is-out {
  opacity: 0.65;
}

.pp-item__media {
  position: relative;
}

.pp-item__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: inherit;
}

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

.pp-item__wishlist {
  z-index: 4;
}

.pp-item__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.pp-item__category {
  text-decoration: none;
}

.pp-item__category:hover {
  text-decoration: underline;
}

.pp-item__name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pp-item__rating {
  flex-wrap: wrap;
}

.pp-item__brand {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-height: 18px;
}

.pp-item__brand--single {
  margin-top: 4px;
  margin-left: 0;
}

.pp-item__brand img {
  max-height: 18px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
}

.pp-item__footer {
  display: block;
  margin-top: auto;
}

.pp-item__price {
  min-width: 0;
}

.pp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.pp-divider__icon {
  width: 40px;
  height: 40px;
  border: 2px solid #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: #fff;
}

.pp-divider__icon svg {
  display: block;
}

.pp-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #E6E6E6;
  display: flex;
  align-items: end;
  gap: 16px;
}

.pp-total {
  flex: 1;
  min-width: 0;
}

.pp-total__label {
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: #747474;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pp-total__value {
  font-family: Unbounded, sans-serif;
  font-weight: 500;
  font-size: 24px;
  text-transform: uppercase;
  color: #000;
  overflow-wrap: anywhere;
}

.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-family: Unbounded, sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pp-btn:hover {
  background: #747474;
  border-color: #747474;
  color: #fff;
  text-decoration: none;
}

.pp-btn:disabled,
.pp-btn.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.pp-btn:disabled {
  background: #E6E6E6;
  border-color: #E6E6E6;
  color: #747474;
}

.pp-btn svg {
  flex: 0 0 auto;
}

.pp-empty {
  padding: 24px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.pp-empty__title {
  font-family: Unbounded, sans-serif;
  font-weight: 400;
  font-size: 19px;
  text-transform: uppercase;
  color: #000;
}

.pp-toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.pp-toast {
  min-width: 240px;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid #D73C46;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  font-size: 14px;
  pointer-events: auto;
  animation: ppToastIn 0.2s ease forwards;
}

.pp-toast__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Unbounded, sans-serif;
  font-weight: 500;
  font-size: 14px;
}

.pp-toast__text {
  min-width: 0;
}

.pp-toast.is-out {
  animation: ppToastOut 0.2s ease forwards;
}

.pp-toolbar {
  align-items: stretch;
}

.pp-toolbar .ostriym-toolbar-sort {
  display: flex;
  align-items: center;
  margin-left: auto;
}

#product-pairs .ostriym-pagination {
  margin: 32px 0;
}

#product-pairs .ostriym-loadmore {
  min-height: 48px;
}

#product-pairs .ostriym-pagination .pagination {
  flex-wrap: wrap;
  justify-content: center;
}

@keyframes ppToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ppToastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1200px) {
  .pp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .pp-toolbar .ostriym-toolbar-sort {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .pp-card {
    padding: 8px;
    gap: 12px;
  }

  .pp-card__body {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    gap: 8px;
  }

  .pp-item {
    gap: 8px;
  }

  .pp-item__image {
    min-height: 120px;
  }

  .pp-item__name {
    font-size: 12px;
    line-height: 18px;
  }

  .pp-divider__icon {
    width: 28px;
    height: 28px;
    border-width: 1px;
  }

  .pp-divider__icon svg {
    width: 14px;
    height: 14px;
  }

  .pp-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .pp-total__value {
    font-size: 20px;
  }

  .pp-btn {
    width: 100%;
    font-size: 12px;
    padding: 12px 14px;
  }
}

@media (max-width: 560px) {
  .pp-toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .pp-toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .pp-card__body {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    gap: 6px;
  }

  .pp-item__image {
    min-height: 100px;
  }

  .pp-divider__icon {
    width: 20px;
    height: 20px;
    border-width: 0;
  }

  .pp-divider__icon svg {
    width: 12px;
    height: 12px;
  }
}

.pp-btn-icon {
  position: relative;
}

.pp-btn.added-cart .pp-btn-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background-image: url(/catalog/view/theme/ostriym/image/check_mark.svg);
}

.ostriym-toolbar-field > label {
  margin: 0;
  margin-right: 8px;
}

@media (max-width: 992px) {
  .ostriym-select, .pp-toolbar .ostriym-toolbar-sort {
    min-width: 320px;
  }

  .pp-toolbar .ostriym-toolbar-sort {
    margin-left: auto;
  }
}