/* eBook Store v2.3.9: scoped visual repair, no checkout or data changes. */
body.esm-header-layout .esm-home > .esm-top {display:none!important}
body.esm-header-layout .esm-topbar {position:relative;z-index:110;background:#10285d;color:#fff;width:100%;box-sizing:border-box}
body.esm-header-layout .esm-topbar .esm-topbar-inner {width:min(100%,1200px);margin-inline:auto;min-width:0}
body.esm-header-layout .esm-topbar :is(a,button){font-size:13px;line-height:1.35}
body.esm-header-layout .esm-topbar .esm-top-links{flex-wrap:wrap;gap:6px}
body.esm-header-layout .esm-topbar .esm-top-links a{white-space:normal}
/* Avoid changing the theme's own menus globally; hide a duplicate store home menu only. */
body.esm-header-layout .esm-home{max-width:1200px;width:100%;margin:0 auto;box-shadow:none;border-radius:0}
body.esm-header-layout .esm-home .esm-hero{min-height:0}
body.esm-header-layout .esm-home .esm-hero h1{font-size:clamp(24px,3.5vw,42px);line-height:1.18}
body.esm-header-layout .esm-home .esm-hero p{font-size:clamp(13px,1.4vw,16px)}
body.esm-header-layout .esm-home .esm-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,175px),1fr));gap:14px}
body.esm-header-layout .esm-home .esm-card{min-width:0;border-radius:13px}
body.esm-header-layout .esm-home .esm-cover{height:205px;padding:9px}
body.esm-header-layout .esm-home .esm-cover img{width:100%;height:100%;object-fit:contain}
body.esm-header-layout .esm-home .esm-card-body{padding:12px}
body.esm-header-layout .esm-home .esm-card h3{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
body.esm-header-layout .esm-home .esm-price{font-size:19px}
body.esm-header-layout .esm-home :is(.esm-buy,.esm-action){min-height:38px;padding:9px 10px;font-size:12px;line-height:1.3;white-space:normal}
/* Store pages and seller forms: readable but not oversized. */
body.esm-header-layout :is(.esm-market,.esm-seller-app,.esm-auth-wrap,.esm-community,.esm-checkout,.esm-next,.esm-pages-wrap){box-sizing:border-box;max-width:1200px;min-width:0;margin-left:auto;margin-right:auto}
body.esm-header-layout :is(.esm-market,.esm-seller-app,.esm-auth-wrap,.esm-community,.esm-checkout,.esm-next,.esm-pages-wrap) :is(h1,h2,h3){line-height:1.3;overflow-wrap:anywhere}
body.esm-header-layout :is(.esm-market,.esm-seller-app,.esm-auth-wrap,.esm-community,.esm-checkout,.esm-next,.esm-pages-wrap) h1{font-size:clamp(22px,2.6vw,32px)}
body.esm-header-layout :is(.esm-market,.esm-seller-app,.esm-auth-wrap,.esm-community,.esm-checkout,.esm-next,.esm-pages-wrap) h2{font-size:clamp(18px,2.1vw,25px)}
body.esm-header-layout :is(.esm-market,.esm-seller-app,.esm-auth-wrap,.esm-community,.esm-checkout,.esm-next,.esm-pages-wrap) :is(input,select,textarea,button){max-width:100%;box-sizing:border-box}
body.esm-header-layout :is(.esm-market,.esm-seller-app,.esm-community,.esm-next,.esm-pages-wrap) :is(img){max-width:100%;height:auto}
body.esm-header-layout :is(.esm-market,.esm-seller-app,.esm-community,.esm-next,.esm-pages-wrap) :is(.esm-card,.esm-book-card,.esm-product-card){min-width:0;overflow:hidden}
body.esm-header-layout :is(.esm-market,.esm-seller-app,.esm-community,.esm-next,.esm-pages-wrap) :is(.esm-card,.esm-book-card,.esm-product-card) img{object-fit:contain;max-height:245px}
body.esm-header-layout :is(.esm-market,.esm-seller-app,.esm-community,.esm-next,.esm-pages-wrap) :is(.esm-card,.esm-book-card,.esm-product-card) :is(button,.button,a.button){font-size:13px;min-height:36px;line-height:1.35;white-space:normal}
@media(max-width:768px){body.esm-header-layout .esm-home .esm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.esm-header-layout .esm-home .esm-cover{height:175px}body.esm-header-layout .esm-home .esm-card-body{padding:9px}body.esm-header-layout .esm-home .esm-card h3{font-size:13px}body.esm-header-layout .esm-home .esm-hero{padding:28px 15px}body.esm-header-layout .esm-topbar .esm-top-links{max-height:75vh;overflow:auto}body.esm-header-layout :is(.esm-market,.esm-seller-app,.esm-auth-wrap,.esm-community,.esm-checkout,.esm-next,.esm-pages-wrap){width:100%;padding-left:12px;padding-right:12px}}
@media(max-width:380px){body.esm-header-layout .esm-home .esm-cover{height:145px}body.esm-header-layout .esm-home .esm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
