/* The existing catalog icons, reused on the homepage in both preview themes. */
.storefront.home-page .home-catalog-tools{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.storefront.home-page .home-category-grid{list-style:none;padding:0;margin:24px 0 0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.storefront.home-page .home-category-grid>li{min-width:0}
.storefront.home-page .home-category{display:flex;flex-direction:column;align-items:flex-start;gap:17px;height:100%;min-height:150px;padding:22px 18px 19px;border:1px solid var(--amtor-line);border-radius:10px;background:#fff;transition:border-color .15s,background-color .15s}
.storefront.home-page .home-category:hover{border-color:#9ba7b3;background:#f5f8fa}
.storefront.home-page .home-category-icon{display:grid;place-items:center;width:52px;height:52px;flex-shrink:0}
.storefront.home-page .home-category-icon img{display:block;width:48px;height:48px;object-fit:contain}
.storefront.home-page .home-category-label{min-width:0;font-size:13px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.storefront.home-page .home-category-empty{grid-column:1/-1;padding:24px;border:1px solid var(--amtor-line);border-radius:10px;color:var(--amtor-muted);line-height:1.6}
.storefront.home-page #catalog-title{scroll-margin-top:110px}


/* Reuse the receiving homepage theme; no body/header/hero/theme-switch overrides. */
html[data-home-theme="dark"] .storefront.home-page .home-category{background:var(--home-surface,#333d49);border-color:var(--amtor-line,#758396);color:var(--home-ink,#f6f8fb)}
html[data-home-theme="dark"] .storefront.home-page .home-category:hover{background:var(--home-subtle,#414c5b);border-color:#a6b6c8}
html[data-home-theme="dark"] .storefront.home-page .home-category-icon img{filter:brightness(0) invert(1);opacity:.92}

@media(max-width:1190px){.storefront.home-page .home-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.storefront.home-page .home-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.storefront.home-page .home-catalog-tools{width:100%;justify-content:space-between;gap:12px}.storefront.home-page .home-category{padding:18px 12px;min-height:142px;gap:14px}.storefront.home-page .home-category-label{font-size:12px}}
@media(max-width:420px){.storefront.home-page .home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.storefront.home-page .home-category{min-height:136px;gap:12px;padding:16px 12px}.storefront.home-page .home-category-icon{width:42px;height:42px}.storefront.home-page .home-category-icon img{width:42px;height:42px}}
@media(prefers-reduced-motion:reduce){.storefront.home-page .home-category{transition:none}}
