/* Comparison uses the approved catalogue palette, typography and image geometry. */
#product-compare{padding-top:0;padding-bottom:24px;min-width:0}
#product-compare .breadcrumb{margin:4px 0 12px;padding:0;border:0;border-radius:0;background:transparent;font-size:12px;line-height:18px}
#product-compare .breadcrumb>li{padding:0;margin:0;white-space:normal}
#product-compare .breadcrumb>li+li:before{content:'›';display:inline-block;position:static;transform:none;border:0;width:auto;height:auto;margin:0 8px;color:#7b8776}
#product-compare .breadcrumb>li:after{display:none}
#product-compare h1{margin:12px 0 20px;padding:14px 16px;background:#ececec;color:#555;font-size:28px;font-weight:600;line-height:1.25}
.zh-compare-scroll{max-width:100%;overflow:auto;border:1px solid #dce3d6;border-radius:9px;background:#fff;scrollbar-width:auto;scrollbar-color:#9ac491 #f0f4ed}
.zh-compare-scroll:focus-visible{outline:3px solid #159db8;outline-offset:3px}
.zh-compare-table{width:100%;min-width:calc(136px + var(--zh-compare-columns)*220px);table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:14px;line-height:1.45;color:#53664c}
.zh-compare-table col.zh-compare-label-col{width:136px}
.zh-compare-table th,.zh-compare-table td{padding:12px;vertical-align:top;white-space:normal;overflow-wrap:anywhere;border:0;border-right:1px solid #dce3d6;border-bottom:1px solid #dce3d6}
.zh-compare-table tr>*:last-child{border-right:0}.zh-compare-table tbody:last-child tr:last-child>*{border-bottom:0}
.zh-compare-table th[scope=row]{position:sticky;left:0;z-index:1;background:#f7faf4;font-size:13px;font-weight:500;color:#53664c}
.zh-compare-table .zh-compare-section th{background:#e2eddc;color:#456539;font-weight:600;text-align:left}
.zh-compare-name a{font-size:16px;font-weight:500;line-height:1.4}
.zh-compare-photo{display:block;max-width:340px;margin:0 auto;border-radius:8px;overflow:hidden}
.zh-compare-photo img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;border:0;border-radius:8px}
@media(hover:hover) and (pointer:fine){.zh-compare-photo:hover{opacity:.8}}
.zh-compare-price{font-size:17px;font-weight:600;color:#333}.zh-compare-price del{display:block;font-size:13px;font-weight:400;color:#777}
.zh-compare-table .rating{color:#e3aa00}.zh-compare-table .zh-compare-reviews{margin:6px 0 0;font-size:12px;color:#666}
.zh-compare-actions{display:flex;flex-direction:column;gap:8px}
html:root body #product-compare .zh-compare-button{display:flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:44px;padding:8px 10px;border:1px solid;border-radius:4px;text-align:center;text-decoration:none!important;font-size:14px;line-height:1.3;color:#fff!important;touch-action:manipulation}
#product-compare .zh-compare-calculate{background:#ff8a00;border-color:#ff8a00}#product-compare .zh-compare-calculate:hover{background:#e87900;border-color:#e87900}
#product-compare .zh-compare-remove{background:#607454;border-color:#607454}#product-compare .zh-compare-remove:hover{background:#4d6044;border-color:#4d6044}
#product-compare .zh-compare-button:active{transform:translateY(1px);box-shadow:inset 0 2px 3px #0002}
#product-compare .zh-compare-button:focus-visible{outline:3px solid #159db8;outline-offset:3px}
.zh-compare-empty{padding:20px;border:1px solid #dce3d6;border-radius:9px;background:#f0f4ed}.zh-compare-empty .zh-compare-button{display:inline-flex!important;margin-top:8px}
@media(max-width:767px){#product-compare h1{font-size:24px;padding:12px;margin-bottom:14px}.zh-compare-table{min-width:calc(110px + var(--zh-compare-columns)*200px);font-size:13px}.zh-compare-table col.zh-compare-label-col{width:110px}.zh-compare-table th,.zh-compare-table td{padding:10px}.zh-compare-name a{font-size:15px}}

/* Use the catalogue's shared media/sticker renderer and shared image/video viewers. */
.zh-compare-preview{max-width:340px;margin:0 auto}
.zh-compare-preview>.image{position:relative;isolation:isolate;min-width:0;overflow:hidden;border-radius:8px}
.zh-compare-preview>.image:has(.zh-product-sticker--ribbon){--zh-ribbon-fold:clamp(5.12px,2.56%,7.68px)}
.zh-compare-preview .zh-compare-photo{box-sizing:border-box;width:calc(100% - var(--zh-ribbon-fold,4px) - var(--zh-ribbon-fold,4px));max-width:none;margin:var(--zh-ribbon-fold,4px)}
.zh-compare-preview .zh-list-media-controls{position:absolute;top:0;right:0;display:flex;flex-direction:row;gap:0;z-index:2}
.zh-compare-preview .zh-product-sticker{position:absolute;display:block;width:25%;max-width:80px;aspect-ratio:1;z-index:1;pointer-events:none}
.zh-compare-preview .zh-product-sticker img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:contain;border:0;border-radius:0;margin:0;padding:0}
.zh-compare-preview .zh-product-sticker--0{left:0;top:0}.zh-compare-preview .zh-product-sticker--1{right:0;top:0}.zh-compare-preview .zh-product-sticker--2{left:0;bottom:0}.zh-compare-preview .zh-product-sticker--3{right:0;bottom:0}
.zh-compare-preview .zh-product-sticker--ribbon{width:32%;min-width:64px;max-width:96px}

/* Group labels remain visible while the product columns slide sideways. */
.zh-compare-section-label{position:sticky;left:12px;display:inline-block;max-width:calc(100vw - 60px);white-space:normal}
@media(max-width:767px){.zh-compare-section-label{left:10px}}

/* Catalogue action geometry and palette, with a separate compact removal action. */
#product-compare .zh-compare-actions{flex-direction:row;align-items:stretch;gap:5px;min-width:0;width:100%}
#product-compare .zh-compare-secondary{display:contents}
html:root body #product-compare .zh-compare-actions>.zh-list-calculate{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:1.6 1 0;min-width:0;width:auto;max-width:100%;min-height:44px;padding:8px 9px;border:1px solid var(--zh-action-edge);border-radius:4px;font-size:13px;line-height:1.2;text-align:center;text-transform:none;text-decoration:none!important;touch-action:manipulation;transition:filter .12s,box-shadow .12s}
html:root body #product-compare .zh-compare-secondary .zh-list-wishlist{display:flex;align-items:center;justify-content:center;gap:4px;flex:0 0 40px;width:40px;min-width:40px;min-height:44px;height:44px;max-height:44px;box-sizing:border-box;align-self:center;padding:0;border:1px solid var(--zh-neutral-edge);border-radius:4px;font-size:17px;touch-action:manipulation;transition:filter .12s,box-shadow .12s}
#product-compare .zh-list-selection-mark{display:none;font-size:12px;line-height:1;font-weight:700}
#product-compare .is-added>.zh-list-selection-mark{display:inline-block}
html:root body #product-compare .zh-compare-secondary .zh-compare-remove{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:1 1 0;min-width:0;width:auto;min-height:44px;padding:8px 6px;border:1px solid;border-radius:6px;font-size:13px;line-height:1.35;text-decoration:none!important;text-shadow:none;box-shadow:none;touch-action:manipulation}
html:root body #product-compare .zh-compare-actions>:is(a,button):active,html:root body #product-compare .zh-compare-secondary .zh-list-wishlist:active{filter:brightness(.86);box-shadow:inset 0 2px 3px #0002}
@media(hover:hover) and (pointer:fine){
html:root body #product-compare .zh-compare-actions>.zh-list-calculate:hover,html:root body #product-compare .zh-compare-secondary .zh-list-wishlist:hover{filter:brightness(.94)!important}
}
@media(min-width:992px) and (hover:hover) and (pointer:fine){
html:root body #product-compare .zh-compare-actions{--zh-card-action-bg:linear-gradient(180deg,#fff3e2 0%,#fff0d9 48%,#ecdec9 100%);--zh-card-action-border:#9a7954;--zh-card-secondary-bg:linear-gradient(180deg,#f4f7f1 0%,#f1f5ed 48%,#dfe3db 100%);--zh-card-secondary-border:#78856f}
html:root body #product-compare .zh-compare-actions:is(:hover,:has(:focus-visible)){--zh-card-action-bg:var(--zh-action-fill);--zh-card-action-border:var(--zh-action-edge);--zh-card-secondary-bg:linear-gradient(180deg,#e9f1e4 0%,#e2eddc 48%,#d1dbcc 100%);--zh-card-secondary-border:var(--zh-neutral-edge)}
html:root body #product-compare .zh-compare-actions>.zh-list-calculate{background:var(--zh-card-action-bg)!important;background-image:var(--zh-card-action-bg)!important;border-color:var(--zh-card-action-border)!important;color:var(--zh-action-ink)!important}
html:root body #product-compare .zh-compare-secondary .zh-list-wishlist:not(.is-added):not([aria-pressed="true"]){background:var(--zh-card-secondary-bg)!important;border-color:var(--zh-card-secondary-border)!important;color:var(--zh-neutral-ink)!important}
/* Hovering any cell of a product column activates only that product's actions. */
html:root body #product-compare .zh-compare-table:has(tr>td:nth-child(2):is(:hover,:has(:focus-visible))) tr>td:nth-child(2) .zh-compare-actions,html:root body #product-compare .zh-compare-table:has(tr>td:nth-child(3):is(:hover,:has(:focus-visible))) tr>td:nth-child(3) .zh-compare-actions,html:root body #product-compare .zh-compare-table:has(tr>td:nth-child(4):is(:hover,:has(:focus-visible))) tr>td:nth-child(4) .zh-compare-actions,html:root body #product-compare .zh-compare-table:has(tr>td:nth-child(5):is(:hover,:has(:focus-visible))) tr>td:nth-child(5) .zh-compare-actions{--zh-card-action-bg:var(--zh-action-fill);--zh-card-action-border:var(--zh-action-edge);--zh-card-secondary-bg:linear-gradient(180deg,#e9f1e4 0%,#e2eddc 48%,#d1dbcc 100%);--zh-card-secondary-border:var(--zh-neutral-edge)}
}
@media(prefers-reduced-motion:reduce){html:root body #product-compare .zh-compare-actions>.zh-list-calculate,html:root body #product-compare .zh-compare-secondary .zh-list-wishlist{transition:none}}

/* Flexible text surfaces fill the column; the favourite icon remains exactly 40 by 44px. */
html:root body #product-compare .zh-compare-actions>.zh-list-calculate>span,html:root body #product-compare .zh-compare-secondary .zh-compare-remove>span{min-width:0;overflow-wrap:anywhere}

/* Names and images follow catalogue card typography and interaction. */
html:root body #product-compare .zh-compare-name>a{font-size:17px;line-height:1.35;font-weight:400}
@media(max-width:767px){html:root body #product-compare .zh-compare-name>a{font-size:16px}}
html:root body #product-compare .zh-compare-name>a[href],html:root body #product-compare .zh-compare-name>a[href]:visited{display:inline-block;color:#404740!important;text-decoration:none!important;font-weight:400;transition:color .15s ease,transform .15s ease,opacity .15s ease}
html:root body #product-compare .zh-compare-name>a[href]:hover,html:root body #product-compare .zh-compare-name>a[href]:focus-visible{color:#59684f!important;text-decoration:none!important;transform:translateY(-1px)}
html:root body #product-compare .zh-compare-name>a[href]:active{color:#404740!important;text-decoration:none!important;transform:translateY(0);opacity:.85}
html:root body #product-compare .zh-compare-name>a[href]:focus-visible{outline:2px solid #a9b7a1;outline-offset:3px;border-radius:2px}
@media(prefers-reduced-motion:reduce){html:root body #product-compare .zh-compare-name>a[href]{transition:none;transform:none!important}}
/* Match the actual catalogue photo hover opacity (stylesheet.css), without sticky touch hover. */
@media(min-width:992px) and (hover:hover) and (pointer:fine){
html:root body #product-compare .zh-compare-preview{--zh-card-action-bg:linear-gradient(180deg,#fff3e2 0%,#fff0d9 48%,#ecdec9 100%);--zh-card-action-border:#9a7954;--zh-card-video-bg:linear-gradient(180deg,#e4f3f7 0%,#dceff5 48%,#ccdde3 100%);--zh-card-video-ink:#205d70}
html:root body #product-compare .zh-compare-preview:is(:hover,:has(:focus-visible)){--zh-card-action-bg:var(--zh-action-fill);--zh-card-action-border:var(--zh-action-edge);--zh-card-video-bg:linear-gradient(180deg,#0b80a2 0%,#007a9e 48%,#007192 100%);--zh-card-video-ink:#fff}
html:root body #product-compare .zh-compare-table:has(tr>td:nth-child(2):is(:hover,:has(:focus-visible))) tr>td:nth-child(2) .zh-compare-preview,html:root body #product-compare .zh-compare-table:has(tr>td:nth-child(3):is(:hover,:has(:focus-visible))) tr>td:nth-child(3) .zh-compare-preview,html:root body #product-compare .zh-compare-table:has(tr>td:nth-child(4):is(:hover,:has(:focus-visible))) tr>td:nth-child(4) .zh-compare-preview,html:root body #product-compare .zh-compare-table:has(tr>td:nth-child(5):is(:hover,:has(:focus-visible))) tr>td:nth-child(5) .zh-compare-preview{--zh-card-action-bg:var(--zh-action-fill);--zh-card-action-border:var(--zh-action-edge);--zh-card-video-bg:linear-gradient(180deg,#0b80a2 0%,#007a9e 48%,#007192 100%);--zh-card-video-ink:#fff}
html:root body #product-compare .zh-compare-preview .zh-compact-control.zh-compact-zoom::before{background:var(--zh-card-action-bg)!important;border-color:var(--zh-card-action-border)!important;filter:none!important}
html:root body #product-compare .zh-compare-preview [data-zh-video-start].zh-compact-control:not(.zh-video-watched)::before{background:var(--zh-card-video-bg)!important;filter:none!important}
html:root body #product-compare .zh-compare-preview [data-zh-video-start].zh-compact-control:not(.zh-video-watched)::after{border-left-color:var(--zh-card-video-ink)!important}
}
@media(hover:hover) and (pointer:fine){html:root body #product-compare .zh-compare-preview .zh-compact-control:hover::before{filter:brightness(.94)!important}}

/* Keep each action group intact; wrap groups when the real column width is insufficient. */
#product-compare .zh-compare-actions{flex-wrap:wrap}
html:root body #product-compare .zh-compare-actions>.zh-list-calculate{flex:1.6 1 140px;min-width:min(100%,140px);box-sizing:border-box}
#product-compare .zh-compare-secondary{display:flex;flex:1 1 125px;align-items:stretch;gap:5px;min-width:min(100%,125px);max-width:100%}
html:root body #product-compare .zh-compare-actions>.zh-list-calculate>span,html:root body #product-compare .zh-compare-secondary .zh-compare-remove>span{white-space:nowrap;overflow-wrap:normal}
