/* Mobile homepage only. Desktop, tablet and global section margins are unchanged. */
.home-device-mobile [data-ms-section]{min-width:0;box-sizing:border-box}
.home-device-mobile [data-ms-hide-hidden="true"]{display:none!important}
.home-device-mobile [data-ms-section]>.container{box-sizing:border-box;max-width:100%!important;padding-inline:var(--mh-inset,0px)}
.home-device-mobile [data-ms-section] :is(.home-grid,.recommendations-grid,.products-grid){grid-template-columns:repeat(var(--mh-columns,2),minmax(0,1fr))!important;gap:var(--mh-gap,12px)}
.home-device-mobile [data-ms-section] :is(.home-grid-card,.recommendation-card,.top-brand-card,.category-showcase-card,.product-card){min-width:0;box-sizing:border-box}
.home-device-mobile [data-ms-layout="grid"] :is(.top-brands-track,.category-showcase-track){display:grid;grid-template-columns:repeat(var(--mh-columns,2),minmax(0,1fr));gap:var(--mh-gap,12px);width:100%;transform:none!important}
.home-device-mobile [data-ms-layout="grid"] :is(.top-brand-card,.category-showcase-card){width:100%;max-width:100%;flex-basis:auto}
.home-device-mobile [data-ms-layout="grid"] :is(.top-brands-arrows,.category-showcase-arrows){display:none}
.home-device-mobile [data-ms-section] :is(.top-brands-track,.category-showcase-track){gap:var(--mh-gap,12px)}
.home-device-mobile [data-ms-layout="rail"] :is(.home-grid,.recommendations-grid,.products-grid){display:flex!important;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;gap:var(--mh-gap,12px);padding-bottom:8px;max-width:100%}
.home-device-mobile [data-ms-layout="rail"] :is(.home-grid,.recommendations-grid,.products-grid)>*{flex:0 0 min(var(--mh-card-width,150px),85vw);width:min(var(--mh-card-width,150px),85vw);scroll-snap-align:start}
.home-device-mobile [data-ms-layout="rail"] :is(.top-brand-card,.category-showcase-card){flex:0 0 min(var(--mh-card-width,150px),85vw);width:min(var(--mh-card-width,150px),85vw)}
.home-device-mobile [data-ms-section] :is(.category-showcase-rail,.top-brands-rail){max-width:100%;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
.home-device-mobile [data-ms-section] :is(.category-showcase-card,.top-brand-card){scroll-snap-align:start}
.home-device-mobile [data-ms-section] .top-brand-card{height:auto;min-height:var(--brand-card-h,80px);padding:8px;gap:4px}
.home-device-mobile [data-ms-section] .top-brand-logo{min-height:24px;height:clamp(24px,calc(var(--brand-card-h,80px) - 70px),100px);flex:none}
.home-device-mobile [data-ms-section] .top-brand-logo img{max-height:100%}
.home-device-mobile [data-ms-section] :is(.category-showcase-arrow,.top-brands-arrow){width:32px;height:32px;min-width:32px;min-height:32px;position:relative;font-size:23px}
.home-device-mobile [data-ms-section] :is(.category-showcase-arrow,.top-brands-arrow)::after{content:"";position:absolute;inset:-6px}
.home-device-mobile [data-ms-section] .category-showcase-arrow svg{width:18px;height:18px}
.home-device-mobile [data-ms-section] :is(.category-showcase-arrows,.top-brands-arrows){gap:12px;padding:6px}
.home-device-mobile [data-ms-section] .recommendations-head{flex-wrap:wrap;gap:10px}
.home-device-mobile [data-ms-section] :is(.recommendation-title,.top-brand-name,.category-showcase-card>strong){overflow-wrap:anywhere;min-width:0}
.home-device-mobile [data-ms-section] .recommendation-price-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;margin-top:auto;text-align:center}
.home-device-mobile [data-ms-section] .recommendation-price-row>strong{font-weight:900;overflow-wrap:anywhere;max-width:100%}
.home-device-mobile [data-ms-section] .recommendation-price-row>del{flex-basis:100%}
.home-device-mobile [data-ms-section] .home-single-banner-inner{min-height:0;max-width:100%;box-sizing:border-box;overflow:hidden}
.home-device-mobile [data-ms-section] .home-single-banner-copy{min-width:0;max-width:65%;padding:12px;box-sizing:border-box}
.home-device-mobile [data-ms-section] .home-single-banner-copy strong{overflow-wrap:anywhere;font-size:clamp(16px,4vw,24px)}
.home-device-mobile [data-ms-section] .home-single-banner-art{min-width:0;max-width:45%;height:100%}
.home-device-mobile [data-ms-section] .home-single-banner-art img{width:100%;height:100%;object-fit:contain}
.home-device-mobile [data-ms-section] .home-grid-card{overflow:hidden}
.home-device-mobile [data-ms-section] .home-grid-overlay{min-width:0;max-width:100%;padding:12px}
.home-device-mobile [data-ms-section] .home-grid-overlay :is(strong,small,em){overflow-wrap:anywhere;max-width:100%}
/* Custom typography and image overrides apply after an explicit save. */
.home-device-mobile [data-ms-saved="true"] :is(.home-grid-card>img,.home-single-banner-inner>img,.home-single-banner-art img,.top-brand-logo img,.category-showcase-image img,.recommendation-image img,.p-media img){object-fit:var(--mh-fit,contain)!important;object-position:var(--mh-position,center)!important}
.home-device-mobile [data-ms-saved="true"] :is(.section-head h2,.recommendations-head h2){font-size:var(--mh-title-size,18px)!important;color:var(--mh-heading-color)}
.home-device-mobile [data-ms-saved="true"] :is(.top-brand-name,.category-showcase-card>strong,.recommendation-title,.home-grid-overlay>strong,.home-single-banner-copy>strong,.promo-copy h2,.p-title){font-size:var(--mh-item-size,13px)!important;color:var(--mh-item-color);line-height:1.9;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--mh-title-lines,2);overflow:hidden}
.home-device-mobile [data-ms-saved="true"] :is(.recommendation-price-row>strong,.p-price>strong){font-size:var(--mh-price-size,15px)!important;color:var(--mh-price-color)}
.home-device-mobile [data-ms-saved="true"] :is(.home-grid-card,.home-single-banner-inner,.top-brand-card,.category-showcase-card,.recommendation-card,.p-card){border:var(--mh-border-width,0px) solid var(--mh-border-color,#e5e7eb)}
.home-device-mobile [data-ms-vertical]:not([data-ms-vertical="inherit"]) .home-grid-overlay{top:12px;bottom:12px}
.home-device-mobile [data-ms-align="center"] :is(.home-grid-overlay,.home-single-banner-copy,.promo-copy,.recommendation-card,.top-brand-card,.category-showcase-card){text-align:center;align-items:center}
.home-device-mobile [data-ms-align="right"] :is(.home-grid-overlay,.home-single-banner-copy,.promo-copy,.recommendation-card,.top-brand-card,.category-showcase-card){text-align:right;align-items:flex-start}
.home-device-mobile [data-ms-align="left"] :is(.home-grid-overlay,.home-single-banner-copy,.promo-copy,.recommendation-card,.top-brand-card,.category-showcase-card){text-align:left;align-items:flex-end}
.home-device-mobile [data-ms-vertical="top"] :is(.home-grid-overlay,.home-single-banner-copy,.promo-copy){align-self:stretch;justify-content:flex-start}
.home-device-mobile [data-ms-vertical="middle"] :is(.home-grid-overlay,.home-single-banner-copy,.promo-copy){align-self:stretch;justify-content:center}
.home-device-mobile [data-ms-vertical="bottom"] :is(.home-grid-overlay,.home-single-banner-copy,.promo-copy){align-self:stretch;justify-content:flex-end}
.home-device-mobile [data-ms-section] :is(.home-single-banner-copy,.promo-copy){display:flex;flex-direction:column}
.home-device-mobile [data-ms-hide-heading="true"] :is(.section-head h2,.recommendations-title-wrap h2){display:none!important}
.home-device-mobile [data-ms-hide-heading="true"] .recommendations-title-wrap::before{display:none!important}
.home-device-mobile [data-ms-align]:not([data-ms-align="inherit"]) :is(.recommendation-title,.top-brand-name,.p-title){text-align:inherit}
.home-device-mobile [data-ms-hide-subtitle="true"] :is(.section-head p,.recommendations-subtitle,.home-grid-overlay small,.home-single-banner-sub,.promo-copy p){display:none!important}
.home-device-mobile [data-ms-hide-image="true"] :is(.home-grid-card>img,.home-single-banner-art,.home-single-banner-inner>img,.top-brand-logo,.category-showcase-image,.recommendation-image,.p-media){display:none!important}
.home-device-mobile [data-ms-hide-name="true"] :is(.top-brand-name,.category-showcase-card>strong,.recommendation-title,.home-grid-overlay>strong,.home-single-banner-copy>strong,.promo-copy h2,.p-title){display:none!important}
.home-device-mobile [data-ms-hide-price="true"] :is(.recommendation-price-row,.p-price){display:none!important}
.home-device-mobile [data-ms-hide-old-price="true"] :is(.recommendation-price-row del,.p-price del){display:none!important}
.home-device-mobile [data-ms-hide-labels="true"] :is(.recommendation-installment,.recommendation-discount,.product-custom-label,.p-badge-deal,.p-badge-sale){display:none!important}
.home-device-mobile [data-ms-hide-badge="true"] :is(.hero-badge,.home-single-banner-badge){display:none!important}
.home-device-mobile [data-ms-hide-cta="true"] :is(.home-grid-overlay em,.home-single-banner-cta,.promo-copy .btn){display:none!important}
.home-device-mobile [data-ms-hide-all="true"] :is(.link-more,.recommendations-all,.category-showcase-all){display:none!important}
.home-device-mobile [data-ms-hide-arrows="true"] :is(.category-showcase-arrows,.top-brands-arrows){display:none!important}
.home-device-mobile [data-ms-hide-count="true"] :is(.top-brand-count,.category-showcase-card>small){display:none!important}
@media(prefers-reduced-motion:reduce){.home-device-mobile [data-ms-section] *{scroll-behavior:auto!important}}

/* Category title and navigation share one row; subtitle remains below its title. */
.home-device-mobile [data-home-section="categories"] .category-showcase-head{display:grid;direction:rtl;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:6px 12px}
.home-device-mobile [data-home-section="categories"] .category-showcase-head>div:first-child{display:contents}
.home-device-mobile [data-home-section="categories"] .category-showcase-head h2{grid-column:1;grid-row:1;min-width:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.7;font-size:var(--mh-title-size,18px);color:var(--mh-heading-color,#1a3c34)}
.home-device-mobile [data-home-section="categories"] .category-showcase-head p{grid-column:1/-1;grid-row:2;margin:0}
.home-device-mobile [data-home-section="categories"] .category-showcase-side{grid-column:2;grid-row:1;width:auto;align-self:center}
