.compare-page { max-width: 1480px; margin: 0 auto; padding: 24px 24px 48px; color: #30363c; --compare-menu-height: 0px; }
.compare-page [hidden], .compare-picker [hidden] { display: none !important; }
.compare-page-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 20px; }
.compare-page h1 { font-size: 26px; line-height: 1.2; font-weight: 700; margin: 0 0 8px; letter-spacing: 0; }
.compare-context { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #687078; font-size: 14px; }
.compare-context-type { border-left: 1px solid #dce0e4; padding-left: 16px; }
.compare-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.compare-page .btn, .compare-picker .btn { min-height: 40px; font-size: 14px; border-radius: 5px; white-space: normal; }
.compare-icon-button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; background: transparent; border: 0; border-radius: 5px; color: #0d6efd; cursor: pointer; text-decoration: none; font-size: 18px; }
.compare-icon-button:hover { background: #eef4ff; color: #0754c4; }
.compare-icon-button:disabled { opacity: .4; cursor: default; }
.compare-icon-button:focus-visible, .compare-title-row button:focus-visible { outline: 2px solid #0d6efd; outline-offset: -2px; }
.compare-toolbar { display: flex; align-items: center; gap: 12px; min-height: 58px; border-top: 1px solid #dfe3e8; border-bottom: 1px solid #dfe3e8; background: #fff; padding: 8px 0; }
.compare-difference-toggle { display: inline-flex; align-items: center; gap: 9px; margin: 0; min-height: 40px; cursor: pointer; font-size: 14px; font-weight: 600; }
.compare-difference-toggle input { appearance: none; -webkit-appearance: none; width: 36px; height: 22px; flex: 0 0 36px; border: 1px solid #929aa3; border-radius: 12px; background: #e6e9ed; position: relative; cursor: pointer; margin: 0; }
.compare-difference-toggle input::before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .15s; }
.compare-difference-toggle input:checked { background: #0d6efd; border-color: #0d6efd; }
.compare-difference-toggle input:checked::before { transform: translateX(14px); }
.compare-difference-toggle input:focus-visible { outline: 2px solid #0d6efd; outline-offset: 3px; }
.compare-difference-toggle input:disabled { opacity: .45; cursor: default; }
.compare-difference-count { color: #6b737b; font-size: 13px; }
.compare-scroll-actions { display: flex; margin-left: auto; gap: 4px; }
.compare-table-shell { max-height: max(360px, calc(100dvh - var(--compare-menu-height) - 100px)); overflow: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #aeb7c1 #f1f3f5; border-bottom: 1px solid #dfe3e8; background: #fff; }
.compare-table-shell:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
.table-compare { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.compare-feature-width { width: 180px; }
.table-compare th, .table-compare td { padding: 12px 20px; vertical-align: top; overflow-wrap: anywhere; border-right: 1px solid #e7e9ec; }
.table-compare th:last-child, .table-compare td:last-child { border-right: 0; }
.table-compare thead { position: sticky; top: 0; z-index: 5; background: #fff; }
.table-compare thead th { border-bottom: 1px solid #e1e5e9; background: #fff; }
.table-compare .feature-col { position: sticky; left: 0; z-index: 2; background: #f6f7f9; color: #525b65; font-weight: 500; text-align: left; }
.table-compare thead .feature-col { z-index: 6; vertical-align: middle; }
.compare-product-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; min-height: 48px; }
.compare-product-name { min-width: 0; color: #202830; font-size: 17px; line-height: 1.3; font-weight: 600; text-decoration: none; }
.compare-product-brand { display: block; color: #69727c; font-size: 12px; font-weight: 500; margin-bottom: 3px; text-transform: uppercase; }
.compare-remove-btn { color: #747c85; }
.compare-remove-btn:hover { background: #fff1f2; color: #c6293e; }
.compare-gallery { height: 190px; margin: 0 0 10px; }
.compare-img, .compare-image-empty { width: 100%; height: 190px; object-fit: contain; }
.compare-image-empty { display: flex; align-items: center; justify-content: center; color: #747c85; font-size: 13px; }
.compare-gallery .carousel-control-prev, .compare-gallery .carousel-control-next { top: calc(50% - 20px); bottom: auto; width: 36px; height: 40px; color: #59636e; background: #ffffffde; opacity: 1; }
.compare-product-description { display: block; color: #39434d; font-size: 14px; text-decoration: none; }
.compare-product-code { margin-top: 4px; color: #7b8289; font-size: 12px; }
.compare-price-reference { min-height: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #77818c; font-size: 13px; }
.compare-discount { border-radius: 4px; background: #fce9ec; color: #b51e37; padding: 1px 5px; font-size: 12px; font-weight: 600; }
.compare-price-label { font-size: 13px; color: #606b77; }
.compare-price-cash { color: #0d6efd; font-size: 26px; font-weight: 700; line-height: 1.2; }
.compare-price-improved { color: #ca611d; }
.compare-price-card { font-size: 13px; color: #69737e; margin-top: 5px; }
.compare-stock { margin: 14px 0 10px; font-size: 13px; min-height: 20px; }
.compare-stock-delivery { color: #806100; }
.compare-cart-btn { width: 100%; max-width: 280px; display: block; }
.compare-detail-link { display: inline-block; margin-top: 10px; color: #0d6efd; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.compare-buy-row > td { padding-top: 0; padding-bottom: 22px; }
.compare-title-row th { padding: 0; background: #edf0f4; border-top: 1px solid #dfe3e8; border-bottom: 1px solid #dfe3e8; }
.compare-title-row button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 20px; background: none; border: 0; color: #364555; font-weight: 700; font-size: 14px; text-align: left; }
.compare-title-row button i { font-size: 12px; }
.table-compare [data-compare-feature] > * { border-bottom: 1px solid #e7e9ec; line-height: 1.5; }
.table-compare [data-compare-feature]:nth-child(even) td { background: #fafbfc; }
.compare-page.is-differences [data-compare-different='1'] .feature-col { box-shadow: inset 3px 0 #0d6efd; }
.compare-no-differences { padding: 22px; text-align: center; color: #69737e; }
.compare-empty-state { text-align: center; padding: 64px 16px; border-top: 1px solid #e1e5e9; }
.compare-empty-state > i { color: #0d6efd; font-size: 40px; margin-bottom: 16px; }
.compare-empty-state h2 { font-size: 22px; margin-bottom: 22px; }
.compare-picker { width: min(580px, calc(100% - 24px)); max-height: 85dvh; padding: 0; border: 1px solid #dfe3e8; border-radius: 8px; color: #30363c; }
.compare-picker[open] { display: flex; flex-direction: column; }
.compare-picker::backdrop { background: #20262d80; }
.compare-picker-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #e1e5e9; }
.compare-picker h2 { font-size: 20px; margin: 0; }
.compare-picker-body { padding: 16px 20px; overflow-y: auto; min-height: 0; }
.compare-picker-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.compare-selection-count { color: #69737e; font-size: 13px; margin: 14px 0 8px; }
.compare-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.compare-list-toolbar .compare-selection-count { margin: 8px 0; }
.compare-list-item { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 8px; border-bottom: 1px solid #e1e5e9; padding: 8px 4px; }
.compare-list-choice { display: grid; grid-template-columns: 18px 50px minmax(0, 1fr); align-items: center; gap: 10px; cursor: pointer; margin: 0; }
.compare-list-choice input { width: 16px; height: 16px; accent-color: #0d6efd; }
.compare-list-img { width: 50px; height: 50px; object-fit: contain; }
.compare-list-name { display: block; font-size: 13px; line-height: 1.35; }
.compare-list-meta { display: block; color: #6d7782; font-size: 12px; margin-top: 3px; }
.compare-list-item.is-selected { background: #f1f6ff; }
.compare-list-empty { text-align: center; padding: 20px; color: #69737e; }
.compare-picker-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid #e1e5e9; }
#compareClearAll { margin-right: auto; }
body:has(.compare-picker[open]) { overflow: hidden; }
body:has(.compare-page) #kissuCompareFloating { display: none !important; }
@media (max-width: 991.98px) { .compare-page { padding: 20px 16px 40px; } .compare-feature-width { width: 148px; } .table-compare th, .table-compare td { padding-left: 12px; padding-right: 12px; } }
@media (max-width: 767.98px) {
    .compare-page { padding: 16px 12px 32px; }
    .compare-page-head { flex-direction: column; align-items: stretch; gap: 14px; padding-bottom: 14px; }
    .compare-page h1 { font-size: 22px; }
    .compare-context { font-size: 13px; }
    .compare-actions { justify-content: flex-end; }
    .compare-actions > .btn { margin-right: auto; }
    .compare-toolbar { gap: 8px; }
    .compare-difference-toggle { font-size: 13px; }
    .compare-difference-count { font-size: 12px; }
    .compare-scroll-actions { gap: 0; }
    .compare-scroll-actions .compare-icon-button { width: 32px; flex-basis: 32px; }
    .table-compare { display: block; min-width: calc(var(--compare-count) * 164px); }
    .table-compare colgroup { display: none; }
    .table-compare thead, .table-compare tbody { display: block; }
    .table-compare tr { display: grid; grid-template-columns: repeat(var(--compare-count), minmax(164px, 1fr)); }
    .table-compare thead .feature-col, .compare-overview .feature-col { display: none; }
    .table-compare th, .table-compare td { padding: 10px 12px; }
    .table-compare [data-compare-feature] .feature-col { grid-column: 1 / -1; width: calc(100vw - 24px); max-width: 100%; padding: 8px 12px; font-size: 12px; font-weight: 600; border-right: 0; }
    .compare-title-row th { grid-column: 1 / -1; width: calc(100vw - 24px); max-width: 100%; position: sticky; left: 0; padding: 0; }
    .compare-title-row button { padding: 12px; }
    .compare-product-head { min-height: 52px; }
    .compare-product-name { font-size: 14px; }
    .compare-product-brand { font-size: 11px; }
    .compare-remove-btn { width: 28px; flex-basis: 28px; font-size: 16px; }
    .compare-gallery, .compare-img, .compare-image-empty { height: 136px; }
    .compare-gallery .compare-icon-button { width: 28px; }
    .compare-product-description { font-size: 13px; }
    .compare-price-cash { font-size: 23px; }
    .compare-price-card { font-size: 12px; }
    .compare-page .compare-cart-btn { font-size: 12px; padding: 6px; min-height: 42px; }
    .compare-picker-head, .compare-picker-body, .compare-picker-footer { padding: 12px; }
    .compare-picker h2 { font-size: 18px; }
    .compare-picker-footer .btn { font-size: 13px; }
    .compare-picker-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    #compareClearAll { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .compare-difference-toggle input::before { transition: none; } }
