/* cw-compare.css — P33: /compare/ таблица (макет compare.html) + иконки хедера (корзина/сравнение) +
   кнопка «В корзину» на карточке листинга. Scoped body.cwnew. 0 !important. */

/* ---- /compare/ страница ---- */
body.cwnew.cw-compare .all-article{display:none;}
body.cwnew .cw-cmp-main{display:block;}
body.cwnew .cw-cmp-main .container{max-width:1720px;margin:0 auto;padding:0 clamp(24px,5vw,80px);}
@media (min-width:1680px){body.cwnew .cw-cmp-main .container{max-width:1860px;}}
body.cwnew .cw-cmp-main .cw-cmp-head{padding-top:22px;padding-bottom:6px;}
body.cwnew .cw-cmp-main .eyebrow{font-family:"PT Mono",monospace;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--violet);margin-bottom:12px;display:flex;align-items:center;gap:10px;}
body.cwnew .cw-cmp-main .eyebrow::before{content:"";width:40px;height:2px;background:var(--violet);}
body.cwnew .cw-cmp-main h1{font-family:"Inter Tight",sans-serif;font-weight:800;font-size:clamp(26px,3.4vw,40px);line-height:1.05;letter-spacing:-.02em;color:var(--ink);margin:0;}
body.cwnew .cw-cmp-main .empty{border:1px solid var(--line);background:var(--alt);padding:48px 30px;text-align:center;margin:24px 0 48px;}
body.cwnew .cw-cmp-main .empty h2{font-family:"Inter Tight",sans-serif;font-size:22px;margin:0 0 10px;}
body.cwnew .cw-cmp-main .empty p{color:var(--ink-60);font-size:15px;margin:0 auto 18px;max-width:46ch;}
body.cwnew .cw-cmp-main .empty .btn{display:inline-flex;align-items:center;justify-content:center;font-family:"Inter Tight",sans-serif;font-weight:700;font-size:14px;padding:12px 22px;border:1px solid var(--violet);background:var(--violet);color:#fff;text-decoration:none;}
body.cwnew .cw-cmp-main .cmp-wrap{padding:22px 0 48px;overflow-x:auto;}
body.cwnew .cw-cmp-main table.cmp{border-collapse:collapse;min-width:640px;}
body.cwnew .cw-cmp-main table.cmp th,body.cwnew .cw-cmp-main table.cmp td{border:1px solid var(--line);padding:14px 16px;font-size:14px;vertical-align:top;text-align:left;}
body.cwnew .cw-cmp-main table.cmp .rowlabel{font-family:"PT Mono",monospace;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-40);background:var(--alt);white-space:nowrap;position:sticky;left:0;z-index:1;}
body.cwnew .cw-cmp-main table.cmp thead th{background:var(--paper);min-width:200px;}
body.cwnew .cw-cmp-main .cmp-prod .ph-img{display:flex;align-items:center;justify-content:center;width:100%;height:120px;margin-bottom:10px;border:1px solid var(--line);background:#fff;overflow:hidden;}
body.cwnew .cw-cmp-main .cmp-prod .ph-img img{width:100%;height:100%;object-fit:contain;padding:8px;}
body.cwnew .cw-cmp-main .cmp-prod .name{font-family:"Inter Tight",sans-serif;font-weight:700;font-size:15px;line-height:1.2;}
body.cwnew .cw-cmp-main .cmp-prod .name a{color:inherit;text-decoration:none;}
body.cwnew .cw-cmp-main .cmp-prod .name a:hover{color:var(--violet);}
body.cwnew .cw-cmp-main .cmp .price{font-family:"PT Mono",monospace;margin-top:8px;}
body.cwnew .cw-cmp-main .cmp .price b{color:var(--violet);font-weight:400;}
body.cwnew .cw-cmp-main .cmp .price--req{font-size:13px;color:var(--ink-60);}
body.cwnew .cw-cmp-main .cmp-prod .rm{display:inline-flex;align-items:center;gap:6px;margin-top:10px;background:none;border:0;color:var(--ink-40);cursor:pointer;font-size:12px;font-family:"PT Mono",monospace;}
body.cwnew .cw-cmp-main .cmp-prod .rm:hover{color:#c0392b;}
body.cwnew .cw-cmp-main .cmp-bar{display:flex;gap:12px;flex-wrap:wrap;padding:0 0 40px;}
body.cwnew .cw-cmp-main .cmp-bar .btn.ghost{display:inline-flex;align-items:center;justify-content:center;font-family:"Inter Tight",sans-serif;font-weight:700;font-size:13px;padding:11px 18px;border:1px solid var(--violet);background:transparent;color:var(--violet);text-decoration:none;cursor:pointer;}
body.cwnew .cw-cmp-main .cmp-bar .btn.ghost:hover{background:var(--violet);color:#fff;}

/* ---- иконки хедера: корзина + сравнение (счётчики) ---- */
body.cwnew .cwh-ic{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--ink);text-decoration:none;transition:color .15s;}
body.cwnew .cwh-ic:hover{color:var(--violet);}
body.cwnew .cwh-ic-n{position:absolute;top:2px;right:0;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:var(--violet);color:#fff;font-family:"PT Mono",monospace;font-size:10px;line-height:16px;text-align:center;font-weight:700;}

/* ---- кнопка «В корзину» на карточке листинга (форма не ломает flex .acts) ---- */
body.cwnew .cwnew-cat .pcard .acts .cw-card-buy{display:contents;}
body.cwnew .cwnew-cat .pcard .acts .cw-card-buybtn{display:inline-flex;align-items:center;justify-content:center;font-family:"Inter Tight",sans-serif;font-weight:700;font-size:12px;padding:8px 12px;border:1px solid var(--violet);background:var(--violet);color:#fff;text-decoration:none;cursor:pointer;}
body.cwnew .cwnew-cat .pcard .acts .cw-card-buybtn:hover{background:#4a3b85;border-color:#4a3b85;}

/* ---- кнопка «✓ В сравнении» состояние ---- */
body.cwnew .cw-compare-add.in-compare{background:var(--violet);color:#fff;}

/* ---- /price/ страница (макет price.html table.ptable) ---- */
body.cwnew.cw-price .all-article{display:none;}
body.cwnew .cw-price-main{display:block;}
body.cwnew .cw-price-main .container{max-width:1720px;margin:0 auto;padding:0 clamp(24px,5vw,80px);}
@media (min-width:1680px){body.cwnew .cw-price-main .container{max-width:1860px;}}
body.cwnew .cw-price-main .cw-price-head{padding-top:22px;padding-bottom:6px;}
body.cwnew .cw-price-main .eyebrow{font-family:"PT Mono",monospace;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--violet);margin-bottom:12px;display:flex;align-items:center;gap:10px;}
body.cwnew .cw-price-main .eyebrow::before{content:"";width:40px;height:2px;background:var(--violet);}
body.cwnew .cw-price-main h1{font-family:"Inter Tight",sans-serif;font-weight:800;font-size:clamp(26px,3.4vw,40px);line-height:1.05;letter-spacing:-.02em;color:var(--ink);margin:0;}
body.cwnew .cw-price-main .sub{margin-top:12px;font-size:15px;line-height:1.5;color:var(--ink-60);max-width:64ch;}
body.cwnew .cw-price-main .price-actions{margin-top:18px;}
body.cwnew .cw-price-main .price-actions .btn{display:inline-flex;align-items:center;gap:8px;font-family:"Inter Tight",sans-serif;font-weight:700;font-size:14px;padding:12px 22px;border:1px solid var(--violet);background:var(--violet);color:#fff;text-decoration:none;}
body.cwnew .cw-price-main .price-actions .btn:hover{background:#4a3b85;border-color:#4a3b85;}
body.cwnew .cw-price-main .ptable-wrap{overflow-x:auto;padding:24px 0 48px;}
body.cwnew .cw-price-main table.ptable{width:100%;border-collapse:collapse;min-width:680px;}
body.cwnew .cw-price-main table.ptable th{font-family:"PT Mono",monospace;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-40);text-align:left;font-weight:400;padding:12px 16px;border-bottom:1px solid var(--ink);}
body.cwnew .cw-price-main table.ptable th.num,body.cwnew .cw-price-main table.ptable td.num{text-align:right;white-space:nowrap;}
body.cwnew .cw-price-main table.ptable td{padding:13px 16px;border-bottom:1px solid var(--line);font-size:14px;color:var(--ink);vertical-align:top;}
body.cwnew .cw-price-main table.ptable tr:hover td{background:var(--alt);}
body.cwnew .cw-price-main table.ptable tr.grp th{background:var(--alt);font-family:"Inter Tight",sans-serif;font-weight:700;font-size:15px;color:var(--ink);text-transform:none;letter-spacing:0;border-bottom:1px solid var(--ink-40);padding:14px 16px;}
body.cwnew .cw-price-main table.ptable .art{font-family:"PT Mono",monospace;font-size:12px;color:var(--ink-40);white-space:nowrap;}
body.cwnew .cw-price-main table.ptable .price{font-family:"PT Mono",monospace;color:var(--ink);}
body.cwnew .cw-price-main table.ptable .price b{color:var(--violet);font-weight:400;}

/* П36 Блок3: кнопка PDF сравнения */
body.cwnew .cw-cmp-main .cmp-actions{margin-top:12px;}
body.cwnew .cw-cmp-main .cmp-pdf{display:inline-flex;align-items:center;gap:8px;font-family:"Inter Tight",sans-serif;font-weight:700;font-size:13px;padding:10px 18px;border:1px solid var(--violet);background:transparent;color:var(--violet);text-decoration:none;}
body.cwnew .cw-cmp-main .cmp-pdf:hover{background:var(--violet);color:#fff;}
