/* XaroMarket 0.5.1 — additive presentation layer only.
   Header logo from 0.5.0 is intentionally left untouched. */
:root{--xm-ui-blue:#1258ef;--xm-ui-ink:#0b1933;--xm-ui-border:#e2e8f2;--xm-ui-shadow:0 12px 34px rgba(15,36,72,.075)}
html{min-width:0} body{max-width:100%;overflow-x:clip}body,button,input,select,textarea{font-synthesis:none}
.xm-icons{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.xm-ui-icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;display:block;flex-shrink:0}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid #6da0ff;outline-offset:3px}
button:disabled{cursor:not-allowed}
.xm-storefront{background:#f8faff}
.xm-storefront .market-header{background:linear-gradient(110deg,#061328,#102958)!important}
.market-header .menu-toggle,.market-header .search-toggle,.market-header .header-account,.market-header .header-cart,.market-header .notification-bell{display:grid;place-items:center;line-height:1}
.xm-storefront .market-header .header-cart,.xm-storefront .market-header .header-account{color:#fff}
.xm-storefront .market-header .header-row{gap:14px}
.xm-storefront .market-header .menu-toggle,.xm-storefront .market-header .search-toggle{display:grid;place-items:center}
.xm-storefront .market-search{max-width:1160px!important;box-shadow:0 5px 17px #06132822!important;border-radius:14px!important}
.xm-storefront .market-search button{min-width:112px!important;border-radius:0!important}
.market-category-strip{scrollbar-width:none;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
.market-category-strip::-webkit-scrollbar{display:none}
.market-category-strip .category-tile{scroll-snap-align:start}
.xm-storefront .market-category-strip{background:#071936!important;border-bottom:1px solid #ffffff15!important;color:#fff;gap:10px!important;padding-top:10px!important;padding-bottom:12px!important}
.xm-storefront .category-tile{box-shadow:none!important;border:1px solid #ffffff1b!important;background:#11254a!important;transition:background .16s,transform .16s}
.xm-storefront .category-tile.active{background:#1759eb!important;border-color:#3b82ff!important}
.xm-storefront .category-tile:hover{background:#183562!important;transform:translateY(-1px)}
.xm-storefront .xm-marketplace-shell{border:1px solid var(--xm-ui-border)!important;box-shadow:var(--xm-ui-shadow)!important}
.xm-storefront .xm-catalogue-heading h1{letter-spacing:-.035em!important}
.xm-storefront .xm-catalogue-toolbar{gap:12px;min-width:0}
.xm-storefront .xm-catalogue-toolbar select{max-width:100%}
.xm-storefront .xm-product-grid{align-items:stretch}
.xm-storefront .xm-product-card{display:flex;flex-direction:column;border:1px solid var(--xm-ui-border)!important;box-shadow:0 4px 16px #0f24480a!important}
.xm-storefront .xm-product-card:hover{border-color:#bfcef2!important;box-shadow:0 12px 24px #0f24481a!important}
.xm-storefront .xm-product-image{flex-shrink:0;background:#fff!important}
.xm-storefront .xm-product-image img{object-fit:contain!important;padding:10px!important;transition:transform .22s ease}
@media(hover:hover) and (pointer:fine){.xm-storefront .xm-product-card:hover .xm-product-image img{transform:scale(1.025)}}
.xm-storefront .xm-product-body{display:flex!important;flex:1;flex-direction:column;min-width:0}
.xm-storefront .xm-product-body h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:2.8em!important;max-height:2.8em!important;overflow-wrap:anywhere}
.xm-storefront .xm-product-body .price{margin-top:auto;flex-wrap:wrap;min-width:0}
.xm-storefront .xm-product-body .price b{font-variant-numeric:tabular-nums}
.xm-storefront .xm-product-body .product-card-foot{min-height:22px}
.xm-storefront .xm-card-action{margin-top:10px;flex-shrink:0;box-shadow:none!important;transition:transform .15s,background .15s}
.xm-storefront .xm-card-action:hover:not(:disabled){background:#0648d5!important;transform:translateY(-1px)}
.xm-storefront .xm-product-grid.is-list .xm-product-card{display:grid;flex-direction:unset}
.xm-storefront .xm-product-grid.is-list .xm-product-body{display:flex;justify-content:center}
.xm-storefront .xm-trust-banner{box-shadow:var(--xm-ui-shadow)!important}
.xm-storefront .market-footer{min-width:0}
.xm-storefront .market-footer .footer-col{min-width:0}
.xm-storefront .panel,.xm-storefront .summary{border-color:var(--xm-ui-border)}
.xm-storefront .auth-card input,.xm-storefront .auth-card select,.xm-storefront .auth-card textarea{min-height:44px;max-width:100%}
.xm-storefront .btn.primary{min-height:44px}
.xm-storefront .detail-info h1,.xm-storefront .section-head h1{overflow-wrap:anywhere}
.xm-storefront .market-cart-item{min-width:0}
.xm-storefront .cart-copy{min-width:0;overflow-wrap:anywhere}
.xm-storefront .marketplace-summary{box-shadow:var(--xm-ui-shadow)!important}
.market-drawer{width:min(88vw,380px);background:#fff}
.market-drawer .drawer-head{background:#f9fbff;min-height:75px}
.market-drawer .drawer-section>b{color:#142957}
.market-drawer a:focus-visible,.market-drawer button:focus-visible{outline-offset:-3px}
.xm-mobile-shop-nav{display:none}
/* Back-office: styling only, existing dashboards and route permissions stay unchanged. */
.xm-backoffice .dash-main,.xm-backoffice .dashboard-list-page,.xm-backoffice .dashboard-form-page{min-width:0}
.xm-backoffice .panel,.xm-backoffice .admin-kpi,.xm-backoffice .admin-module-card{overflow-wrap:anywhere}
.xm-backoffice .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.xm-backoffice .dash-top{gap:12px;flex-wrap:wrap}
@media(max-width:1100px){
 .xm-storefront .xm-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .xm-storefront .xm-marketplace-shell,.xm-storefront .xm-trust-banner,.xm-storefront .xm-benefit-strip{margin-left:18px!important;margin-right:18px!important}
}
@media(max-width:900px){
 .xm-storefront .market-header .header-row{height:64px!important;grid-template-rows:64px!important;padding:0 16px!important;gap:10px!important;grid-template-columns:44px minmax(0,1fr) 96px!important}
 .xm-storefront .market-header .header-icons{gap:5px!important;justify-content:flex-end!important}
 .xm-storefront .market-header .header-account,.xm-storefront .market-header .header-cart{width:40px!important;height:40px!important}
 .xm-storefront .market-header .search-toggle{display:none!important}
 .xm-storefront .market-header .market-search{height:45px!important;margin:0 16px 12px!important;width:calc(100% - 32px)!important}
 .xm-storefront .market-search input{font-size:14px!important}
 .xm-storefront .xm-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .xm-storefront .category-tile{flex:0 0 80px!important;min-height:59px!important;padding:7px 5px!important}
 .xm-storefront .xm-catalogue-heading{padding:22px 20px 18px!important}
 .xm-storefront .xm-catalogue-heading h1{font-size:32px!important}
 .xm-storefront .market-footer{gap:24px}
 .xm-backoffice .dash-page{width:auto;overflow:hidden}
}
@media(max-width:650px){
 .xm-storefront .market-header .header-row{grid-template-columns:42px minmax(0,1fr) 88px!important;gap:6px!important;padding:0 12px!important}
 .xm-storefront .market-header .compact-brand{justify-self:start!important;width:clamp(116px,42vw,150px)!important;min-width:0!important;max-width:150px!important;overflow:hidden!important}
 .xm-storefront .market-header .xm-header-logo{width:100%!important;max-width:146px!important;flex:1 1 100%!important;height:44px!important;min-width:0!important;padding:3px!important}
 .xm-storefront .market-header .xm-header-logo img{width:100%!important;height:100%!important;object-fit:contain!important;min-width:0!important;min-height:0!important}
 .xm-storefront .market-header .header-icons{width:auto!important;gap:3px!important;display:flex!important;justify-content:flex-end!important}
 .xm-storefront .market-header .header-account,.xm-storefront .market-header .header-cart{display:grid!important;width:39px!important;height:39px!important;border-radius:12px!important}
 .xm-storefront .market-header .menu-toggle{width:40px;height:40px;border-radius:12px!important}
 .xm-storefront .market-header .market-search{height:44px!important;margin:0 12px 11px!important;width:calc(100% - 24px)!important;border-radius:13px!important}
 .xm-storefront .market-search button{min-width:76px!important;font-size:12px!important}
 .xm-storefront .market-search input{font-size:13px!important;padding:0 12px!important}
 .xm-storefront .market-category-strip{gap:7px!important;padding:7px 12px 10px!important}
 .xm-storefront .category-tile{flex:0 0 75px!important;min-height:58px!important;border-radius:12px!important;padding:6px 4px!important}
 .xm-storefront .category-tile b{font-size:10px!important;white-space:normal!important;display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;overflow-wrap:anywhere}
 .xm-storefront .category-icon{font-size:16px!important;min-height:17px!important;line-height:17px!important}
 .xm-storefront .xm-marketplace-shell{margin:12px 8px 0!important;border-radius:16px!important}
 .xm-storefront .xm-catalogue-heading{padding:16px 14px 12px!important;gap:8px!important;align-items:center!important}
 .xm-storefront .xm-catalogue-heading h1{font-size:26px!important;margin:6px 0 5px!important;letter-spacing:-.8px!important}
 .xm-storefront .xm-catalogue-heading p{font-size:12px!important;line-height:1.45}
 .xm-storefront .xm-catalogue-heading .eyebrow{font-size:10px}
 .xm-storefront .xm-product-count{font-size:10px!important;padding:6px 9px!important;white-space:nowrap}
 .xm-storefront .xm-catalogue-toolbar{padding:11px 12px!important;gap:8px!important;flex-wrap:wrap}
 .xm-storefront .xm-catalogue-toolbar label{flex:1;gap:8px!important;min-width:0}
 .xm-storefront .xm-catalogue-toolbar select{flex:1;max-width:190px!important;min-width:0!important;padding:8px 24px 8px 9px!important;min-height:38px}
 .xm-storefront .xm-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;padding:10px!important}
 .xm-storefront .xm-product-card{border-radius:13px!important}
 .xm-storefront .xm-product-card .xm-product-image{aspect-ratio:1/1!important;height:auto!important;min-height:0!important}
 .xm-storefront .xm-product-card .xm-product-image img{padding:7px!important}
 .xm-storefront .xm-product-body{padding:10px!important}
 .xm-storefront .xm-product-body h3{font-size:12.5px!important;line-height:1.35!important;min-height:2.7em!important;max-height:2.7em!important}
 .xm-storefront .xm-category-name{font-size:10px!important}
 .xm-storefront .market-seller{font-size:9px!important}
 .xm-storefront .xm-product-body .price b{font-size:17px!important;overflow-wrap:anywhere}
 .xm-storefront .xm-product-body .price del{font-size:10px!important}
 .xm-storefront .xm-card-action{min-height:43px!important;font-size:11.5px!important;border-radius:10px!important;line-height:1.2;padding:7px!important}
 .xm-storefront .xm-product-grid.is-list .xm-product-card{grid-template-columns:110px minmax(0,1fr)!important}
 .xm-storefront .xm-product-grid.is-list .xm-product-image{min-height:158px!important;height:100%!important}
 .xm-storefront .xm-product-grid.is-list .xm-product-body{padding:11px!important}
 .xm-storefront .xm-trust-banner,.xm-storefront .xm-benefit-strip{margin-left:8px!important;margin-right:8px!important}
 .xm-storefront .xm-trust-banner{padding:19px 16px!important;grid-template-columns:40px 1fr!important;gap:12px!important}
 .xm-storefront .xm-trust-shield{width:40px;height:40px;border-radius:12px}
 .xm-storefront .xm-trust-banner h2{font-size:20px!important}
 .xm-storefront .xm-benefit-strip>div{padding:13px 8px!important}
 .xm-storefront .market-footer{padding-bottom:98px!important}
 .xm-storefront .auth-card{margin:18px 10px 26px!important;padding:24px 18px!important;max-width:none}
 .xm-storefront .marketplace-detail-info h1{font-size:25px!important}
 .xm-storefront .market-cart-item{grid-template-columns:64px minmax(0,1fr) auto;gap:10px}
 .xm-storefront .market-cart-item .mini-image{width:64px;height:64px}
 .xm-storefront .cart-line-price{font-size:13px}
 .xm-storefront .cart-page{margin-left:10px!important;margin-right:10px!important}
 .xm-storefront .marketplace-summary{position:static}
 .xm-backoffice .dash-main{padding:0!important}
 .xm-backoffice .admin-kpi-grid,.xm-backoffice .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .xm-backoffice .panel{padding:14px}
 .xm-mobile-shop-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;position:fixed;bottom:0;left:0;right:0;z-index:92;background:rgba(255,255,255,.97);border-top:1px solid #dfe7f3;box-shadow:0 -8px 28px #09204318;padding:7px 5px calc(6px + env(safe-area-inset-bottom));min-height:65px;backdrop-filter:blur(12px)}
 .xm-mobile-shop-nav>a,.xm-mobile-shop-nav>button{position:relative;min-width:0;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;min-height:52px;border:0;background:transparent;color:#66758e;font-size:10px;font-weight:750;cursor:pointer;border-radius:10px;padding:3px}
 .xm-mobile-shop-nav .xm-ui-icon{width:23px;height:23px}
 .xm-mobile-shop-nav .active{color:#0b55e8;background:#ecf3ff}
 .xm-mobile-shop-nav i{position:absolute;right:19%;top:0;min-width:16px;height:16px;border-radius:12px;background:#0d55e9;color:#fff;font-size:9px;font-style:normal;display:grid;place-items:center;padding:0 3px}
 .xm-storefront.xm-has-mobile-shop-nav main{padding-bottom:18px}
 .xm-storefront .market-footer{padding-bottom:96px!important}
}
@media(max-width:360px){
 .xm-storefront .market-header .header-row{grid-template-columns:36px minmax(0,1fr) 80px!important;padding:0 8px!important}
 .xm-storefront .market-header .compact-brand{max-width:116px!important}
 .xm-storefront .market-header .header-account,.xm-storefront .market-header .header-cart{width:35px!important}
 .xm-storefront .xm-catalogue-heading h1{font-size:23px!important}
 .xm-storefront .xm-product-body .price b{font-size:16px!important}
 .xm-storefront .xm-card-action{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
