.yv-compare-card-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; border: 0; border-radius: 10px;
    color: var(--surface1); background: rgba(20, 24, 34, .72); cursor: pointer;
    backdrop-filter: blur(10px); transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.yv-compare-card-btn:hover { transform: translateY(-1px); background: rgba(20, 24, 34, .9); }
.yv-compare-card-btn.is-active { background: var(--accent); }
.preview-actions .yv-compare-card-btn {
    width: 30px; min-width: 30px; height: 30px; padding: 0;
    border: 1px solid rgba(159, 170, 188, .3); border-radius: 999px;
    background: rgba(255, 255, 255, .95); color: var(--text3);
    box-shadow: 0 2px 8px rgba(24, 34, 52, .1); backdrop-filter: none;
}
.preview-actions .yv-compare-card-btn > i { color: currentColor; font-size: 14px; }
.preview-actions .yv-compare-card-btn:hover,
.preview-actions .yv-compare-card-btn.is-active {
    border-color: var(--accent); background: var(--accent); color: var(--surface1);
}
.preview-actions .yv-compare-card-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.yv-compare-detail-btn.rail-compare-action {
    width: fit-content; max-width: 100%; height: 34px; margin-top: 12px; padding: 0 12px;
    gap: 7px; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 9px;
    background: var(--accent-subtle); color: var(--text2); font-size: 12px; font-weight: 700;
    backdrop-filter: none; transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.yv-compare-detail-btn.rail-compare-action:hover { transform: translateY(-1px); border-color: var(--accent); background: color-mix(in srgb, var(--accent-subtle) 70%, var(--accent)); color: var(--text1); }
.yv-compare-detail-btn.rail-compare-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.yv-compare-detail-btn.rail-compare-action.is-active { border-color: var(--accent); background: var(--accent); color: var(--surface1); }
.yv-compare-detail-btn.rail-compare-action > i { color: var(--accent); font-size: 17px; }
.yv-compare-detail-btn.rail-compare-action.is-active > i { color: currentColor; }

.yv-compare-basket {
    position: fixed; right: 24px; bottom: 24px; z-index: 900;
    width: min(360px, calc(100vw - 32px)); padding: 12px;
    border: 1px solid rgba(20, 24, 34, .12); border-radius: 18px;
    background: rgba(255,255,255,.94); box-shadow: 0 18px 48px rgba(28, 24, 45, .18);
    backdrop-filter: blur(18px); color: var(--text1);
}
.yv-compare-basket[hidden] { display: none; }
.yv-compare-basket__head, .yv-compare-basket__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.yv-compare-basket__head strong { font-size: 14px; }
.yv-compare-basket__head span { color: var(--text2); font-size: 12px; }
.yv-compare-basket__items { display: flex; gap: 8px; margin: 10px 0 12px; }
.yv-compare-basket__item { position: relative; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; overflow: hidden; background: var(--surface3); }
.yv-compare-basket__item img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.yv-compare-basket__fallback { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 4px; color: var(--text2); font-size: 10px; text-align: center; }
.yv-compare-basket__item.is-cover-missing img { display: none; }
.yv-compare-basket__remove {
    position: absolute; top: 2px; right: 2px; z-index: 2;
    display: grid; place-items: center; width: 20px; height: 20px; padding: 0;
    border: 1px solid rgba(255, 255, 255, .72); border-radius: 50%;
    background: rgba(20,24,34,.82); color: var(--surface1); font: inherit; font-size: 16px; line-height: 1;
    cursor: pointer; transition: transform .16s ease, background .16s ease;
}
.yv-compare-basket__remove:hover { transform: scale(1.06); background: var(--accent); }
.yv-compare-basket__remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.yv-compare-basket__actions button, .yv-compare-basket__actions a {
    min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-visible);
    background: var(--surface1); color: var(--text1); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer;
}
.yv-compare-basket__actions .is-primary { flex: 1; border-color: var(--accent); background: var(--accent); color: var(--surface1); text-align: center; line-height: 34px; }
.yv-compare-basket__actions .is-primary[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.yv-compare-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1100; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: var(--text1); color: var(--surface1); font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
@media (max-width: 640px) { .yv-compare-basket { right: 16px; bottom: 16px; } }
.rail-compare-collection-entry { display: flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; margin-top: 12px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 9px; background: var(--accent-subtle); color: var(--text2); font-size: 12px; line-height: 1; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }.rail-compare-collection-entry:hover { transform: translateY(-1px); border-color: var(--accent); background: color-mix(in srgb, var(--accent-subtle) 70%, var(--accent)); }.rail-compare-collection-entry span { color: var(--accent); font-weight: 800; }.rail-compare-collection-entry strong { overflow: hidden; color: var(--text1); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.rail-compare-collection-entry i { color: var(--accent-hover); font-size: 10px; }
.compare-collections-section { margin-bottom: 28px; }
.compare-collections-section[hidden] { display: none; }
.compare-collections-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.compare-collections-heading span { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.compare-collections-heading h2 { margin: 4px 0 0; color: var(--text1); font-size: 22px; }
.compare-collections-heading > strong { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 999px; background: var(--accent-subtle); color: var(--accent-hover); }
.compare-collections-grid { column-width: 240px; column-gap: var(--layout-card-gap, 16px); }
.compare-collection-card { break-inside: avoid; margin: 0 0 var(--layout-card-gap, 16px); cursor: pointer; outline: none; }
.compare-collection-card__previews { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); aspect-ratio: 5 / 4; gap: 2px; overflow: hidden; border-radius: 10px; background: var(--surface3); transition: box-shadow .18s ease, transform .18s ease; }
.compare-collection-card:hover .compare-collection-card__previews { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.compare-collection-card:focus-visible .compare-collection-card__previews { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare-collection-card__previews img, .compare-collection-card__previews > span { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; }
.compare-collection-card__previews > span { display: grid; place-items: center; padding: 8px; background: var(--surface2); color: var(--text2); font-size: 11px; text-align: center; }
.compare-collection-card__overlay { position: absolute; inset: 7px 7px auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.compare-collection-card__overlay > span { width: auto; height: 30px; min-height: 0; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--surface1) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--text1) 72%, transparent); color: var(--surface1); font-size: 11px; font-weight: 750; line-height: 28px; backdrop-filter: blur(8px); }
.compare-collection-card__overlay button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--text1) 72%, transparent); color: var(--surface1); cursor: pointer; pointer-events: auto; backdrop-filter: blur(8px); }
.compare-collection-card__overlay button:hover { background: var(--accent); }
.compare-collection-card__overlay button:focus-visible { outline: 2px solid var(--surface1); outline-offset: 2px; }
.compare-collection-card__overlay svg { width: 17px; height: 17px; fill: currentColor; }
.compare-collection-card__body { min-width: 0; padding: 9px var(--space-md, 12px) 10px; }
.compare-collection-card h3 { display: -webkit-box; overflow: hidden; margin: 0 0 6px; color: var(--text1); font-size: var(--text-body, 15px); font-weight: 800; line-height: 1.28; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.compare-collection-card p { overflow: hidden; margin: 0 0 8px; color: var(--text2); font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.compare-collection-card__meta { display: flex; align-items: center; justify-content: space-between; color: var(--text3, var(--text2)); font-size: 12px; }
.compare-collection-card__meta span:last-child { color: var(--accent); font-size: 16px; }
@media (max-width: 640px) { .compare-collections-grid { column-width: 150px; } }
