
/* Bear Box V18 production stabilization layer */
:root{--bb-readable:16px;--bb-readable-small:14px;--bb-readable-title:20px}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-size:var(--bb-readable);line-height:1.5}
body,input,select,textarea,button{font-family:Montserrat,Poppins,Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.app-shell,.admin-shell,.portal-shell{font-size:var(--bb-readable)}
h1,.page-header h1,.topbar h1,.bb-premium-header h1{font-size:clamp(1.35rem,5vw,1.75rem)!important;line-height:1.18}
h2,.section-head h2{font-size:clamp(1.15rem,4.3vw,1.45rem)!important;line-height:1.25}
h3{font-size:clamp(1.02rem,3.9vw,1.25rem)!important}
p,.product-meta,.table-sub,small{font-size:max(var(--bb-readable-small),.88rem)!important;line-height:1.45}
.product-name,.cart-item b,.list-item b,.delivery-card-v40 h3{font-size:1.02rem!important;line-height:1.3;font-weight:800!important}
.price,.wallet-balance-v27,.summary-card strong{font-size:1.08rem!important;font-weight:900!important}
button,.primary-button,.secondary-button,.add-button,.icon-button,.bottom-nav a{font-size:.95rem!important;font-weight:800!important;min-height:44px}
.bottom-nav .nav-icon{font-size:1.35rem!important}
.admin-sidebar a,.admin-sidebar button,.sidebar a,.sidebar button{font-size:1rem!important;line-height:1.35!important}
.data-table th,.data-table td{font-size:.95rem!important;line-height:1.4!important}
.product-media,.category-icon-v39 img,.bb-cat img,.dynamic-category-v39 img{overflow:hidden}
.product-media img,.category-icon-v39 img,.bb-cat img,.dynamic-category-v39 img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.bb-location-pending{color:#8a5a00!important;background:#fff7d6;border:1px solid #f5d66b;border-radius:12px;padding:8px 10px}
.bb-location-ready{color:#087443!important}
.bb-sync-state{display:inline-flex;gap:6px;align-items:center;font-size:.82rem;font-weight:800;color:#356b50}
.bb-skeleton{position:relative;overflow:hidden;background:#e9f2ed!important;color:transparent!important;border-color:transparent!important}
.bb-skeleton:after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent);animation:bbShimmer 1.1s infinite}
@keyframes bbShimmer{to{transform:translateX(100%)}}
.bb-marketplace-v18{background:linear-gradient(135deg,#087443,#13a864);color:#fff;border-radius:24px;padding:22px;box-shadow:0 18px 38px rgba(8,116,67,.22);position:relative;overflow:hidden}
.bb-marketplace-v18:after{content:"🐻";position:absolute;right:15px;bottom:-14px;font-size:6rem;opacity:.16}
.bb-marketplace-v18 .eyebrow{font-size:.82rem;font-weight:900;letter-spacing:.11em;color:#f8dd6c}
.bb-marketplace-v18 h2{color:#fff!important;margin:7px 0!important}
.bb-marketplace-v18 p{color:rgba(255,255,255,.9)!important;margin:0;max-width:78%}
@media(max-width:520px){
 body{font-size:16px}.app-shell{width:100%;max-width:100%;min-height:100dvh}
 .section{padding-left:14px!important;padding-right:14px!important}
 .bottom-nav{font-size:.88rem!important}
 .product-name{font-size:1rem!important}.product-meta{font-size:.86rem!important}.price{font-size:1.08rem!important}
}

/* V18.2 final deploy polish: compact Admin product thumbnails only */
.bb-admin .pm-product-cell-v42{display:flex!important;align-items:center!important;gap:14px!important;min-width:245px}
.bb-admin .pm-product-cell-v42 img{width:82px!important;height:82px!important;min-width:82px!important;max-width:82px!important;flex:0 0 82px!important;border-radius:14px!important;object-fit:cover!important;object-position:center!important;display:block!important;background:#eef5ef!important;box-shadow:0 5px 14px rgba(8,75,42,.10)}
.bb-admin .pm-product-cell-v42>div{min-width:0}
@media(max-width:760px){.bb-admin .pm-product-cell-v42{min-width:210px;gap:10px!important}.bb-admin .pm-product-cell-v42 img{width:64px!important;height:64px!important;min-width:64px!important;max-width:64px!important;flex-basis:64px!important;border-radius:12px!important}}
