body[data-bocado-density="compact"] :is(#orderform,#checkoutform) :is(input:not([type="checkbox"]),select,textarea){min-height:34px;padding-top:5px;padding-bottom:5px;font-size:13px}
body[data-bocado-density="comfortable"] :is(#orderform,#checkoutform) :is(input:not([type="checkbox"]),select,textarea){min-height:48px;padding-top:10px;padding-bottom:10px;font-size:16px}
/* v181: desktop image boxes use the full frame; object-fit preserves contain/cover choices. */
/* v180: one geometry per catalog size, shared by every product category. */
body:is(.storefront,:has(.pdv-shell)){--catalog-photo:150px;--catalog-height:310px;--catalog-padding:14px;--catalog-columns:3}
body:is(.storefront,:has(.pdv-shell))[data-bocado-cards="compact"]{--catalog-photo:100px;--catalog-height:260px;--catalog-padding:10px;--catalog-columns:4}
body:is(.storefront,:has(.pdv-shell))[data-bocado-cards="large"]{--catalog-photo:205px;--catalog-height:370px;--catalog-padding:16px;--catalog-columns:2}
body:has(.pdv-shell){--catalog-columns:2}
body:has(.pdv-shell)[data-bocado-cards="compact"]{--catalog-columns:3}
@media screen and (min-width:651px){
 body:is(.storefront,:has(.pdv-shell)) #products .cards{grid-template-columns:repeat(var(--catalog-columns),minmax(0,1fr))!important;align-items:stretch}
 body:is(.storefront,:has(.pdv-shell)) #products .card{display:flex!important;flex-direction:column!important;height:var(--catalog-height)!important;min-height:0!important;min-width:0;box-sizing:border-box}
 body:is(.storefront,:has(.pdv-shell)) #products .card>.product-photo-frame[data-photo-ratio]{display:flex!important;align-items:center;justify-content:center;position:relative;flex:0 0 var(--catalog-photo);height:var(--catalog-photo);min-height:0;min-width:0;overflow:hidden;background:#fff}
 body:is(.storefront,:has(.pdv-shell)) #products .card>.product-photo-frame[data-photo-ratio]>img{position:static!important;display:block;inset:auto!important;height:100%!important;max-height:100%!important;min-height:0!important;width:100%!important;max-width:100%!important;aspect-ratio:auto!important;background:#fff!important;object-position:center}
 body:is(.storefront,:has(.pdv-shell)) #products .card>.cardbody{flex:1;min-height:0;min-width:0;padding:var(--catalog-padding)!important;display:flex;flex-direction:column}
}
/* Reserve two title lines and two description lines even when text is short. */
body:is(.storefront,:has(.pdv-shell)) #products .card>.cardbody h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:15px!important;line-height:20px!important;height:40px;min-height:40px;margin:0 0 6px!important}
body:is(.storefront,:has(.pdv-shell)) #products .card>.cardbody>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:12px!important;line-height:16px!important;height:32px;min-height:32px;margin:0 0 8px!important}
body:is(.storefront,:has(.pdv-shell)) #products .card>.cardbody>.cardfoot{margin-top:auto;flex:0 0 auto;display:flex;flex-direction:row!important;flex-wrap:nowrap;align-items:center!important;gap:6px;min-width:0}
body:is(.storefront,:has(.pdv-shell)) #products .cardfoot .price{position:relative;padding-top:12px;font-size:15px!important;white-space:nowrap;min-width:0}
body:is(.storefront,:has(.pdv-shell)) #products .cardfoot .price small{position:absolute;top:0;left:0;font-size:10px!important;line-height:12px}
body:is(.storefront,:has(.pdv-shell)) #products .cardfoot button{flex-shrink:0;width:auto!important;margin-left:auto;white-space:nowrap;padding:8px!important;font-size:11px!important;min-height:36px}
@media screen and (min-width:651px) and (max-width:1100px){
 body.storefront{--catalog-columns:2}
 body.storefront[data-bocado-cards="compact"]{--catalog-columns:2}
 body.storefront[data-bocado-cards="large"]{--catalog-columns:2}
}
@media screen and (min-width:651px) and (max-width:740px){
 body:has(.pdv-shell),body:has(.pdv-shell)[data-bocado-cards]{--catalog-columns:2}
}
@media screen and (min-width:1650px){
 body:has(.pdv-shell){--catalog-columns:3}
 body:has(.pdv-shell)[data-bocado-cards="compact"]{--catalog-columns:4}
}
/* Mobile storefront: retain the 145px pizza format and existing photo widths. */
@media screen and (max-width:650px){
 body.storefront #products .card{height:145px!important;min-height:145px!important;max-height:145px;display:grid!important}
 body.storefront #products .card>.cardbody{padding:12px!important;min-width:0;min-height:0}
 body.storefront #products .card>.cardbody h3{font-size:17px!important;line-height:21px!important;height:42px;min-height:42px;margin-bottom:4px!important}
 body.storefront #products .card>.cardbody>p{-webkit-line-clamp:1;height:16px;min-height:16px;margin-bottom:4px!important}
 body.storefront #products .card>.cardbody>.cardfoot{min-height:44px}
 body.storefront #products .cardfoot button{font-size:12px!important;min-height:44px;padding:8px 10px!important}
 body.storefront #products .cardfoot .price{font-size:15px!important}
}
/* PDV mobile stays at its existing photo height, independent of desktop choice. */
@media screen and (max-width:650px){
 body:has(.pdv-shell) #products .card{display:flex!important;flex-direction:column!important;height:242px!important;min-height:0!important}
 body:has(.pdv-shell) #products .card>.product-photo-frame{display:flex;justify-content:center;align-items:center;height:96px;flex:0 0 96px;overflow:hidden;background:#fff}
 body:has(.pdv-shell) #products .card>.product-photo-frame>img{height:96px!important;max-height:96px!important;width:100%!important;background:#fff!important}
 body:has(.pdv-shell) #products .card>.cardbody{padding:10px!important;min-height:0}
}

@media screen and (min-width:741px) and (max-width:1250px){
 body:has(.pdv-shell),body:has(.pdv-shell)[data-bocado-cards]{--catalog-columns:2}
}
body:has(.pdv-shell) #products .cardfoot .price{font-size:13px!important}
@media screen and (max-width:650px){
 body.storefront #products .card>.product-photo-frame[data-photo-ratio]{min-height:0!important}
}
@media screen and (max-width:380px){
 body.storefront #products .cardfoot button svg{display:none}
 body.storefront #products .cardfoot .price{font-size:13px!important}
}
@media screen and (max-width:650px){
 body:has(.pdv-shell) #products .card>.product-photo-frame[data-photo-ratio="square"]>img{width:auto!important;max-width:100%!important;aspect-ratio:1 / 1!important}
 body:has(.pdv-shell) #products .card>.product-photo-frame[data-photo-ratio="landscape"]>img{width:auto!important;max-width:100%!important;aspect-ratio:4 / 3!important}
}
