/* Shared, bounded storefront layout and brand-specific editorial treatments. */
body[data-store-theme]{--store-width:1240px;background-image:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--accent) 9%,transparent),transparent 55%)}
body[data-store-theme] main{min-width:0}
body[data-store-theme] .mc-header{padding:20px max(24px,calc((100vw - var(--store-width))/2));justify-content:center}
body[data-store-theme] .mc-brand{max-width:330px}
body[data-store-theme] .mc-header .store-discovery{flex:1 1 340px;max-width:520px}
body[data-store-theme] .mc-section{width:min(var(--store-width),100%);padding:64px 28px;margin-inline:auto}
body[data-store-theme] .mc-section>h1,body[data-store-theme] .mc-section>h2,body[data-store-theme] .mc-section>.mc-kicker,body[data-store-theme] .mc-section>p{text-align:center}
body[data-store-theme] .mc-section>p{max-width:760px;margin:0 auto 26px}
body[data-store-theme] .mc-footer{text-align:center;padding:65px max(28px,calc((100vw - 1160px)/2))}
body[data-store-theme] .mc-footer nav{justify-content:center}
body[data-store-theme] .mc-footer p{max-width:720px;margin-inline:auto}
body[data-store-theme] .mc-button,.store-cta{min-height:48px;padding:13px 24px;border-radius:6px;font-weight:650;letter-spacing:.02em;box-shadow:0 5px 18px #0001;transition:transform .2s,box-shadow .2s}
body[data-store-theme] .mc-button:hover,.store-cta:hover{transform:translateY(-2px);box-shadow:0 9px 24px #0002}
body[data-store-theme] .mc-button:disabled{opacity:.5;cursor:not-allowed;transform:none}
.store-cta-secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border:1px solid currentColor;padding:12px 24px;border-radius:6px;color:inherit;background:transparent;font-weight:600}
.store-icon{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.store-landing .brand-masthead{display:none}
.store-welcome{position:relative;isolation:isolate;overflow:hidden;margin:28px auto 0;width:min(1320px,calc(100% - 48px));padding:64px 32px 52px;text-align:center;border:1px solid color-mix(in srgb,var(--accent) 36%,transparent);border-radius:20px;background:radial-gradient(ellipse at top,color-mix(in srgb,var(--accent) 15%,var(--panel)),var(--bg));box-shadow:0 20px 70px #0001}
.store-welcome:before,.store-welcome:after{content:"";position:absolute;width:65px;height:65px;pointer-events:none;border:1px solid color-mix(in srgb,var(--accent) 65%,transparent);z-index:-1}
.store-welcome:before{top:18px;left:18px;border-right:0;border-bottom:0;border-radius:9px 0 0 0}
.store-welcome:after{bottom:18px;right:18px;border-left:0;border-top:0;border-radius:0 0 9px 0}
.store-welcome-logo{height:118px;width:220px;object-fit:contain;margin:0 auto 24px}
.store-welcome .mc-kicker{color:var(--accent);margin:0 0 18px;font-size:11px}
.store-welcome h1{font-size:clamp(40px,5.5vw,72px);line-height:1.08;letter-spacing:-.035em;max-width:850px;margin:0 auto 24px;text-wrap:balance}
.store-welcome .store-lead{max-width:660px;margin:0 auto;color:var(--muted);font-size:clamp(16px,1.6vw,19px);line-height:1.8;text-wrap:pretty}
.store-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin:30px auto}
.store-promises{display:flex;justify-content:center;gap:28px;flex-wrap:wrap;margin:30px auto 0;padding:23px 0 0;border-top:1px solid color-mix(in srgb,var(--accent) 25%,transparent);max-width:850px}
.store-promises span{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}
.store-promises .store-icon{width:20px;height:20px;color:var(--accent)}
body[data-store-theme=house-of-ash-ember] .store-welcome{background:linear-gradient(90deg,#160f12ed,#160f12d9 55%,#160f12b5),url('/store/assets/brands/house-welcome-v1.webp') center/cover}
body[data-store-theme=emberglass-apothecary] .store-welcome{background:linear-gradient(90deg,#f4f0e4ed,#f4f0e4e8 55%,#f4f0e4b8),url('/store/assets/brands/apothecary-welcome-v1.webp') center/cover}
body[data-store-theme=emberglass-apothecary] .store-welcome-logo{height:150px;width:180px}
body[data-store-theme=publishing] .store-welcome{background:radial-gradient(ellipse at center,#fffaf0ee,#f2ebddf5),repeating-linear-gradient(45deg,#8234470c 0 1px,transparent 1px 16px)}
.store-section-intro{text-align:center;max-width:750px;margin:0 auto 32px}
.store-section-intro h2{font-size:clamp(30px,3.5vw,48px);margin:0 0 20px;text-wrap:balance}
.store-section-intro p{margin:0;color:var(--muted)}
.store-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.store-category-card{position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);border-radius:14px;background:var(--panel);color:var(--ink);transition:transform .2s,box-shadow .2s;text-decoration:none}
.store-category-card:hover{transform:translateY(-4px);box-shadow:0 15px 35px #0002}
.store-category-art{height:210px;display:grid;place-items:center;position:relative;overflow:hidden;background:radial-gradient(ellipse,color-mix(in srgb,var(--accent) 20%,var(--panel)),var(--bg))}
.store-category-art:after{content:"";position:absolute;inset:14px;border:1px solid color-mix(in srgb,var(--accent) 32%,transparent);border-radius:6px;pointer-events:none}
.store-category-art img{width:75%;height:150px;object-fit:contain;position:relative;z-index:1}
.store-category-art>.store-icon{width:66px;height:66px;color:var(--accent)}
.store-category-art .store-category-mark{font-family:Georgia,serif;font-size:84px;color:var(--accent);opacity:.85}
.store-category-copy{display:flex;flex-direction:column;gap:14px;padding:28px;flex:1}
.store-category-copy .mc-kicker{margin:0;color:var(--accent)}
.store-category-copy h3{font-size:28px;margin:0;color:var(--ink)}
.store-category-copy p{font-size:14px;line-height:1.75;color:var(--muted);margin:0 0 8px}
.store-category-copy .store-card-link{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:650;color:var(--accent);margin-top:auto;padding-top:16px;border-top:1px solid color-mix(in srgb,var(--accent) 25%,transparent)}
.store-category-card[data-brand=house-of-ash-ember]{--bg:#160f12;--panel:#24171b;--ink:#ffebce;--muted:#c8b49e;--accent:#e2a659}
.store-category-card[data-brand=emberglass-apothecary]{--bg:#f4f0e4;--panel:#fffcf4;--ink:#21372c;--muted:#556958;--accent:#476943}
.store-category-card[data-brand=publishing]{--bg:#f2ebdd;--panel:#fff9ee;--ink:#45212b;--muted:#715b60;--accent:#823447}
.store-story{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;padding:40px;border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);border-radius:16px;background:var(--panel)}
.store-story h2{font-size:clamp(30px,3vw,44px)}
.store-story p{color:var(--muted);font-size:15px;line-height:1.9}
.store-story ul{list-style:none;padding:0;margin:0;display:grid;gap:25px}
.store-story li{display:flex;gap:16px;align-items:flex-start;color:var(--muted);font-size:14px;line-height:1.8}
.store-story li .store-icon{margin-top:4px;color:var(--accent)}
.store-story strong{display:block;color:var(--ink);font-size:16px}
.store-category-heading{text-align:center;max-width:920px;margin:20px auto 40px;padding:48px 30px;background:var(--panel);border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);border-radius:16px;position:relative}
.store-category-heading h1{font-size:clamp(35px,4.8vw,60px);text-wrap:balance;margin:0 0 22px}
.store-category-heading p{max-width:650px;margin:0 auto 20px;color:var(--muted);line-height:1.85}
.store-category-heading>.store-icon{color:var(--accent);width:38px;height:38px;margin-bottom:18px}
.store-category-heading .store-actions{margin-bottom:0}
.store-collection-back{display:block;text-align:center;font-size:13px;margin:20px auto;color:var(--accent)}
.store-browse-note{text-align:center;max-width:750px;margin:24px auto;color:var(--muted);font-size:13px}
.store-landing .mc-feed-tools{background:var(--panel);padding:22px;border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);border-radius:10px}
.store-landing .mc-products,.store-collection .mc-products{scroll-margin-top:150px}
body[data-store-theme] .mc-products>.mc-product>img{width:100%;height:300px;object-fit:contain;background:var(--bg)}
body[data-store-theme=emberglass-apothecary] .mc-products>.mc-product>img{object-fit:cover;height:auto;aspect-ratio:1}
.store-collection #collection-list>.mc-product>h2,.store-collection #collection-list>.mc-product>p,.store-collection #collection-list>.mc-product>a:not(:has(img)){margin:20px 24px}
.store-collection #collection-list>.mc-product>h2{font-size:27px}
.store-affiliate{text-align:center;font-size:12px!important;color:var(--muted);padding:20px}
.store-landing #soaps,.store-landing #books,.store-landing #shop-cards,.store-landing #collections{scroll-margin-top:100px}
@media(max-width:900px){.store-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-story{grid-template-columns:1fr;gap:20px}.store-welcome{padding:45px 25px}.store-promises{gap:16px}.store-category-art{height:180px}}
@media(max-width:600px){body[data-store-theme] .mc-header{padding:16px}body[data-store-theme] .mc-section{padding:42px 20px}.store-welcome{width:calc(100% - 24px);margin-top:12px;padding:40px 22px 30px;border-radius:12px}.store-welcome h1{font-size:39px}.store-welcome-logo{height:100px;width:190px}.store-actions{gap:12px}.store-actions>a{width:100%}.store-category-grid{grid-template-columns:1fr}.store-category-copy{padding:24px}.store-story{padding:26px}.store-promises{flex-direction:column;align-items:center}.store-category-heading{padding:32px 20px}.store-landing .mc-feed-tools{padding:16px}.store-category-art{height:190px}.store-welcome:before,.store-welcome:after{width:35px;height:35px}.store-welcome:before{top:10px;left:10px}.store-welcome:after{bottom:10px;right:10px}}
@media(prefers-reduced-motion:reduce){.store-category-card,body[data-store-theme] .mc-button{transition:none}.store-category-card:hover,body[data-store-theme] .mc-button:hover{transform:none}html{scroll-behavior:auto!important}}

/* Keep inherited venue-header and category-link rules out of editorial blocks. */
.store-welcome .mc-kicker{margin-inline:auto;width:100%;max-width:none}
.store-welcome{padding-top:42px;padding-bottom:38px}
.store-welcome-logo{height:92px;margin-bottom:18px}
.store-welcome h1{font-size:clamp(39px,5vw,64px);margin-bottom:20px}
.store-welcome .store-lead{font-size:17px;line-height:1.75}
.store-welcome .store-actions{margin:24px auto}
.store-category-heading{display:block;position:static;top:auto;z-index:auto;backdrop-filter:none}
.store-collection .brand-masthead{display:none}
.mc-categories>.store-category-card{padding:0;background:var(--panel)}
.mc-categories>.store-category-card:before{display:none}
body[data-store-theme] .store-category-copy h3{color:var(--ink)}
body[data-store-theme] .store-category-copy p{color:var(--muted)}
body[data-store-theme] .store-category-copy>.mc-kicker{color:var(--accent)}

body[data-store-theme=emberglass-apothecary] .store-welcome-logo{height:100px;width:150px}
body[data-store-theme=emberglass-apothecary] .store-welcome h1{font-size:clamp(38px,4.6vw,56px)}
.store-category-heading{background-image:radial-gradient(ellipse at top,color-mix(in srgb,var(--accent) 9%,transparent),transparent 70%)}
.store-collection .store-card-catalogue{scroll-margin-top:100px}
.store-collection [data-manapool] .mc-feed-tools{padding:20px;border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);border-radius:10px;background:var(--panel)}

@media(max-width:700px){body[data-store-theme] .mc-header .store-discovery{flex:0 0 auto;width:100%;max-width:none}body[data-store-theme] .mc-header .mc-brand{margin-inline:auto}body[data-store-theme] .mc-header{gap:16px}.store-welcome h1{overflow-wrap:break-word}.store-category-heading h1{overflow-wrap:break-word}}

.mc-header .store-menu{padding:0;border:0}
@media(max-width:700px){body[data-store-theme] .mc-header{gap:12px}.mc-header .store-search-bar,.mc-header #store-search-form{flex-wrap:nowrap;min-width:0}.mc-header #store-search{min-width:0}.mc-header .store-search-bar{gap:6px}.mc-header .store-search-bar button{padding:10px 11px}.mc-header nav{line-height:1.5}}

/* Give the brand artwork its own column without adding height above the copy. */
@media(min-width:1000px){
 .store-welcome{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.6fr);column-gap:42px;row-gap:0;padding:42px 48px 38px;align-items:center}
 .store-welcome>.store-welcome-logo,body[data-store-theme=emberglass-apothecary] .store-welcome>.store-welcome-logo{grid-column:1;grid-row:1 / 5;width:100%;height:clamp(280px,27vw,370px);max-width:380px;object-fit:contain;margin:0 auto;align-self:center}
 .store-welcome>.mc-kicker{grid-column:2;grid-row:1;margin:0 0 18px}
 .store-welcome>h1{grid-column:2;grid-row:2;font-size:clamp(40px,4vw,58px);width:100%;max-width:750px;margin:0 auto 22px}
 body[data-store-theme=emberglass-apothecary] .store-welcome>h1{font-size:clamp(40px,4vw,56px)}
 .store-welcome>.store-lead{grid-column:2;grid-row:3;font-size:17px;margin:0 auto;max-width:660px}
 .store-welcome>.store-actions{grid-column:2;grid-row:4;margin:26px auto 0}
 .store-welcome>.store-promises{grid-column:1 / -1;grid-row:5;width:100%;max-width:none;margin:32px auto 0;padding-top:22px}
}

/* Category artwork and compact storefront highlights. */
.store-category-art img.category-illustration{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;filter:none;transition:transform .35s ease}
.store-category-art:has(.category-illustration){padding:0;aspect-ratio:16/9;min-height:180px;overflow:hidden}
.store-category-card:hover .category-illustration{transform:scale(1.035)}
.category-welcome{position:relative;isolation:isolate;overflow:hidden;border:1px solid #94734766;border-radius:26px;padding:clamp(28px,5vw,68px);margin-block:28px 40px;text-align:center;background:#171b17}
.category-page-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;opacity:.5}
.category-welcome::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#101613eF,#101613aa,#101613df);z-index:-1}
.category-welcome-copy{max-width:850px;margin:auto}.category-welcome .store-actions{justify-content:center}
[data-featured-store]{grid-template-columns:repeat(3,minmax(0,1fr))}
[data-featured-store] .mc-product> a{display:block}[data-featured-store] .mc-product img{width:100%;height:280px;object-fit:contain}
[data-featured-store] .mc-product h3{margin-top:0}
@media(max-width:760px){[data-featured-store]{grid-template-columns:1fr}.category-welcome{padding:28px 20px}.store-category-art:has(.category-illustration){min-height:160px}}

.store-section-heading{text-align:center;margin-inline:auto}
.store-category-grid:has(>a:only-child),.store-category-grid:has(>article:only-child){grid-template-columns:minmax(0,560px);justify-content:center}
.category-welcome,.category-welcome h1,.category-welcome p{color:#fff8e9}
.category-welcome .mc-kicker{color:#e8c68b}.category-welcome .store-cta-secondary{color:#fff8e9}
.category-welcome .store-icon{color:#e8c68b}
@media(prefers-reduced-motion:reduce){.store-category-art img.category-illustration{transition:none}.store-category-card:hover .category-illustration{transform:none}}

.category-welcome{--ink:#fff8e9;--muted:#eee4d2}.category-page-background{opacity:.85}.category-welcome::after{background:linear-gradient(90deg,#101613d9,#10161399,#101613d9)}

/* Series bookshelves: independent publication and shopping links. */
.store-series-publication,.store-series-shop{display:block;color:inherit;text-decoration:none}
.store-series-shop{flex:1}.store-series-shop .store-category-copy{height:100%;box-sizing:border-box}
.store-series-publication:focus-visible,.store-series-shop:focus-visible{outline:3px solid var(--accent);outline-offset:-4px}
.store-publication-link{position:absolute;inset:auto 0 0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:14px 22px;background:#080b13e6;color:#fff4de;font-size:12px;letter-spacing:.04em}
.store-publication-link .store-icon{width:18px;height:18px}
.store-series-breadcrumb{text-align:center;margin:0 0 20px}.store-series-breadcrumb a{color:var(--accent)}
body[data-book-series]{background-attachment:fixed}
body[data-book-series] .mc-product{border-color:color-mix(in srgb,var(--accent) 35%,transparent);box-shadow:0 12px 36px #0003}
body[data-book-series] #collection-heading{width:100%;box-sizing:border-box}
body[data-book-series] .mc-product .book-cover{object-fit:contain;padding:24px;box-sizing:border-box;background:linear-gradient(150deg,var(--panel),var(--bg))}
body[data-book-series=blood-reckoning]{--bg:#190f19;--panel:#291b29;--ink:#fff0eb;--muted:#d1b9c4;--accent:#e48c9d;background-image:radial-gradient(ellipse at top,#b14b6530,transparent 65%)}
body[data-book-series=knight]{--bg:#231921;--panel:#342832;--ink:#fff0e1;--muted:#d4c1bf;--accent:#e4bd83;background-image:radial-gradient(ellipse at top,#b8946333,transparent 65%)}
body[data-book-series=legacy-ark]{--bg:#101d2b;--panel:#1a3043;--ink:#effcff;--muted:#b6ccd8;--accent:#83d4d9;background-image:radial-gradient(ellipse at top,#63cad126,transparent 65%)}
body[data-book-series=veilfall]{--bg:#101d24;--panel:#1b2c37;--ink:#eefaff;--muted:#b7ced6;--accent:#96d2df;background-image:radial-gradient(ellipse at top,#82bfd02e,transparent 65%)}
body[data-book-series=hero-academy]{--bg:#14213a;--panel:#203450;--ink:#fff7e6;--muted:#c7d6e9;--accent:#edc77c;background-image:radial-gradient(ellipse at top,#e9b85926,transparent 65%)}
body[data-book-series=hero-homeschool]{--bg:#13342f;--panel:#20483f;--ink:#fffbe9;--muted:#d0dfce;--accent:#d7e99e;background-image:radial-gradient(ellipse at top,#b8d57626,transparent 65%)}
body[data-book-series=unseen-witnesses]{--bg:#222c20;--panel:#333c2e;--ink:#fff9e9;--muted:#d5d6bf;--accent:#e2cb87;background-image:radial-gradient(ellipse at top,#d6bf7926,transparent 65%)}
body[data-book-series=prophecies]{--bg:#252037;--panel:#373046;--ink:#fff6ff;--muted:#d6cade;--accent:#d7bdeb;background-image:radial-gradient(ellipse at top,#c4afd926,transparent 65%)}
