/* Compare page (theme rizno) */
.compare-page {
  margin-bottom: 40px;
  --compare-label-w: 260px;
  --compare-col-w: 300px;
}

.compare-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin: 10px 0 18px;
}

.compare-head h1 {
  margin: 0;
}

.compare-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #f2f3f5;
  font-weight: 600;
  font-size: 14px;
}

.compare-pill .compare-pill__count {
  color: #d40063;
}

/* Top area: left filter panel + cards only (table below is full width) */
.compare-top {
  display: grid;
  grid-template-columns: var(--compare-label-w) 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.compare-top__cards {
  min-width: 0;
}

.compare-panel {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 16px;
}

.compare-panel__title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

.compare-filter {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.compare-filter__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s ease;
}

.compare-filter__btn.is-active {
  border-color: #192940;
  background: rgba(25, 41, 64, .05);
}

.compare-filter__btn:hover {
  border-color: #192940;
}

.compare-panel__actions {
  display: grid;
  gap: 10px;
}

.compare-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  padding: 10px 12px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none !important;
  color: #192940;
}

.compare-btn:hover {
  border-color: #192940;
}

.compare-btn.is-danger {
  border-color: #efefef;
  background: #f6f6f6;
  color: #000;
}

.compare-table-section {
  width: 100%;
}

/* Product cards strip is horizontally scrollable and aligned with table columns */
.compare-scroll--cards {
  padding: 14px 0;
}

.compare-products-strip {
  display: inline-flex;
  align-items: stretch;
  gap: 18px;
}

/* (removed) spacer: panel is only for top area; table is full width below */

.compare-card {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 14px;
  display: grid;
  gap: 10px;
  flex: 0 0 var(--compare-col-w);
  width: var(--compare-col-w);
}

.compare-card__img {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
}

.compare-card__img img {
  max-width: 100%;
  height: auto;
}

.compare-card__name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  color: #000;
  text-decoration: none !important;
}

.compare-card__price {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  color: #000;
}

.compare-card__price strike {
  opacity: .6;
  font-weight: 600;
  margin-right: 6px;
}

.compare-card__actions {
  display: grid;
  gap: 10px;
}

.compare-buy {
  border: none;
  border-radius: 10px;
  background: #2C80E5;
  color: #fff;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  width: 100%;
}

.compare-buy:hover {
  filter: brightness(0.96);
}

.compare-remove {
  border: none;
  border-radius: 10px;
  background: #e6e6e6;
  color: #000;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  width: 100%;
  text-decoration: none !important;
  text-align: center;
  display: inline-block;
}

.compare-table-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 10px 0;
}

.compare-scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  cursor: pointer;
}

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.compare-table {
  /* Don't stretch to container width; keep width close to cards and allow horizontal scroll */
  display: inline-table;
  width: auto;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px; /* allows horizontal scroll on small screens */
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid #ededed;
  padding: 12px 14px;
  vertical-align: top;
  background: #fff;
  white-space: normal;
  word-break: break-word;
}

.compare-table thead th {
  font-size: 14px;
  font-weight: 700;
  background: #f6f7f9;
}

.compare-table th.compare-sticky,
.compare-table td.compare-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: var(--compare-label-w);
  max-width: var(--compare-label-w);
  background: #fff;
}

.compare-table thead th.compare-sticky {
  z-index: 3;
  background: #f6f7f9;
}

.compare-row-label {
  font-weight: 600;
  color: #000;
}

.compare-section {
  background: #f6f7f9 !important;
  font-weight: 800;
}

.compare-empty {
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Keep product columns visually aligned with cards */
.compare-table th:not(.compare-sticky),
.compare-table td:not(.compare-sticky) {
  width: var(--compare-col-w);
  min-width: var(--compare-col-w);
  max-width: var(--compare-col-w);
}

/* Row hover highlight (like your menus) */
.compare-table tbody tr:hover td {
  background: rgba(44, 128, 229, 0.08);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-top: 1px solid rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(44,128,229,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5),
              0 4px 12px rgba(44,128,229,0.12);
}

.compare-table tbody tr:hover td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.compare-table tbody tr:hover td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

@media (max-width: 980px) {
  .compare-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .compare-table {
    min-width: 720px;
  }
}


