/* LFO uplift-sravnenie (19.10.2026): сравнение палаток и шатров.
   Кнопка «Сравнить» на карточках и в товаре, плашка внизу, таблица характеристик из /api/state.
   Чёрно-белое, без своих цветов. Откат = убрать <link>/<script> uplift-sravnenie из HTML. */
.lfo-cmp-btn{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background .18s,color .18s,border-color .18s}
.lfo-cmp-btn:hover{background:var(--surface)}
.lfo-cmp-btn[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.lfo-cmp-btn svg{width:15px;height:15px;flex:none}
.product-card .lfo-cmp-btn{margin-top:10px}
.buy-box .lfo-cmp-btn{margin-top:12px;min-height:44px;padding:8px 16px;font-size:14px}

/* плашка внизу */
.lfo-cmp-bar{position:fixed;left:50%;bottom:16px;transform:translateX(-50%) translateY(0);z-index:30;display:flex;align-items:center;gap:6px;padding:8px 8px 8px 16px;border-radius:14px;background:var(--ink);color:var(--paper);box-shadow:0 10px 30px rgba(0,0,0,.22);font-size:14px;font-weight:600;white-space:nowrap;max-width:calc(100vw - 32px);transition:transform .35s cubic-bezier(.22,1,.36,1),opacity .25s}
.lfo-cmp-bar[hidden]{display:none}
.lfo-cmp-bar.lfo-above-sticky{bottom:calc(var(--lfo-sticky-h,70px) + 12px)}
.lfo-cmp-bar button{font:inherit;font-size:13px;font-weight:600;cursor:pointer;border:0;border-radius:9px;min-height:36px;padding:6px 12px;background:var(--paper);color:var(--ink)}
.lfo-cmp-bar button.lfo-cmp-clear{background:transparent;color:var(--paper);opacity:.75}
.lfo-cmp-bar button.lfo-cmp-clear:hover{opacity:1}
.lfo-cmp-bar>span{margin-right:6px}

/* окно */
.lfo-cmp-dialog{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:14px}
.lfo-cmp-dialog[hidden]{display:none}
.lfo-cmp-panel{position:relative;width:100%;max-width:1120px;max-height:92vh;overflow:auto;border-radius:16px;background:var(--paper);color:var(--ink);padding:20px 20px 24px;box-shadow:0 24px 60px rgba(0,0,0,.35);-webkit-overflow-scrolling:touch}
.lfo-cmp-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.lfo-cmp-head h2{font-size:24px;line-height:1.15;letter-spacing:-.02em;margin:0}
.lfo-cmp-close{width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);font-size:22px;line-height:1;cursor:pointer}
.lfo-cmp-close:hover{background:var(--surface)}
.lfo-cmp-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums lining-nums}
.lfo-cmp-table th,.lfo-cmp-table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;min-width:150px}
.lfo-cmp-table th:first-child,.lfo-cmp-table td:first-child{color:var(--muted);font-weight:500;width:170px;min-width:0;position:sticky;left:0;background:var(--paper);z-index:1}
.lfo-cmp-table thead th{vertical-align:bottom;font-weight:650}
.lfo-cmp-table thead img{display:block;width:104px;aspect-ratio:3/4;object-fit:cover;border-radius:10px;background:var(--surface);margin-bottom:8px}
.lfo-cmp-table thead a{display:block;max-width:220px;line-height:1.3;text-wrap:balance}
.lfo-cmp-table thead a:hover{text-decoration:underline;text-underline-offset:3px}
.lfo-cmp-table .lfo-cmp-price{font-weight:650;white-space:nowrap}
.lfo-cmp-table .lfo-best{font-weight:700}
.lfo-cmp-table .lfo-cmp-rm{margin-top:8px;font:inherit;font-size:12px;color:var(--muted);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.lfo-cmp-table .lfo-cmp-rm:hover{color:var(--ink)}
.lfo-cmp-note{margin:14px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}
.lfo-cmp-empty{padding:30px 0;color:var(--muted)}
@media(max-width:700px){
  .lfo-cmp-panel{padding:16px 12px 20px;border-radius:14px;max-height:94vh}
  .lfo-cmp-head h2{font-size:20px}
  .lfo-cmp-table{font-size:13px}
  .lfo-cmp-table th,.lfo-cmp-table td{padding:8px 8px;min-width:120px}
  .lfo-cmp-table{table-layout:auto}.lfo-cmp-table th:first-child,.lfo-cmp-table td:first-child{width:auto;min-width:96px}
  .lfo-cmp-table thead img{width:84px}
  .lfo-cmp-bar{font-size:13px;padding-left:12px}
}
@media(prefers-reduced-motion:reduce){.lfo-cmp-bar{transition:none}}
