/* ── EVD Hot Comparisons Widget ── */
#evd-hc-root {
  font-family: inherit;
  padding: 1.25rem 0 1.75rem;
  width: 100%;
  overflow: hidden;
}
#evd-hc-root * { box-sizing: border-box; }

/* Header */
.evd-hc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 2px;
}
.evd-hc-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #0F1B15;
}
.evd-hc-title span { color: #e63027; }
.evd-hc-viewall {
  font-size: 13px;
  font-weight: 600;
  color: #084F38;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.evd-hc-viewall:hover { text-decoration: underline; }

/* ── Scroll container — native CSS scroll snap ── */
.evd-hc-outer {
  display: flex;
  align-items: center;
  gap: 6px;
}
.evd-hc-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE */
  flex: 1;
  padding-bottom: 4px;         /* room for scrollbar on desktop */
}
.evd-hc-track::-webkit-scrollbar { display: none; }

/* Nav arrows — visible on desktop, hidden on mobile */
.evd-hc-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #444;
  line-height: 1;
  transition: background .12s;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.evd-hc-nav:hover { background: #f5f5f5; }
.evd-hc-nav:disabled { opacity: .25; cursor: default; box-shadow: none; }

/* ── Cards ── */
.evd-hc-card {
  /* Mobile: 1 card fills ~85% width so next card peeks */
  min-width: calc(85vw - 32px);
  max-width: 280px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #E4DFCF;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
}
.evd-hc-card:hover {
  border-color: #0B6E4F;
  box-shadow: 0 4px 16px rgba(11,110,79,.12);
}

/* Card header */
.evd-hc-card-head {
  padding: 7px 12px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}
.evd-hc-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}
.evd-hc-badge-s { background: #faeeda; color: #854f0b; }
.evd-hc-badge-b { background: #e6f1fb; color: #185fa5; }
.evd-hc-badge-c { background: #DCEEE4; color: #084F38; }
.evd-hc-cardnum { font-size: 10px; color: #bbb; }

/* EV block */
.evd-hc-ev { padding: 10px 12px 7px; }
.evd-hc-imgwrap {
  width: 100%;
  height: 90px;
  background: #F6F4EC;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.evd-hc-imgwrap img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
  display: block;
}
.evd-hc-imgph { font-size: 32px; color: #E4DFCF; }
.evd-hc-evname {
  font-size: 13px;
  font-weight: 700;
  color: #0F1B15;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.evd-hc-evprice {
  font-size: 12px;
  font-weight: 700;
  color: #0F1B15;
  margin-top: 3px;
}
.evd-hc-range {
  font-size: 10px;
  background: #e6f1fb;
  color: #185fa5;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
}

/* VS divider */
.evd-hc-vs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  margin: 2px 0;
}
.evd-hc-vsline { flex: 1; border-top: 1.5px dashed #E4DFCF; }
.evd-hc-vsbadge {
  font-size: 10px;
  font-weight: 700;
  color: #084F38;
  background: #DCEEE4;
  border: 1px solid #84c9a8;
  padding: 2px 8px;
  border-radius: 20px;
}

/* CTA */
.evd-hc-cta { padding: 7px 12px 12px; }
.evd-hc-ctabtn {
  width: 100%;
  font-size: 12px;
  padding: 8px;
  background: #0B6E4F;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: background .12s;
}
.evd-hc-ctabtn:hover { background: #084F38; }

/* Dots — primary nav on mobile */
.evd-hc-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.evd-hc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background .2s, transform .2s;
  border: none;
  padding: 0;
}
.evd-hc-dot.on {
  background: #0B6E4F;
  transform: scale(1.25);
}

.evd-hc-loading { color: #888; font-size: 13px; padding: 10px 0; margin: 0; }

/* ── Responsive breakpoints ── */

/* Tablet: show ~2 cards */
@media (min-width: 540px) {
  .evd-hc-card {
    min-width: 240px;
    max-width: 240px;
  }
}

/* Desktop: show 3 cards, hide dots, show arrows */
@media (min-width: 900px) {
  .evd-hc-card {
    min-width: 220px;
    max-width: 220px;
  }
  .evd-hc-dots { display: none; }
}

/* Hide arrows on mobile — swipe is the primary action */
@media (max-width: 899px) {
  .evd-hc-nav { display: none; }
}
