/* Shared retail card for PHP catalogs and browser-rendered saved/recent lists. */
.product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:stretch}
.product-card{position:relative;min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #18233a08;transition:box-shadow .2s,border-color .2s,transform .2s}
.product-card:hover{border-color:#e3b6b6;box-shadow:0 6px 20px #18233a12;transform:translateY(-2px)}
.product-picture{position:relative;display:grid;place-items:center;aspect-ratio:1;background:#fff;padding:12px 12px 23px;overflow:hidden}
.product-picture>img{width:100%;height:100%;min-height:0;object-fit:contain;transition:transform .2s}
.product-picture:hover>img{transform:scale(1.025)}
.design-brand{position:absolute;right:14px;bottom:24px;display:block;width:52px;max-width:27%;padding:3px;background:#fffffff0;border-radius:3px;pointer-events:none}
.design-brand img{display:block;width:100%;height:auto;object-fit:contain}
.gallery .design-brand{width:100px;max-width:22%;right:20px;bottom:56px;padding:5px}
.product-card .contact-price{white-space:normal;font-size:18px;line-height:26px}
.picture-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--muted);font-size:12px}
.picture-placeholder .kdm-icon{width:40px;height:40px;opacity:.45}
.product-image-note{position:absolute;bottom:5px;left:8px;right:8px;display:block;text-align:center;font-size:9px;line-height:14px;font-weight:400;color:#9298a2}
.product-card-body{display:flex;flex-direction:column;flex:1;min-width:0;padding:5px 12px 0}
.product-card h3{font-size:14px;line-height:21px;font-weight:650;min-height:42px;max-height:42px;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#20242c}
.product-card h3 a:hover{color:var(--red)}
.product-card .price-line{min-height:30px;gap:5px;line-height:1.45;margin:0 0 8px;align-items:baseline}
.product-card .price{font-size:20px;line-height:29px;letter-spacing:-.035em;white-space:nowrap}
.product-card .price-line del{font-size:11px;line-height:18px;color:#a2a8b3;white-space:nowrap}
.product-spec-chips{display:flex;flex-direction:column;gap:4px;margin:0 0 12px;min-width:0}
.product-spec-chips span{display:block;min-width:0;background:#edf3ff;color:#4a5d80;padding:3px 6px;border-radius:4px;font-size:10px;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-spec-chips span:nth-child(2){background:#f2edfc;color:#66547e}
.product-spec-chips span:nth-child(3){background:#f4f5f7;color:#606773}
.product-card-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto;padding:5px 0 7px;border-top:1px solid #f0f1f4}
.product-card-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px;border:0;border-radius:6px;padding:5px 7px;background:transparent;color:#6d7480;font-size:11px;line-height:1.3;white-space:nowrap}
.product-card-actions button>.kdm-icon{width:17px;height:17px;--icon-filter:grayscale(1);opacity:.75}
.product-card-actions .product-save{margin-left:auto;width:38px;flex:none;padding:8px}
.product-card-actions .product-save>.kdm-icon{width:22px;height:22px;--icon-filter:none;opacity:1}
.product-card-actions button:hover,.product-card-actions button[aria-pressed=true]{background:#fff0f0;color:var(--red)}
.product-card-actions button[aria-pressed=true]>.kdm-icon{--icon-filter:none;opacity:1}
.product-card-actions .product-save[aria-pressed=true]{background:#ffe5e5;box-shadow:inset 0 0 0 1px #f0bcbc}
.product-discount{position:absolute;left:0;top:10px;z-index:1;background:var(--red);color:#fff;border-radius:0 5px 5px 0;font-size:11px;font-weight:600;line-height:1.5;padding:3px 8px;box-shadow:0 2px 5px #86101020}
@media(max-width:1100px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .product-card{border-radius:10px}.product-picture{padding:9px 9px 21px}.product-image-note{font-size:8px;line-height:12px;bottom:4px}
 .product-card-body{padding:5px 9px 0}.product-card h3{font-size:12px;line-height:19px;min-height:38px;max-height:38px;margin-bottom:5px}
 .product-card .price{font-size:18px;line-height:26px}.product-card .contact-price{font-size:15px;line-height:22px}.design-brand{right:10px;bottom:23px;width:44px}.product-card .price-line{min-height:26px;margin-bottom:7px}.product-card .price-line del{font-size:10px}
 .product-spec-chips{gap:3px;margin-bottom:9px}.product-spec-chips span{font-size:9px;line-height:15px;padding:2px 5px}
 .product-card-actions{gap:2px;padding:1px 0 3px}.product-card-actions button{min-height:44px;padding:5px 3px;font-size:10px;gap:3px}.product-card-actions .product-save{width:36px}.product-card-actions .product-save>.kdm-icon{width:21px;height:21px}
}
@media(prefers-reduced-motion:reduce){.product-card,.product-picture>img{transition:none}.product-card:hover,.product-picture:hover>img{transform:none}}
