/* Сторінка порівняння — доповнення до items/index.css (типографіка, container, кнопки) */

.compare_page__wrapper,
.compare_section {
  font-family: "Lato", sans-serif;
  color: #242321;
}

.compare_section {
  padding-top: 120px;
  padding-bottom: 56px;
  min-height: 70vh;
}

.compare_section .mini_navigate-block {
  margin-bottom: 8px;
}

.compare_section .mini_nav_name {
  text-decoration: none;
}

.compare_section .mini_nav_name[href]:hover {
  color: #ffd10a;
}

.compare_section .product_title {
  margin-top: 0;
  margin-bottom: 0;
}

.compare_section__hint {
  max-width: 720px;
  margin-top: 14px;
  margin-bottom: 0;
  line-height: 1.5;
  color: rgba(36, 35, 33, 0.75);
}

.compare_root {
  margin-top: 28px;
}

.compare_loading {
  padding: 40px 0;
  text-align: center;
  color: rgba(36, 35, 33, 0.65);
  font-size: 15px;
}

.compare_empty {
  padding: 36px 24px;
  text-align: center;
  line-height: 1.45;
  border: 1px solid #3d3c3a;
  background: #fafafa;
}

.compare_err_load {
  padding: 28px 22px;
  text-align: center;
  line-height: 1.5;
  border: 1px solid #c45c5c;
  background: #fff8f8;
  color: #5c2a2a;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.compare_table_wrap {
  overflow-x: auto;
  border: 1px solid #3d3c3a;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.compare_table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.compare_th,
.compare_td {
  border: 1px solid #e0e0e0;
  padding: 14px 16px;
  vertical-align: top;
  text-align: left;
}

.compare_th--corner {
  width: 200px;
  min-width: 160px;
  background: #fafafa;
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 1px 0 0 #e0e0e0;
}

.compare_th {
  background: #fafafa;
  max-width: 260px;
  vertical-align: top;
}

.compare_th_product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.compare_th_imgwrap {
  display: block;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
  flex-shrink: 0;
}

.compare_th_imgwrap:hover {
  border-color: #ffd10a;
}

.compare_th_img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}

.compare_th_link {
  display: block;
  margin-bottom: 0;
  text-decoration: none;
  color: #242321;
  line-height: 1.35;
}

.compare_th_link:hover {
  color: #ffd10a;
}

.compare_remove_btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 20px;
  line-height: 1;
  color: rgba(36, 35, 33, 0.45);
  border-radius: 4px;
}

.compare_remove_btn:hover {
  color: #242321;
  background: rgba(255, 209, 10, 0.25);
}

.compare_td--name {
  background: #fafafa;
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 1px 0 0 #e0e0e0;
  white-space: nowrap;
}

.compare_tr--section .compare_td--section {
  background: #ededed;
  color: #242321;
  padding-top: 12px;
  padding-bottom: 12px;
  border: 1px solid #d8d8d8;
  font-weight: 600;
}

.compare_tr--data.compare_tr--alt .compare_td:not(.compare_td--name) {
  background: #fcfcfc;
}

@media (max-width: 640px) {
  .compare_section {
    padding-top: 100px;
  }

  .compare_th--corner,
  .compare_td--name {
    position: static;
    box-shadow: none;
  }

  .compare_th_img {
    width: 88px;
    height: 88px;
  }
}
