/*
 * Файл сформирован из assets/css/style.css.
 * Исходные диапазоны строк: 1393-1884.
 */

/* ===== СРАВНЕНИЕ ТОВАРОВ — ГОСТЕВОЕ И ПО ПОДКАТЕГОРИЯМ ===== */
.compare-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.compare-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 34px;
  border: 1px solid rgba(92, 122, 62, 0.45);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 20%, rgba(230, 126, 34, 0.18), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(92, 122, 62, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(26, 31, 28, 0.98), rgba(7, 10, 8, 0.96));
  box-shadow: var(--box-shadow);
  overflow: hidden;
}
.compare-hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, rgba(255,255,255,0.035) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.035) 50%, rgba(255,255,255,0.035) 75%, transparent 75%, transparent);
  background-size: 22px 22px;
  opacity: 0.2;
  pointer-events: none;
}
.compare-hero__content,
.compare-hero__panel {
  position: relative;
  z-index: 1;
}
.compare-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(184, 168, 124, 0.35);
  border-radius: 999px;
  background: rgba(7, 10, 8, 0.45);
  color: var(--accent-khaki);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}
.compare-hero h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
}
.compare-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.03rem;
}
.compare-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.compare-hero__badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(92, 122, 62, 0.4);
  border-radius: 999px;
  background: rgba(26, 31, 28, 0.74);
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.88rem;
}
.compare-hero__badges i {
  color: var(--accent-orange);
}
.compare-hero__panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(184, 168, 124, 0.28);
  border-radius: 20px;
  background: rgba(7, 10, 8, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.compare-hero__label {
  color: var(--accent-khaki);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}
.compare-hero__panel strong {
  display: block;
  margin: 8px 0;
  color: var(--text-light);
  font-family: 'Russo One', sans-serif;
  font-size: 1.75rem;
  line-height: 1.15;
  text-transform: uppercase;
}
.compare-hero__panel small {
  color: var(--text-muted);
  font-weight: 700;
}
.compare-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.compare-helper-card,
.compare-empty-soft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(230, 126, 34, 0.35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.12), rgba(92, 122, 62, 0.09));
}
.compare-helper-card h3,
.compare-empty-soft h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.compare-helper-card p,
.compare-empty-soft p {
  margin: 0;
  color: var(--text-muted);
}
.compare-helper-card > i,
.compare-empty-soft > i {
  color: var(--accent-orange);
  font-size: 2.2rem;
  flex: 0 0 auto;
}
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(92, 122, 62, 0.38);
  border-radius: 22px;
  background: rgba(7, 10, 8, 0.3);
  box-shadow: var(--box-shadow);
}
.compare-table-modern {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text-light);
}
.compare-table-modern th,
.compare-table-modern td {
  padding: 16px;
  border-right: 1px solid rgba(92, 122, 62, 0.26);
  border-bottom: 1px solid rgba(92, 122, 62, 0.26);
  background: rgba(26, 31, 28, 0.88);
  vertical-align: middle;
  text-align: center;
}
.compare-table-modern tr:last-child td {
  border-bottom: none;
}
.compare-table-modern th:last-child,
.compare-table-modern td:last-child {
  border-right: none;
}
.compare-feature-col,
.compare-feature-name {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 210px;
  text-align: left !important;
  background: linear-gradient(135deg, #141b16, #1d271e) !important;
  color: var(--accent-khaki) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.compare-feature-name i {
  margin-right: 8px;
  color: var(--accent-orange);
}
.compare-product-head {
  position: relative;
  min-width: 220px;
  background: linear-gradient(180deg, rgba(30, 38, 30, 0.98), rgba(18, 24, 19, 0.98)) !important;
}
.compare-remove-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(194, 92, 92, 0.45);
  border-radius: 50%;
  background: rgba(194, 92, 92, 0.12);
  color: #ff9a9a;
  cursor: pointer;
  transition: var(--transition);
}
.compare-remove-btn:hover {
  transform: rotate(90deg) scale(1.08);
  background: rgba(194, 92, 92, 0.32);
  color: #fff;
}
.compare-product-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 145px;
  margin: 6px 0 14px;
}
.compare-product-image-link img {
  max-width: 100%;
  max-height: 135px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,0.45));
}
.compare-product-title {
  display: block;
  min-height: 44px;
  margin-bottom: 10px;
  color: var(--text-light) !important;
  font-weight: 800;
  line-height: 1.25;
}
.compare-product-title:hover {
  color: var(--accent-orange) !important;
}
.compare-product-price,
.compare-price-cell {
  color: var(--accent-orange);
  font-weight: 900;
  font-size: 1.08rem;
}
.compare-product-price span {
  display: block;
  margin-top: 2px;
  color: #8f987f;
  font-size: 0.82rem;
  text-decoration: line-through;
}
.compare-stock-small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.compare-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.compare-section-title.centered {
  display: block;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px;
}
.compare-section-title span {
  display: block;
  color: var(--accent-orange);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.compare-section-title h2 {
  margin: 4px 0 0;
}
.compare-section-title p {
  max-width: 460px;
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}
.compare-suggestions,
.compare-start-panel {
  padding: 26px;
  border: 1px solid rgba(92, 122, 62, 0.32);
  border-radius: 22px;
  background: rgba(26, 31, 28, 0.66);
  box-shadow: var(--box-shadow);
}
.compare-products-grid,
.compare-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.compare-product-tile {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(92, 122, 62, 0.36);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26,31,28,0.95), rgba(14,18,16,0.95));
  overflow: hidden;
  transition: var(--transition);
}
.compare-product-tile:hover {
  transform: translateY(-6px);
  border-color: var(--accent-orange);
  box-shadow: var(--box-shadow-hover);
}
.compare-product-tile__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 165px;
  padding: 18px;
  background: radial-gradient(circle, rgba(92, 122, 62, 0.22), rgba(7, 10, 8, 0.75));
}
.compare-product-tile__image img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
}
.compare-product-tile__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}
.compare-product-tile__body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.3;
}
.compare-product-tile__body p {
  flex: 1;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.compare-product-tile__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.compare-product-tile__bottom strong {
  color: var(--accent-orange);
  white-space: nowrap;
}
.compare-subcategory-card {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 7px;
  padding: 22px;
  border: 1px solid rgba(92, 122, 62, 0.36);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(26,31,28,0.72), rgba(7,10,8,0.94)),
    radial-gradient(circle at top right, rgba(230,126,34,0.18), transparent 42%);
  color: var(--text-light);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
}
.compare-subcategory-card:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(92,122,62,0.12));
  opacity: 0;
  transition: var(--transition);
}
.compare-subcategory-card:hover,
.compare-subcategory-card.active {
  transform: translateY(-6px);
  border-color: var(--accent-orange);
  box-shadow: var(--box-shadow-hover);
}
.compare-subcategory-card:hover:before,
.compare-subcategory-card.active:before {
  opacity: 1;
}
.compare-subcategory-card__icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(230, 126, 34, 0.16);
  color: var(--accent-orange);
  font-size: 1.75rem;
}
.compare-subcategory-card small,
.compare-subcategory-card strong,
.compare-subcategory-card em {
  position: relative;
  z-index: 1;
}
.compare-subcategory-card small {
  color: var(--accent-khaki);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.compare-subcategory-card strong {
  font-family: 'Russo One', sans-serif;
  font-size: 1.35rem;
  line-height: 1.12;
  text-transform: uppercase;
}
.compare-subcategory-card em {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 700;
}
.compare-quick-products {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(92, 122, 62, 0.25);
}
.compare-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: var(--text-muted);
  font-weight: 700;
}
.compare-count-badge:empty,
#compareCount:empty {
  display: none !important;
}
@media (max-width: 992px) {
  .compare-hero {
    grid-template-columns: 1fr;
  }
  .compare-hero__panel {
    min-height: auto;
  }
}
@media (max-width: 768px) {
  .compare-hero,
  .compare-suggestions,
  .compare-start-panel {
    padding: 20px;
    border-radius: 18px;
  }
  .compare-actions-bar,
  .compare-section-title,
  .compare-product-tile__bottom {
    align-items: stretch;
    flex-direction: column;
  }
  .compare-actions-bar .btn,
  .compare-product-tile__bottom .btn {
    width: 100%;
  }
  .compare-products-grid,
  .compare-subcategory-grid {
    grid-template-columns: 1fr;
  }
  .compare-feature-col,
  .compare-feature-name {
    min-width: 170px;
  }
}
