
/* V12.1 responsive marketplace stability fixes */
html{overflow-x:hidden} body{min-width:0}.header-main>*{min-width:0}.category-nav{scrollbar-width:thin}.product-grid,.listing-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important}.product-card{min-width:0}.product-card h3{height:auto!important;min-height:42px;overflow-wrap:anywhere}.product-card-body{min-width:0}.price{align-items:flex-start}.price strong,.price del{overflow-wrap:anywhere}.hero-main h1,.hero-main p{position:relative;z-index:2}.hero-buttons{display:flex;flex-wrap:wrap;gap:10px}.legal-page{max-width:980px}.legal-page section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:22px;margin:16px 0}.legal-page h2{margin-top:0}.consent-row{display:flex;gap:10px;align-items:flex-start}.form-error{padding:12px;border-radius:8px;background:#fff1f2;color:#9f1239;margin-bottom:14px}
@media(min-width:1201px){.product-grid,.listing-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}.header-main{grid-template-columns:minmax(180px,240px) minmax(280px,1fr) minmax(290px,360px)}}
@media(max-width:1200px) and (min-width:901px){.product-grid,.listing-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.head-actions{gap:10px}.head-actions a{font-size:12px}}
@media(max-width:900px){.product-grid,.listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hero-main h1{font-size:clamp(26px,7vw,36px)}.hero-art{opacity:.35}.category-nav .mega-trigger{display:flex}.mega-menu{position:fixed;left:10px;right:10px;top:130px;max-height:60vh;overflow:auto}}
@media(max-width:420px){.product-grid,.listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.product-card-body{padding:9px!important}.product-actions{padding-inline:7px!important}}

/* V12.3 catalog controls, centralized brand and image fit */
.brand-logo{display:inline-flex;align-items:center;gap:10px;min-width:0}.brand-logo img{display:block;width:auto;height:var(--brand-logo-size);max-width:240px;object-fit:contain}.brand-logo strong{font-size:var(--brand-text-size);line-height:1;white-space:nowrap}.brand-mark{width:var(--brand-logo-size);height:var(--brand-logo-size);display:grid;place-items:center;border-radius:22%;background:var(--brand-primary,#ff6b00);color:#fff;font-weight:900;font-size:calc(var(--brand-logo-size)*.36)}
.logo-mark,.panel-brand>span:not(.brand-logo){display:none!important}.panel-brand>.brand-logo{flex:0 0 auto}.footer-logo .brand-logo{align-items:center}
.sort-box{display:flex!important;align-items:end!important;gap:10px!important;flex-wrap:wrap}.sort-box label{width:100%;font-weight:700}.sort-box select{min-width:220px}.sort-submit{min-height:44px}.filter-sidebar form{display:block}.filter-group{border-top:1px solid #eee;padding:10px 0}.filter-group summary{font-weight:800;cursor:pointer;margin-bottom:8px}.check-option{display:grid!important;grid-template-columns:20px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;padding:7px 0!important}.check-option input{width:18px!important;height:18px!important;margin:0!important}.check-option span{overflow-wrap:anywhere;line-height:1.25}.check-option small{color:#777}.price-filter{grid-template-columns:1fr!important}.filter-sidebar select,.filter-sidebar input{font-size:16px}
.product-image{aspect-ratio:1/1;min-height:0!important;display:flex!important;align-items:center;justify-content:center;overflow:hidden;background:#fff}.product-image img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:4%!important;transition:transform .2s}.product-card:hover .product-image img{transform:scale(1.05)}
.gallery-main{aspect-ratio:1/1;min-height:0!important;display:flex!important;align-items:center;justify-content:center;background:#fff}.gallery-main img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:center!important;padding:3%!important}.gallery-thumb img{width:100%;height:100%;object-fit:contain}
.card-store:before{content:none!important}.card-store{padding-left:0!important}
@media(max-width:900px){.listing-head{align-items:stretch!important;flex-direction:column}.sort-box{width:100%}.sort-box select{flex:1;min-width:0}.sort-submit{display:inline-flex}.filter-sidebar.is-open{display:block!important;position:fixed;z-index:999;inset:70px 12px 78px;background:#fff;overflow:auto;border-radius:16px;padding:18px;box-shadow:0 20px 80px #0005}.mobile-filter{display:flex!important}.product-image{aspect-ratio:1/1}.gallery-shell{display:block!important}.gallery-thumbs{display:flex!important;overflow:auto;margin-bottom:10px}.gallery-thumb{min-width:72px;height:72px}.gallery-main{width:100%;aspect-ratio:1/1}}
/* V12.4 database-backed mobile homepage; desktop remains unchanged */
.mobile-home-only{display:none}
@media(max-width:768px){
 body.home-mobile-ready .topbar,body.home-mobile-ready .hero,body.home-mobile-ready .benefits,body.home-mobile-ready .circle-cats,body.home-mobile-ready main>.section,body.home-mobile-ready main>.promo-grid{display:none!important}
 .mobile-home-only{display:block;padding:10px 0 90px;background:#fff}
 .mh-tabs{display:flex;gap:10px;overflow-x:auto;padding:4px 14px 14px;scrollbar-width:none}.mh-tabs a{flex:0 0 auto;border:1px solid #ddd;border-radius:24px;padding:10px 17px;color:#222;font-weight:800;background:#fff}.mh-tabs a.active{background:var(--brand-primary);border-color:var(--brand-primary);color:#fff}
 .mh-banner-row{display:flex;overflow-x:auto;gap:10px;padding:0 14px 14px;scroll-snap-type:x mandatory}.mh-banner{min-width:92%;height:164px;border-radius:16px;overflow:hidden;background:linear-gradient(120deg,#ff6b00,#ff9a4a);color:#fff;scroll-snap-align:center}.mh-banner img{width:100%;height:100%;object-fit:cover}.mh-banner div,.mh-fallback-banner{display:flex;flex-direction:column;justify-content:center;padding:22px}.mh-banner b,.mh-fallback-banner b{font-size:25px}.mh-banner span,.mh-fallback-banner span{margin-top:8px}
 .mh-fallback-banner{margin:0 14px 18px;border-radius:16px;background:linear-gradient(120deg,#ff6b00,#ff9347);color:#fff;min-height:145px}
 .mh-section{padding:8px 14px 18px}.mh-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.mh-head h2{font-size:21px;margin:0}.mh-head a{color:var(--brand-primary);font-weight:800;white-space:nowrap}
 .mh-product-rail{display:flex!important;grid-template-columns:none!important;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}.mh-product-rail .product-card{flex:0 0 66%;max-width:255px;scroll-snap-align:start}.mh-product-rail .product-actions{display:none}.mh-product-rail .product-image{aspect-ratio:4/5}.mh-product-rail .product-image img{padding:0!important;object-fit:contain!important}
 .mh-chip-rail,.mh-category-rail{display:flex;gap:12px;overflow-x:auto}.mh-chip-rail a{flex:0 0 112px;height:80px;border:1px solid #ddd;border-radius:16px;display:grid;place-items:center;font-weight:900;background:#fff}.mh-category-rail a{flex:0 0 112px;text-align:center;color:#222}.mh-category-rail span{display:grid;place-items:center;width:112px;height:112px;border:1px solid #ddd;border-radius:22px;overflow:hidden;background:#fafafa;font-size:40px}.mh-category-rail img{width:100%;height:100%;object-fit:contain}.mh-category-rail b{display:block;margin-top:7px;font-size:13px}
}
.mobile-category-page{padding:25px 14px 100px}.mc-special{display:flex;flex-direction:column;padding:24px;border-radius:16px;background:#ffd4ca;color:#222;margin:18px 0}.mc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mc-grid a>div{height:150px;border-radius:15px;background:#f0f0f0;position:relative;overflow:hidden;padding:18px}.mc-grid b{position:relative;z-index:2;font-size:18px}.mc-grid img{position:absolute;right:0;bottom:0;width:68%;height:88%;object-fit:contain}
@media(min-width:769px){.mobile-category-page{display:none}}
/* V12.5 approved mobile storefront mockup implementation */
@media(max-width:768px){
 body.home-mobile-ready>.header{display:none!important}body.home-mobile-ready main{padding-top:0!important}.mobile-home-only{padding:0 0 92px!important;max-width:100vw;overflow:hidden;font-family:Arial,sans-serif}
 .mh-mobile-header{position:sticky;top:0;z-index:50;background:#fff;display:grid;grid-template-columns:42px minmax(0,1fr) 36px 36px;gap:8px;align-items:center;padding:14px 12px 10px;border-bottom:1px solid #eee}
 .mh-menu-btn{border:0;background:transparent;padding:7px;color:#222}.mh-menu-btn svg{width:30px;height:30px}.mh-search{height:52px;border:1px solid #e4e4e4;background:#f7f7f7;border-radius:28px;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;overflow:hidden}.mh-search button,.mh-search a{border:0;background:transparent;color:var(--brand-primary);font-size:27px;display:grid;place-items:center}.mh-search svg{width:23px;height:23px}.mh-search input{border:0;background:transparent;outline:0;min-width:0;font-size:15px;color:#333}
 .mh-header-icon{position:relative;font-size:25px;color:#222;display:grid;place-items:center}.mh-header-icon b{position:absolute;right:-4px;top:-8px;background:#d50000;color:#fff;border-radius:12px;font-size:10px;line-height:18px;min-width:18px;text-align:center;padding:0 2px}
 .mh-tabs{padding:9px 14px 12px!important;border-bottom:1px solid #eee;gap:10px!important}.mh-tabs a{font-size:14px!important;padding:10px 17px!important;border-radius:24px!important;box-shadow:none!important;white-space:nowrap}.mh-tabs a.active{background:var(--brand-primary)!important}
 .mh-banner-row{padding:12px 14px 8px!important;gap:10px!important}.mh-banner{height:164px!important;min-width:94%!important;border-radius:14px!important;box-shadow:none!important}.mh-banner img{object-fit:cover!important}.mh-default-banner{display:grid!important;grid-template-columns:1.45fr .55fr;background:linear-gradient(105deg,#ff5a00,#ff8a32)!important}.mh-default-banner>div:first-child{padding:22px!important}.mh-default-banner small{font-weight:800}.mh-default-banner b{font-size:25px!important;line-height:1.05;margin:8px 0}.mh-banner-art{display:grid!important;place-items:center!important;font-size:70px!important;padding:0!important;background:#ffffff20}
 .mh-quick-rail{display:flex;gap:16px;overflow-x:auto;padding:13px 14px 18px;scrollbar-width:none}.mh-quick-rail a{flex:0 0 76px;text-align:center;color:#222}.mh-quick-rail span{width:72px;height:72px;border:2px solid #f2b48d;border-radius:22px;background:#fff8f3;display:grid;place-items:center;overflow:hidden;font-size:34px}.mh-quick-rail img{width:100%;height:100%;object-fit:contain;padding:5px}.mh-quick-rail b{display:block;font-size:12px;line-height:1.15;margin-top:7px}
 .mh-section{padding:7px 14px 17px!important}.mh-head{margin-bottom:10px!important}.mh-head h2{font-size:20px!important;font-weight:900}.mh-head a{font-size:14px!important}
 .mh-product-rail{gap:12px!important;padding-bottom:6px!important}.mh-product-card{flex:0 0 48%;max-width:220px;border:1px solid #ddd;border-radius:13px;background:#fff;overflow:hidden;scroll-snap-align:start}.mh-product-card>a{color:#242424}.mh-product-image{height:225px;position:relative;background:#f8f8f8;overflow:hidden}.mh-product-image img{width:100%;height:100%;object-fit:cover}.mh-product-image button{position:absolute;right:8px;top:8px;width:39px;height:39px;border:1px solid #eee;border-radius:50%;background:#fff;font-size:25px}.mh-product-image em{position:absolute;left:8px;top:8px;background:var(--brand-primary);color:#fff;border-radius:15px;padding:5px 8px;font-size:11px;font-style:normal}.mh-product-info{padding:10px}.mh-product-info>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px;font-size:14px}.mh-stars{color:#ffb000;font-size:13px;margin-top:7px}.mh-stars small{color:#555}.mh-product-info span{display:block;color:#0a9b53;font-size:12px;font-weight:800;margin-top:5px}.mh-product-info>b{display:inline-block;color:#15934b;font-size:17px;margin-top:5px}.mh-product-info del{display:block;color:#777;font-size:12px}
 .mh-category-rail{gap:14px!important}.mh-category-rail a{flex:0 0 92px!important}.mh-category-rail span{width:92px!important;height:92px!important;border:2px solid #e5e5e5!important;border-radius:28px!important;background:#fafafa!important}.mh-category-rail img{padding:6px!important;object-fit:contain!important}.mh-category-rail b{font-size:12px!important;line-height:1.15;margin-top:7px!important}
 .mh-brand-rail{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none}.mh-brand-rail a{flex:0 0 112px;height:70px;border:2px solid #e6e6e6;border-radius:18px;display:grid;place-items:center;padding:10px;background:#fff;color:#222;font-weight:900;text-align:center}
}
