.store-editor-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; margin: 18px 0 12px; background: #edf1e7; border-radius: 13px; }
.store-editor-tabs button { padding: 8px 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--forest); font: inherit; font-weight: 700; cursor: pointer; }
.store-editor-tabs button:hover { background: #fff; }
.store-editor-tabs button[aria-pressed="true"] { background: var(--forest); color: #fff; }
#store-settings-form [data-editor-panel][hidden], #store-settings-form [data-layout-fields][hidden], #store-settings-form [data-commerce-banners][hidden] { display: none; }
.section-kind { float: right; color: var(--muted); text-transform: capitalize; font-size: .81rem; font-weight: 600; }
.section-media { padding: 14px; border-radius: 12px; margin: 9px 0; background: #eef2e9; }
.section-art-preview:not(:empty) { max-width: 240px; margin-bottom: 10px; }
.section-art-preview img,.section-art-preview svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.section-media [data-banner-status]:empty { display: none; }
.template-builder-sample { display: grid; gap: 10px; padding: 18px; }
.template-builder-sample>div { padding: 12px; border: 1px solid #ddd7ce; border-radius: 12px; }
.template-builder-sample strong { display: block; }
.preview-toolbar .canvas-label+.canvas-label { margin-inline-start: 8px; }
.template-sections:empty { display: none; }
.template-sections { display: grid; gap: 20px; padding-block: clamp(24px, 5vw, 54px); }
.template-sections h2,.editorial-detail h1 { font: 500 clamp(1.8rem, 4vw, 3.2rem)/1.03 Georgia, serif; color: var(--ink); margin: 0 0 8px; }
.template-sections p { margin: 0 0 12px; }
.template-text,.template-lineup { padding-block: 8px; }
.template-text p,.template-lineup>p { max-width: 65ch; white-space: pre-line; }
.template-banner,.template-editorial-card { background: var(--wash); border-radius: 16px; padding: clamp(16px, 3vw, 33px); display: grid; align-items: center; gap: 18px; grid-template-columns: minmax(0,1fr) minmax(0,.65fr); }
.template-editorial-card { grid-template-columns: minmax(0,.65fr) minmax(0,1fr); background: white; border: 1px solid var(--line); }
.template-editorial-card .product-art,.template-photo,.template-art { display: block; width: 100%; border-radius: 12px; }
.template-photo { aspect-ratio: 5 / 3; object-fit: cover; }
.hero-art .template-art,.hero-art .template-photo { display: block; width: 100%; border-radius: 25px; }
.promo-banner .template-art { border-radius: 12px; }
.template-blog .template-sections { grid-template-columns: repeat(2,minmax(0,1fr)); }
.template-blog .template-banner { grid-template-columns: minmax(0,1fr); align-content: start; }
.template-blog .template-editorial-card { grid-template-columns: minmax(0,1fr); align-content: start; }
.template-review .template-review-card { grid-template-columns: minmax(110px,.34fr) minmax(0,1fr); }
.template-review .template-review-card .product-art { aspect-ratio: 1.2; }
.editorial-rating { color: var(--ink); font-weight: 800; }
.editorial-detail { max-width: 760px; padding-block: 40px 60px; }
.editorial-detail h1 { font-size: clamp(2.5rem, 7vw, 4.65rem); }
.editorial-detail>.product-art { width: min(100%,430px); aspect-ratio: 1.2; border-radius: 14px; }
.editorial-copy { white-space: pre-wrap; margin-block: 22px; max-width: 65ch; }

.template-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.shop-page .shop-hero { border-bottom: 1px solid var(--line); }
.shop-page .shop-hero h1 { text-wrap: balance; overflow-wrap: anywhere; }
.template-ecommerce .shop-hero { background: linear-gradient(115deg, var(--paper), var(--wash)); }
.template-ecommerce .hero-art .product-art { aspect-ratio: 1.3; border-radius: 22px; }
.template-ecommerce .promo-top:not([hidden]) { margin-top: 2px; }
.template-ecommerce .curated-link .product-art { border-radius: 16px; aspect-ratio: 1.26; }

.template-blog .shop-hero { background: var(--paper); }
.template-blog .shop-hero-grid { grid-template-columns: minmax(0,1fr); text-align: center; padding-block: clamp(34px,6vw,76px); }
.template-blog .shop-hero h1 { max-width: 17ch; margin-inline: auto; }
.template-blog .shop-intro>p:not(.kicker) { max-width: 52ch; margin-inline: auto; }
.template-blog .template-hero-actions { justify-content: center; }
.template-blog .hero-art { justify-self: center; }
.template-blog .template-sections { width: min(1020px, calc(100% - 56px)); }
.template-blog .template-editorial-card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0 0; }
.template-blog .template-editorial-card .template-art { aspect-ratio: 2.1; object-fit: cover; }
.template-blog .template-editorial-card .product-art { aspect-ratio: 1; }
.template-blog .template-lead-story { grid-column: 1/-1; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center; gap: clamp(16px,4vw,44px); }
.template-blog .template-lead-story .template-art { aspect-ratio: auto; }
.template-blog .editorial-detail .page-lead { font: 1.3rem/1.55 Georgia, serif; }
.template-blog .editorial-detail .editorial-copy { font: 1.15rem/1.75 Georgia, serif; }

.template-small .shop-hero { background: var(--paper); }
.template-small .shop-hero-grid { grid-template-columns: minmax(0,1fr); padding-block: clamp(25px,4vw,49px); }
.template-small .shop-hero h1 { max-width: 21ch; font-size: clamp(2.3rem,5.4vw,4.2rem); }
.template-small .shop-intro>p:not(.kicker) { max-width: 53ch; }
.template-small .template-has-hero-art .shop-hero-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
.template-small .template-sections { padding-top: 22px; }
.lineup-heading,.comparison-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.lineup-heading>span,.comparison-heading>span { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.template-small .template-lineup .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.template-small .template-lineup .product { border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: #fff; min-width: 0; }
.template-small .template-lineup .product-art { border-radius: 8px; }
.template-small .template-text { border-top: 1px solid var(--line); padding-top: 22px; }

.template-review .shop-hero { background: var(--ink); color: white; }
.template-review .shop-hero h1,.template-review .shop-intro .kicker,.template-review .shop-intro>p:not(.kicker),.template-review .shop-hero .return-link { color: white; }
.template-review .shop-hero .primary { background: white; color: var(--ink); }
.template-review .shop-hero-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
.template-review .shop-hero h1 { font-size: clamp(2.65rem,5.9vw,5.4rem); max-width: 13ch; }
.template-review .hero-art .template-art { border-radius: 14px; }
.template-comparison { background: var(--wash); border-radius: 16px; padding: clamp(16px,3vw,28px); }
.template-comparison ul { list-style: none; padding: 0; margin: 10px 0 0; }
.template-comparison li { display: grid; grid-template-columns: 56px minmax(0,1fr) auto auto; align-items: center; gap: 8px 15px; padding: 11px 0; border-top: 1px solid var(--line); }
.template-comparison .product-art { width: 56px; aspect-ratio: 1; border-radius: 7px; }
.comparison-product { grid-column: 2; }
.comparison-product span { display: block; color: var(--muted); font-size: .9rem; }
.comparison-score { font-weight: 750; color: var(--ink); white-space: nowrap; }
.template-review .template-review-card { border-radius: 12px; }
.template-review .editorial-detail .editorial-rating { display: inline-block; padding: 6px 13px; border-radius: 99px; background: var(--wash); }

.template-builder-sample[data-layout="blog"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.template-builder-sample[data-layout="blog"]>div:first-child { grid-column: 1/-1; }
.template-builder-sample[data-layout="small"]>div:first-child { background: var(--wash, #f5f4ef); }
.template-builder-sample[data-layout="review"]>div { border-inline-start: 4px solid currentColor; }
@media(max-width:650px) {
  .template-blog .template-sections,.template-blog .template-lead-story,.template-banner,.template-editorial-card,.template-review .template-review-card,
  .template-review .shop-hero-grid,.template-small .template-has-hero-art .shop-hero-grid { grid-template-columns: minmax(0,1fr); }
  .template-blog .template-sections { width: calc(100% - 30px); }
  .template-review .hero-art { justify-self: start; max-width: 290px; }
  .template-small .template-lineup .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .template-small .template-lineup .product { padding: 8px; }
  .template-comparison li { grid-template-columns: 40px minmax(0,1fr) auto; gap: 6px 9px; }
  .template-comparison .product-art { width: 40px; }
  .template-comparison li .return-link { grid-column: 2/-1; justify-self: start; }
  .store-editor-tabs button { padding: 7px 9px; font-size: .92rem; }
}
