/* Alsevita, pagina „Compară” (machetele „Compară colagenurile” și „Compară vitaminele și mineralele”). */

.als-cmp { padding: 24px 0 var(--als-section-y); background: var(--als-paper); }
.als-cmp .als-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--als-ink-soft); }
.als-cmp .als-crumbs a { color: var(--als-navy); }
.als-cmp__head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 16px 0 28px; }
.als-cmp__head > * { margin: 0; }
.als-cmp__title { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.als-cmp__lead { font-size: 18px; line-height: 1.55; color: var(--als-ink-soft); }

/* Fără categorie (din meniu): întâi ce compari. */
.als-cmp__cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.als-cmp__cat { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1.5px solid var(--als-line-strong); border-radius: var(--als-radius); background: #fff; color: var(--als-ink); text-decoration: none; transition: border-color .2s var(--als-ease); }
.als-cmp__cat:hover { border-color: var(--als-ink); }
.als-cmp__cat-pics { display: flex; gap: 8px; margin-bottom: 8px; }
.als-cmp__cat-pic { flex: 1 1 0; min-width: 0; max-width: 90px; aspect-ratio: 1; border-radius: var(--als-radius-sm); overflow: hidden; background: var(--p-ground); }
.als-cmp__cat-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.als-cmp__cat-name { font-size: 22px; line-height: 1.2; }
.als-cmp__cat-count { color: var(--als-muted); }

/* Ce compari / Ce cauți / produsele de ales. */
.als-cmp__form { display: flex; flex-direction: column; gap: 22px; margin: 0 0 32px; }
.als-cmp__group { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.als-cmp__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--als-ink-soft); }
.als-cmp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.als-cmp__chips .als-pill { min-height: 40px; padding: 0 16px; font-size: 15px; }
.als-cmp__pick-head { float: left; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; width: 100%; padding: 0; margin-bottom: 10px; }
.als-cmp__pick-head + * { clear: both; }
.als-cmp__count { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--als-muted); }
.als-cmp__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.als-cmp__tile-item[hidden] { display: none; }
.als-cmp__tile { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 8px 8px 12px; border: 1.5px solid var(--als-line-strong); border-radius: var(--als-radius); background: #fff; cursor: pointer; transition: border-color .2s var(--als-ease); }
.als-cmp__tile:hover { border-color: var(--als-ink-soft); }
.als-cmp__tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.als-cmp__tile:has(input:checked) { border: 2px solid var(--als-ink); padding: 7.5px 7.5px 11.5px; }
.als-cmp__tile:has(input:focus-visible) { outline: 2px solid var(--als-navy); outline-offset: 2px; }
.als-cmp__tile.is-full { opacity: .55; cursor: not-allowed; }
.als-cmp__tile-pic { position: relative; display: block; aspect-ratio: 1; margin-bottom: 6px; border-radius: var(--als-radius-sm); overflow: hidden; background: var(--p-ground); }
.als-cmp__tile-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.als-cmp__tile-pic img:not(.is-photo) { width: 80%; height: 80%; margin: 10%; object-fit: contain; }
.als-cmp__tick { position: absolute; top: 6px; right: 6px; display: none; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--als-ink); color: #fff; }
.als-cmp__tile:has(input:checked) .als-cmp__tick { display: grid; }
.als-cmp__tick .als-ico { stroke-width: 2.6; }
.als-cmp__tile-name { font-size: 14px; line-height: 1.25; }
.als-cmp__tile-goal { font-size: 13px; line-height: 1.35; color: var(--als-muted); }
.als-cmp__note { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--als-danger); }
.als-cmp__go { align-self: flex-start; margin-top: 8px; }
.als-cmp__go[hidden] { display: none; }

/* Tabelul: coloanele produselor alese (is-on), cel mult 320 px fiecare, ca un singur produs să nu se întindă pe toată
   lățimea (cardul alb se strânge după tabel); prima coloană rămâne pe loc la derulare pe telefon. */
.als-cmpt-wrap { width: fit-content; max-width: 100%; overflow-x: auto; padding: 24px; border-radius: var(--als-radius); background: #fff; }
.als-cmpt-wrap[hidden] { display: none; }
.als-cmpt { width: calc(150px + var(--n, 2) * 320px); max-width: 100%; min-width: calc(150px + var(--n, 2) * 180px); border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.5; }
.als-cmpt [data-col]:not(.is-on) { display: none; }
.als-cmpt th, .als-cmpt td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--als-line); }
.als-cmpt thead th { border-top: 0; padding-bottom: 16px; vertical-align: bottom; }
.als-cmpt__label { width: 150px; font-size: 13px; font-weight: 700; color: var(--als-ink); }
.als-cmpt tbody .als-cmpt__label, .als-cmpt thead .als-cmpt__label { position: sticky; left: 0; z-index: 1; background: #fff; }
.als-cmpt tr.is-strong td { font-weight: 700; }
.als-cmpt tr[hidden] { display: none; }
.als-cmpt__product { font-weight: 400; }
.als-cmpt__pic { display: block; width: 100%; max-width: 240px; aspect-ratio: 1; margin-bottom: 12px; border-radius: var(--als-radius); overflow: hidden; background: var(--p-ground); }
.als-cmpt__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.als-cmpt__pic img:not(.is-photo) { width: 80%; height: 80%; margin: 10%; object-fit: contain; }
.als-cmpt__name { display: block; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--als-ink); text-decoration: none; }
.als-cmpt__name:hover { text-decoration: underline; }
.als-cmpt__goal { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--p-accent); }
.als-cmpt__price { display: block; margin: 8px 0 10px; font-size: 18px; font-weight: 700; }
.als-cmpt__price del { font-size: 14px; font-weight: 500; color: var(--als-muted); }
.als-cmpt__price ins { text-decoration: none; }
.als-cmpt .als-cmpt__add { display: flex; justify-content: center; width: 100%; min-height: 46px; padding: 0 12px; font-size: 15px; }
.als-cmpt__view { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--als-ink); }

/* Quizul, la final. */
.als-cmp__quiz { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 24px; padding: 24px 28px; border-radius: var(--als-radius); background: #F4E5EC; }
.als-cmp__quiz > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.als-cmp__quiz h2, .als-cmp__quiz p { margin: 0; }
.als-cmp__quiz h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.als-cmp__quiz p { color: var(--als-ink-soft); }

@media (max-width: 600px) {
	.als-cmp__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.als-cmpt-wrap { width: auto; padding: 16px; margin-inline: calc(-1 * var(--als-gutter)); border-radius: 0; }
	.als-cmpt { min-width: calc(110px + var(--n, 2) * 150px); font-size: 14px; }
	.als-cmpt__label { width: 110px; }
}
