/* 多貨款 compact 「超市貨架」 2026-11-19: white shelf, soft grey surfaces, the shop's own colour as the only accent.
   Replaces the yellow highlighter / thick black border / hard offset shadow look. Loaded after storefront-themes.css and (home) storefront-layouts.css, compact only. */
html body[data-visual-storefront="true"][data-theme="compact"]{
  --shop-ink:#1a1d1b;
  --visual-muted:#5b615d;
  --visual-line:#e6e8e5;
  --cv2-surface:#f4f5f3;
  --cv2-tint:color-mix(in srgb,var(--shop-primary) 9%,#fff);
  --cv2-tint-strong:color-mix(in srgb,var(--shop-primary) 16%,#fff);
  --cv2-price:#d0101f;
  --cv2-ease:cubic-bezier(.23,1,.32,1);
  --marker:var(--cv2-tint-strong);
}
html body[data-visual-storefront="true"][data-theme="compact"] ::selection{background:var(--cv2-tint-strong);color:var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="compact"] :focus-visible{outline:2px solid var(--shop-primary);outline-offset:2px}

/* header + footer: hairlines instead of 3px black / 6px yellow */
html body[data-visual-storefront="true"][data-theme="compact"] .shop-header{border-bottom:1px solid var(--visual-line)}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-header nav a{font-weight:700}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-footer{border-top:1px solid var(--visual-line);background:var(--cv2-surface)}

/* search: one soft field, button in shop colour */
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .fm-search-controls{border:1px solid var(--visual-line);border-radius:12px;background:var(--cv2-surface);transition:border-color 160ms ease,box-shadow 160ms ease}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .fm-search-controls:focus-within{border-color:var(--shop-primary);box-shadow:0 0 0 3px var(--cv2-tint)}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .fm-search-controls input{background:transparent;padding:13px 16px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .fm-search-controls button{background:var(--shop-primary);color:#fff;font-weight:700;padding:0 24px;border-radius:0}

/* category chips: grey pills, tint on hover */
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-gallery>a{border:1px solid transparent;background:var(--cv2-surface);padding:5px 18px 5px 5px;transition:background-color 160ms ease,border-color 160ms ease}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-copy{font-weight:700;color:var(--shop-ink)}
@media (hover:hover) and (pointer:fine){
  html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-category-gallery>a:hover{background:var(--cv2-tint);border-color:var(--cv2-tint-strong)}
}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-category-gallery>a{border:1px solid var(--visual-line);border-radius:12px}

/* hero signboard: solid shop-colour panel (like a shop sign), white lettering, photo set inside with a radius */
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero{background:var(--shop-primary);border:0;border-radius:16px;padding:10px;gap:10px;overflow:hidden}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero-media{border-left:0;border-radius:10px;overflow:hidden}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero-copy{padding:22px 26px;color:#fff}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero h1{color:#fff;font-weight:900;letter-spacing:-.01em;text-wrap:balance}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero p{color:color-mix(in srgb,#fff 82%,var(--shop-primary))}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-promo{border:0;border-radius:16px;overflow:hidden}

/* buttons: solid shop colour, soft press, no hard offset shadow */
html body[data-visual-storefront="true"][data-theme="compact"] :is(.shop-button,.shop-home .shop-hero .shop-button,.btn_add_to_cart,.btn_checkout){box-shadow:0 1px 2px rgba(16,24,20,.12),0 4px 12px -4px color-mix(in srgb,var(--shop-primary) 45%,transparent)!important;border-radius:10px!important;font-weight:700;transition:transform 160ms var(--cv2-ease),filter 160ms ease}
@media (hover:hover) and (pointer:fine){
  html body[data-visual-storefront="true"][data-theme="compact"] :is(.shop-button,.btn_add_to_cart,.btn_checkout):hover{filter:brightness(1.08)}
}
html body[data-visual-storefront="true"][data-theme="compact"] :is(.shop-button,.btn_add_to_cart,.btn_checkout):active{transform:scale(.97)}

html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero .shop-button.shop-button{background:#fff!important;color:var(--shop-primary)!important;box-shadow:0 6px 16px -8px rgba(0,0,0,.45)!important}

/* section titles: plain bold heading + quiet rule; "查看全部" in shop colour */
html body[data-visual-storefront="true"][data-theme="compact"] .shop-section-title{border-bottom:1px solid var(--visual-line);padding-bottom:10px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-section-title h2{background:none;padding:0;font-size:22px;font-weight:900}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-section-title a{color:var(--shop-primary);font-weight:700}

/* product wall: rounded shelf cards, lift on hover, red price kept (grocery shelf tag) */
html body[data-visual-storefront="true"][data-theme="compact"] :is(.shop-home,main,section,div) .shop-product-grid article{border:1px solid var(--visual-line);border-radius:12px;background:#fff;overflow:hidden;transition:transform 200ms var(--cv2-ease),box-shadow 200ms var(--cv2-ease),border-color 200ms ease}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-product-grid img{border-radius:0;background:var(--cv2-surface);transition:transform 300ms var(--cv2-ease)}
@media (hover:hover) and (pointer:fine){
  html body[data-visual-storefront="true"][data-theme="compact"] .shop-product-grid article:hover{transform:translateY(-2px);border-color:#d9dcd8;box-shadow:0 10px 24px -14px rgba(16,24,20,.35)}
  html body[data-visual-storefront="true"][data-theme="compact"] .shop-product-grid article:hover img{transform:scale(1.03)}
}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-product-grid .shop-card-price,
html body[data-visual-storefront="true"][data-theme="compact"] .page_product_detail .fm-current-price :is(strong,b,span,.price){color:var(--cv2-price);font-variant-numeric:tabular-nums}

/* category / all-products pages: same inner spacing as the home wall so text never touches the card edge */
html body[data-visual-storefront="true"][data-theme="compact"] .shop-product-grid.shop-product-grid article :is(p,small,.shop-link,.shop-card-stock){margin-left:10px!important;margin-right:10px!important}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-product-grid.shop-product-grid article h3{margin:10px 10px 2px!important}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-product-grid article .shop-card-stock{margin-bottom:12px}

/* about block + category page chips */
html body[data-visual-storefront="true"][data-theme="compact"] .shop-about{background:var(--cv2-surface);border-radius:16px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-categories a{background:var(--cv2-surface)}

@media (prefers-reduced-motion:reduce){
  html body[data-visual-storefront="true"][data-theme="compact"] :is(.shop-product-grid article,.shop-product-grid img,.shop-button,.btn_add_to_cart,.btn_checkout){transition:none}
  html body[data-visual-storefront="true"][data-theme="compact"] .shop-product-grid article:hover{transform:none}
  html body[data-visual-storefront="true"][data-theme="compact"] .shop-product-grid article:hover img{transform:none}
}
@media (max-width:600px){
  html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero{border-radius:14px;padding:8px}
  html body[data-visual-storefront="true"][data-theme="compact"] .shop-home .shop-hero-copy{padding:12px 10px}
  html body[data-visual-storefront="true"][data-theme="compact"] :is(.shop-home,main,section,div) .shop-product-grid article{border-radius:10px}
}
