/* A shared, compact material card. Scope beats legacy mobile layout rules. */
@media screen{
html body.mobileUnified #productGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:12px;align-items:start}
html body.mobileUnified .shopProductCard{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px 12px;align-content:start;min-width:0;min-height:0;padding:14px;border:1px solid var(--line);border-radius:16px;overflow:visible;background:var(--card);box-shadow:none}
html body.mobileUnified .shopProductImage{display:grid;place-items:center;position:static;grid-column:1;grid-row:1;flex:none;width:64px;height:64px;min-height:64px;max-height:64px;padding:0;border:0;border-radius:9px;overflow:hidden;background:var(--panel2)}
html body.mobileUnified .shopProductImage :is(img,.productThumb){display:grid;place-items:center;position:static;width:64px!important;height:64px!important;max-width:100%;max-height:64px;object-fit:contain!important;padding:0;margin:0;border-radius:9px;font-size:28px}
html body.mobileUnified .shopProductBody{display:contents;padding:0;min-width:0}
html body.mobileUnified .boShopIdentity{grid-column:2;grid-row:1;min-width:0;align-self:center}
html body.mobileUnified .boShopIdentity h3{font-size:17px;line-height:1.3;font-weight:750;margin:0 0 4px;color:var(--text);overflow-wrap:anywhere}
html body.mobileUnified .boShopIdentity small{display:block;font-size:12px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
html body.mobileUnified .boShopDescription{grid-column:1/-1;margin:0;padding:0;border:0;font-size:13px}
html body.mobileUnified .boShopDescription summary{cursor:pointer;min-height:44px;align-content:center}
html body.mobileUnified .boShopDescription p{line-height:1.5;margin:4px 0 10px}
html body.mobileUnified .w2StoreStock{grid-column:1/-1;display:grid;gap:8px;margin:0}
html body.mobileUnified .w2WarehouseStock{display:block;padding:8px 10px;margin:0;border-radius:10px;min-width:0}
html body.mobileUnified .w2WarehouseStock>b{display:block;font-size:12px;line-height:1.3;margin:0 0 6px;color:var(--text)}
html body.mobileUnified .w2WarehouseStock .boMaterialNumbers{margin:0;gap:8px}
html body.mobileUnified .w2WarehouseStock .boMaterialNumbers dt{font-size:11px;margin-bottom:3px}
html body.mobileUnified .w2WarehouseStock .boMaterialNumbers dd{font-size:17px;line-height:1.3}
html body.mobileUnified .w2WarehouseStock .boMaterialNumbers dd strong{font-size:17px}
html body.mobileUnified .w2WarehouseStock .boMaterialNumbers dd small{display:inline;font-size:11px;font-weight:400}
html body.mobileUnified .w2StockNone{grid-column:1/-1;margin:0;font-size:13px}
html body.mobileUnified .shopProductOrder{grid-column:1/-1;margin:0;padding:10px 0 0;border-top:1px solid var(--line)}
html body.mobileUnified .shopProductPrice{font-size:16px;font-weight:750;line-height:1.3;margin:0 0 8px;color:var(--text)}
html body.mobileUnified .shopProductPrice>span{font-size:12px;font-weight:400;color:var(--muted)}
html body.mobileUnified .shopOrderControls{display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px;align-items:end}
html body.mobileUnified .shopOrderControls label{display:grid;gap:3px;margin:0;font-size:12px;font-weight:650;color:var(--muted);min-width:0}
html body.mobileUnified .shopOrderControls input{width:100%;height:44px;min-width:0;padding:8px;font-size:16px;text-align:center;border-radius:10px;margin:0}
html body.mobileUnified:not(.riskPage) .shopOrderControls button.primary{width:100%;min-width:0;min-height:44px;padding:9px 12px;font-size:14px;line-height:1.3;border-radius:10px;white-space:normal;margin:0}
}

/* Product preview keeps the mobile card geometry unchanged. */
html body.mobileUnified .shopPreviewButton{display:block;border:0;padding:0;margin:0;background:transparent;color:inherit;width:64px;height:64px;min-height:0;border-radius:9px;cursor:zoom-in}
html body.mobileUnified .shopNameButton{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;text-align:left;line-height:inherit;min-height:0;cursor:pointer}
html body.mobileUnified .shopDesktopMeta{display:none}
html body .shopPreview>img{display:block;width:100%;height:auto;max-height:60vh;object-fit:contain;margin:16px auto;background:var(--panel2);border-radius:12px}
html body .shopPreview p{overflow-wrap:anywhere;white-space:pre-wrap}
html body :is(.shopPreviewButton,.shopNameButton,.shopStockButton):focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(min-width:1024px){
 html body.mobileUnified #productGrid{display:block;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--card)}
 html body.mobileUnified #productGrid .shopProductCard{display:grid;grid-template-columns:48px minmax(120px,1fr) minmax(90px,.55fr) 130px 188px;gap:12px;align-items:center;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 14px;min-height:86px}
 html body.mobileUnified #productGrid .shopProductCard:last-child{border-bottom:0}
 html body.mobileUnified #productGrid :is(.shopProductImage,.shopPreviewButton){width:48px;height:48px;min-height:48px;max-height:48px}
 html body.mobileUnified #productGrid .shopProductImage :is(img,.productThumb){width:48px!important;height:48px!important;max-height:48px}
 html body.mobileUnified #productGrid .boShopIdentity{grid-column:2;grid-row:1}
 html body.mobileUnified #productGrid .boShopIdentity h3{font-size:14px;margin-bottom:3px}
 html body.mobileUnified #productGrid .shopDesktopMeta{display:grid;gap:4px;grid-column:3;grid-row:1;min-width:0;overflow-wrap:anywhere}
 html body.mobileUnified #productGrid .shopDesktopMeta small{font-size:12px;color:var(--muted)}
 html body.mobileUnified #productGrid .shopStockButton{border:0;background:transparent;color:var(--blue);padding:4px 0;text-align:left;font-size:12px;text-decoration:underline;min-height:32px}
 html body.mobileUnified #productGrid :is(.boShopDescription,.w2StoreStock,.w2StockNone){display:none}
 html body.mobileUnified #productGrid .shopProductOrder{display:contents}
 html body.mobileUnified #productGrid .shopProductPrice{grid-column:4;grid-row:1;margin:0;font-size:14px;overflow-wrap:anywhere}
 html body.mobileUnified #productGrid .shopProductPrice>small{display:block;font-size:11px;font-weight:400;line-height:1.4}
 html body.mobileUnified #productGrid .shopOrderControls{grid-column:5;grid-row:1;grid-template-columns:56px minmax(0,1fr);gap:8px}
 html body.mobileUnified #productGrid .shopOrderControls button.primary{font-size:12px;padding:6px;border-radius:8px}
}

.shopListHeading{display:none}
@media(min-width:1024px){html body.mobileUnified #productGrid .shopListHeading{display:grid;grid-template-columns:48px minmax(120px,1fr) minmax(90px,.55fr) 130px 188px;gap:12px;padding:12px 14px;background:var(--panel2);color:var(--text);font-size:11px;font-weight:750;text-transform:uppercase;border-bottom:1px solid var(--line)}}
