/* Product-category designs. Decorative artwork stays in CSS; customer content stays editable. */
:is(.buyer-body[data-home-template=playful],.template-playful,.sd-preview-viewport[data-product-template=playful],.sd-template-mini.playful,.bd-template-art.playful){--product-accent:#d94a48;--product-paper:#fff9e8;--product-ink:#50372b;--product-decoration:radial-gradient(circle at 15% 20%,#f3c74e 0 12%,transparent 12.5%),radial-gradient(circle at 86% 85%,#78bcb6 0 15%,transparent 15.5%);--product-radius:28px}
:is(.buyer-body[data-home-template=sticker],.template-sticker,.sd-preview-viewport[data-product-template=sticker],.sd-template-mini.sticker,.bd-template-art.sticker){--product-accent:#7547a5;--product-paper:#fbf3ff;--product-ink:#49354f;--product-decoration:repeating-linear-gradient(0deg,transparent 0 27px,#cfb6e32b 28px 29px),repeating-linear-gradient(90deg,transparent 0 27px,#cfb6e32b 28px 29px);--product-radius:16px}
:is(.buyer-body[data-home-template=pet],.template-pet,.sd-preview-viewport[data-product-template=pet],.sd-template-mini.pet,.bd-template-art.pet){--product-accent:#237a70;--product-paper:#eff8f3;--product-ink:#294c43;--product-decoration:radial-gradient(ellipse at 75% 30%,#bad8c8 0 11%,transparent 11.5%),radial-gradient(circle at 65% 12%,#bad8c8 0 4%,transparent 4.5%),radial-gradient(circle at 80% 9%,#bad8c8 0 4%,transparent 4.5%),radial-gradient(circle at 91% 21%,#bad8c8 0 4%,transparent 4.5%);--product-radius:28px}
:is(.buyer-body[data-home-template=beauty],.template-beauty,.sd-preview-viewport[data-product-template=beauty],.sd-template-mini.beauty,.bd-template-art.beauty){--product-accent:#965367;--product-paper:#fcf1f1;--product-ink:#61434c;--product-decoration:radial-gradient(ellipse at 75% 15%,#eacbd3 0 24%,transparent 24.5%);--product-radius:8px}
:is(.buyer-body[data-home-template=home],.template-home,.sd-preview-viewport[data-product-template=home],.sd-template-mini.home,.bd-template-art.home){--product-accent:#8b6245;--product-paper:#f7f2e9;--product-ink:#534538;--product-decoration:repeating-linear-gradient(90deg,transparent 0 36px,#d7c9af33 36px 37px);--product-radius:4px}
:is(.buyer-body[data-home-template=outdoor],.template-outdoor,.sd-preview-viewport[data-product-template=outdoor],.sd-template-mini.outdoor,.bd-template-art.outdoor){--product-accent:#3f6545;--product-paper:#eef2e8;--product-ink:#2f4835;--product-decoration:repeating-linear-gradient(0deg,transparent 0 39px,#a4b88d2b 39px 40px),repeating-linear-gradient(90deg,transparent 0 39px,#a4b88d2b 39px 40px);--product-radius:3px}

/* Category controls do not edit or publish a design. */
.client-editor .bd-template-filters{display:block;float:left;width:100%;min-width:0;padding:16px;margin:0 0 14px;background:#f6faf8;border:1px solid #dce8e1;border-radius:9px;box-sizing:border-box}
.client-editor .bd-template-filter-label{display:block;font-size:12px;font-weight:600;color:#557567;margin-bottom:10px}
.client-editor .bd-template-categories{display:flex;flex-wrap:wrap;gap:7px}
.client-editor .bd-template-category{display:flex;align-items:center;gap:7px;padding:7px 10px;min-height:34px;border:1px solid #dce6e0;background:#fff;color:#60796d;border-radius:6px;font-size:12px;font-weight:400}
.client-editor .bd-template-category strong{font-size:11px;padding:1px 5px;background:#edf3ef;border-radius:4px}
.client-editor .bd-template-category[aria-pressed=true]{background:#e8f6ed;border-color:#82bfa2;color:#187553}
.client-editor .bd-template[hidden],.client-editor .bd-template-selection [hidden]{display:none!important}
.client-editor .bd-template-selection{flex-wrap:wrap}
.client-editor .bd-template-selection .text-button{padding:3px;font-size:11px;color:#167759}
.client-editor .bd-edit-fields>:is(.bd-controls,.bd-mobile-history){clear:both}

/* Miniatures convey the real composition without requiring external images. */
.bd-template-art:is(.playful,.sticker,.pet,.beauty,.home,.outdoor),.sd-template-mini:is(.playful,.sticker,.pet,.beauty,.home,.outdoor){background-color:var(--product-paper);background-image:var(--product-decoration);color:var(--product-accent);border:1px solid color-mix(in srgb,var(--product-accent) 30%,white)}
.bd-template-art:is(.playful,.sticker,.pet,.beauty,.home,.outdoor) .bd-art-copy b{background:var(--product-accent)}
.bd-template-art:is(.playful,.sticker,.pet,.beauty,.home,.outdoor) .bd-art-copy em{background:var(--product-accent);border-radius:var(--product-radius)}
.bd-template-art:is(.playful,.sticker,.pet,.beauty,.home,.outdoor) .bd-art-image{background:color-mix(in srgb,var(--product-accent) 18%,white);border-radius:var(--product-radius);border:1px solid color-mix(in srgb,var(--product-accent) 30%,white)}
.bd-template-art.playful .bd-art-image{transform:rotate(8deg);border-radius:22px 7px 22px 7px}.bd-template-art.sticker .bd-art-image{transform:rotate(-7deg);border:2px dashed var(--product-accent)}
.bd-template-art.pet .bd-art-hero{flex-direction:row-reverse}.bd-template-art.beauty .bd-art-image{border-radius:70px 70px 4px 4px}.bd-template-art.home .bd-art-cards{grid-template-columns:1fr 1.5fr 1fr}.bd-template-art.outdoor .bd-art-image{clip-path:polygon(10% 0,100% 0,90% 100%,0 100%)}
.sd-template-mini:is(.playful,.sticker,.pet,.beauty,.home,.outdoor) .mini-button{background:var(--product-accent)}
.sd-template-mini.sticker{border-style:dashed}.sd-template-mini.beauty{border-radius:35px 35px 4px 4px}.sd-template-mini.playful{border-radius:18px 5px 18px 5px}

/* Homepage layouts, layered on the existing design tokens and content modules. */
.buyer-body:is([data-home-template=playful],[data-home-template=sticker],[data-home-template=pet],[data-home-template=beauty],[data-home-template=home],[data-home-template=outdoor]) .buyer-hero{background-image:var(--product-decoration);padding:48px 38px;border-radius:var(--product-radius);border:1px solid var(--care-line);gap:38px}
.buyer-body:is([data-home-template=playful],[data-home-template=sticker],[data-home-template=pet],[data-home-template=beauty],[data-home-template=home],[data-home-template=outdoor]) :is(.buyer-enterprise-mark,.buyer-design-hero-image){border-radius:var(--product-radius);box-shadow:0 15px 40px color-mix(in srgb,var(--design-accent) 13%,transparent);background:var(--design-surface)}
.buyer-body[data-home-template=playful] .buyer-hero{border:3px solid color-mix(in srgb,var(--design-accent) 30%,white)}
.buyer-body[data-home-template=playful] :is(.buyer-enterprise-mark,.buyer-design-hero-image){transform:rotate(3deg);border:3px solid #e4bc4e;border-radius:35px 12px 35px 12px}
.buyer-body[data-home-template=playful] .buyer-service-card:nth-child(2){background:#fef2d9}.buyer-body[data-home-template=playful] .buyer-service-card:nth-child(3){background:#e9f4f2}
.buyer-body[data-home-template=sticker] .buyer-hero{border:2px dashed color-mix(in srgb,var(--design-accent) 55%,white)}
.buyer-body[data-home-template=sticker] :is(.buyer-enterprise-mark,.buyer-design-hero-image){transform:rotate(-3deg);border:2px solid var(--design-ink);box-shadow:8px 8px 0 color-mix(in srgb,var(--design-accent) 18%,white)}
.buyer-body[data-home-template=sticker] .buyer-intro>.eyebrow{display:inline-block;padding:8px 15px;background:#fff0b8;transform:rotate(-3deg);border-radius:5px}
.buyer-body[data-home-template=sticker] .buyer-product-card:nth-child(even){transform:rotate(1deg)}
.buyer-body[data-home-template=pet] .buyer-hero-art{order:-1}.buyer-body[data-home-template=pet] :is(.buyer-enterprise-mark,.buyer-design-hero-image){border-radius:80px 24px 24px 24px}.buyer-body[data-home-template=pet] .buyer-service-icon{border-radius:40% 40% 55% 55%}
.buyer-body[data-home-template=beauty] .buyer-hero{grid-template-columns:1.05fr .95fr;padding-block:68px}.buyer-body[data-home-template=beauty] :is(.buyer-enterprise-mark,.buyer-design-hero-image){border-radius:160px 160px 12px 12px;padding-top:60px;border:1px solid #dfbfc8}.buyer-body[data-home-template=beauty] .buyer-intro h1{font-weight:400;letter-spacing:-.04em}.buyer-body[data-home-template=beauty] .buyer-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:35px}
.buyer-body[data-home-template=home] .buyer-hero{grid-template-columns:1fr 1.15fr;background-color:color-mix(in srgb,var(--design-accent) 4%,var(--design-background))}.buyer-body[data-home-template=home] :is(.buyer-enterprise-mark,.buyer-design-hero-image){border-radius:3px;box-shadow:12px 12px 0 #ded3c2}.buyer-body[data-home-template=home] .buyer-service-card{border-top:3px solid var(--design-accent);box-shadow:none}
.buyer-body[data-home-template=outdoor] .buyer-hero{background-color:#263f31;border-color:#263f31;color:#fff}.buyer-body[data-home-template=outdoor] .buyer-intro h1,.buyer-body[data-home-template=outdoor] .buyer-intro>p,.buyer-body[data-home-template=outdoor] .buyer-intro>.eyebrow,.buyer-body[data-home-template=outdoor] .buyer-hero-actions a{color:#f0f4e8}.buyer-body[data-home-template=outdoor] :is(.buyer-enterprise-mark,.buyer-design-hero-image){border-top:6px solid #bfcd94;transform:rotate(1deg)}.buyer-body[data-home-template=outdoor] .buyer-hero-note{color:#ced9c1}

/* Product artwork is replaced automatically by the merchant's own hero image. */
.buyer-body:is([data-home-template=playful],[data-home-template=sticker],[data-home-template=pet],[data-home-template=beauty],[data-home-template=home],[data-home-template=outdoor]) .buyer-enterprise-mark{background-position:center;background-size:cover;background-repeat:no-repeat}
.buyer-body:is([data-home-template=playful],[data-home-template=sticker],[data-home-template=pet],[data-home-template=beauty],[data-home-template=home],[data-home-template=outdoor]) .buyer-enterprise-mark::before,.buyer-body:is([data-home-template=playful],[data-home-template=sticker],[data-home-template=pet],[data-home-template=beauty],[data-home-template=home],[data-home-template=outdoor]) .buyer-enterprise-mark::after,.buyer-body:is([data-home-template=playful],[data-home-template=sticker],[data-home-template=pet],[data-home-template=beauty],[data-home-template=home],[data-home-template=outdoor]) .buyer-enterprise-mark>span{display:none}
.buyer-body[data-home-template=playful] .buyer-enterprise-mark{background-image:url('/assets/product-templates/playful.svg')}
.buyer-body[data-home-template=sticker] .buyer-enterprise-mark{background-image:url('/assets/product-templates/sticker.svg')}
.buyer-body[data-home-template=pet] .buyer-enterprise-mark{background-image:url('/assets/product-templates/pet.svg')}
.buyer-body[data-home-template=beauty] .buyer-enterprise-mark{background-image:url('/assets/product-templates/beauty.svg')}
.buyer-body[data-home-template=home] .buyer-enterprise-mark{background-image:url('/assets/product-templates/home.svg')}
.buyer-body[data-home-template=outdoor] .buyer-enterprise-mark{background-image:url('/assets/product-templates/outdoor.svg')}
.buyer-body[data-home-template=outdoor] :is(#buyer-title,#buyer-intro,.buyer-intro>.eyebrow){color:#f0f4e8}

/* Activation styles retain the same accessible fields, workflow and validation. */
.buyer-body #activation-dialog:is(.template-playful,.template-sticker,.template-pet,.template-beauty,.template-home) .activation-aside :is(h2,p,.activation-brand,.activation-step){color:var(--product-ink)}
.buyer-body #activation-dialog:is(.template-playful,.template-sticker,.template-pet,.template-beauty,.template-home) .activation-step-number{color:var(--product-accent);background:#fff;border-color:color-mix(in srgb,var(--product-accent) 40%,white)}
.buyer-body #activation-dialog:is(.template-playful,.template-sticker,.template-pet,.template-beauty,.template-home,.template-outdoor){border-radius:var(--product-radius);border:2px solid color-mix(in srgb,var(--product-accent) 35%,white)}
.buyer-body #activation-dialog:is(.template-playful,.template-sticker,.template-pet,.template-beauty,.template-home,.template-outdoor) .activation-aside{background-color:var(--product-paper);background-image:var(--product-decoration);color:var(--product-ink)}
.buyer-body #activation-dialog:is(.template-playful,.template-sticker,.template-pet,.template-beauty,.template-home,.template-outdoor) .primary{background:var(--product-accent);border-color:var(--product-accent);color:#fff;border-radius:var(--product-radius)}
.buyer-body #activation-dialog:is(.template-playful,.template-sticker,.template-pet,.template-beauty,.template-home,.template-outdoor) .activation-step.is-active{color:var(--product-accent)}
.buyer-body #activation-dialog:is(.template-playful,.template-sticker,.template-pet,.template-beauty,.template-home,.template-outdoor) .activation-step.is-active .activation-step-number{background:var(--product-accent);border-color:var(--product-accent);color:white}
.buyer-body #activation-dialog.template-playful .activation-shell{grid-template-columns:.85fr 1.45fr}.buyer-body #activation-dialog.template-playful .activation-card{border:2px solid #ecd88d;border-radius:24px;padding:22px;background:#fffcf0}
.buyer-body #activation-dialog.template-sticker{border-style:dashed}.buyer-body #activation-dialog.template-sticker .activation-card{border:1px solid #d6c1e7;border-radius:8px;box-shadow:6px 6px 0 #eee3f7;padding:22px}.buyer-body #activation-dialog.template-sticker .activation-step-number{border-style:dashed}
.buyer-body #activation-dialog.template-pet .activation-aside{border-radius:0 65px 0 0}.buyer-body #activation-dialog.template-pet :is(input,textarea,select){border-radius:14px}
.buyer-body #activation-dialog.template-beauty .activation-shell{grid-template-columns:1fr}.buyer-body #activation-dialog.template-beauty .activation-aside{padding:25px 34px;border-bottom:1px solid #e7ccd4}.buyer-body #activation-dialog.template-beauty .activation-aside>:is(h2,p,.activation-aside-note){display:none}.buyer-body #activation-dialog.template-beauty .activation-step-list{display:flex;flex-wrap:wrap;gap:18px;margin:14px 0 0}.buyer-body #activation-dialog.template-beauty .activation-brand{margin:0}
.buyer-body #activation-dialog.template-home .activation-aside{border-right:1px solid #d9c7af}.buyer-body #activation-dialog.template-home .activation-card{border-top:3px solid #bda27f;padding-top:20px}
.buyer-body #activation-dialog.template-outdoor .activation-aside{background-color:#263f31;color:#eef4e3}.buyer-body #activation-dialog.template-outdoor .activation-aside :is(h2,p,.activation-brand){color:#eef4e3}.buyer-body #activation-dialog.template-outdoor .activation-step.is-active{color:#dce8b9}

/* Merchant visual previews use the same palette and decorative treatment. */
.sd-preview-viewport:is([data-product-template=playful],[data-product-template=sticker],[data-product-template=pet],[data-product-template=beauty],[data-product-template=home],[data-product-template=outdoor]){background-color:var(--product-paper);background-image:var(--product-decoration)}
.sd-preview-viewport:is([data-product-template=playful],[data-product-template=sticker],[data-product-template=pet],[data-product-template=beauty],[data-product-template=home],[data-product-template=outdoor]) .sd-customer-card{border-radius:var(--product-radius);border-color:color-mix(in srgb,var(--product-accent) 30%,white)}
.sd-preview-viewport:is([data-product-template=playful],[data-product-template=sticker],[data-product-template=pet],[data-product-template=beauty],[data-product-template=home],[data-product-template=outdoor]) .sd-customer-submit{background:var(--product-accent);color:#fff}
.sd-preview-viewport[data-product-template=sticker] .sd-customer-card{border:2px dashed #b99cce;box-shadow:5px 5px 0 #e8daf2}.sd-preview-viewport[data-product-template=playful] .sd-customer-card{border:2px solid #e9cb6f}.sd-preview-viewport[data-product-template=beauty] .sd-art-circle{border-radius:50% 50% 0 0;background:#f3dfe5}.sd-preview-viewport[data-product-template=outdoor]{background-color:#263f31}.sd-preview-viewport[data-product-template=outdoor] .sd-preview-brand{color:white}
@media(max-width:760px){
 .client-editor .bd-template-filters{padding:12px;float:none}.client-editor .bd-template-category{min-height:40px}
 .buyer-body:is([data-home-template=playful],[data-home-template=sticker],[data-home-template=pet],[data-home-template=beauty],[data-home-template=home],[data-home-template=outdoor]) .buyer-hero{grid-template-columns:minmax(0,1fr);padding:30px 20px;gap:25px}
 .buyer-body[data-home-template=pet] .buyer-hero-art{order:0}.buyer-body[data-home-template=beauty] .buyer-product-grid{grid-template-columns:minmax(0,1fr)}
 .buyer-body #activation-dialog:is(.template-playful,.template-sticker,.template-pet,.template-beauty,.template-home,.template-outdoor) .activation-shell{grid-template-columns:minmax(0,1fr)}
 .buyer-body #activation-dialog.template-pet .activation-aside{border-radius:0}.buyer-body #activation-dialog:is(.template-playful,.template-sticker) .activation-card{padding:14px}
 .buyer-body #activation-dialog.template-beauty .activation-aside{padding:12px 20px}
}
@media(prefers-reduced-motion:reduce){.buyer-body[data-home-template] :is(.buyer-enterprise-mark,.buyer-design-hero-image){animation:none}}
