/* Product compare — category listing */

.products_item .compare-pick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.6rem 1.6rem 0.2rem 0;
  font: 600 1.35rem/1.2 Khula;
  color: #222;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 2;
}

.products_item .compare-pick input {
  width: 1.6rem;
  height: 1.6rem;
  accent-color: #c41230;
  cursor: pointer;
}

.csi-compare-bar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483000 !important;
  transform: none !important;
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  padding: 1.2rem 1.6rem;
  background: #111 !important;
  color: #fff !important;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}

.csi-compare-bar.is-open {
  display: flex !important;
}

.csi-compare-bar__count {
  flex: 1 1 auto;
  min-width: 18rem;
  font: 600 1.55rem/1.3 Khula;
  color: #fff;
}

.csi-compare-bar__count strong {
  color: #ffb3bf;
  font-size: 1.8rem;
}

.csi-compare-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.9rem 1.4rem;
  font: 700 1.4rem/1 Khula;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.csi-compare-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.csi-compare-btn--go {
  background: #c41230;
  color: #fff;
  min-width: 14rem;
}

.csi-compare-btn--go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.csi-compare-overlay {
  position: fixed !important;
  inset: 0;
  z-index: 2147483001 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: rgba(10, 10, 10, 0.62);
}

.csi-compare-overlay.is-open {
  display: flex !important;
}

.csi-compare-panel {
  width: min(1100px, 96vw);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #fff;
  color: #111;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.csi-compare-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.csi-compare-panel__head h2 {
  margin: 0;
  font: 700 2rem/1.2 Khula;
}

.csi-compare-panel__close {
  border: 0;
  background: #111;
  color: #fff;
  font: 600 1.4rem/1 Khula;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
}

.csi-compare-table-wrap {
  padding: 0 1rem 1.6rem;
  overflow-x: auto;
}

.csi-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.csi-compare-table th,
.csi-compare-table td {
  border-bottom: 1px solid #ececec;
  padding: 1rem 0.9rem;
  vertical-align: top;
  text-align: left;
  font: 400 1.4rem/1.4 Khula;
}

.csi-compare-table th {
  width: 12rem;
  color: #666;
  font-weight: 600;
  background: #fafafa;
}

.csi-compare-table thead td {
  text-align: center;
  min-width: 16rem;
}

.csi-compare-table .cmp-img {
  width: 120px;
  height: 90px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.8rem;
}

.csi-compare-table .cmp-name {
  display: block;
  font: 700 1.5rem/1.25 Khula;
  color: #111;
  text-decoration: none;
  margin-bottom: 0.4rem;
}

.csi-compare-table .cmp-price {
  font: 700 1.8rem/1 Khula;
  color: #038625;
}

.csi-compare-table .cmp-price strike {
  color: #9e9e9e;
  font-size: 1.4rem;
  margin-left: 0.4rem;
}

@media only screen and (max-width: 650px) {
  .csi-compare-bar__count {
    width: 100%;
    min-width: 0;
  }
}
