/* Bottom actions preserve full-width product photographs and existing card density. */
.products-page--listing .project-card-save{min-height:44px;min-width:44px;max-width:100%;padding:8px 10px;border:1px solid #b6beb5;border-radius:7px;background:transparent;color:#24453c;font:inherit;font-size:12px;line-height:1.4;cursor:pointer}
.products-page--listing .catalog-card-actions [hidden]{display:none!important}
.products-page--listing .project-card-save[aria-pressed="true"]{background:#24453c;color:#fff}
.products-page--listing .catalog-utilities{display:flex;align-items:center;gap:8px}
#project-launcher{min-height:44px;padding:8px 10px;white-space:nowrap;border:1px solid #b6beb5;border-radius:7px;background:transparent;color:#24453c;font-size:12px}
#project-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid #b6beb5;border-radius:12px;background:#f1f0eb;color:#24453c;overflow:auto}
#project-dialog::backdrop{background:rgb(0 0 0 / .45)}
#project-dialog .project-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
#project-dialog h2{font:400 30px/1.2 Georgia,serif;margin:0}
#project-dialog p{font-size:13px;line-height:1.55;margin:12px 0}
#project-dialog button,#project-dialog a,#project-dialog label{min-height:44px}
#project-dialog button{min-width:44px;border:1px solid #b6beb5;border-radius:7px;padding:8px 12px;background:transparent;color:inherit;font-size:13px}
#project-dialog label{display:flex;align-items:center;gap:10px;font-size:13px}
#project-dialog input[type="text"],#project-dialog textarea{box-sizing:border-box;display:block;width:100%;min-height:44px;border:1px solid #b6beb5;border-radius:6px;background:#fff;color:#24453c;padding:10px;font:inherit;resize:vertical}
#project-dialog input[type="checkbox"]{width:20px;height:20px;flex-shrink:0}
#project-items{list-style:none;padding:0;margin:16px 0}
#project-items li{display:grid;grid-template-columns:1fr auto;gap:8px 16px;padding:16px 0;border-top:1px solid #b6beb5;min-width:0}
#project-items a{display:flex;align-items:center;grid-column:1 / -1;overflow-wrap:anywhere}
#project-items label[for],#project-items textarea{grid-column:1 / -1}
#project-dialog>a{display:flex;align-items:center;margin-bottom:12px;overflow-wrap:anywhere}
#project-dialog [hidden]{display:none!important}
#project-dialog :focus-visible,#project-launcher:focus-visible,.project-card-save:focus-visible{outline:3px solid #a45e2e;outline-offset:3px}
@media(max-width:759px){.products-page--listing .catalog-utilities{flex-wrap:wrap}.products-page--listing #project-launcher{white-space:normal}#project-dialog{padding:16px}}
@media(forced-colors:active){.products-page--listing .project-card-save[aria-pressed="true"]{outline:3px solid Highlight}}

/* Compact catalog actions: a light project pill and a quiet comparison choice.
   The painted pill is 32px tall; both real button targets remain at least 44px. */
.products-page--listing .catalog-card-actions{gap:4px 12px;padding-top:0;border-top:0}
.products-page--listing .catalog-card-actions .project-card-save,
.products-page--listing .catalog-card-actions .catalog-compare-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;max-width:100%;margin-top:0;border:0;border-radius:999px;background:transparent;color:var(--green,#24453c);font:400 12px/1.5 Arial,sans-serif;text-decoration:none;overflow-wrap:anywhere}
.products-page--listing .catalog-card-actions .project-card-save{position:relative;isolation:isolate;padding:8px 12px}
.products-page--listing .catalog-card-actions .project-card-save::before{content:"";position:absolute;z-index:-1;inset:6px 0;border:1px solid #c5cec6;border-radius:inherit;pointer-events:none}
.products-page--listing .catalog-card-actions .project-card-save[aria-pressed="true"]::before{border-color:var(--green,#24453c);background:#e3eae5}
.products-page--listing .catalog-card-actions .catalog-compare-toggle{gap:6px;margin-left:auto;padding:8px 0 8px 4px}
.products-page--listing .catalog-card-actions .catalog-compare-toggle[aria-pressed="true"]{background:transparent;font-weight:400}
.products-page--listing .catalog-card-actions .catalog-compare-toggle::before{content:"";box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;flex:0 0 14px;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;font-size:10px;line-height:1}
.products-page--listing .catalog-card-actions .catalog-compare-toggle[aria-pressed="true"]::before{content:"✓";border-color:var(--green,#24453c);background:var(--green,#24453c);color:#fff}
.products-page--listing .catalog-card-actions .catalog-compare-toggle[aria-disabled="true"]{color:var(--muted,#626963);cursor:default}
.products-page--listing .catalog-card-actions .project-card-save:focus-visible,
.products-page--listing .catalog-card-actions .catalog-compare-toggle:focus-visible{outline:2px solid var(--green,#24453c);outline-offset:2px}
@media(hover:hover) and (pointer:fine){
 .products-page--listing .catalog-card-actions .project-card-save:hover::before{border-color:var(--green,#24453c);background:#e3eae5}
 .products-page--listing .catalog-card-actions .catalog-compare-toggle:not([aria-disabled="true"]):hover{text-decoration:underline;text-underline-offset:3px}
}
@media(forced-colors:active){
 .products-page--listing .catalog-card-actions .project-card-save::before{border-color:ButtonText}
 .products-page--listing .catalog-card-actions .project-card-save[aria-pressed="true"]{color:HighlightText;outline:0}
 .products-page--listing .catalog-card-actions .project-card-save[aria-pressed="true"]::before{background:Highlight;border-color:Highlight;forced-color-adjust:none}
 .products-page--listing .catalog-card-actions .catalog-compare-toggle[aria-pressed="true"]::before{color:HighlightText;background:Highlight;border-color:Highlight;forced-color-adjust:none}
 .products-page--listing .catalog-card-actions .catalog-compare-toggle[aria-disabled="true"]{color:GrayText}
 .products-page--listing .catalog-card-actions .project-card-save:focus-visible,
 .products-page--listing .catalog-card-actions .catalog-compare-toggle:focus-visible{outline:2px solid Highlight;outline-offset:2px}
}
