/* Consumer-only presentation; canonical catalog/cart remain authoritative. */
.consumer-nav{position:fixed;inset:auto 0 0;z-index:100;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px max(8px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#fff;border-top:1px solid #d6ded8;box-shadow:0 -2px 10px #00000008}
.consumer-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:52px;gap:2px;color:#354b3c;text-decoration:none;font:600 12px/1.2 system-ui;border-radius:8px}
.consumer-nav a[aria-current=page]{color:#075d2c;background:#edf7ef;border-top:3px solid #087237}.consumer-nav .material-symbols-outlined{font-size:24px}
.consumer-nav a:focus-visible,.consumer-page :is(a,button,input):focus-visible{outline:3px solid #163fca;outline-offset:2px}
body.consumer-page{margin:0;background:#fff;color:#19291e;font:16px/1.5 system-ui;padding-bottom:calc(84px + env(safe-area-inset-bottom))}.consumer-page *{box-sizing:border-box}.consumer-header,.consumer-content{max-width:760px;margin:auto;padding:16px}.consumer-header a,.consumer-page a{color:#075d2c}.consumer-page h1{font-size:26px}.consumer-panel{border:1px solid #dce5df;border-radius:12px;padding:16px;margin:16px 0;overflow-wrap:anywhere}.consumer-panel h2{font-size:19px;margin-top:0}.consumer-panel label{display:block;margin:12px 0}.consumer-panel input{display:block;width:100%;min-height:46px;font:inherit;border:1px solid #7b8d80;border-radius:8px;padding:10px}.consumer-panel button{min-height:46px;padding:10px 20px;font:600 16px system-ui;color:white;background:#07682f;border:0;border-radius:8px}.consumer-error{border-left:4px solid #b00020;padding:8px 16px;color:#8b0019}.consumer-page svg{max-width:24px}
body.commerce-storefront:not(.restaurant-menu){padding-bottom:calc(84px + env(safe-area-inset-bottom));background-color:#fff}
@media(max-width:900px){
.commerce-storefront:not(.restaurant-menu) .topbar{min-height:60px;padding-block:6px}
.commerce-storefront:not(.restaurant-menu) .topbar-search-panel{margin-block:4px}
.commerce-storefront:not(.restaurant-menu) .topbar-search-box{min-height:44px}
.commerce-storefront:not(.restaurant-menu) .store-content{padding-top:4px}
.commerce-storefront:not(.restaurant-menu) .commerce-banner-slide{height:116px}
.commerce-storefront:not(.restaurant-menu) .commerce-banner-copy{padding-block:8px}
.commerce-storefront:not(.restaurant-menu) .products-grid{gap:10px;margin-top:8px}
.commerce-storefront:not(.restaurant-menu) .product-card>.product-image{aspect-ratio:1.6;padding:6px}
.commerce-storefront:not(.restaurant-menu) .product-name-link{display:block;overflow:visible;-webkit-line-clamp:unset;min-height:38px;font-size:14px;line-height:1.25}
.commerce-storefront:not(.restaurant-menu) .product-info{padding:0 8px 8px}
.commerce-storefront:not(.restaurant-menu) .product-price{margin:0;min-height:28px}
.commerce-storefront:not(.restaurant-menu) .shopping-cart{bottom:calc(64px + env(safe-area-inset-bottom));max-height:calc(100dvh - 80px - env(safe-area-inset-bottom))}
.commerce-storefront:not(.restaurant-menu) .mobile-purchase-action{padding-block:5px;min-height:48px}
}

/* Compact mobile catalog: retain readable type and 44px purchase controls. */
@media(max-width:900px){
.commerce-storefront:not(.restaurant-menu) .topbar-search-panel{margin-block:0;padding-block:4px}
.commerce-storefront:not(.restaurant-menu) .topbar-search-box{height:44px}
.commerce-storefront:not(.restaurant-menu) .mobile-purchase-actions{margin-block:0 6px}
.commerce-storefront:not(.restaurant-menu) .mobile-purchase-action{min-height:44px;padding-block:3px;gap:0}
.commerce-storefront:not(.restaurant-menu) .commerce-banner{margin-bottom:4px}
.commerce-storefront:not(.restaurant-menu) .commerce-banner-slide{height:auto;min-height:96px}
.commerce-storefront:not(.restaurant-menu) .commerce-banner-copy{padding:4px 16px;gap:2px;min-height:96px;height:auto}
.commerce-storefront:not(.restaurant-menu) .commerce-banner-copy>strong{font-size:18px}
.commerce-storefront:not(.restaurant-menu) .commerce-banner-copy>a{padding-block:4px;min-height:44px}
.commerce-storefront:not(.restaurant-menu) .commerce-category{height:62px;padding-block:3px;gap:2px}
.commerce-storefront:not(.restaurant-menu) .commerce-category>img{width:34px;height:34px}
.commerce-storefront:not(.restaurant-menu) .commerce-category-rail{padding-bottom:2px}
.commerce-storefront:not(.restaurant-menu) .commerce-products-heading{margin-block:0 4px}
.commerce-storefront:not(.restaurant-menu) .products-grid{margin-top:4px;gap:8px}
.commerce-storefront:not(.restaurant-menu) .product-card>.product-image{height:clamp(76px,21vw,96px);aspect-ratio:auto;padding:4px}
.commerce-storefront:not(.restaurant-menu) .product-name,
.commerce-storefront:not(.restaurant-menu) .product-name-link{min-height:35px}
.commerce-storefront:not(.restaurant-menu) .product-price{min-height:26px;padding-block:1px 3px}
.commerce-storefront:not(.restaurant-menu) .product-info{padding-bottom:6px}
.commerce-storefront:not(.restaurant-menu) .product-card-actions{padding-top:2px}
}

/* Buyer access has one server-rendered form; horizontal touch scrolling remains. */
.consumer-auth-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}
.consumer-auth-switch a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;border:1px solid #7b8d80;border-radius:8px;text-decoration:none;font-weight:600;text-align:center}
.consumer-auth-switch a[aria-current=page]{background:#edf7ef;border:2px solid #075d2c;text-decoration:underline;text-underline-offset:4px}
.commerce-storefront:not(.restaurant-menu) .commerce-category-rail{scrollbar-width:none;-ms-overflow-style:none}
.commerce-storefront:not(.restaurant-menu) .commerce-category-rail::-webkit-scrollbar{display:none;width:0;height:0}

/* Mobile catalog width only: keep hero, search, navigation and image height intact. */
@media(max-width:600px){
 .commerce-storefront:not(.restaurant-menu):not(.market-storefront) .catalog>.products-grid{
  margin-left:max(-4px,calc(env(safe-area-inset-left) - 12px));
  margin-right:max(-4px,calc(env(safe-area-inset-right) - 12px));
  column-gap:6px;
 }
 .commerce-storefront:not(.restaurant-menu):not(.market-storefront) .catalog>.products-grid[data-visible-count="1"]{grid-template-columns:minmax(0,calc((100% - 6px)/2))}
 .commerce-storefront:not(.restaurant-menu):not(.market-storefront) .catalog>.products-grid .product-info{padding-inline:6px}
}


/* LOY_CONSUMER_NAV_COMPACT_V3 */

/* Barra inferior más delgada */
.consumer-nav {
    box-sizing: border-box !important;

    padding-top: 2px !important;
    padding-bottom: calc(
        2px + env(safe-area-inset-bottom, 0px)
    ) !important;

    min-height: 0 !important;
    height: auto !important;
}

/* Opciones compactas, conservando área táctil */
.consumer-nav a {
    min-height: 48px !important;

    padding: 2px 4px !important;
    gap: 1px !important;

    font-size: 11px !important;
    line-height: 1.1 !important;
}

/* Iconos más pequeños */
.consumer-nav .material-symbols-outlined {
    font-size: 20px !important;
    line-height: 1 !important;
}

/* Mantener selección visual */
.consumer-nav a[aria-current="page"] {
    border-top-width: 2px !important;
}
