*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  direction: rtl;
  text-align: right;
  background: var(--color-body-bg);
}

img,
svg {
  display: block;
}

.product-list-page {
  overflow-x: clip;
}

.product-list-page__social-rail {
  position: fixed;
  inset-inline-end: 8px;
  top: 50%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 52px;
  color: var(--color-neutral-9);
  font-family: var(--font-primary);
  font-size: 12px;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  z-index: 3;
  justify-content: center;
  text-decoration: none;
  pointer-events: auto;
  height: auto;
  opacity: 1;
  transition: opacity 180ms ease;
}

.product-list-page__social-rail.is-scrolled {
  opacity: 0.72;
}

.product-list-page__social-link {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.product-list-page__social-link:hover,
.product-list-page__social-link:focus-visible {
  color: var(--color-neutral-11);
  outline: none;
}

.product-list-page__intro {
  width: min(1226px, calc(100% - 56px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.product-list-page__breadcrumbs {
  margin: 10px 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--color-neutral-7);
}

.product-list-page__breadcrumb {
  font-size: var(--fs-caption-1);
  line-height: var(--lh-caption-1);
  color: var(--color-neutral-7);
  text-decoration: none;
}

.product-list-page__breadcrumb--current {
  color: var(--color-primary);
}

.product-list-page__breadcrumbs img {
  width: 24px;
  height: 24px;
}

.product-list-page__content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 166px;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--color-neutral-3);
  background: var(--color-white);
  box-shadow: 0 1px 0 rgb(0 0 0 / 3%), 0 2px 8px rgb(0 0 0 / 3%);
  direction: ltr;
}

.product-list-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  direction: rtl;
  text-align: right;
}

.product-list-card__title,
.product-list-card__subtitle,
.product-list-card__details {
  margin: 0;
}

.product-list-card__title {
  color: var(--color-text);
}

.product-list-card__subtitle {
  color: var(--color-neutral-8);
}

.product-list-card__details {
  padding: 0;
  list-style: none;
  gap: 2px;
  color: var(--color-neutral-10);
  justify-content: start;
}

.product-list-card__details li {
  margin: 0;
}

.product-list-card__media {
  min-height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-list-card__media img {
  width: 154px;
  height: 154px;
  object-fit: contain;
}

.product-list-card__actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
  direction: ltr;
}

.product-list-card__button {
  --button-width: 244px;
  direction: ltr;
}

.product-list-card__button .spec-button__label {
  direction: rtl;
}

.product-list-card__button .spec-button__label--mobile {
  display: none;
}

.product-list-page .consultation-page {
  margin-top: 118px;
  padding-inline: 0;
}

@media (max-width: 767px) {
  .product-list-page__social-rail {
    display: none;
  }

  .product-list-page__intro {
    width: calc(100% - 40px);
  }

  .product-list-page__content {
    width: calc(100% - 40px);
  }

  .product-list-page .consultation-page {
    margin-top: 92px;
  }
}

@media (max-width: 767px) {
  .product-list-page__intro {
    width: calc(100% - 24px);
    padding-bottom: 24px;
  }

  .product-list-page__content {
    width: calc(100% - 24px);
    gap: 12px;
  }

  .product-list-page__breadcrumbs {
    gap: 6px;
    flex-wrap: wrap;
  }

  .product-list-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    min-height: 172px;
  }

  .product-list-card__body {
    gap: 6px;
    height: 100%;
  }

  .product-list-card__actions{
    margin-top: auto;
  }

  .product-list-card__media {
    min-height: 108px;
  }

  .product-list-card__media img {
    width: 100%;
    height: auto;
  }

  .product-list-card__button {
    --button-width: 100%;
    width: 100%;
    --button-bg: var(--color-green-500);
    --button-color: var(--color-white);
    --button-border: var(--color-green-500);
    --chip-bg: var(--color-white);
    --chip-color: var(--color-green-500);
    --chip-border: transparent;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
  }

  .product-list-card__details {
    display: none;
  }

  .product-list-card__button .spec-button__label--desktop {
    display: none;
  }

  .product-list-card__button .spec-button__label--mobile {
    display: inline-flex;
  }

  .product-list-page .consultation-page {
    margin-top: 72px;
  }

  .product-list-page .consultation-segment__stage {
    display: block;
    padding-top: 34px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    isolation: isolate;
  }

  .product-list-page .consultation-segment__media {
    position: absolute;
    inset: 0 0 auto 0;
    height: 340px;
    min-height: 340px;
    z-index: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .product-list-page .consultation-segment__scrim {
    position: absolute;
    inset: 0 0 auto 0;
    height: 340px;
    z-index: 0;
    background: rgb(0 0 0 / 50%);
    pointer-events: none;
  }

  .product-list-page .consultation-summary {
    position: relative;
    z-index: 1;
    width: calc(100% - 40px);
    max-width: none;
    margin: 0 20px;
    gap: 8px;
  }

  .product-list-page .consultation-summary__title {
    width: 100%;
    min-height: 64px;
    padding: 0 20px;
    border-radius: 9px;
    white-space: nowrap;
  }

  .product-list-page .consultation-summary__body {
    padding: 20px 20px 18px;
    border-radius: 8px;
    background: rgb(var(--color-neutral-1-rgb) / 64%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .product-list-page .consultation-form {
    position: relative;
    z-index: 1;
    width: calc(100% - 40px);
    margin: 18px 20px 0;
    padding: 20px;
    border-radius: 10px;
    background: var(--color-neutral-3);
    border: 0;
    box-shadow: none;
    gap: 16px;
  }

  .product-list-page .consultation-field {
    gap: 8px;
  }

  .product-list-page .consultation-field__control {
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 8px;
  }

  .product-list-page .consultation-field__control--select {
    padding-inline-end: 42px;
  }

  .product-list-page .consultation-field__select-icon {
    inset-inline-end: 14px;
    width: 20px;
    height: 20px;
  }

  .product-list-page .consultation-form__submit {
    min-height: 48px;
    padding: 4px;
    border-radius: 8px;
    width: 100%;
    justify-content: flex-end;
  }

  .product-list-page .consultation-form__submit-label {
    padding: 0 16px;
  }

  .product-list-page .consultation-form__submit-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
  }
}
