#empty__basket {
  padding-top: 32px;
  padding-bottom: 6rem;
}

.basket-container {
  padding-top: 32px;
  padding-bottom: 6rem;
}

.empty__basket-title {
  display: flex;
  justify-content: flex-start;
}
.empty__basket-title h2 {
  margin: 0;
  font-weight: 600;
  font-size: 36px;
  line-height: 43px;
  color: #787880;
}

.compare__inner {
  border-radius: 8px;
  margin-top: 32px;
  margin-bottom: 8rem;
  width: 100%;
  max-height: 624px;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.basket__inner {
  background: #FFFFFF;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.02), 0px 1px 12px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  margin-top: 32px;
  margin-bottom: 8rem;
  width: 100%;
  height: 424px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.basket__inner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /*width: 285px;*/
}
.basket__inner-content-title {
  font-weight: 400;
  font-size: 32px;
  line-height: 38px;
  text-align: center;
}

.compare__inner-content__img {
  max-height: 15rem;
}


.compare__inner-content-title {
  font-weight: 500;
  font-size: 32px;
  line-height: 38px;
  text-align: center;
  margin-top: 1rem;
}

.compare__inner-content-text {
  font-weight: 400;
  max-height: 511px;
  font-size: 18px;
  line-height: 19px;
  text-align: center;
  padding-top: 12px;
}


.basket__inner-content-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  padding-top: 12px;
}
.basket__inner-content-btn {
  background: #FFDF84;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  color: #4A4A4A;
  padding: 16px 31px;
  border: none;
  cursor: pointer;
  margin-top: 42px;
  max-width: 285px;
}

#interesting__content {
  padding-bottom: 109px;
}

.interesting__content-title {
  display: flex;
  justify-content: flex-start;
}
.interesting__content-title h4 {
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
  color: #787880;
}

.interesting__inner {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 22px;
}
.interesting__inner-card {
  display: flex;
  gap: 24px;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.02), 0px 1px 12px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 24px;
  width: 370px;
}
.interesting__inner-card-content {
  display: flex;
  flex-direction: column;
}
.interesting__inner-card-number {
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  color: #787880;
}
.interesting__inner-card-name {
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  margin-top: 8px;
  color: #000;
  width: 78%;
}
.interesting__inner-card-price {
  display: flex;
  margin-top: 20px;
  justify-content: space-between;
}
.interesting__inner-card-price a {
  line-height: 0;
}
.interesting__inner-card-price p {
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
}
.interesting__inner-card-price svg {
  margin-top: -2px;
}

@media (max-width: 1200px) {
  #favourites .container, #interesting__content .container {
    padding-inline: 39px;
  }
  .interesting__inner-card {
    gap: 10px;
    display: flex;
    flex-direction: column;
    width: 200px;
  }
  .interesting__inner-card-name {
    width: 100%;
  }
  .interesting__inner-card-price svg circle {
    fill: none;
  }
}
@media (max-width: 1024px) {
  .interesting__inner-card-price {
    gap: 20px;
  }
  .interesting__inner-card {
    width: 150px;
    padding: 12px 12px 18px;
  }
  .favourites__inner-card-title {
    width: 30vw;
  }
  .interesting__inner-card-price {
    gap: 5px;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .compare__inner-content-title {
    font-size: 24px;
  }
  .compare__inner-content-text {
    font-size: 14px;
  }
  .interesting__inner-card {
    min-width: 150px;
    padding: 10px;
  }
  .interesting__inner-card-number {
    display: none;
  }
  .interesting__inner-card-name {
    text-align: center;
  }
  .interesting__inner-card-price {
    gap: 5px;
    justify-content: center;
  }
  .basket__inner-content-title {
    font-size: 24px;
  }
  .basket__inner-content-text {
    font-size: 14px;
  }

  .compare__inner-content-title {
    font-size: 22px;
  }
  .compare__inner-content-text {
    font-size: 14px;
  }

  .basket__inner-content-btn {
    font-size: 14px;
    width: 210px;
    margin-top: 24px;
  }
  .interesting__inner-card-number {
    display: none;
  }
  .interesting__inner-card-name {
    text-align: center;
  }
}
@media (max-width: 767px) {
  #interesting__content .container {
    overflow: hidden;
  }
  .interesting__inner {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .interesting__inner-card {
    flex-shrink: 0;
  }
  .interesting__inner {
    width: calc(100% + 16px);
    padding: 8px;
    margin-left: -8px;
  }
}
@media (max-width: 576px) {
  .interesting__content-title h4 {
    font-size: 20px;
  }
  .empty__basket-title {
    display: none;
  }
  .basket__inner {
    height: 196px;
  }
  #favourites .container, #interesting__content .container {
    padding-inline: 15px;
  }
}




/*Таблица сравнения*/

.comparison-table-wrapper {
  display:flex;
  overflow-x: auto;
  margin: 3rem 0;
  scrollbar-width: thin;
}

/* Таблица */
.comparison-table {
  border-collapse: separate;
  border-spacing: 0 5px;
  width: max-content;
  min-width: 100%;
  font-family: sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Общие ячейки */
.comparison-table th,
.comparison-table td {
  box-sizing: border-box;
  background: #fcfcfc;
  font-size: 18px;
  font-weight: 500;
  padding: 1rem 1rem 0.7rem 0;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(211,211,211,1);
}
/* Шапка с товарами */
.comparison-table thead {
  box-shadow: 0px 2px 8px rgba(0,0,0,0.08);
}
.comparison-table thead th {
  border-bottom: none;
  height: 150px;
  padding-bottom: 0.75rem;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  position: -webkit-sticky; /* для старых webkit-браузеров */
  position: sticky;
  left: 0;
  background: #fcfcfc;      /* важнo: фон должен перекрывать скользящие колонки */
  z-index: 4;               /* базовый приоритет для левой колонки */
  min-width: 240px;        /* подберите под ваш контент */
  width: 240px;

}

/* Заголовочная ячейка (если шапка будет sticky по top) — поднимем выше */
.comparison-table thead th:first-child {
  top: 0;    /* если у вас фиксированная шапка, иначе можно убрать */
  z-index: 10;
}

/* Если у вас есть «params-row .params-header» с top:150px, сделаем её левую ячейку выше остальных */
.params-row .params-header,
.comparison-table tr .params-header {
  position: sticky; /* если это td/элемент — убедитесь, что применяется к нужному элементу */
  left: 0;
  top: 150px;       /* уже задано у вас */
  z-index: 9;       /* ниже заголовка, выше обычной левой колонки */
}

/* Контейнер группы (td, который занимает всю строку) */
.comparison-table .group-row-full {
  padding: 0;                 /* убрать лишние отступы — контролируем их внутри inner */
  background: transparent;
  border-bottom: 1px solid rgba(211,211,211,1);
}

/* "Широкий" заголовок внутри colspan — он sticky и накладывается поверх левой колонки */
.comparison-table .group-header-inner {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  /* Ширина заголовка — подберите по дизайну */
  width: 520px;         /* пример — можно 300, 420, 600 — в зависимости от дизайна */
  max-width: calc(100vw - 40px); /* защита на узких экранах */
  padding: 20px 0 16px;   /* внутри заголовка отступы */
  font-size: 24px;
  font-weight: 600;
  white-space: normal;
  line-height: 1.15;
  background: #fcfcfc;  /* обязательно, чтобы перекрывать содержимое под ним */
  z-index: 12;          /* должен быть выше, чем обычная левая колонка */
  box-sizing: border-box;
}

/* Чтобы обычная первая колонка была под этим блоком */
.comparison-table th:first-child,
.comparison-table td:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  width: 240px;         /* ваша стандартная ширина первой колонки */
  min-width: 240px;
  background: #fcfcfc;
  z-index: 8;           /* ниже, чем group-header-inner */
}

/* Заголовок таблицы (thead) оставляем самым верхним по z-index */
.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 17;
  background: #fcfcfc;
}

.product-col {
  width: max-content;
  padding: 0;
}
/* Карточка товара в шапке */
.product-header {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  padding: 0.5rem 0;
  height: 100%;
  align-items: flex-start;
}
.product-media {
  position: relative;
  width: 100px;
  height: 100px;
  min-height: 96px;
  overflow: hidden;
  border-radius: 0.5rem;
  flex-shrink: 0;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.remove-btn {
  position: absolute;
  left: 0.2rem;
  bottom: 0.2rem;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 5px;
  width: 2rem; height: 2rem;
  font-size: 1.2rem; line-height: 1;
  cursor: pointer;
  transition: transform 0.25s ease-in-out;
}

.remove-btn:hover {
  transform: scale(1.1);
}
.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}
.product-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  font-size: 16px;
  white-space: normal;
  word-wrap: break-word;
}
.product-price {
  font-weight: 600;
  font-size: 12px;
}
.product-desc {
  max-width: 160px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(127,127,127,1);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
/* Ряд заголовка параметров */
.params-row .params-header {
  position: sticky;
  top: 150px;                /* под шапкой высотой 150px */
  left: 0;
  z-index: 3;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(211,211,211,1);
}

/* Групповые заголовки */
.group-row {
  position: sticky;
  left: 0;
}
.group-row td:first-child {
  font-size: 24px;
  font-weight: 600;
  padding-top: 20px;
  border-bottom: 1px solid rgba(211,211,211,1);
}
.group-row td:not(:first-child) {
  border-bottom: 1px solid rgba(211,211,211,1);
}

@media (max-width: 1024px) {
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    width: 160px;
    min-width: 160px;
  }
  .comparison-table .group-header-inner {
    width: 420px;
    max-width: calc(100vw - 24px);
    font-size: 24px;
  }
  .comparison-table { font-size: 0.75rem; }
  .group-row td:first-child { font-size: 24px; }
  .product-header {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem 0;
    align-items: flex-start;
    max-width: 150px;
  }
  .product-media {
    /*width: 60%;*/
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .remove-btn {
    max-height: 30px;
    max-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .remove-btn svg {
    max-height: 14px;
    max-width: 14px;

  }
}

@media (max-width: 768px) {
  .comparison-table td {
    max-width: 180px;
    font-size: 16px;
  }
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    width: 140px;
    min-width: 140px;
  }
  .comparison-table .group-header-inner {
    width: 240px;
    max-width: calc(100vw - 24px);
    padding: 8px 0;
    font-size: 18px;
  }

  .comparison-table { font-size: 0.5rem; }
  .group-row td:first-child { font-size: 18px; }
  .product-media { width: 125px; height: 125px; }
  .comparison-table thead th {
    height: 100px;
    padding-bottom: 0.25rem;
  }
  .product-price {
    max-width: 125px; font-size: 12px;
  }
  .product-title { max-width: 125px; -webkit-line-clamp: 3; font-size: 14px; }
  .product-desc { max-width: 125px; font-size: 12px; }
}