/* Independent mobile commerce presentation. Desktop rules are untouched. */
.mobile-commerce-nav{display:none}
@media(max-width:700px){
:root{--m-orange:#F56A16;--m-price:#E53935;--m-bg:#F5F6F8}
body.homepage-body,body.catalog-page,body.product-detail-page{background:var(--m-bg);color:#222;padding-bottom:calc(66px + env(safe-area-inset-bottom))}
.mobile-commerce-nav{position:fixed;z-index:1000;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-height:62px;padding:6px 5px calc(6px + env(safe-area-inset-bottom));box-sizing:border-box;background:rgba(255,255,255,.97);border-top:1px solid #e9e9e9;box-shadow:0 -4px 18px rgba(0,0,0,.07)}
.mobile-commerce-nav a{min-width:0;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#666;text-decoration:none;font-size:11px}
.mobile-commerce-nav a[aria-current=page]{color:var(--m-orange);font-weight:700}
body.homepage-body>.hero.hero-fullbleed{height:clamp(570px,76svh,660px)!important;min-height:0!important;max-height:none!important;overflow:hidden}
.hero-fullbleed .hero-banner,.hero-fullbleed .hero-banner-scene{height:100%;min-height:0}
.hero-fullbleed .hero-copy{width:calc(100% - 32px)!important;max-width:420px!important;box-sizing:border-box;margin-inline:auto;padding-inline:0!important}
.hero-fullbleed .hero-copy h1{max-width:100%;font-size:clamp(30px,8vw,38px)!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere;text-wrap:balance}
.hero-fullbleed .hero-copy p{max-width:100%;font-size:14px!important;line-height:1.55}
.hero-feature-points{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:min(100%,370px)!important;max-width:100%!important;gap:8px!important;box-sizing:border-box}
.hero-feature-points>*{min-width:0!important;max-width:100%!important;box-sizing:border-box;padding:10px 9px!important;white-space:normal!important;font-size:13px!important;line-height:1.35!important}
.hero-feature-points>* small,.hero-feature-points>* em{font-size:12px!important;white-space:normal!important}
.hero-fullbleed .btn{min-height:46px;padding-inline:22px}.home-products-section{padding-top:24px!important}
#productCarousel{max-width:100%}.chat-widget{right:12px!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;z-index:1002!important}.chat-toggle{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:50%!important;font-size:20px!important;box-shadow:0 4px 14px rgba(0,0,0,.22)!important}.chat-toggle span{display:none!important}.chat-panel{bottom:60px!important;right:0!important;max-height:calc(100dvh - 130px)!important}
.catalog-page .catalog-hero{height:auto!important;min-height:560px!important;max-height:none!important;aspect-ratio:auto!important;overflow:hidden;background-size:cover!important;background-position:center 54%!important}
.catalog-page .catalog-hero>.wrap{position:absolute!important;inset:0!important;left:50%!important;transform:translateX(-50%)!important;width:calc(100% - 32px)!important;height:100%!important;min-height:0!important;max-width:none!important;box-sizing:border-box!important;padding:78px 0 20px!important;overflow:visible!important;justify-content:flex-start!important}
.catalog-page .catalog-hero>.wrap>h1{display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:0!important;margin:6px 0 10px!important;font-size:clamp(27px,7.4vw,34px)!important;line-height:1.22!important;white-space:normal!important;overflow-wrap:anywhere!important;text-wrap:balance!important}
.catalog-page .catalog-hero>.wrap>small{max-width:100%!important;white-space:normal!important}
.catalog-page .catalog-hero>.wrap>p{width:100%!important;max-width:100%!important;box-sizing:border-box;font-size:14px!important;line-height:1.6!important;overflow-wrap:anywhere}
.catalog-page .catalog-hero .catalog-hero-features{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;max-width:100%!important;box-sizing:border-box;gap:8px!important;margin-top:auto!important;padding:8px!important}
.catalog-page .catalog-hero .catalog-feature{min-width:0!important;padding:8px!important;gap:7px!important;box-sizing:border-box;align-items:center!important}
.catalog-page .catalog-hero .catalog-feature strong{font-size:12px!important;white-space:normal!important}.catalog-page .catalog-hero .catalog-feature em{font-size:11px!important;white-space:normal!important}
.catalog-page .catalog-section{padding:18px 12px 28px!important}.catalog-page .catalog-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:14px!important;margin-bottom:18px!important;padding:16px!important;border-radius:16px!important;background:#fff}
.catalog-page .catalog-toolbar h2{font-size:20px!important}.catalog-page .category-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%;box-sizing:border-box}
.catalog-page .category-pill{min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:9px 8px!important;text-align:center;white-space:normal;overflow-wrap:anywhere;border-radius:11px!important;background:#fff}
.catalog-page .catalog-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%;box-sizing:border-box}
.catalog-page .catalog-card{min-width:0;overflow:hidden;border-radius:14px!important;background:#fff}.catalog-page .catalog-card .catalog-image{width:100%;height:auto!important;aspect-ratio:1/1;box-sizing:border-box;padding:9px!important;background:#fff}
.catalog-page .catalog-card .catalog-image img{width:100%;height:100%;object-fit:contain}.catalog-page .catalog-card-body{min-width:0;padding:11px!important}.catalog-page .catalog-card-body h3{font-size:14px!important;overflow-wrap:anywhere}
.catalog-page .catalog-price-comparison{min-width:0}.catalog-page .catalog-price-comparison *{overflow-wrap:anywhere}
}
@media(max-width:380px){.hero-feature-points>*{padding:8px 6px!important;font-size:12px!important}.catalog-page .catalog-hero>.wrap{width:calc(100% - 26px)!important}.catalog-page .catalog-toolbar,.catalog-page .catalog-section{padding-inline:10px!important}.catalog-page .catalog-grid{gap:9px!important}}
@media(max-width:700px){
html body.catalog-page .catalog-hero{height:310px!important;min-height:310px!important;max-height:310px!important;aspect-ratio:auto!important;background-size:cover!important;background-position:68% center!important}
html body.catalog-page .catalog-hero>.wrap{height:100%!important;min-height:0!important;max-height:310px!important;padding:62px 16px 12px!important;box-sizing:border-box!important;overflow:hidden!important}
html body.catalog-page .catalog-hero .catalog-hero-features{margin-top:auto!important;position:relative!important;left:auto!important;right:auto!important;bottom:auto!important}
body.homepage-body .home-products-section .products-heading p{padding-right:64px!important;box-sizing:border-box!important}
}
/* Phase 7 real-device overflow corrections: high-specificity overrides for legacy inline rules. */
@media (max-width:700px) {
  html body.homepage-body .hero.hero-fullbleed .hero-copy { width:calc(100% - 32px)!important; max-width:420px!important; min-width:0!important; box-sizing:border-box!important; margin-inline:auto!important; }
  html body.homepage-body .hero.hero-fullbleed .hero-copy .hero-feature-points { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box!important; gap:8px!important; }
  html body.homepage-body .hero.hero-fullbleed .hero-feature-points>span { min-width:0!important; max-width:100%!important; box-sizing:border-box!important; white-space:normal!important; overflow-wrap:anywhere!important; text-align:center!important; }
  html body.catalog-page main .catalog-hero { width:100%!important; min-width:0!important; box-sizing:border-box!important; }
  html body.catalog-page main .catalog-hero>.wrap { left:50%!important; right:auto!important; transform:translateX(-50%)!important; width:calc(100% - 32px)!important; max-width:620px!important; min-width:0!important; box-sizing:border-box!important; padding:66px 0 14px!important; overflow:visible!important; }
  html body.catalog-page main .catalog-hero>.wrap>h1 { width:100%!important; max-width:100%!important; min-width:0!important; font-size:clamp(25px,7.4vw,34px)!important; line-height:1.22!important; white-space:normal!important; overflow-wrap:anywhere!important; word-break:normal!important; text-wrap:pretty!important; }
  html body.catalog-page main .catalog-hero>.wrap>p { width:100%!important; max-width:100%!important; min-width:0!important; overflow-wrap:anywhere!important; }
  html body.catalog-page main .catalog-hero .catalog-hero-features { width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box!important; }
  html body.catalog-page main .catalog-section, html body.catalog-page main .catalog-section>.wrap { width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box!important; }
  html body.catalog-page main .catalog-category-grid { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important; width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box!important; }
  html body.catalog-page main .catalog-category-grid>.catalog-category-tile { width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box!important; overflow-wrap:anywhere!important; }
  html body.catalog-page main .catalog-products-toolbar, html body.catalog-page main .catalog-title-block { min-width:0!important; max-width:100%!important; box-sizing:border-box!important; }
  html body.catalog-page main .catalog-title-block h2 { max-width:100%!important; font-size:clamp(20px,6vw,24px)!important; white-space:normal!important; overflow-wrap:anywhere!important; }
  html body.catalog-page main .catalog-grid { width:100%!important; max-width:100%!important; min-width:0!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; box-sizing:border-box!important; }
  html body.catalog-page main .catalog-card, html body.catalog-page main .catalog-card-body, html body.catalog-page main .catalog-card .catalog-image { min-width:0!important; max-width:100%!important; box-sizing:border-box!important; }
  html body.catalog-page main .catalog-card .catalog-image { height:auto!important; aspect-ratio:1/1!important; }
  html body.catalog-page main .catalog-card .catalog-image img { width:100%!important; height:100%!important; object-fit:contain!important; }
  html body.product-detail-page main.product-detail-main { width:100%!important; max-width:100%!important; padding:18px 14px 84px!important; box-sizing:border-box!important; }
  html body.product-detail-page main.product-detail-main .product-detail-layout { display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:18px!important; width:100%!important; max-width:100%!important; min-width:0!important; margin-inline:auto!important; box-sizing:border-box!important; }
  html body.product-detail-page .product-gallery-column, html body.product-detail-page .product-gallery, html body.product-detail-page .product-info-panel { width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box!important; }
  html body.product-detail-page .product-gallery-column { position:static!important; }
  html body.product-detail-page .product-gallery { height:min(78vw,390px)!important; min-height:240px!important; padding:8px!important; }
  html body.product-detail-page .product-gallery .slide { max-width:100%!important; max-height:100%!important; width:auto!important; height:auto!important; object-fit:contain!important; }
  html body.product-detail-page .product-info-panel { padding:18px!important; }
  html body.homepage-body .mobile-commerce-nav, html body.catalog-page .mobile-commerce-nav, html body.product-detail-page .mobile-commerce-nav { left:0!important; right:0!important; width:100%!important; max-width:100%!important; grid-template-columns:repeat(5,minmax(0,1fr))!important; gap:0!important; box-sizing:border-box!important; }
  html body.homepage-body .mobile-commerce-nav a, html body.catalog-page .mobile-commerce-nav a, html body.product-detail-page .mobile-commerce-nav a { min-width:0!important; max-width:100%!important; padding-inline:1px!important; box-sizing:border-box!important; font-size:10px!important; white-space:nowrap!important; }
}
@media (max-width:380px) {
  html body.catalog-page main .catalog-hero>.wrap { width:calc(100% - 24px)!important; }
  html body.catalog-page main .catalog-category-grid { gap:8px!important; }
  html body.product-detail-page main.product-detail-main { padding-inline:10px!important; }
}
/* Xiaomi MIUI Browser: avoid filtered/composited gallery image blank paint. */
@media (max-width:700px) {
  html body.product-detail-page .product-gallery .slide {
    filter:none!important;
    -webkit-filter:none!important;
    transform:none!important;
    -webkit-transform:none!important;
    position:relative!important;
    z-index:1!important;
  }
}

/* MIUI touch hit-area and stacking compatibility for product header. */
@media (max-width:700px){html body.product-detail-page .product-page-header{position:relative;z-index:1200}html body.product-detail-page .product-page-header .wrap.nav{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:64px;padding-inline:12px;box-sizing:border-box}html body.product-detail-page .product-page-header .menu{position:relative;z-index:1202;display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;min-width:48px;min-height:48px;margin:0;padding:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent;pointer-events:auto}html body.product-detail-page .product-page-header .nav>nav{z-index:1201;touch-action:pan-y}html body.product-detail-page .product-page-header .nav>nav.open{display:flex}html body.product-detail-page .product-page-header .logo{min-width:0;flex:1}html body.product-detail-page .product-page-header .logo img{max-width:100%;object-fit:contain}}
