.small-metric {
  font-size: 20px !important;
  line-height: 1.2;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.zero-match-filters {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #d5e2ff;
}

.zero-match-filters .chip-btn {
  border-color: #ffd8b0;
  background: #fff3e5;
  color: #9a5a16;
}

.zero-match-filters .chip-btn:hover {
  background: #ffe9d0;
}

.zero-match-filters .chip-btn.active {
  color: #8a4d10;
  border-color: #ffcf99;
  background: #ffe1bf;
}

.hidden {
  display: none !important;
}

.chip-btn {
  border: 1px solid #cadeff;
  background: #f5f9ff;
  color: #1f3f89;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: #e9f1ff;
}

.chip-btn.active {
  color: #fff;
  border-color: #2159d6;
  background: linear-gradient(135deg, #2f74ff 0%, #1249cb 100%);
}

.compare-card {
  margin-top: 6px;
}

.summary-line {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.45;
}

.compare-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.metric-box {
  border: 1px solid #d7e3ff;
  background: #f7faff;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
}

.metric-box span {
  display: block;
  color: #5f7095;
  font-size: 12px;
}

.metric-box strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.metric-filter {
  cursor: pointer;
  transition: all 0.2s ease;
}

.metric-filter:hover {
  background: #edf4ff;
}

.metric-filter.active {
  border-color: #2a66e4;
  box-shadow: 0 0 0 2px rgba(42, 102, 228, 0.14);
  background: #eef4ff;
}

.status-filter-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  .compare-metrics {
    grid-template-columns: 1fr;
  }
}

.products-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.product-card {
  border: 1px solid #d9e5ff;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(29, 73, 170, 0.09);
  display: flex;
  flex-direction: column;
}

.product-image-wrap {
  position: relative;
  height: 170px;
  background: #edf3ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.stock-badge,
.discount-badge {
  position: absolute;
  top: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.stock-badge {
  left: 8px;
}

.stock-badge.in-stock {
  color: #0a7f4f;
  background: #d5f8e8;
}

.stock-badge.out-stock {
  color: #9a3d3d;
  background: #ffe0e0;
}

.discount-badge {
  right: 8px;
  color: #ffffff;
  background: #ff5b5b;
}

.product-body {
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
}

.product-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #172c62;
  line-height: 1.35;
}

.product-article {
  margin: 0;
  font-size: 12px;
  color: #6b7ea7;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-price {
  font-size: 22px;
  font-weight: 800;
  color: #0e9a62;
}

.old-price {
  font-size: 14px;
  color: #95a3c4;
  text-decoration: line-through;
}

.product-empty {
  border: 1px dashed #c7d8ff;
  border-radius: 16px;
  padding: 20px;
  color: #6a7a9f;
  background: #f7faff;
}

.wafe-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
}

.wafe-badge-ok {
  color: #0f7f53;
  background: #d8f7e9;
  border: 1px solid #bcefd8;
}

.wafe-badge-missing {
  color: #a34a4a;
  background: #fde9e9;
  border: 1px solid #f3c4c4;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #6f4c00;
  background: #fff2cc;
  border: 1px solid #f2d58a;
}

.product-link {
  display: inline-flex;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  color: #1f56cc;
  text-decoration: none;
  border-bottom: 1px dashed rgba(31, 86, 204, 0.45);
}

.product-link:hover {
  color: #1643a3;
  border-bottom-color: rgba(22, 67, 163, 0.7);
}

@media (max-width: 1180px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }
}

@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
