/* Shared listing cards: Shop, category views, homepage, and related pieces. */
.product-grid{overflow:visible}
.product-card{
  position:relative;z-index:0;display:flex;flex-direction:column;min-width:0;
  background:var(--surface);border:1px solid var(--line);border-radius:16px;
  box-shadow:0 8px 22px rgba(13,22,29,.07);
  animation:none;transform:translateZ(0);transition:transform .23s ease,border-color .23s ease,box-shadow .23s ease;
}
.product-card:hover,.product-card:focus-within{
  z-index:2;transform:translateY(-3px) scale(1.015);border-color:#df6b30;
  box-shadow:0 13px 28px rgba(12,20,27,.15),0 0 19px rgba(227,105,43,.20);
}
.product-card:focus-within{border-color:#d7561d}
.product-card .product-image{
  width:calc(100% - 24px);aspect-ratio:1/1;margin:12px 12px 0;
  border-radius:10px;overflow:hidden;background:var(--stone);
}
.product-card .product-image img{
  display:block;width:100%;height:100%;aspect-ratio:1/1;object-fit:contain;
  padding:5%;background:transparent;transform:none!important;transition:none;
}
.product-card .product-image>span{border-radius:5px;font-size:11px;font-weight:700}
.product-card-body{flex:1;min-height:94px;padding:16px 17px 12px}
.product-card .product-meta{display:flex;align-items:start;justify-content:space-between;gap:8px;padding:0}
.product-card .product-meta h3{min-width:0;margin:0;font-size:16px;line-height:1.3;font-weight:700}
.product-card .product-meta b{flex:none;margin:0;font-size:16px;line-height:1.3;font-weight:700;color:var(--ink)}
.product-card .product-category{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.35}
.product-card-actions{display:flex;align-items:center;gap:14px;min-height:70px;margin:0 17px;border-top:1px solid var(--line)}
.product-card-bag{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink)}
.product-card-bag:hover,.product-card-bag.is-added{border-color:#d7561d;color:#aa4117;background:rgba(223,107,48,.09)}
html[data-theme=dark] .product-card-bag:hover,html[data-theme=dark] .product-card-bag.is-added{color:#ff9c67}
.product-card-bag:disabled{opacity:.4;cursor:not-allowed}
.product-card-view{display:inline-flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:43px;padding:8px 10px;border:1.5px solid #c64b1c;border-radius:8px;color:#a33a13;background:transparent;text-align:center;font-size:14px;line-height:1.2;font-weight:700;transition:background .22s,color .22s,border-color .22s}
.product-card-view:hover{background:#c64b1c;color:#fff;border-color:#c64b1c}
html[data-theme=dark] .product-card-view{border-color:#fa8245;color:#ff9c67}
html[data-theme=dark] .product-card-view:hover{background:#d65a22;border-color:#d65a22;color:#fff}
.product-card a:focus-visible,.product-card button:focus-visible,.card-variant-picker select:focus-visible{outline:3px solid #e56b30;outline-offset:3px}
.card-variant-picker{margin:0 17px 16px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
.card-variant-picker label{display:grid;gap:7px;color:var(--ink);font-size:12px;font-weight:700}
.card-variant-picker select{width:100%;min-height:40px;border-radius:6px;font-size:13px}
.card-variant-picker>div{display:flex;gap:8px;margin-top:10px}
.card-variant-picker button{min-height:38px;padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font-size:12px;font-weight:700}
.card-variant-picker [data-card-confirm]{border-color:#c64b1c;background:#c64b1c;color:#fff}
@media(max-width:800px){.product-card-body{min-height:100px}.product-card .product-meta{display:flex}.product-card .product-meta b{margin:0}}
@media(max-width:520px){.product-grid{gap:18px 10px}.product-card{border-radius:12px}.product-card .product-image{width:calc(100% - 16px);margin:8px 8px 0;border-radius:7px}.product-card-body{min-height:112px;padding:11px 10px 8px}.product-card .product-meta{display:block}.product-card .product-meta h3{font-size:14px}.product-card .product-meta b{display:block;margin-top:4px;font-size:14px}.product-card .product-category{font-size:12px;margin-top:5px}.product-card-actions{gap:5px;min-height:59px;margin:0 9px}.product-card-bag{width:35px;height:38px}.product-card-bag svg{width:20px;height:22px}.product-card-view{min-height:37px;padding:6px 3px;font-size:11px}.card-variant-picker{margin:0 9px 10px;padding:8px}.card-variant-picker>div{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.product-card,.product-card-view{transition:none!important}.product-card:hover,.product-card:focus-within{transform:none}}
