/* ---- /compare ------------------------------------------------------------ */
.cmp { padding-top: 28px; padding-bottom: 64px; }
.cmp__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cmp__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--pine); }
.cmp__sub { color: var(--mist); font-size: 14px; margin-top: 4px; }
.cmp__tools { display: flex; gap: 8px; }
.cmp__empty { margin-top: 32px; padding: 40px 24px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--mist); }
.cmp__empty .btn { margin-top: 16px; }

.cmp__scroll { margin-top: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cmp__table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 14px; }
.cmp__table th, .cmp__table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; }
.cmp__table tr > *:last-child { border-right: 0; }
.cmp__table tbody tr:last-child > * { border-bottom: 0; }

/* sticky label column */
.cmp__table th[scope="row"], .cmp__corner {
  position: sticky; left: 0; z-index: 2; background: var(--paper);
  text-align: left; font-weight: 600; color: var(--pine); padding: 12px 14px;
  min-width: 130px; max-width: 160px; font-size: 13px;
}
.cmp__corner { z-index: 3; vertical-align: bottom; }
.cmp__table th[scope="row"] em { display: block; font-style: normal; font-weight: 400; font-size: 11px; color: var(--mist); margin-top: 2px; }
.cmp__table td { padding: 12px 14px; color: var(--ink); min-width: 170px; max-width: 220px; }
.cmp__table td.is-empty { color: var(--mist); }
.cmp__table td.is-best { background: rgba(44,107,84,0.08); color: var(--pine); font-weight: 600; box-shadow: inset 3px 0 0 var(--leaf); }

/* product header cells */
.cmp__prod { position: relative; padding: 14px 14px 16px; min-width: 190px; max-width: 220px; text-align: left; font-weight: 400; background: #fff; }
.cmp__remove {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--mist); font-size: 16px; line-height: 1; cursor: pointer;
}
.cmp__remove:hover { color: #b42318; border-color: #b42318; }
.cmp__media { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper); margin-bottom: 10px; }
.cmp__media img, .cmp__media .viz { width: 100%; height: 100%; object-fit: contain; }
.cmp__brand { display: block; margin-bottom: 4px; }
.cmp__name { display: block; font-weight: 600; color: var(--pine); line-height: 1.3; font-size: 13.5px; }
.cmp__name:hover { color: var(--leaf); }
.cmp__price { display: block; margin-top: 6px; font-weight: 700; color: var(--ink); }
.cmp__price ins { text-decoration: none; color: var(--leaf); }
.cmp__price del { color: var(--mist); font-weight: 400; font-size: 12px; margin-left: 4px; }
.cmp__add { width: 100%; margin-top: 10px; padding: 9px 12px !important; font-size: 13px !important; }

/* the verdict row */
.cmp__usp td { background: rgba(168,124,52,0.06); }
.cmp__usp th[scope="row"] { background: rgba(168,124,52,0.10); }
.cmp__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cmp__chips li { font-size: 12px; font-weight: 600; color: #fff; background: var(--leaf); border-radius: 999px; padding: 4px 10px; line-height: 1.3; }
.cmp__chips li.is-none { background: transparent; color: var(--mist); border: 1px dashed var(--line); font-weight: 500; }

.cmp__legend { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--mist); }
.cmp__legend-dot { width: 14px; height: 14px; border-radius: 3px; background: rgba(44,107,84,0.12); box-shadow: inset 3px 0 0 var(--leaf); }

@media (max-width: 640px) {
  .cmp { padding-top: 16px; }
  .cmp__head { align-items: flex-start; flex-direction: column; }
  .cmp__tools .btn { padding: 8px 14px; font-size: 13px; }
  .cmp__table th[scope="row"], .cmp__corner { min-width: 96px; max-width: 110px; padding: 10px 10px; font-size: 12px; }
  .cmp__table td { min-width: 150px; max-width: 170px; padding: 10px; font-size: 13px; }
  .cmp__prod { min-width: 160px; max-width: 170px; padding: 10px; }
  .cmp__name { font-size: 12.5px; }
}
