 :root { --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
/* Store colors stay inside the store, including its dialogs and editor preview. */
.store-design { background:var(--shop-bg); color:var(--text-strong); container-type:inline-size; min-height:100%; }
.store-design .shop-header,.store-design .shop-main { background:var(--shop-bg); }
.store-design .shop-wordmark { display:flex; align-items:center; gap:12px; }
.store-design .shop-wordmark>span { display:block; font:inherit; letter-spacing:inherit; text-transform:none; }
.store-design .shop-wordmark small { display:block; font:500 8px/1.5 var(--sans); letter-spacing:1.4px; margin-top:9px; }
.store-design .shop-footer .shop-wordmark { display:block; }
.store-logo { width:54px; height:54px; object-fit:contain; }
.store-design .store-hero,.store-design .store-benefits,.store-design .store-story,.store-design .shop-footer,
.store-design .checkout-summary { color:var(--store-surface-text); }
.store-design .store-hero h1,.store-design .store-hero p,.store-design .store-hero .eyebrow,
.store-design .store-hero-note,.store-design .store-story h2,.store-design .store-story p,
.store-design .store-story .eyebrow,.store-design .store-story .text-link,
.store-design .shop-footer .shop-wordmark,.store-design .shop-footer p,.store-design .shop-footer a,
.store-design .checkout-summary *:not(.store-primary):not(.store-primary *) { color:inherit; }
.store-design .store-hero h1 { font-size:clamp(34px,5.1cqi,60px); line-height:1.08; max-width:13ch; overflow-wrap:anywhere; }
.store-design .store-hero p,.store-design .store-story p,.brand-copy-block { white-space:pre-line; overflow-wrap:anywhere; }
.store-design .store-hero-copy { padding:55px 28px 55px 12%; }
.store-design .store-hero-art { display:flex; align-items:center; justify-content:center; min-width:0; padding:30px; }
.store-design .store-hero-art>.icon { width:130px; height:130px; opacity:.25; }
.store-design .brand-hero-photo { position:static; width:100%; height:360px; max-width:100%; object-fit:contain; border-radius:8px; }
.store-design .store-story { display:block; padding:55px 8%; }
.store-design .store-story>div { max-width:660px; }
.store-design .store-story h2 { white-space:normal; }
.store-design .store-announcement { white-space:pre-line; padding:12px 20px; line-height:1.5; }
.store-design .shop-wordmark,.store-design .collection-title h2 { overflow-wrap:anywhere; }
.store-design .store-benefits { justify-content:center; gap:45px; }
.store-design .store-empty { padding:35px 0; color:var(--text-muted); }
.store-design[data-store-theme="minimal"] { --serif:var(--sans); }
.store-design[data-store-theme="minimal"] .store-hero-copy { padding-top:75px; padding-bottom:75px; }
.store-design[data-store-theme="minimal"] .store-hero h1 { font-weight:500; letter-spacing:-2px; }
.store-design[data-store-theme="minimal"] .product-photo { border-radius:0; }
.store-design[data-store-theme="bold"] { --serif:var(--sans); }
.store-design[data-store-theme="bold"] .store-hero h1 { font-weight:800; letter-spacing:-2.8px; max-width:12ch; }
.store-design[data-store-theme="bold"] .store-primary { border-radius:28px; padding-inline:26px; font-weight:700; }
.store-design[data-store-theme="bold"] .product-photo { border-radius:20px; }
.store-design[data-store-theme="bold"] .collection-title h2 { font-weight:800; }
.storefront-settings { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:25px; margin-bottom:24px; }
.storefront-settings p { margin:8px 0 0; color:var(--text-secondary); font-size:12px; }
.branding-layout { display:grid; grid-template-columns:minmax(300px,400px) minmax(0,1fr); gap:24px; align-items:start; }
.branding-controls { padding:24px; min-width:0; }
.branding-form fieldset { border:0; border-bottom:1px solid var(--border); padding:0 0 24px; margin:0 0 26px; min-width:0; }
.branding-form legend { font-size:15px; font-weight:600; margin-bottom:16px; padding:0; }
.branding-form .field label { font-size:12px; }
.branding-form .field input,.branding-form .field textarea { font-size:13px; padding:11px 12px; }
.branding-form .field-hint { font-size:11px; line-height:1.7; color:var(--text-secondary); margin:0 0 16px; }
.theme-choice { display:grid; grid-template-columns:auto 1fr; gap:4px 12px; padding:14px; margin-bottom:10px; border:1px solid var(--border); border-radius:10px; cursor:pointer; }
.theme-choice:has(input:checked) { border-color:var(--border-strong); background:var(--surface-subtle); box-shadow:inset 0 0 0 1px var(--border-strong); }
.theme-choice input { grid-row:2; accent-color:var(--action-green); }
.theme-choice strong { grid-column:2; font-size:12px; grid-row:2; }
.theme-choice small { grid-column:2; font-size:10px; color:var(--text-secondary); line-height:1.5; }
.theme-swatches { display:flex; height:26px; overflow:hidden; grid-column:1/-1; border-radius:5px; margin-bottom:6px; }
.theme-swatches i { flex:1; background:#eeeedf; }.theme-swatches i:nth-child(2){background:#456043}.theme-swatches i:nth-child(3){background:#fbfaf5}
.theme-minimal .theme-swatches i{background:#efefef}.theme-minimal .theme-swatches i:nth-child(2){background:#343434}.theme-minimal .theme-swatches i:nth-child(3){background:#fafafa}
.theme-bold .theme-swatches i{background:#f4dfbe}.theme-bold .theme-swatches i:nth-child(2){background:#7132a8}.theme-bold .theme-swatches i:nth-child(3){background:#fff8ed}
.brand-colors { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:14px; }
.brand-colors label { display:flex; flex-direction:column; gap:8px; font-size:10px; }
.brand-colors input { width:100%; height:40px; padding:3px; border:1px solid var(--border-strong); border-radius:6px; cursor:pointer; background:var(--surface); }
.branding-form .text-link { font-size:11px; }
.brand-image-field { display:grid; gap:10px; margin-bottom:24px; }
.brand-image-field>label { font-weight:500; font-size:12px; }
.brand-image-field img { width:100%; height:100px; object-fit:contain; background:var(--surface-subtle); border:1px solid var(--border); border-radius:8px; }
.brand-image-field input { width:100%; font-size:11px; }
.brand-section-toggle { display:flex; align-items:center; gap:10px; padding-block:8px; font-size:12px; }
.brand-section-toggle input { accent-color:var(--action-green); }
.brand-language { display:grid; gap:8px; font-size:12px; margin-bottom:14px; }
.branding-form select,.branding-preview-controls select { background:var(--surface); color:var(--text-strong); border:1px solid var(--border-strong); border-radius:6px; padding:8px; font:inherit; }
.branding-save { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.branding-save .btn { flex:1; font-size:11px; padding-inline:12px; }
.branding-save p { flex-basis:100%; font-size:11px; color:var(--text-muted); }
.branding-preview-panel { min-width:0; position:sticky; top:18px; }
.branding-preview-controls { display:flex; align-items:center; gap:14px; flex-wrap:wrap; font-size:11px; padding:12px 0 18px; }
.branding-preview-controls label { display:flex; align-items:center; gap:6px; }
#branding-preview { border:1px solid var(--border); border-radius:12px; overflow:hidden; background:var(--surface-subtle); padding:14px; max-height:calc(100vh - 160px); overflow-y:auto; }
.branding-preview-viewport { width:100%; margin:auto; background:var(--surface); box-shadow:0 4px 22px var(--shadow-color); }
.branding-preview-viewport.preview-mobile { max-width:375px; }
.branding-preview-viewport .shop-header { padding:24px; }
.branding-preview-viewport .shop-wordmark { font-size:24px; }
.branding-preview-viewport .shop-header nav { display:none; }
.branding-preview-viewport .collection { padding:35px 24px; }
.branding-preview-viewport .store-story { padding:35px 24px; }
.branding-preview-viewport .shop-footer { padding:24px; }
.branding-preview-viewport .store-benefits { gap:12px; padding:15px; font-size:9px; }
.category-create { margin-top:8px; }
.category-picker [role="status"] { margin-top:8px; }
@container (max-width:600px) {
  .store-design .store-hero { grid-template-columns:1fr; }
  .store-design .store-hero-copy { padding:34px 24px; }
  .store-design .store-hero h1 { font-size:38px; max-width:16ch; }
  .store-design .store-hero-art { min-height:180px; height:220px; padding:15px; }
  .store-design .brand-hero-photo { height:200px; }
  .store-design .shop-header { gap:18px; flex-wrap:wrap; padding:20px 24px; }
  .store-design .shop-header nav { display:none; }
  .store-design .store-benefits { flex-wrap:wrap; gap:12px; }
  .store-design .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 12px; }
  .store-design .product-info>div>a>h3 { font-size:12px; }
  .store-design .collection-title h2 { font-size:27px; }
  .store-design .store-story h2 { font-size:28px; }
  .store-design .shop-footer { flex-direction:column; align-items:flex-start; gap:18px; }
}
@media(max-width:1150px) { .branding-layout { grid-template-columns:minmax(280px,340px) minmax(0,1fr); gap:16px; } }
@media(max-width:900px) {
  .branding-layout { grid-template-columns:1fr; }
  .branding-preview-panel { position:static; grid-row:1; }
  #branding-preview { max-height:540px; }
  .branding-controls { padding:22px; }
  .storefront-settings { flex-direction:column; align-items:flex-start; }
}

@media(max-width:380px) {
  .admin-topbar .preference-select select { width:84px; }
  .admin-topbar .appearance-select select { width:86px; }
  .admin-topbar .topbar-actions { gap:8px; }
}
