/* Major Bud Shop v0.5.6 – compact cards and mobile cart only. */
/* DESKTOP: three equally sized compact product tiles. */
.mbs-shop .mbs-products{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
}
.mbs-shop .mbs-product-media,
.mbs-shop .mbs-product-media-button{
  height:205px!important;
}
.mbs-shop .mbs-product-body{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  padding:14px 16px 17px!important;
}
.mbs-shop .mbs-product-cat{order:0}
.mbs-shop .mbs-product-name{order:1}
.mbs-shop .mbs-product-name h3{font-size:clamp(21px,2vw,27px)!important;line-height:1.13!important;margin:0!important}
.mbs-shop .mbs-description{display:none!important}
.mbs-shop .mbs-product-bottom{
  order:2;
  margin:5px 0 0!important;
  padding:0!important;
  border:0!important;
  display:flex!important;
  flex-direction:row!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:9px!important;
}
.mbs-shop .mbs-product-bottom .mbs-price{flex:1 1 auto;min-width:0}
.mbs-shop .mbs-product-bottom .mbs-price strong{font-size:clamp(19px,2vw,23px)!important;white-space:nowrap}
.mbs-shop .mbs-product-bottom .mbs-price small{font-size:11px!important;line-height:1.3!important}
.mbs-shop .mbs-product-bottom button{
  flex:0 0 auto;
  width:auto!important;
  min-height:39px!important;
  padding:6px 8px 6px 12px!important;
  font-size:12px!important;
  gap:7px!important;
  justify-content:center!important;
}
.mbs-shop .mbs-add-arrow{width:24px;height:24px}
.mbs-shop .mbs-view-link{
  order:3;
  margin:3px 0 0!important;
  padding:7px 0 0!important;
  border-top:1px solid rgba(211,244,105,.24)!important;
  width:100%!important;
  text-align:left!important;
  font-size:11px!important;
}
@media(max-width:1000px){
  .mbs-shop .mbs-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
  .mbs-shop .mbs-product-media,.mbs-shop .mbs-product-media-button{height:185px!important}
}
@media(max-width:620px){
  /* One legible, much shorter card per row on phones. */
  .mbs-shop .mbs-products{grid-template-columns:minmax(0,1fr)!important;gap:13px!important}
  .mbs-shop .mbs-product-media,.mbs-shop .mbs-product-media-button{height:185px!important}
  .mbs-shop .mbs-product-body{padding:13px 15px 15px!important;gap:5px!important}
  .mbs-shop .mbs-product-name h3{font-size:23px!important}
  .mbs-shop .mbs-product-bottom{flex-direction:row!important;align-items:center!important;gap:10px!important;margin-top:5px!important}
  .mbs-shop .mbs-product-bottom .mbs-price strong{font-size:22px!important}
  .mbs-shop .mbs-product-bottom .mbs-price small{font-size:11px!important}
  .mbs-shop .mbs-product-bottom button{width:auto!important;min-height:39px!important;padding:6px 8px 6px 13px!important;font-size:12px!important}
  .mbs-shop .mbs-view-link{font-size:11px!important}
  /* Keep the mascot click target practical, without obscuring the catalog. */
  .mbs-shop .mbs-floating-cart.mbs-basket-trigger{--mbs-fab-size:102px;top:78px!important;right:9px!important}
  .mbs-shop .mbs-floating-cart-label{font-size:11px!important;line-height:1.05!important;margin-top:-4px!important}
  body.admin-bar .mbs-shop .mbs-floating-cart.mbs-basket-trigger{top:118px!important}
  /* The open cart is a self-contained viewport panel, no cramped slice below the mascot. */
  .mbs-shop .mbs-basket{
    position:fixed!important;
    top:12px!important;
    bottom:12px!important;
    left:8px!important;
    right:8px!important;
    width:auto!important;
    max-height:calc(100dvh - 24px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    z-index:10001!important;
    border-radius:19px!important;
    padding:15px!important;
  }
  body.admin-bar .mbs-shop .mbs-basket{top:55px!important;bottom:8px!important;max-height:calc(100dvh - 63px)!important}
  .mbs-shop .mbs-basket h3{font-size:21px!important;line-height:1.14!important}
  .mbs-shop .mbs-basket .mbs-cart-subline{font-size:12px!important;line-height:1.35!important}
  .mbs-shop .mbs-basket .mbs-cart-line{gap:5px!important;padding:9px 0!important}
  .mbs-shop .mbs-basket .mbs-checkout-totals{margin-top:6px!important;padding:7px 10px!important}
  .mbs-shop .mbs-basket .mbs-checkout-totals > div{padding:2px 0!important}
  .mbs-shop .mbs-basket .mbs-checkout-totals small{font-size:10px!important;margin-top:4px!important}
  .mbs-shop:has(.mbs-basket.is-open) .mbs-floating-cart{display:none!important}
}
@media(max-width:380px){
  .mbs-shop .mbs-product-media,.mbs-shop .mbs-product-media-button{height:175px!important}
  .mbs-shop .mbs-product-bottom button{font-size:11px!important}
}
