.compare-action,
.mobile-bottom-nav .compare-link {
  position: relative;
}

.compare-action strong,
.mobile-bottom-nav__badge {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding-inline: 5px;
  border-radius: 99px;
  background: #f27a1a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.netden-compare-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.netden-compare-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.netden-compare-button:hover,
.netden-compare-button.is-active {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #f27a1a;
}

.netden-compare-button--loop {
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.netden-compare-button--loop span {
  display: none;
}

.single-product-page .netden-compare-button--single {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 46px;
}

.nd-compare-page {
  display: grid;
  gap: 22px;
}

.nd-compare-page__hero {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(242, 122, 26, 0.12), transparent 32%),
    linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}

.nd-compare-page__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff1e7;
  color: #f27a1a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nd-compare-page__hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.nd-compare-page__hero p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

.nd-compare-empty,
.nd-compare-loading {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 36px 24px;
  border: 1px dashed #dbe3ee;
  border-radius: 22px;
  background: #fff;
  text-align: center;
}

.nd-compare-empty h2,
.nd-compare-empty p {
  margin: 0;
}

.nd-compare-empty__button,
.nd-compare-toolbar__continue,
.nd-compare-card__link,
.nd-compare-card__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
}

.nd-compare-empty__button,
.nd-compare-card__cart {
  background: #f27a1a;
  color: #fff;
}

.nd-compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nd-compare-toolbar__continue {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #334155;
}

.nd-compare-toolbar__clear {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.nd-compare-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.nd-compare-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.nd-compare-remove {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #f27a1a;
  cursor: pointer;
  font-weight: 700;
}

.nd-compare-card__media {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: 16px;
  background: #f8fafc;
}

.nd-compare-card__media img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

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

.nd-compare-card__brand {
  color: #f27a1a;
  font-size: 12px;
}

.nd-compare-card__body h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.4;
}

.nd-compare-card__price {
  color: #f27a1a;
  font-size: 22px;
  font-weight: 800;
}

.nd-compare-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nd-compare-card__link {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #334155;
}

.nd-compare-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
}

.nd-compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.nd-compare-table th,
.nd-compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}

.nd-compare-table th {
  width: 220px;
  color: #0f172a;
  background: #fbfcfe;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.nd-compare-table td {
  color: #475569;
  font-size: 14px;
  line-height: 1.75;
}

.nd-compare-table td .price,
.nd-compare-table td .woocommerce-Price-amount {
  color: #f27a1a;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 767px) {
  .mobile-bottom-nav {
    grid-template-columns: repeat(6, 1fr);
  }

  .nd-compare-toolbar,
  .nd-compare-card__actions {
    grid-template-columns: 1fr;
  }

  .nd-compare-toolbar {
    display: grid;
  }

  .nd-compare-page__hero,
  .nd-compare-empty,
  .nd-compare-card,
  .nd-compare-table-wrap {
    border-radius: 18px;
  }
}
