/* Scoped to the existing Extendable theme. Desktop rules remain untouched. */
@media(max-width:999px){
 body.soseika-mobile-layout .soseika-header{padding:16px 20px 12px!important}
 body.soseika-mobile-layout .soseika-header>.wp-block-group{padding-inline:0!important}
 body.soseika-mobile-layout .soseika-header .alignwide{max-width:100%;min-width:0;margin-inline:0!important}
 body.soseika-mobile-layout .soseika-header .wp-block-site-title{font-size:clamp(22px,5vw,30px);white-space:nowrap}
 body.soseika-mobile-layout .soseika-header .wp-block-site-logo img{width:38px;height:auto}
 body.soseika-mobile-layout .soseika-header-bottom{display:flex!important;flex-wrap:nowrap!important;gap:12px!important;width:100%;margin-top:12px!important}
 body.soseika-mobile-layout .soseika-header-bottom>nav{flex:0 0 auto;min-width:44px}
 body.soseika-mobile-layout .soseika-header-search{flex:1 1 0!important;min-width:0!important;width:auto!important;max-width:none!important}
 body.soseika-mobile-layout .soseika-header-search form,
 body.soseika-mobile-layout .soseika-header-search .wp-block-search__inside-wrapper{width:100%!important;min-width:0!important;box-sizing:border-box}
 body.soseika-mobile-layout .soseika-header-search input{min-width:0!important;width:0!important;flex:1 1 0!important;font-size:16px!important;padding:10px 12px!important}
 body.soseika-mobile-layout .soseika-header-search button{flex:0 0 48px!important;min-width:48px!important;width:48px!important;min-height:44px;padding:10px!important;margin-left:8px!important}
 body.soseika-mobile-layout .soseika-header .wc-block-mini-cart__button,
 body.soseika-mobile-layout .soseika-header .wc-block-customer-account__link{min-width:44px;min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:8px}
 /* Keep content visible on phones even when scroll-triggered theme effects fail. */
 body.soseika-mobile-layout .ext-animate--on{opacity:1!important;transform:none!important;animation:none!important;transition:none!important}
 body.soseika-mobile-layout .soseika-hero{padding:28px 20px 0!important;min-height:0!important}
 body.soseika-mobile-layout .soseika-hero__content{width:100%!important;transform:none!important}
 body.soseika-mobile-layout .soseika-hero .soseika-hero__heading{font-size:clamp(30px,5.8vw,44px)!important;line-height:1.15!important;margin-bottom:20px!important;overflow-wrap:break-word}
 body.soseika-mobile-layout .soseika-hero__heading span{white-space:normal!important}
 body.soseika-mobile-layout .soseika-hero .soseika-hero__intro{font-size:17px!important;line-height:1.6!important;margin-bottom:16px!important}
 body.soseika-mobile-layout .soseika-hero .soseika-hero__description{font-size:16px!important;line-height:1.65!important;margin-bottom:22px!important}
 body.soseika-mobile-layout .soseika-hero .soseika-hero__button{font-size:17px!important;min-height:48px!important;padding:13px 22px!important}
 body.soseika-mobile-layout .soseika-hero__art{position:relative!important;inset:auto!important;width:100%!important;max-width:360px!important;margin:24px auto 0!important}
 body.soseika-mobile-layout .soseika-hero .soseika-hero__image{width:100%!important;height:auto!important;max-height:440px;object-fit:contain!important}
 body.soseika-mobile-layout .soseika-collection-grid{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 body.soseika-mobile-layout .soseika-collection-grid>.ext-card{min-width:0!important;width:100%!important;box-sizing:border-box}
 /* Modal colors and layout: retain WordPress's own dialog/focus/escape handling. */
 body.soseika-mobile-layout .wp-block-navigation__responsive-container.is-menu-open{background:#101014!important;color:#fafafa!important;padding:24px!important;box-sizing:border-box;overflow-y:auto}
 body.soseika-mobile-layout .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:0!important}
 body.soseika-mobile-layout .is-menu-open .wp-block-navigation__responsive-container-close{color:#fafafa!important;background:#26262d!important;border:1px solid #555!important;border-radius:50%;width:44px;height:44px;padding:10px;display:flex;align-items:center;justify-content:center;top:0;right:0}
 body.soseika-mobile-layout .is-menu-open .wp-block-navigation__responsive-container-close svg{fill:currentColor;width:24px;height:24px}
 body.soseika-mobile-layout .is-menu-open .wp-block-navigation__responsive-container-content{padding-top:72px!important;align-items:stretch!important;gap:0!important}
 body.soseika-mobile-layout .is-menu-open .wp-block-navigation__container{width:100%;align-items:stretch!important;gap:0!important}
 body.soseika-mobile-layout .is-menu-open .wp-block-navigation-item{width:100%;align-items:stretch!important;gap:0!important;border:0!important}
 body.soseika-mobile-layout .is-menu-open .wp-block-navigation-item__content{display:block;color:#fafafa!important;font-size:22px!important;line-height:1.4!important;padding:14px 0!important;text-decoration:none;border-bottom:1px solid #34343c;white-space:normal}
 body.soseika-mobile-layout .is-menu-open .wp-block-navigation__submenu-container{position:static!important;background:transparent!important;color:inherit!important;width:100%!important;min-width:0!important;padding:0 0 8px 20px!important;box-sizing:border-box;border:0!important;gap:0!important}
 body.soseika-mobile-layout .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{font-size:18px!important;padding:12px 0!important}
 body.soseika-mobile-layout .wp-block-navigation a:focus-visible,
 body.soseika-mobile-layout .wp-block-navigation button:focus-visible{outline:2px solid #fa4380!important;outline-offset:4px}
}
@media(min-width:600px) and (max-width:999px){
 body.soseika-mobile-layout .soseika-header-bottom>nav>.wp-block-navigation__responsive-container:not(.is-menu-open){display:none!important}
 body.soseika-mobile-layout .soseika-header-bottom>nav>.wp-block-navigation__responsive-container-open{display:flex!important}
}
@media(max-width:699px){
 body.soseika-mobile-layout .soseika-header>.wp-block-group>.is-layout-flex:first-child{gap:8px!important}
 body.soseika-mobile-layout .soseika-header>.wp-block-group>.is-layout-flex:first-child>.is-layout-flex{gap:6px!important;min-width:0}
 body.soseika-mobile-layout .wc-block-product-template{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 body.soseika-mobile-layout .wc-block-product-template>li{min-width:0!important;width:100%!important;margin:0!important}
 body.soseika-mobile-layout .wc-block-product-template .ext-card,
 body.soseika-mobile-layout .wc-block-product-template .ext-card-image,
 body.soseika-mobile-layout .wc-block-product-template .ext-card-content,
 body.soseika-mobile-layout .wc-block-product-template .wc-block-components-product-image{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box}
 body.soseika-mobile-layout .wc-block-product-template .ext-card-content{padding:20px!important}
 body.soseika-mobile-layout .wc-block-product-template .wp-block-post-title{font-size:21px!important;line-height:1.3!important;overflow-wrap:anywhere}
 body.soseika-mobile-layout .wc-block-product-template .opo-countdown{max-width:100%;box-sizing:border-box;white-space:normal;flex-wrap:wrap}
 body.soseika-mobile-layout .wc-block-product-template .opo-badge-set{box-sizing:border-box;width:100%;justify-content:center;text-align:center;padding-inline:12px}
 body.soseika-mobile-layout .wc-block-product-template .opo-availability{overflow-wrap:anywhere}
 body.soseika-mobile-layout .wp-block-woocommerce-product-details,
 body.soseika-mobile-layout .wp-block-woocommerce-product-summary{min-width:0;overflow-wrap:anywhere}
 body.soseika-mobile-layout .wp-block-woocommerce-product-summary h1,
 body.soseika-mobile-layout .wp-block-post-title{overflow-wrap:break-word}
}

@media(max-width:999px){
 body.soseika-mobile-layout .is-menu-open .wp-block-navigation-item__content{width:100%!important;box-sizing:border-box}
 body.soseika-mobile-layout .is-menu-open .wp-block-navigation__responsive-container-content>.wp-block-navigation__container{margin:0!important}
 body.soseika-mobile-layout .is-menu-open .wp-block-navigation-item__content:focus{box-shadow:none!important;outline:2px solid #fa4380!important;outline-offset:4px}
}

@media(min-width:700px) and (max-width:999px){
 body.soseika-mobile-layout .wc-block-product-template{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}
}
@media(max-width:999px){
 body.soseika-mobile-layout .wc-block-product-template>li{min-width:0!important;width:100%!important;margin:0!important}
 body.soseika-mobile-layout .wc-block-product-template .wc-block-components-product-image,
 body.soseika-mobile-layout .wc-block-product-template .ext-card-content{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box}
 body.soseika-mobile-layout .wc-block-product-template .opo-countdown{width:calc(100% - 24px)!important;min-width:0!important;max-width:100%!important;box-sizing:border-box;white-space:normal!important;flex-wrap:wrap;overflow-wrap:anywhere}
 body.soseika-mobile-layout .wc-block-product-template .opo-countdown *{min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
 body.soseika-mobile-layout .woocommerce-ordering select{background:#202024!important;color:#fafafa!important;border:1px solid #666;border-radius:8px;min-height:44px;max-width:100%;font-size:16px;padding:8px}
 body.soseika-mobile-layout .woocommerce-breadcrumb{overflow-wrap:anywhere}
}
