/* Faith Platform 1.0.4 — shared built-in theme presentation.
 * Keep merchant and theme --shop-* tokens authoritative. */
:where(.theme-lumen,.theme-mercantile,.theme-editorial){--fp-card-gap:clamp(12px,2vw,24px);--fp-section-space:clamp(32px,5vw,68px);--fp-card-shadow:0 5px 20px rgba(0,0,0,.055)}
.theme-mercantile{--fp-card-shadow:0 3px 12px rgba(0,0,0,.08)}
.theme-editorial{--fp-card-shadow:none}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .site-header{gap:20px;padding-block:clamp(14px,2vw,25px)}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .site-header>*{min-width:0}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .site-header nav a:hover,
:is(.theme-lumen,.theme-mercantile,.theme-editorial) footer a:hover{text-decoration:underline;text-underline-offset:4px}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) a:focus-visible,
:is(.theme-lumen,.theme-mercantile,.theme-editorial) button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .hero{min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,70px);padding:clamp(28px,5vw,64px);margin:24px 0 0;border:1px solid var(--shop-line);border-radius:calc(var(--shop-radius)*1.5);background:var(--shop-surface);background:linear-gradient(125deg,var(--shop-bg),var(--shop-surface) 70%,color-mix(in srgb,var(--shop-accent) 13%,var(--shop-surface)))}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .hero h1{font-size:clamp(34px,5vw,64px);line-height:1.08;letter-spacing:-.035em;overflow-wrap:anywhere}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .hero p{font-size:clamp(15px,1.5vw,18px);line-height:1.65}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .hero-actions{flex-wrap:wrap;gap:12px}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .hero-art{height:auto;aspect-ratio:5/4;min-height:0;background:var(--shop-surface);isolation:isolate}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .hero-art:has(.product-orb){background:radial-gradient(ellipse at 72% 20%,color-mix(in srgb,var(--shop-accent) 18%,var(--shop-bg)),transparent 65%),var(--shop-surface)}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-orb{width:65%;height:75%;background:linear-gradient(145deg,var(--shop-surface),var(--shop-accent));opacity:.65;border-radius:50% 50% 12% 12%;transform:translate(-50%,-50%);box-shadow:var(--shop-shadow)}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .design-hero-image{display:block;object-fit:cover;position:absolute;inset:0}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .section{padding:var(--fp-section-space) 0}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .section-heading{gap:16px;flex-wrap:wrap;margin-bottom:22px}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .section-heading h2{font-family:var(--shop-heading);font-size:clamp(25px,3vw,38px);line-height:1.15}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .section-heading>a{font-weight:600;text-decoration:underline;text-underline-offset:4px}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--fp-card-gap);align-items:stretch}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-card{min-width:0;display:flex;flex-direction:column;gap:12px;padding:10px;border:1px solid var(--shop-line);border-radius:var(--shop-radius);background:var(--shop-bg);box-shadow:var(--fp-card-shadow);transition:box-shadow .18s ease,transform .18s ease}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-image{aspect-ratio:1/1;min-width:0;transform:none!important;border-radius:var(--shop-radius)}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-image img{object-fit:contain;min-width:0;min-height:0}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-card h3{font-size:clamp(14px,1.4vw,18px);line-height:1.35;overflow-wrap:anywhere}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-card>div:nth-child(2){padding:0 5px 4px}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-card p{font-weight:600;color:var(--shop-text)}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .btn:not(:disabled){transition:box-shadow .18s ease,transform .18s ease}
@media(hover:hover){:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-card:hover{transform:translateY(-3px);box-shadow:var(--shop-shadow)}:is(.theme-lumen,.theme-mercantile,.theme-editorial) .btn:not(:disabled):hover{box-shadow:0 4px 12px rgba(0,0,0,.12);transform:translateY(-1px)}}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) footer{margin-top:clamp(28px,5vw,60px);padding:clamp(24px,4vw,48px);background:var(--shop-surface);border-radius:var(--shop-radius) var(--shop-radius) 0 0;gap:clamp(20px,3vw,40px)}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) footer>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:900px){:is(.theme-lumen,.theme-mercantile,.theme-editorial) .hero{grid-template-columns:minmax(0,1fr);gap:24px}:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}:is(.theme-lumen,.theme-mercantile,.theme-editorial) .site-header{gap:10px}:is(.theme-lumen,.theme-mercantile,.theme-editorial) .site-header .design-nav{margin-top:0}}
@media(max-width:520px){:is(.theme-lumen,.theme-mercantile,.theme-editorial) .hero{padding:22px 16px;margin-top:14px}:is(.theme-lumen,.theme-mercantile,.theme-editorial) .hero-art{aspect-ratio:5/4;height:auto}:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-card{padding:7px;gap:8px}:is(.theme-lumen,.theme-mercantile,.theme-editorial) .header-actions a:not(:last-child){display:inline-flex}:is(.theme-lumen,.theme-mercantile,.theme-editorial) .header-actions{flex-wrap:wrap;justify-content:flex-end;font-size:12px}:is(.theme-lumen,.theme-mercantile,.theme-editorial) .design-logo{max-width:110px;width:100%;height:auto}}
@media(prefers-reduced-motion:reduce){:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-card,:is(.theme-lumen,.theme-mercantile,.theme-editorial) .btn{transition:none!important;transform:none!important}}

/* Visual refinement: component dimensions only; Design Studio global width and text tokens remain untouched. */
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-image{aspect-ratio:5/3;background:var(--shop-bg)}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-image img{object-fit:contain;max-width:100%;max-height:100%}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-card>div:nth-child(2){display:grid;gap:.25rem;padding:.3rem .35rem .6rem}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-card h3,:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-card p{margin:0}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-card:focus-visible{outline:2px solid var(--shop-accent);outline-offset:3px}
:is(.theme-lumen,.theme-mercantile,.theme-editorial):is(.fp-view-shop,.fp-view-search,.fp-view-collection) .page-head + .section{padding-top:clamp(12px,2vw,28px)}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .fp-shopping-navigation input{border:1px solid var(--shop-line);border-radius:var(--shop-radius);min-height:44px;background:var(--shop-bg);color:var(--shop-text)}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-gallery .product-photo.large{aspect-ratio:5/4}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-buy form{gap:.85rem}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .product-buy :is(select,input[name=quantity],button.btn){min-height:44px}


/* 4.6.40: local commerce and information components; no global layout overrides. */
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .fp-information-body .fp-info-question{padding:0;overflow:hidden}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .fp-info-question summary{padding:.85rem 1rem;min-height:44px;list-style-position:inside}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .fp-info-question[open] summary{border-bottom:1px solid var(--shop-line);margin:0}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .fp-info-question p{padding:1rem;margin:0}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .fp-info-question summary:focus-visible{outline-offset:-4px}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .fp-related-info a{border:1px solid var(--shop-line);border-radius:var(--shop-radius);padding:.45rem .9rem}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) :is(.auth-card,.receipt-card) form:not([action="/cart/update"]){display:grid;gap:.85rem;min-width:0}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) :is(.auth-card,.receipt-card,.checkout-form) label:not(.radio){display:grid;gap:.35rem;min-width:0}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) :is(.auth-card,.receipt-card,.checkout-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){width:100%;min-width:0;max-width:100%;min-height:44px;padding:.65rem .75rem;border:1px solid var(--shop-line);border-radius:calc(var(--shop-radius) * .6);background:var(--shop-bg);color:var(--shop-text)}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) :is(.auth-card,.receipt-card,.checkout-form,.cart-actions,.faith-review-total) .btn{min-height:44px;white-space:normal;text-align:center}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .fp-account-actions{display:grid;gap:.75rem}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .fp-account-actions .btn{width:100%}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .checkout-form h2{padding-top:1rem;border-top:1px solid var(--shop-line)}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .checkout-form h2:first-of-type{border-top:0;padding-top:0}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .checkout-form :is(.two,.three){min-width:0;gap:.85rem}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .checkout-form .two{grid-template-columns:repeat(2,minmax(0,1fr))}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .checkout-form details{border:1px solid var(--shop-line);border-radius:var(--shop-radius);padding:.75rem;display:block}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .checkout-form details summary{cursor:pointer;padding:.4rem 0;min-height:44px}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .checkout-form details[open] label{margin-top:.75rem}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .checkout-form .radio{min-height:44px;flex-wrap:wrap}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .payment-placeholder{padding:1rem;border-style:solid}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .cart-line>div{min-width:0;overflow-wrap:anywhere}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .cart-line .mini-product img{width:100%;height:100%;object-fit:contain}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .cart-line input[type=number]{min-height:44px;max-width:100%;min-width:0}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .cart-actions{flex-wrap:wrap;gap:.75rem}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) :is(.auth-card,.receipt-card,.checkout-form,.cart-actions,.faith-review-total,.fp-related-info,footer) :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--shop-accent);outline-offset:3px}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) footer>div{row-gap:.6rem}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) footer>div>a:not(.logo){display:block;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:520px){
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .checkout-form .two{grid-template-columns:1fr}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) :is(.receipt-card,.auth-card,.summary){padding:1rem;min-width:0}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) .cart-actions>*{flex:1 1 100%}
:is(.theme-lumen,.theme-mercantile,.theme-editorial) footer>div>a:not(.logo){padding-block:.35rem}
}
