#product-compare {
  padding-bottom: 72px;
}

#product-compare .product-compare-page__content {
  min-width: 0;
}

#product-compare .product-compare-page__header {
  margin-bottom: 26px;
}

#product-compare .product-compare-page__header h1 {
  margin: 0;
  padding: 0;
  background: none;
  color: #101010;
  font-size: clamp(32px, 2.6vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.025em;
  -webkit-text-fill-color: #101010;
}

#product-compare .alert {
  margin-bottom: 22px;
  border: 0;
  border-radius: 14px;
}

#product-compare .product-compare-table-wrap {
  width: 100%;
  border: 1px solid #e9e9ed;
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 16, 16, .06);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #bfc0c8 #f0f1f5;
  scrollbar-width: thin;
}

#product-compare .product-compare-scroll-hint {
  display: none;
}

#product-compare .product-compare-table-shell {
  position: relative;
  --product-compare-scroll-x: 0px;
}

#product-compare .product-compare-products-head-holder {
  position: relative;
}

.product-compare-products-head {
  position: relative;
  z-index: 7;
  width: 100%;
  border: 1px solid #e9e9ed;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(18px);
}

.product-compare-products-head.is-fixed {
  position: fixed;
  top: var(--product-compare-sticky-top, 0px);
  left: var(--product-compare-sticky-left, 0px);
  z-index: 999999;
  width: var(--product-compare-sticky-width, 100%);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 20px rgba(16, 16, 16, .08);
}

.product-compare-products-head::-webkit-scrollbar {
  display: none;
}

.product-compare-products-head__track {
  display: grid;
  width: max-content;
  min-width: 100%;
  grid-template-columns: 190px repeat(var(--product-compare-count), minmax(230px, 1fr));
}

.product-compare-products-head__label,
.product-compare-products-head__track a {
  display: flex;
  min-height: 72px;
  padding: 14px 20px;
  border-left: 1px solid #ececf0;
  background: transparent;
  align-items: center;
}

.product-compare-products-head__label {
  position: sticky;
  left: 0;
  z-index: 2;
  border-left: 0;
  background: rgba(255, 255, 255, .98);
  color: #6f7077;
  font-size: 15px;
}

.product-compare-products-head__track a {
  color: #101010;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: color .2s ease;
}

.product-compare-products-head__track a:hover,
.product-compare-products-head__track a:focus-visible {
  color: #cd171a;
}

#product-compare .product-compare-table-wrap:focus-visible {
  outline: 2px solid #cd171a;
  outline-offset: 3px;
}

#product-compare .product-compare-table-wrap::-webkit-scrollbar {
  height: 8px;
}

#product-compare .product-compare-table-wrap::-webkit-scrollbar-track {
  border-radius: 8px;
  background: #f0f1f5;
}

#product-compare .product-compare-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #f0f1f5;
  border-radius: 8px;
  background: #bfc0c8;
}

#product-compare .product-compare-table {
  width: max(100%, var(--product-compare-min-width));
  min-width: 0;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #262629;
  font-size: 15px;
  line-height: 1.4;
}

#product-compare .product-compare-table th,
#product-compare .product-compare-table td {
  min-width: 0;
  padding: 17px 20px;
  border: 0;
  border-bottom: 1px solid #ececf0;
  border-left: 1px solid #ececf0;
  background: #fff;
  vertical-align: middle;
}

#product-compare .product-compare-table__label-column {
  width: 190px;
}

#product-compare .product-compare-table__product-column {
  width: calc((100% - 190px) / var(--product-compare-count));
}

#product-compare .product-compare-table th:first-child,
#product-compare .product-compare-table td:first-child {
  width: auto;
  min-width: 0;
  border-left: 0;
}

#product-compare .product-compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  color: #6f7077;
  font-weight: 400;
  text-align: left;
}

#product-compare .product-compare-table tbody tr:nth-child(even) th,
#product-compare .product-compare-table tbody tr:nth-child(even) td {
  background: #fafafd;
}

#product-compare .product-compare-table__section th {
  position: static;
  min-width: 0;
  padding: 19px 20px;
  border-left: 0;
  background: #f0f1f5;
  color: #101010;
  font-size: 20px;
  font-weight: 500;
  text-align: left;
}

#product-compare .product-compare-table__section th span {
  display: inline-block;
  transform: translateX(var(--product-compare-scroll-x));
  transition: transform .05s linear;
}

#product-compare .product-compare-table thead:first-child .product-compare-table__section th {
  border-radius: 0;
}

#product-compare .product-compare-table__images td {
  padding-top: 14px;
  padding-bottom: 14px;
  text-align: center;
}

#product-compare .product-compare-table__images a {
  display: flex;
  width: 100%;
  height: 170px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#product-compare .product-compare-table__images img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  transition: transform .25s ease;
}

#product-compare .product-compare-table__images a:hover img {
  transform: scale(1.025);
}

#product-compare .product-compare-table__price td {
  color: #101010;
  font-size: 19px;
  font-weight: 500;
}

#product-compare .product-compare-table__old-price {
  margin-right: 7px;
  color: #99999f;
  font-size: 14px;
  font-weight: 400;
  text-decoration: line-through;
}

#product-compare .product-compare-table__special {
  color: #cd171a;
}

#product-compare .product-compare-table .rating {
  display: table-cell;
  margin-right: 0;
  color: #ff9f00;
}

#product-compare .product-compare-table .rating .fa-stack {
  width: 18px;
  height: 20px;
  line-height: 20px;
}

#product-compare .product-compare-table .rating .fa {
  font-size: 17px;
}

#product-compare .product-compare-table__reviews {
  display: block;
  margin-top: 7px;
  color: #77777d;
  font-size: 13px;
}

#product-compare .product-compare-table .description {
  color: #6f7077;
  font-size: 14px;
  line-height: 1.5;
}

#product-compare .product-compare-table__actions th,
#product-compare .product-compare-table__actions td {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 0;
}

#product-compare .product-compare-table__actions th {
  border-radius: 0 0 0 21px;
}

#product-compare .product-compare-table__actions td:last-child {
  border-radius: 0 0 21px;
}

#product-compare .product-compare-table__action-name {
  display: -webkit-box;
  margin-bottom: 12px;
  color: #101010;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

#product-compare .product-compare-table__action-name:hover,
#product-compare .product-compare-table__action-name:focus-visible {
  color: #cd171a;
}

#product-compare .product-compare-table__action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#product-compare .product-compare-button {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 11px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: none !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

#product-compare .product-compare-button--primary {
  border: 0;
  background: #cd171a !important;
  color: #fff !important;
}

#product-compare .product-compare-button--primary:hover,
#product-compare .product-compare-button--primary:focus-visible {
  background: #8e0002 !important;
}

#product-compare .product-compare-button--secondary {
  border: 1px solid #d9d9de;
  background: #fff !important;
  color: #171719 !important;
}

#product-compare .product-compare-button--secondary:hover,
#product-compare .product-compare-button--secondary:focus-visible {
  border-color: #171719;
  background: #f4f4f6 !important;
}

#product-compare .product-compare-empty {
  padding: 34px;
  border: 1px solid #ececf0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 16, 16, .06);
}

#product-compare .product-compare-empty p {
  margin: 0 0 22px;
  color: #6f7077;
  font-size: 17px;
}

#product-compare .product-compare-empty .product-compare-button {
  width: auto;
  min-width: 180px;
}

@media (max-width: 767px) {
  #product-compare {
    padding-bottom: 42px;
  }

  #product-compare .product-compare-page__header {
    margin-bottom: 20px;
  }

  #product-compare .product-compare-page__header h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  #product-compare .product-compare-table-wrap {
    border-radius: 0 0 17px 17px;
  }

  #product-compare .product-compare-scroll-hint {
    display: flex;
    width: fit-content;
    margin: 0 0 10px auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f0f1f5;
    color: #6f7077;
    align-items: center;
    font-size: 13px;
    line-height: 1;
    gap: 7px;
  }

  #product-compare .product-compare-scroll-hint__arrow {
    color: #cd171a;
    font-size: 18px;
    line-height: .8;
  }

  #product-compare .product-compare-table-shell::after {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 9px;
    z-index: 4;
    width: 24px;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(16, 16, 16, .08));
    content: "";
    pointer-events: none;
  }

  .product-compare-products-head {
    border-radius: 17px 17px 0 0;
  }

  .product-compare-products-head__track {
    grid-template-columns: 120px repeat(var(--product-compare-count), 180px);
  }

  .product-compare-products-head__label,
  .product-compare-products-head__track a {
    min-height: 66px;
    padding: 11px 14px;
  }

  .product-compare-products-head__label {
    font-size: 13px;
  }

  .product-compare-products-head__track a {
    font-size: 14px;
  }

  #product-compare .product-compare-table {
    width: max(100%, var(--product-compare-mobile-min-width));
    min-width: 0;
    font-size: 14px;
  }

  #product-compare .product-compare-table th,
  #product-compare .product-compare-table td {
    min-width: 0;
    padding: 14px;
  }

  #product-compare .product-compare-table__label-column {
    width: 120px;
  }

  #product-compare .product-compare-table__product-column {
    width: calc((100% - 120px) / var(--product-compare-count));
  }

  #product-compare .product-compare-table th:first-child,
  #product-compare .product-compare-table td:first-child {
    width: auto;
    min-width: 0;
  }

  #product-compare .product-compare-table tbody th {
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    box-shadow: 9px 0 13px -13px rgba(16, 16, 16, .75);
    hyphens: auto;
  }

  #product-compare .product-compare-table__section th {
    padding: 16px;
    font-size: 18px;
    box-shadow: none;
  }

  #product-compare .product-compare-table__images a,
  #product-compare .product-compare-table__images img {
    height: 140px;
  }

  #product-compare .product-compare-table__price td {
    font-size: 16px;
  }

  #product-compare .product-compare-table__action-name {
    font-size: 13px;
  }

  #product-compare .product-compare-table__action-buttons {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  #product-compare .product-compare-empty {
    padding: 24px 18px;
    border-radius: 17px;
  }

  #product-compare .product-compare-empty .product-compare-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #product-compare .product-compare-button,
  #product-compare .product-compare-table__images img,
  .product-compare-products-head__track a,
  #product-compare .product-compare-table__section th span {
    transition: none;
  }
}
