/* Comparing products (module Compare). A theme restyles it. */
.pdp-compare { background: none; border: 0; padding: 6px 0; font-size: 13px; cursor: pointer; text-decoration: underline; }
.pdp-compare[aria-pressed="true"] { text-decoration: none; }
.compare-empty { display: grid; justify-items: center; gap: 14px; padding: 60px 0 80px; text-align: center; }
.compare-empty h2 { font-size: 34px; }
.compare-empty p { color: var(--muted); max-width: 46ch; margin: 0; }
.compare-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 6px 0 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.compare-bar > span { flex: 1; color: var(--muted); }
.compare-diff { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.compare-bar .text-link { background: none; border: 0; cursor: pointer; text-decoration: underline; font-size: 13px; }
.compare-scroll { overflow-x: auto; padding-bottom: 40px; }
.compare-table { border-collapse: collapse; width: 100%; min-width: calc(160px + var(--columns, 2) * 210px); table-layout: fixed; font-size: 14px; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--line); padding: 14px 16px 14px 0; text-align: left; vertical-align: top; }
.compare-table th { width: 160px; font-weight: 500; color: var(--muted); font-size: 13px; }
.compare-table tbody th { position: sticky; left: 0; background: var(--paper, #fff); }
.compare-product { position: relative; display: table-cell; }
.compare-product .product-photo { display: block; aspect-ratio: 1; background: var(--soft, #f1efea); margin-bottom: 12px; }
.compare-product .product-photo img { width: 100%; height: 100%; object-fit: contain; }
.compare-brand { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.compare-name { display: block; margin-bottom: 10px; line-height: 1.4; }
.compare-price { display: block; font-size: 18px; margin-bottom: 12px; }
.compare-product .button { width: 100%; justify-content: center; }
.compare-remove { position: absolute; top: 18px; right: 22px; z-index: 1; }
.compare-remove button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--paper, #fff); cursor: pointer; font-size: 18px; line-height: 1; }
@media (max-width: 760px) {
    .compare-table { min-width: calc(110px + var(--columns, 2) * 170px); font-size: 13px; }
    .compare-table th { width: 110px; }
}
