.compare-toggle[hidden],.compare-mobile-bar[hidden],.compare-toast[hidden],.compare-page [hidden]{display:none!important}
.product-card{position:relative}
.compare-toggle{display:grid;place-items:center;position:absolute;right:8px;top:8px;width:38px;height:38px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--deep);z-index:2;padding:8px}
.compare-toggle svg,.compare-header svg,.compare-mobile-bar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
.compare-toggle:hover{border-color:var(--deep);background:var(--cream)}
.compare-toggle[aria-pressed=true]{color:#a3431c;background:#fbe9db;border-color:#b64f1c}
.compare-toggle[aria-pressed=true] svg rect{fill:currentColor;fill-opacity:.18}
.product-card .compare-toggle{right:5px;top:5px;width:36px;height:36px;padding:8px;border:0;background:transparent;color:var(--muted)}
.product-card .compare-toggle svg{width:20px;height:20px;stroke-width:1.4}
.product-card .compare-toggle:hover,.product-card .compare-toggle[aria-pressed=true]{background:transparent;color:#a3431c}
.product-card .compare-toggle[aria-pressed=true] svg rect{fill:none}
.compare-toggle-label{position:static;display:inline-flex;width:auto;gap:8px;padding:8px 12px;margin-top:12px;font-size:14px;min-height:40px;background:transparent}
.compare-header{display:flex;align-items:center;gap:5px;flex:none;font-size:12px;white-space:nowrap;min-height:36px}
.compare-header [data-compare-count]{font-size:11px;min-width:17px;text-align:center;background:var(--deep);color:var(--cream);border-radius:10px;padding:1px 4px}
.compare-header:hover{color:#a3431c}
.compare-mobile-bar{display:none}
.compare-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);width:max-content;max-width:min(520px,calc(100% - 32px));background:rgba(251,244,233,.92);color:var(--ink);border:1px solid rgba(217,199,176,.8);padding:10px 16px;border-radius:7px;font-size:14px;z-index:45;box-shadow:0 4px 16px #28180b12;pointer-events:none}
.compare-page{padding-top:10px;padding-bottom:28px}
.compare-page .breadcrumbs{font-size:12px;line-height:1.35;margin-bottom:8px}
.compare-page h1{font:700 clamp(22px,2.1vw,27px)/1.2 CoffeeDisplay,Arial,sans-serif;letter-spacing:-.025em;margin:8px 0 5px}
.compare-intro{color:var(--muted);font-size:12px;line-height:1.4;margin:0 0 10px}
.compare-tabs{display:flex;gap:2px 18px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:6px}
.compare-tabs:empty{display:none}
.compare-tabs a{padding:6px 0 7px;font-size:12px;line-height:1.3;border-bottom:2px solid transparent}
.compare-tabs a[aria-current]{border-bottom-color:#b64f1c;color:#a3431c;font-weight:800}
.compare-toolbar{display:flex;gap:2px 18px;align-items:center;flex-wrap:wrap;font-size:12px;margin-bottom:2px}
.compare-toolbar button{border:0;background:transparent;color:var(--muted);padding:6px 0;text-decoration:underline;text-underline-offset:3px;margin-left:auto}
.compare-toolbar label{display:inline-flex;align-items:center;gap:6px;min-height:32px;cursor:pointer}
.compare-toolbar input{width:16px;height:16px;margin:0}
.compare-add{font-weight:700;color:#a3431c;padding:6px 0}
.compare-hint{font-size:11px;color:var(--muted);margin:4px 0 7px}
.compare-swipe-hint{display:none}
.compare-scroll{overflow:auto;max-height:calc(100svh - 110px);overscroll-behavior-x:contain;scrollbar-width:thin;border-block:1px solid var(--line)}
.compare-table{width:100%;table-layout:fixed;border-spacing:0;font-size:12px;line-height:1.35}
.compare-table th,.compare-table td{padding:8px 12px;text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
.compare-table .compare-label-column{width:180px}
.compare-table th:first-child{position:sticky;left:0;z-index:2;background:var(--cream);font-weight:600;color:var(--muted)}
.compare-table thead th{position:sticky;top:0;z-index:3;background:var(--oat);font-weight:700;padding-block:8px}
.compare-table thead th:first-child{z-index:4;background:var(--oat)}
.compare-product-title{display:flex;align-items:flex-start;justify-content:space-between;gap:4px;min-height:28px;font-size:12px;line-height:1.35}
.compare-product-title a:hover{text-decoration:underline}
.compare-product-title button{flex:none;display:grid;place-items:center;width:28px;height:28px;padding:5px;border:0;background:transparent;color:var(--muted);border-radius:4px}
.compare-product-title button:hover{background:var(--sand);color:var(--ink)}
.compare-product-title svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.compare-products td{background:#fff}
.compare-photo{display:block;height:140px;margin-bottom:7px}
.compare-photo img{width:100%;height:100%;object-fit:contain}
.compare-price{display:block;font-size:18px;margin:7px 0;font-variant-numeric:tabular-nums}
.compare-products .stock{font-size:11px}
.compare-products .quote-add-form .button{width:100%;min-height:34px;padding:6px 8px;font-size:12px;justify-content:center}
.compare-products .button-arrow{display:none}
.compare-spec-row:nth-child(even)>*{background:#f3e8d8}
.compare-table .compare-spec-row:nth-child(even)>th{background:#f3e8d8}
.compare-empty{padding:30px 0 60px;max-width:580px}
.compare-empty h2{font-size:23px;margin:0 0 10px}
.compare-empty p{font-size:16px;color:var(--muted);margin-bottom:22px}
@media(min-width:1280px) and (max-width:1450px){.compare-header>span:not([data-compare-count]){display:none}.header-inner .nav{gap:12px}.header-contacts{margin-left:12px}}
@media(min-width:1000px) and (max-width:1279px){.header-inner{grid-template-columns:1fr 36px auto auto auto}.compare-header{grid-column:3;grid-row:1}.header-action{grid-column:4;grid-row:1}.header-contacts{grid-column:5;grid-row:1}}
@media(max-width:999px){
 .compare-header{display:none}
 .compare-mobile-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;bottom:calc(10px + env(safe-area-inset-bottom));left:16px;right:16px;z-index:19;min-height:44px;padding:10px 14px;background:rgba(255,237,220,.93);color:#903f20;border:1px solid rgba(209,113,62,.48);border-radius:9px;font-size:14px;font-weight:600;box-shadow:0 4px 16px #a74e191a;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
 .compare-mobile-bar>span:first-of-type{margin-right:auto}
 .has-comparison{padding-bottom:70px}
 body.no-scroll .compare-mobile-bar{display:none}
 .compare-toast{bottom:calc(74px + env(safe-area-inset-bottom));font-size:13px}
}
@media(max-width:760px){
 .compare-page{--gutter:12px;padding-top:6px}
 .compare-page h1{margin:5px 0 4px;font-size:21px}
 .compare-page .breadcrumbs{font-size:11px;margin-bottom:6px}
 .compare-intro{font-size:11px;margin-bottom:7px}
 .compare-tabs{gap:1px 14px;margin-bottom:4px}
 .compare-tabs a{font-size:11px;padding:5px 0}
 .compare-toolbar{gap:0 12px;font-size:11px}
 .compare-toolbar button{margin-left:0}
 .compare-hint{font-size:10.5px;margin:3px 0 6px}
 .compare-swipe-hint{display:inline}
 .compare-table{width:calc((100% - 92px)/2*var(--compare-columns) + 92px);min-width:calc(92px + 100px*var(--compare-columns));font-size:11.5px}
 .compare-table .compare-label-column{width:92px}
 .compare-table th,.compare-table td{padding:6px}
 .compare-product-title{font-size:11.5px;position:relative;padding-top:0;display:flex}
 .compare-product-title button{position:static;width:24px;height:28px;padding:3px}
 .compare-photo{height:95px}
 .compare-price{font-size:14px;line-height:1.3;white-space:normal}
 .compare-products .stock{font-size:10px;padding:3px 5px}
 .compare-products .quote-add-form .button{font-size:11px;padding:7px 4px;min-height:36px}
 .compare-products .quote-quantity{grid-template-columns:24px minmax(0,1fr) 24px;gap:0}
 .compare-products .quote-quantity button{min-height:36px;font-size:18px}
 .compare-products .quote-quantity-current{font-size:10px;padding:3px 0}
}
