/* Robot finder & compare (robotic pool cleaners hub) */
.rf { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.rf-filters { position: sticky; top: 90px; display: grid; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--shadow-1); }
.rf-filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rf-filters legend { width: 100%; margin-bottom: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); display: flex; justify-content: space-between; }
.rf-filters legend output { text-transform: none; letter-spacing: 0; color: var(--c-primary); font-size: .9rem; }
.rf-filters select { width: 100%; padding: 9px 10px; border-radius: var(--r); border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-text); font: inherit; }
.rf-chip { position: relative; cursor: pointer; }
.rf-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rf-chip span { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--c-line); font-size: .88rem; font-weight: 600; color: var(--c-text); background: var(--c-bg); transition: all .15s; }
.rf-chip input:checked + span { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.rf-chip input:focus-visible + span { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.rf-chip:hover span { border-color: var(--c-primary); }
.rf-range input { width: 100%; accent-color: var(--c-primary); }
.rf-reset { justify-self: start; background: none; border: 0; cursor: pointer; padding: 0; font: inherit; }
.rf-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rf-count { margin: 0; color: var(--c-muted); } .rf-count b { color: var(--c-heading); font-size: 1.2rem; }
.rf-sort { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--c-muted); }
.rf-sort select { padding: 7px 10px; border-radius: var(--r); border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-text); font: inherit; }
.rf-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.rf-item { position: relative; display: flex; animation: rfIn .3s both; }
.rf-item > .model-card { flex: 1; }
.rf-item[hidden] { display: none; }
.rf-item.is-picked .model-card { outline: 3px solid var(--c-accent); }
.rf-cmp { position: absolute; right: 10px; top: 10px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--c-card); box-shadow: var(--shadow-1);
  font-size: .8rem; font-weight: 700; color: var(--c-heading); cursor: pointer; }
.rf-cmp input { accent-color: var(--c-primary); width: 16px; height: 16px; margin: 0; }
.rf-cmp:has(input:checked) { background: var(--c-primary); color: #fff; }
.rf-cmp:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.rf-empty { padding: 30px; text-align: center; color: var(--c-muted); background: var(--c-card); border-radius: var(--r-lg); border: 1px dashed var(--c-line); }
@keyframes rfIn { from { opacity: 0; transform: translateY(8px); } }

.rf-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--c-card); border-top: 1px solid var(--c-line); box-shadow: 0 -12px 30px -18px rgba(6,35,72,.45); animation: rfUp .3s both; }
.rf-tray[hidden] { display: none; }
.rf-tray__in { display: flex; align-items: center; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.rf-tray__items { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; align-items: center; }
.rf-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 99px; background: var(--c-surface); font-size: .88rem; font-weight: 600; }
.rf-pill img { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; background: var(--c-card); }
.rf-pill button { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--c-muted); padding: 0 4px; }
.rf-hint { color: var(--c-muted); font-size: .88rem; }
.rf-tray [data-rf-clear] { background: none; border: 0; cursor: pointer; font: inherit; }
@keyframes rfUp { from { transform: translateY(100%); } }

.rf-dialog { width: min(1080px, 96vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--c-card); color: var(--c-text); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.rf-dialog::backdrop { background: rgba(6,20,40,.55); backdrop-filter: blur(3px); }
.rf-dialog__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--c-card); border-bottom: 1px solid var(--c-line); }
.rf-dialog__head h2 { margin: 0; font-size: 1.4rem; flex: 1; }
.rf-diff { font-size: .9rem; display: flex; gap: 6px; align-items: center; }
.rf-close { border: 0; background: var(--c-surface); width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--c-text); }
.rf-dialog__body { padding: 0 20px 20px; overflow-x: auto; }
.rf-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.rf-table th, .rf-table td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: middle; }
.rf-table tbody th { font-size: .85rem; color: var(--c-muted); font-weight: 600; width: 170px; }
.rf-table thead th { vertical-align: bottom; padding-top: 18px; }
.rf-table thead a { display: grid; gap: 2px; text-decoration: none; color: var(--c-heading); }
.rf-table thead img { width: 120px; height: 100px; object-fit: contain; margin-bottom: 6px; }
.rf-table thead small { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rf-table thead span { font: 700 1.1rem/1.2 var(--f-head, inherit); }
.rf-table tbody tr:nth-child(even) td, .rf-table tbody tr:nth-child(even) th { background: var(--c-surface); }
.rf-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-ok); color: #fff; font-weight: 700; font-size: .85rem; }
.rf-no { color: var(--c-muted); }
.rf-price { color: var(--c-primary); font-size: 1.05rem; }
.rf-dialog.diff-only tr.is-same:not(.rf-actions) { display: none; }
.rf-actions td { white-space: nowrap; }

@media (max-width: 900px) {
  .rf { grid-template-columns: 1fr; }
  .rf-filters { position: static; }
}
