/* Per-theme homepage layouts (2026-11-09 sample). CSS only, same markup for every theme.
   形象款 clean   = editorial split hero, photo category tiles first, airy 4-up products.
   精品款 boutique = centred title over a framed photograph, one spotlight product, text-only category line.
   多貨款 compact  = search + category chips first, slim signboard banner, dense product wall.
   Cards stay square with name + price + stock badge (Owner card standard 2026-10-30). */

html body[data-visual-storefront="true"][data-theme] .shop-home{display:flex;flex-direction:column}
html body[data-visual-storefront="true"][data-theme] .shop-home>*{min-width:0}

/* shared motion: lift + photo zoom on real pointers only, press on buttons */
@media (hover:hover) and (pointer:fine){
 html body[data-visual-storefront="true"][data-theme] .shop-home .shop-product-grid article{transition:transform 220ms cubic-bezier(.23,1,.32,1)}
 html body[data-visual-storefront="true"][data-theme] .shop-home .shop-product-grid article:hover{transform:translateY(-2px)}
 html body[data-visual-storefront="true"][data-theme] .shop-home .shop-product-grid article>a:first-child{overflow:hidden;display:block}
 html body[data-visual-storefront="true"][data-theme] .shop-home .shop-product-grid img{transition:transform 300ms cubic-bezier(.23,1,.32,1)}
 html body[data-visual-storefront="true"][data-theme] .shop-home .shop-product-grid article:hover img{transform:scale(1.03)}
}
html body[data-visual-storefront="true"][data-theme] .shop-home .shop-button{transition:transform 160ms ease-out,filter 160ms ease-out}
html body[data-visual-storefront="true"][data-theme] .shop-home .shop-button:active{transform:scale(.97)}
@media (prefers-reduced-motion:reduce){
 html body[data-visual-storefront="true"][data-theme] .shop-home :is(.shop-product-grid article,.shop-product-grid img,.shop-category-gallery img,.shop-button,.shop-category-copy){transition:none!important}
 html body[data-visual-storefront="true"][data-theme] .shop-home :is(.shop-product-grid article,.shop-product-grid img,.shop-category-gallery img,.shop-button){transform:none!important}
}

html body[data-visual-storefront="true"][data-theme] .shop-home :is(.shop-product-grid a,.shop-category-gallery>a,.shop-button,.fm-search-controls button):focus-visible{outline:2px solid var(--shop-ink);outline-offset:3px}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery>a:focus-visible{outline-offset:-4px;outline-color:#fff}

/* ================= 形象款 clean: magazine spread ================= */
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-home-search{order:0}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero{order:1}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-section{order:2}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home :is(.shop-featured-section,.shop-rail){order:3}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-about{order:4}

html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero{display:grid;grid-template-columns:5fr 7fr;align-items:center;gap:0;padding:0;min-height:0;background:transparent;margin:8px 0 48px;overflow:visible}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero:after{display:none}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero-media{position:static;order:2;z-index:auto;aspect-ratio:4/3;overflow:hidden}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero-media img{width:100%;height:100%;object-fit:cover;object-position:72% 60%}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero-copy{order:1;max-width:none;padding:0 56px 0 0}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero h1{font-size:clamp(34px,3.4vw,52px);line-height:1.5;margin:0 0 20px;max-width:9em}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero p{font-size:16px;color:var(--visual-muted);margin:0 0 32px}

html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery>a{position:relative;display:block;padding:0;border:0;overflow:hidden;background:#e4e9de}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery>a img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:0;margin:0;transition:transform 300ms cubic-bezier(.23,1,.32,1)}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery>a:after{content:"";position:absolute;inset:auto 0 0 0;height:55%;background:linear-gradient(transparent,rgba(30,34,29,.62))}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-copy{position:absolute;left:20px;right:20px;bottom:18px;z-index:1;color:#fff;display:flex;justify-content:space-between;align-items:baseline;font-size:18px;letter-spacing:.2em}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-copy small{color:rgba(255,255,255,.85);font-size:12px;letter-spacing:.12em}
@media (hover:hover) and (pointer:fine){html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery>a:hover img{transform:scale(1.03)}}

html body[data-visual-storefront="true"][data-theme="clean"] .shop-home :is(.shop-featured-section,.shop-rail){margin-top:40px}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home :is(.shop-featured-section,.shop-rail) .shop-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 28px}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-product-grid article{border:0;background:transparent}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-product-grid :is(h3,p,small,.shop-link,.shop-card-stock){margin-left:0;margin-right:0}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-product-grid h3{font-size:15px!important;margin:16px 0 4px!important}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-product-grid .shop-link{display:none}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-about{margin-top:40px}

/* ================= 精品款 boutique: gallery with a spotlight ================= */
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero{order:1}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-home-search{order:2}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home :is(.shop-featured-section,.shop-rail){order:3}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-section{order:4}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-about{order:5}

html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero{display:flex;flex-direction:column;align-items:center;text-align:center;background:transparent;padding:56px 0 0;min-height:0;margin:0 0 40px;overflow:visible}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero:after{display:none}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero-copy{order:1;max-width:none;display:flex;flex-direction:column;align-items:center;color:var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero h1{font-size:clamp(34px,3.6vw,56px);max-width:none;margin:0 0 14px;line-height:1.35}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero p{margin:0 0 28px;max-width:none;color:var(--visual-muted)}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero-media{position:static;order:2;z-index:auto;width:100%;margin-top:48px;padding:14px;border:1px solid var(--visual-line);background:#fbf6f6}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero-media img{aspect-ratio:21/8;height:auto;object-position:center 55%}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-home-search .fm-shopping-tools{justify-content:center;border-bottom:0}

html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home :is(.shop-featured-section,.shop-rail) .shop-product-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:48px 32px}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-product-grid article{flex:0 0 calc((100% - 96px)/4);text-align:center;border:0;background:transparent}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-product-grid article .shop-card-stock{align-items:center}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-product-grid .shop-link{display:none}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child{flex-basis:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:1fr auto auto auto auto 1fr;column-gap:64px;text-align:left;margin-bottom:24px}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child>a:first-child{display:contents}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child img{grid-column:1;grid-row:1/-1}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child h3{grid-column:2;grid-row:2;font-size:clamp(26px,2.4vw,36px)!important;font-weight:200;letter-spacing:.12em;margin:0 0 12px!important;-webkit-line-clamp:3}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child>p:not(.shop-card-price){display:block!important;grid-column:2;grid-row:3;font-size:16px!important;line-height:1.7;color:var(--visual-muted);margin:0 0 20px!important;-webkit-line-clamp:3}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child .shop-card-price{grid-column:2;grid-row:4;font-size:26px!important;margin:0 0 10px}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child .shop-card-stock{grid-column:2;grid-row:5;align-items:flex-start;margin:0}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child .shop-link{display:inline-block;grid-column:2;grid-row:6;align-self:start;justify-self:start;margin:22px 0 0;font-size:13px;letter-spacing:.24em;color:var(--shop-ink);border-bottom:1px solid currentColor;padding-bottom:2px}

html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-section{border-top:1px solid var(--visual-line);border-bottom:1px solid var(--visual-line);padding:28px 0;margin-top:24px}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-section .shop-section-title{display:none}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-gallery{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 0}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-gallery>a{border:0;padding:4px 32px;background:transparent;flex-direction:row}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-gallery>a+a{border-left:1px solid var(--visual-line)}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-gallery>a img,
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-copy small{display:none}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-copy{font-size:16px;letter-spacing:.32em;background-image:linear-gradient(currentColor,currentColor);background-size:0 1px;background-position:0 100%;background-repeat:no-repeat;transition:background-size 240ms cubic-bezier(.23,1,.32,1)}
@media (hover:hover) and (pointer:fine){html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-gallery>a:hover .shop-category-copy{background-size:100% 1px}}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-gallery>a:focus-visible .shop-category-copy{background-size:100% 1px}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-about{margin-top:40px}

/* ================= 多貨款 compact: shop counter ================= */
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-home-search{order:0}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-section{order:1}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero{order:2}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home :is(.shop-featured-section,.shop-rail){order:3}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-about{order:4}

html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .fm-shopping-tools{padding:16px 0 12px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .fm-product-search{display:block;flex:1 1 100%;margin:0}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .fm-product-search label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .fm-search-controls{display:flex;border:2px solid var(--shop-ink);border-radius:4px;overflow:hidden;max-width:none}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .fm-search-controls input{flex:1;border:0;padding:12px 14px;font-size:16px;min-width:0}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .fm-search-controls button{border:0;border-radius:0;background:var(--marker);color:var(--shop-ink);font-weight:900;padding:0 22px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .fm-shop-links a{font-weight:900}

html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-section{margin-bottom:18px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-section .shop-section-title{display:none}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-gallery{display:flex;flex-wrap:nowrap;gap:10px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-gallery::-webkit-scrollbar{display:none}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-gallery>a{flex:0 0 auto;flex-direction:row;align-items:center;gap:10px;min-height:0;padding:6px 18px 6px 6px;border:2px solid var(--shop-ink);border-radius:999px;background:#fff;transition:background-color 160ms ease-out}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-gallery>a img{width:40px;height:40px;aspect-ratio:1;border-radius:50%;margin:0}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-copy{font-size:15px;white-space:nowrap}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-copy small{display:none}

html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;min-height:0;padding:0;background:var(--marker);border:2px solid var(--shop-ink);border-radius:4px;margin:0 0 32px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero:after{display:none}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero-media{position:relative;order:2;z-index:auto;height:100%;min-height:200px;border-left:2px solid var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero-media img{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover;object-position:70% 55%}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero-copy{order:1;max-width:none;padding:24px 32px;color:var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero h1{font-size:clamp(28px,2.6vw,40px);margin:0 0 6px;max-width:none}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero p{margin:0 0 16px;font-size:15px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero .shop-button{box-shadow:4px 4px 0 var(--shop-ink)}

html body[data-visual-storefront="true"][data-theme="compact"] .shop-home :is(.shop-featured-section,.shop-rail) .shop-product-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-product-grid article{border:1px solid var(--visual-line);border-radius:4px;background:#fff}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-product-grid :is(h3,p,small,.shop-link,.shop-card-stock){margin-left:10px;margin-right:10px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-product-grid h3{font-size:14px!important;line-height:1.4;margin:8px 10px 2px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-product-grid>article>p:not(.shop-card-price){display:none}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-product-grid .shop-card-price{font-size:17px!important;margin:2px 10px!important}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-product-grid .shop-link{display:none}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-product-grid .shop-card-stock{margin-bottom:10px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-about{margin-top:24px}
@media (hover:hover) and (pointer:fine){html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-gallery>a:hover{background:var(--marker)}}

/* ================= tablet ================= */
@media (max-width:1000px){
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero-copy{padding-right:32px}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home :is(.shop-featured-section,.shop-rail) .shop-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 20px}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery>a img{aspect-ratio:4/3}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-product-grid article{flex-basis:calc((100% - 64px)/3)}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child{column-gap:36px}
}

/* ================= phone ================= */
@media (max-width:600px){
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero{grid-template-columns:1fr;margin:0 -16px 48px}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero-media{order:1;aspect-ratio:1/1}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero-copy{order:2;padding:28px 16px 0}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero h1{font-size:28px;margin-bottom:12px;max-width:none;word-break:keep-all}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero p{margin-bottom:24px}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery{display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-left:16px;gap:12px;margin:0 -16px;padding:0 16px;scrollbar-width:none}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery>a{flex:0 0 62%;scroll-snap-align:start}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery>a img{aspect-ratio:3/4}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home :is(.shop-featured-section,.shop-rail) .shop-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-product-grid h3{font-size:14px;margin-top:10px}

 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero{padding-top:32px}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero h1{font-size:28px}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero-media{margin-top:32px;padding:8px}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero-media img{aspect-ratio:4/5}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home :is(.shop-featured-section,.shop-rail) .shop-product-grid{gap:32px 14px}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-product-grid article{flex-basis:calc((100% - 14px)/2)}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child{grid-template-columns:1fr;grid-template-rows:auto;text-align:center;margin-bottom:8px}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child *{grid-column:1!important;grid-row:auto!important}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child h3{margin-top:18px!important;font-size:24px!important}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child .shop-card-stock{align-items:center}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-featured-section:not(.shop-rail) .shop-product-grid article:first-child .shop-link{justify-self:center;margin-top:14px}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-gallery{display:grid;grid-template-columns:1fr 1fr;gap:0}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-gallery>a{padding:14px 8px;justify-content:center;min-height:44px}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-gallery>a+a{border-left:0}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-gallery>a:nth-child(2n){border-left:1px solid var(--visual-line)}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-gallery>a:nth-child(n+3){border-top:1px solid var(--visual-line)}
 html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-category-copy{font-size:14px;letter-spacing:.2em}

 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-gallery{margin:0 -16px;padding:0 16px 2px}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero{grid-template-columns:1fr 112px}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero-media{display:block}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero-media img{min-height:0;max-height:none;height:100%}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero-copy{padding:16px}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero h1{font-size:22px}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero p{font-size:13px;margin-bottom:12px}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero .shop-button{padding:8px 14px;font-size:14px;min-height:44px;display:inline-flex;align-items:center}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home :is(.shop-featured-section,.shop-rail) .shop-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-product-grid :is(h3,p,small,.shop-link,.shop-card-stock){margin-left:7px;margin-right:7px}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-product-grid h3{font-size:12.5px!important;margin:6px 7px 2px!important}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-product-grid .shop-card-price{font-size:14px!important;margin-left:7px!important;margin-right:7px!important}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-product-grid :is(.stock-in,.stock-pre,.stock-out){font-size:12px}
}
/* 形象款分類數量唔係 4 嘅倍數：5 個排一行，6 個排 3×2，唔好剩孤單一格 */
@media (min-width:1001px){html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery:has(>a:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery:has(>a:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery:has(>a:nth-child(6):last-child)>a img{aspect-ratio:4/3}}
@media (min-width:601px) and (max-width:1000px){html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery>a:last-child:nth-child(odd){grid-column:span 2}html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-category-gallery>a:last-child:nth-child(odd) img{aspect-ratio:8/3}}

/* ================= 推廣橫額 1–3 (2026-11-10) =================
   形象／精品: 橫額 1、2 放首頁大圖下面兩格並排，大圖唔再被壓窄。
   多貨: 橫額 1、2 留喺黃色招牌右邊，成行排喺分類掣後面。
   三款: 橫額 3 跟返設定頁講法，放「店主精選」下面。 */
html body[data-visual-storefront="true"]:is([data-theme="clean"],[data-theme="boutique"]) .shop-home>.shop-hero-row{display:contents}
html body[data-visual-storefront="true"]:is([data-theme="clean"],[data-theme="boutique"]) .shop-home .shop-hero-row>.shop-hero{height:auto}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero-row>.shop-hero{margin:8px 0 24px}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-hero-row>.shop-hero{margin:0 0 24px}
html body[data-visual-storefront="true"]:is([data-theme="clean"],[data-theme="boutique"]) .shop-home .shop-promo-side{order:1;grid-template-rows:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 0 48px}
html body[data-visual-storefront="true"]:is([data-theme="clean"],[data-theme="boutique"]) .shop-home .shop-promo-side--one{grid-template-columns:minmax(0,1fr)}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-promo{border-radius:0}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-promo{border-radius:0;outline:1px solid var(--visual-line);outline-offset:-1px}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-home .shop-promo:focus-visible{outline:2px solid var(--shop-ink);outline-offset:3px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home>.shop-hero-row{order:2;margin:0 0 32px;gap:12px;align-items:stretch}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero-row>.shop-hero{order:0;margin:0;height:auto}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-promo-side{gap:12px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-promo{border:2px solid var(--shop-ink);border-radius:4px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-promo-side .shop-promo{min-height:0}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-promo-copy{padding:14px 18px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-promo-copy strong{font-size:18px;font-weight:900}
html body[data-visual-storefront="true"][data-theme]:is([data-theme="clean"],[data-theme="boutique"],[data-theme="compact"]) .shop-home>.shop-promo-wide{order:3;margin:8px 0 48px}
@media (max-width:600px){
 html body[data-visual-storefront="true"]:is([data-theme="clean"],[data-theme="boutique"]) .shop-home .shop-promo-side{gap:12px;margin-bottom:32px}
 html body[data-visual-storefront="true"][data-theme="clean"] .shop-home .shop-hero-row>.shop-hero{margin:0 -16px 20px}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home>.shop-hero-row{margin-bottom:24px}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-promo-side .shop-promo-copy{padding:10px 12px 12px}
 html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-promo-side .shop-promo-copy strong{font-size:15px}
 html body[data-visual-storefront="true"][data-theme]:is([data-theme="clean"],[data-theme="boutique"],[data-theme="compact"]) .shop-home>.shop-promo-wide{margin:0 0 32px}
}
/* 首頁專區 (最新上架／店長推薦／分類專區) on phones: one swipeable row each, so four sections don't make the page endless. */
@media (max-width:600px){
 html body[data-visual-storefront="true"][data-theme] .shop-home .shop-rail{min-width:0;max-width:100%;contain:paint}
 html body[data-visual-storefront="true"][data-theme] .shop-home .shop-rail .shop-product-grid{display:grid!important;justify-content:start!important;width:100%;max-width:100%;min-width:0;grid-auto-flow:column;grid-template-columns:none!important;grid-auto-columns:42%;gap:12px!important;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:0;scrollbar-width:none;padding-bottom:4px}
 html body[data-visual-storefront="true"][data-theme] .shop-home .shop-rail .shop-product-grid::-webkit-scrollbar{display:none}
 html body[data-visual-storefront="true"][data-theme] .shop-home .shop-rail .shop-product-grid article{scroll-snap-align:start;min-width:0;flex:none}
}
