/* TopTools.kz — product comparison UX v2 */

#product-compare,
#product-compare * {
  box-sizing: border-box;
}

.tt-compare-page {
  padding-bottom: 42px;
  color: #17263c;
}

.tt-compare-breadcrumb {
  margin-bottom: 18px;
}

.tt-compare-content {
  min-width: 0;
}

.tt-compare-hero {
  margin-bottom: 18px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f6faff 100%);
  border: 1px solid #e0eaf4;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(21, 44, 76, .06);
}

.tt-compare-kicker {
  display: block;
  margin-bottom: 6px;
  color: #ff671d;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tt-compare-hero h1 {
  margin: 0;
  color: #10233d;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.025em;
}

.tt-compare-hero p {
  max-width: 700px;
  margin: 8px 0 0;
  color: #657991;
  font-size: 14px;
  line-height: 1.55;
}

.tt-compare-hero-count {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #ff671d;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(255, 103, 29, .24);
}

.tt-compare-hero-count strong {
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.tt-compare-hero-count span {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
}

.tt-compare-toolbar {
  margin-bottom: 12px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7faff;
  border: 1px solid #e1ebf5;
  border-radius: 14px;
}

.tt-compare-differences,
.tt-compare-clear {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none !important;
}

.tt-compare-differences {
  color: #28425f;
  background: #ffffff;
  border: 1px solid #d8e5f1;
}

.tt-compare-differences:hover,
.tt-compare-differences:focus,
.tt-compare-differences.is-active {
  color: #08753f;
  background: #f1fff7;
  border-color: #90d7b0;
  outline: none;
}

.tt-compare-switch {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 34px;
  background: #cad6e2;
  border-radius: 999px;
  transition: background .18s ease;
}

.tt-compare-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(15, 35, 56, .24);
  transition: transform .18s ease;
}

.tt-compare-differences.is-active .tt-compare-switch {
  background: #19a760;
}

.tt-compare-differences.is-active .tt-compare-switch span {
  transform: translateX(14px);
}

.tt-compare-difference-summary {
  color: #74869b;
  font-size: 12px;
  font-weight: 700;
}

.tt-compare-clear {
  margin-left: auto;
  color: #a4483d;
  background: #ffffff;
  border: 1px solid #efd4d0;
}

.tt-compare-clear:hover,
.tt-compare-clear:focus {
  color: #8e2f24;
  background: #fff7f5;
  border-color: #e6b5ae;
}

.tt-compare-scroll-hint {
  display: none;
  margin: 0 0 10px;
  color: #74869b;
  font-size: 12px;
  font-weight: 700;
}

.tt-compare-scroll-hint i {
  margin-right: 6px;
  color: #ff671d;
}

.tt-compare-table-wrap {
  position: relative;
  width: 100%;
  overflow: auto;
  border: 1px solid #dfe9f3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(18, 42, 71, .07);
  -webkit-overflow-scrolling: touch;
}

.tt-compare-table {
  width: 100%;
  margin: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.tt-compare-table th,
.tt-compare-table td {
  padding: 14px 16px;
  vertical-align: top;
  border-right: 1px solid #e7eef6;
  border-bottom: 1px solid #e7eef6;
}

.tt-compare-table tr > *:last-child {
  border-right: 0;
}

.tt-compare-table tbody:last-child tr:last-child > * {
  border-bottom: 0;
}

.tt-compare-products-row > th {
  background: #ffffff;
}

.tt-compare-label {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 190px;
  min-width: 190px;
  color: #314760;
  background: #f8fbfe !important;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
  box-shadow: 6px 0 12px rgba(26, 49, 77, .025);
}

.tt-compare-label--product {
  padding-top: 22px !important;
}

.tt-compare-label--product span,
.tt-compare-label--product small {
  display: block;
}

.tt-compare-label--product small {
  margin-top: 7px;
  color: #8292a6;
  font-weight: 600;
}

.tt-compare-product-cell {
  width: 240px;
  min-width: 240px;
  padding: 12px !important;
}

.tt-compare-product-card {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.tt-compare-remove {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8292a6;
  background: #f6f9fc;
  border: 1px solid #e1e9f2;
  border-radius: 9px;
  text-decoration: none !important;
}

.tt-compare-remove:hover,
.tt-compare-remove:focus {
  color: #c33b2d;
  background: #fff4f2;
  border-color: #f0c2bc;
}

.tt-compare-product-image {
  height: 150px;
  padding: 8px 28px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-compare-product-image img {
  max-width: 100%;
  max-height: 134px;
  object-fit: contain;
}

.tt-compare-no-image {
  color: #b7c4d2;
  font-size: 38px;
}

.tt-compare-product-name {
  min-height: 58px;
  color: #112640;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 900;
  text-decoration: none !important;
}

.tt-compare-product-name:hover {
  color: #ff671d;
}

.tt-compare-product-model {
  margin-top: 7px;
  color: #7b8da2;
  font-size: 11px;
  font-weight: 700;
}

.tt-compare-stock {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
}

.tt-compare-stock i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.tt-compare-stock--available {
  color: #098347;
}

.tt-compare-stock--available i {
  background: #22b96b;
  box-shadow: 0 0 0 4px rgba(34, 185, 107, .12);
}

.tt-compare-stock--request {
  color: #a56b11;
}

.tt-compare-stock--request i {
  background: #f3a52d;
  box-shadow: 0 0 0 4px rgba(243, 165, 45, .12);
}

.tt-compare-price {
  min-height: 27px;
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.tt-compare-price strong {
  color: #10233d;
  font-size: 18px;
  font-weight: 900;
}

.tt-compare-price del {
  color: #9aa8b8;
  font-size: 12px;
}

.tt-compare-shipping {
  min-height: 34px;
  margin: 7px 0 10px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #667a91;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
}

.tt-compare-shipping i {
  margin-top: 2px;
  color: #ff671d;
}

.tt-compare-cart,
.tt-compare-quick-order,
.tt-compare-request,
.tt-compare-catalog-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none !important;
}

.tt-compare-cart {
  color: #ffffff;
  background: #ff671d;
  border: 1px solid #ff671d;
}

.tt-compare-cart:hover,
.tt-compare-cart:focus {
  color: #ffffff;
  background: #ed570f;
  border-color: #ed570f;
}

.tt-compare-quick-order,
.tt-compare-quick-order.tt-quick-order-listing {
  width: 100%;
  min-height: 40px;
  margin: 8px 0 0;
  color: #e85e00;
  background: #ffffff;
  border: 1px solid #ff671d;
}

.tt-compare-quick-order:hover,
.tt-compare-quick-order:focus,
.tt-compare-quick-order.tt-quick-order-listing:hover,
.tt-compare-quick-order.tt-quick-order-listing:focus {
  color: #d94f00;
  background: #fff4ec;
  border-color: #ff671d;
  outline: none;
}

.tt-compare-request {
  color: #9b6412;
  background: #fff8e8;
  border: 1px solid #efd391;
}

.tt-compare-request:hover,
.tt-compare-request:focus {
  color: #7d4d07;
  background: #ffefc6;
}

.tt-compare-section-row th {
  position: static;
  padding: 12px 16px;
  color: #173456;
  background: #edf5fc;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
}

.tt-compare-value {
  width: 240px;
  min-width: 240px;
  color: #3d536d;
  background: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.tt-compare-row.is-different .tt-compare-label {
  color: #b64e18;
  background: #fff7f1 !important;
}

.tt-compare-row.is-different .tt-compare-value {
  background: #fffdf9;
}

.tt-compare-row.is-same {
  transition: opacity .15s ease;
}

.tt-compare-table.is-differences-only .tt-compare-row.is-same {
  display: none;
}

.tt-compare-table.is-differences-only tbody.is-all-same {
  display: none;
}

.tt-compare-rating span,
.tt-compare-rating small {
  display: block;
}

.tt-compare-rating span {
  color: #f0a027;
  font-weight: 900;
}

.tt-compare-rating small {
  margin-top: 3px;
  color: #7d8fa4;
}

.tt-compare-description-row .tt-compare-value {
  color: #657991;
  font-size: 12px;
}

.tt-compare-empty {
  padding: 58px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e0eaf4;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(21, 44, 76, .06);
}

.tt-compare-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff671d;
  background: #fff2ea;
  border-radius: 20px;
  font-size: 28px;
}

.tt-compare-empty h2 {
  margin: 0;
  color: #112640;
  font-size: 24px;
  font-weight: 900;
}

.tt-compare-empty p {
  max-width: 560px;
  margin: 10px auto 20px;
  color: #6b7f96;
  font-size: 14px;
  line-height: 1.55;
}

.tt-compare-catalog-link {
  padding: 0 18px;
  color: #ffffff;
  background: #ff671d;
  border: 1px solid #ff671d;
}

@media (max-width: 991px) {
  .tt-compare-scroll-hint {
    display: block;
  }

  .tt-compare-hero {
    padding: 21px;
  }
}

@media (max-width: 767px) {
  .tt-compare-page {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .tt-compare-hero {
    padding: 18px;
    align-items: flex-start;
    border-radius: 16px;
  }

  .tt-compare-hero h1 {
    font-size: 24px;
  }

  .tt-compare-hero-count {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-radius: 15px;
  }

  .tt-compare-toolbar {
    padding: 10px;
    flex-wrap: wrap;
  }

  .tt-compare-differences {
    flex: 1 1 auto;
  }

  .tt-compare-difference-summary {
    order: 3;
    width: 100%;
  }

  .tt-compare-clear {
    margin-left: 0;
  }

  .tt-compare-table-wrap {
    border-radius: 14px;
  }

  .tt-compare-label {
    width: 142px;
    min-width: 142px;
    padding: 12px 10px !important;
  }

  .tt-compare-product-cell,
  .tt-compare-value {
    width: 210px;
    min-width: 210px;
  }

  .tt-compare-product-image {
    height: 132px;
  }

  .tt-compare-product-image img {
    max-height: 118px;
  }
}
