/* Shared product card actions and strength picker. */
.product-card-grid .card{position:relative;min-width:0}
.product-card-grid .card.quick-add-open{z-index:5;transform:none;border-color:var(--brand)}
.product-card-grid .price-row{margin-top:auto;align-items:center;gap:10px}
.product-card-grid .price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.product-card-price-from{font-family:var(--f-sans);font-size:11px;font-weight:500;color:var(--muted);letter-spacing:0}
.product-card-grid .product-strength-count{font-size:12px;color:var(--muted)}
.product-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:11px;color:var(--muted);line-height:1.5}
.product-strength-range{display:inline-flex;align-items:center;min-height:20px;padding:2px 6px;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--ink-2);font-family:var(--f-sans);font-size:11px;font-weight:500;line-height:1.3;letter-spacing:0;white-space:nowrap}
.product-card-actions{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px;margin-top:6px}
.product-card-actions>.btn{justify-content:center;min-height:46px;padding:10px 8px;font-family:var(--f-sans);font-size:14px;font-weight:600;letter-spacing:0;text-transform:none;white-space:nowrap}
.product-card-actions>.btn-outline{border-color:var(--line)}
.product-card-actions>.btn:hover{transform:none}
.product-card-actions>.btn:disabled{opacity:.55;cursor:not-allowed}
.product-card-actions>.btn[aria-expanded="true"]{background:var(--brand-deep)}
.product-card-actions :focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.product-strength-picker{position:absolute;bottom:calc(100% + 12px);left:0;right:0;z-index:6;padding:12px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-top:2px solid var(--brand);border-radius:6px;box-shadow:0 12px 32px rgba(13,19,32,.18)}
.product-strength-picker[hidden]{display:none}
.product-strength-picker::after{content:"";position:absolute;top:100%;right:24%;width:10px;height:10px;background:var(--panel);border-right:1px solid var(--line);border-bottom:1px solid var(--line);transform:translateY(-4px) rotate(45deg)}
.product-strength-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:14px;font-weight:600}
.product-strength-title{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.3}
.product-strength-title strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.product-strength-title>span{font-size:12px;font-weight:400;color:var(--muted)}
.product-strength-close{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:3px;background:var(--bg);color:var(--muted);font-size:22px;cursor:pointer}
.product-strength-close:hover{background:var(--brand-soft);color:var(--brand)}
.product-strength-options{display:grid;gap:6px;max-height:min(224px,max(88px,calc(100dvh - 330px)));overflow-y:auto;overscroll-behavior:contain;padding:3px}
.product-strength-option{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:3px;background:var(--panel);color:var(--ink);text-align:left;cursor:pointer;font-size:14px;line-height:1.3}
.product-strength-option:hover:not(:disabled){border-color:var(--brand);background:var(--brand-soft)}
.product-strength-label{font-weight:600}
.product-strength-price{display:grid;justify-items:end;gap:3px;font-family:var(--f-mono);font-size:15px;font-weight:600;letter-spacing:-.03em}
.product-strength-price s{font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted)}
.product-strength-sale-price{color:var(--green);font-weight:600}
.product-strength-discount{display:table;margin-top:4px;padding:2px 5px;background:var(--brand-soft);color:var(--brand);font-family:var(--f-mono);font-size:10px;font-weight:500;border-radius:3px}
.product-strength-savings{display:flex;gap:6px;margin:10px 3px 0;padding-top:10px;border-top:1px solid var(--line)}
.product-strength-savings>span{flex:1;padding:7px 8px;background:var(--brand-soft);border-radius:3px;font-size:11px;color:var(--muted)}
.product-strength-savings strong{display:block;margin-top:2px;font-size:12px;font-weight:600;color:var(--brand)}
.product-strength-savings-note{margin:6px 3px 0;text-align:center;font-size:10px;color:var(--muted)}
.product-strength-plus{color:var(--brand);font-size:18px;line-height:1}
.product-strength-option:disabled{opacity:.5;cursor:not-allowed}
.product-strength-option small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:3px}
.product-strength-status{margin:10px 3px 0;font-size:12px;line-height:1.5;color:var(--muted)}
.product-strength-status:empty{display:none}
.product-strength-status.is-error{color:var(--red)}
.product-card-grid .rx-skel .body::after{content:"";height:46px;margin-top:6px;background:var(--line-soft)}

/* Mobile: show products two-up (homepage featured + catalog) to cut scrolling.
   Halves the row count; action buttons stack so their labels don't overflow
   the narrower card. */
@media(max-width:560px){
  .product-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .product-card-grid .card .body{padding:12px;gap:6px}
  .product-card-grid .card .name{font-size:14px;line-height:1.25}
  .product-card-grid .card .cas{font-size:10px}
  .product-card-grid .card .specs{gap:5px 8px}
  .product-card-grid .card .price{font-size:16px}
  .product-card-actions{grid-template-columns:1fr;gap:6px;margin-top:8px}
  .product-card-actions>.btn{min-height:42px;font-size:13px;padding:9px 8px}
}
