/* Shared by the initial page, interactive store and appearance preview. */
@media (max-width:760px) {
 .shophead,[data-soul-theme="v2"] .shophead{display:grid;grid-template-columns:44px minmax(0,1fr) max-content;gap:6px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
 .shophead .nav{display:none}
 .shophead .brand{display:block;min-width:0;overflow-wrap:anywhere}
 .shophead .header-logo,[data-soul-theme="v2"] .shophead .header-logo{width:100%;max-width:150px;height:auto;max-height:42px;margin-inline:auto}
 .shophead .headicons,[data-soul-theme="v2"] .shophead .headicons{gap:0;flex-shrink:0}
 .shophead .iconbtn,.shophead .headicons .iconbtn{display:inline-grid;place-items:center;width:44px;min-width:44px;height:44px;padding:8px}
 .shophead .iconbtn svg{width:22px;height:22px;flex-shrink:0}
 .mobilemenu{overflow-y:auto;overscroll-behavior-y:contain;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
 .mobilemenu .close,.drawer .close{min-width:44px;min-height:44px}
 /* Links and expandable categories share the same mobile typography. */
 .mobilemenu.mobilemenu a,.mobilemenu.mobilemenu summary{font-family:Manrope,Arial,sans-serif;font-size:1rem;font-weight:700;line-height:1.5;letter-spacing:normal}
 .mobilemenu.mobilemenu>.category-menu>summary{padding-top:13px;padding-bottom:13px}
 .mobilemenu.mobilemenu .category-dropdown a,.mobilemenu.mobilemenu .category-dropdown summary{font-size:.9rem;font-weight:700}
 .gallery{align-items:flex-start}
 .gallery img{flex:0 0 88%;width:88%;min-width:0;max-width:none;height:auto;aspect-ratio:3/4;object-fit:contain}
 .productinfo,.buyrow,.sectiontop,.drawerbody,.drawerfoot{min-width:0}
 .productinfo h1,.cardname,.cartitem>div{overflow-wrap:anywhere}
 .sectiontop{flex-wrap:wrap}
 .drawerbody{min-height:0;-webkit-overflow-scrolling:touch}
 .drawerhead,.drawerfoot{flex-shrink:0}
 .drawerfoot{padding-bottom:max(24px,env(safe-area-inset-bottom))}
 .loginwrap{min-height:100svh}
 .field input,.field select,.field textarea{width:100%;min-width:0;max-width:100%}
 .field input[type=checkbox],.field input[type=radio]{width:auto}
 /* The copy grows with its content; the image height only sizes the photo. */
 .sb-hero[data-mobile-layout="split"] .sb-hero-copy-mobile{height:auto;min-height:0;flex:0 0 auto;justify-content:flex-start;padding:24px;gap:16px}
 .sb-hero[data-mobile-layout="split"] .sb-hero-copy-mobile h1{transform:none;margin-top:var(--sb-mobile-title-y,0px)}
 .sb-hero[data-mobile-layout="split"] .sb-hero-copy-mobile p{transform:none;margin-top:var(--sb-mobile-text-y,0px)}
 .sb-hero[data-mobile-layout="split"] .sb-hero-copy-mobile .btn{transform:none;margin-top:var(--sb-mobile-button-y,0px)}
}
@media (hover:hover) and (pointer:fine){.card:hover img{transform:scale(1.04)}}
@media (hover:none){.card:hover img{transform:none}}

/* Product photos: shared 1080 × 1080 frame on every storefront screen. */
.cardphoto,[data-soul-theme="v2"] .cardphoto{aspect-ratio:1/1;background:#fff;min-width:0}
.cardphoto img{display:block;width:100%;height:100%;max-width:100%;aspect-ratio:1/1;object-fit:contain;object-position:center;transform:none}
.card:hover .cardphoto img{transform:none}
.productlayout,.productlayout>.gallery,.productlayout>.productinfo{min-width:0}
.gallery{min-width:0}
.gallery>img{display:block;width:100%;min-width:0;max-width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;object-position:center;background:#fff;align-self:start}
.gallery>.missing-color-photo{width:100%;min-width:0;height:auto;aspect-ratio:1/1;grid-column:auto}
.cartitem img{width:90px;height:90px;aspect-ratio:1/1;object-fit:contain;background:#fff;flex-shrink:0}
.summary .cartitem img{width:66px;height:66px}
@media(min-width:761px){
 .productlayout{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(20px,4vw,64px)}
 .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .gallery{align-items:flex-start}
 .gallery>img,.gallery>.missing-color-photo{flex:0 0 88%;width:88%;min-width:0;max-width:88%;height:auto;aspect-ratio:1/1;scroll-snap-align:center}
}

.server-links img{aspect-ratio:1/1;object-fit:contain;height:auto;background:#fff}
