/* Browser-local favorites and comparison stay inside the shared catalogue panel. */
body.page-product-listing .catalogue-card-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: 0 0 3px;
    color: #254d40;
    font-size: 13px;
}
body.page-product-listing .catalogue-card-selection button,
body.page-product-listing .catalogue-card-selection label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 38px;
    margin: 0;
    padding: 4px 6px;
    border: 0;
    background: none;
    color: #254d40;
    cursor: pointer;
    white-space: nowrap;
}
body.page-product-listing .catalogue-card-selection button[aria-pressed="true"] { color: #9a6635; font-weight: 700; }
body.page-product-listing .catalogue-card-selection input { width: 17px; height: 17px; margin: 0; accent-color: #254d40; cursor: pointer; }
body.page-product-listing .catalogue-selection { padding: 10px 18px 12px; border-top: 1px solid #ccd9c4; }
body.page-product-listing .catalogue-selection-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
body.page-product-listing .catalogue-selection-toolbar button {
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid #a9bca2;
    border-radius: 6px;
    background: #fffdf8;
    color: #254d40;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
body.page-product-listing .catalogue-selection-toolbar button:disabled { opacity: .55; cursor: not-allowed; }
body.page-product-listing .catalogue-selection-toolbar button[aria-expanded="true"] { background: #254d40; color: #fff; }
body.page-product-listing .catalogue-selection-toolbar [data-catalogue-selected-count] { color: #40594b; font-size: 13px; }
body.page-product-listing .catalogue-selection-toolbar [data-catalogue-message] { flex-basis: 100%; margin: 0; color: #9b4a25; font-size: 13px; }
body.page-product-listing .catalogue-selection-view { padding-top: 12px; }
body.page-product-listing .catalogue-selection-view h3 { margin: 0 0 10px; color: #254d40; font-size: 18px; }
body.page-product-listing .catalogue-selection-view > p { margin: 0; color: #526849; }
body.page-product-listing .catalogue-favorites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
body.page-product-listing .catalogue-comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.page-product-listing .catalogue-selection-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px; border: 1px solid #ccd9c4; border-radius: 8px; background: #fffdf8; }
body.page-product-listing .catalogue-selection-photo { display: block; height: 190px; background: #f5f4ef; }
body.page-product-listing .catalogue-selection-photo img { width: 100%; height: 100%; object-fit: contain; }
body.page-product-listing .catalogue-selection-name { color: #254d40; font-weight: 650; overflow-wrap: anywhere; }
body.page-product-listing .catalogue-selection-price { color: #254d40; font-size: 17px; }
body.page-product-listing .catalogue-selection-card p { margin: 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
body.page-product-listing .catalogue-selection-remove { min-height: 38px; margin-top: auto; border: 1px solid #b7c7ae; border-radius: 5px; background: #fff; color: #254d40; cursor: pointer; }
body.page-product-listing :is(.catalogue-card-selection button,.catalogue-card-selection input,.catalogue-selection button,.catalogue-selection a):focus-visible { outline: 2px solid #a58136; outline-offset: 2px; }
@media (max-width: 760px) {
    body.page-product-listing .catalogue-selection { padding: 10px; }
    body.page-product-listing .catalogue-comparison-grid { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding-bottom: 7px; }
    body.page-product-listing .catalogue-comparison-grid .catalogue-selection-card { flex: 0 0 calc((100% - 8px) / 2); scroll-snap-align: start; }
    body.page-product-listing .catalogue-selection-photo { height: 155px; }
    body.page-product-listing .catalogue-selection-price { font-size: 14px; letter-spacing: -.02em; white-space: nowrap; }
    body.page-product-listing .catalogue-card-selection { font-size: 12px; }
}

body.page-product-listing .catalogue-selection-cart-form { margin: auto 0 0; }
body.page-product-listing .catalogue-selection-cart-form button { width: 100%; min-height: 44px; }
body.page-product-listing .catalogue-selection-cart-form + .catalogue-selection-remove { margin-top: 0; }
