/* REVESTE — workspace oficial e única do editor visual. */
body.store-editor-mode { overflow: hidden; }
body.store-editor-mode > .footer,
body.store-editor-mode > .bottom-nav { display: none !important; }
.store-editor[hidden] { display: none !important; }
.store-editor { display: grid; grid-template-rows: auto minmax(0,1fr); width: 100%; min-width:0; max-width: none; height: calc(100dvh - var(--desktop-header-height,68px)); min-height: 0; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: var(--surface); }
.store-editor__toolbar { position: relative; z-index: 40; display: grid; grid-template-columns: minmax(260px,1fr) auto minmax(0,auto); align-items: center; gap: 16px; width:100%;min-width:0;overflow:hidden; padding: 12px 18px; border-bottom: 1px solid var(--border); background: color-mix(in srgb,var(--surface) 96%,transparent); backdrop-filter: blur(16px); }
.store-editor__heading { display:flex; align-items:center; gap:14px; min-width:0; }
.store-editor__heading h1 { margin:0; font-size:var(--text-xl); }
.store-editor__toolbar .config-section__label { padding: 0; }
.store-editor__toolbar h3 { margin-top: 2px; font-size: var(--text-xl); }
.store-editor__status { margin-top: 3px; color: var(--text3); font-size: var(--text-xs); }
.store-editor__status[data-state="dirty"],.store-editor__status[data-state="error"] { color: var(--warning,var(--accent)); }
.store-editor__status[data-state="published"] { color: var(--success); }
.store-editor__viewport,.store-editor__actions { display: flex; gap: 6px; min-width:0; }
.store-editor__modes { display:flex;gap:6px; }.store-editor__modes button[aria-pressed="true"] { border-color:var(--accent);color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent); }
.store-editor__actions { flex-wrap:wrap;justify-content:flex-end; }
.store-editor__viewport { padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.store-editor__viewport button { min-height: 36px; padding: 6px 10px; border-radius: 7px; color: var(--text2); font-size: var(--text-xs); }
.store-editor__viewport button[aria-pressed="true"] { color: var(--text); background: var(--surface2); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.store-editor__workspace { display: grid; grid-template-columns: 288px minmax(0,1fr); width:100%; min-width:0; min-height:0; overflow:hidden; }
.store-editor__sidebar { position: relative; align-self: stretch; width:288px; max-height:none; min-height:0; overflow-y: auto; overscroll-behavior:contain; padding: 18px 14px; border-right: 1px solid var(--border); background: var(--surface); }
.store-editor__sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.store-editor__sidebar-head button { display: none; width: 44px; height: 44px; font-size: 1.4rem; }
.store-editor__sidebar section + section,.store-editor__structure-controls { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.store-editor__sidebar h2,.store-editor__sidebar h4 { color: var(--text); font: var(--weight-bold) var(--text-xs)/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.store-editor__sidebar section > p { margin: 4px 0 12px; color: var(--text3); font-size: var(--text-xs); line-height: 1.45; }
.store-editor__module-list { display: grid; gap: 7px; }
.store-editor__module-item,.store-editor__available { display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; align-items: center; gap: 7px; min-height: 46px; padding: 6px 7px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); }
.store-editor__module-item.is-selected { border-color: var(--accent); box-shadow: inset 3px 0 var(--accent); }
.store-editor__drag { color: var(--text3); cursor: grab; }
.store-editor__module-icon { display: grid; place-items: center; width: 24px; color: var(--accent); }
.store-editor__module-item > button { min-width: 0; overflow: hidden; padding: 6px 2px; color: var(--text); font-size: var(--text-sm); text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.store-editor__item-actions { display: flex; }
.store-editor__item-actions button { width: 30px; height: 32px; color: var(--text3); font-size: var(--text-xs); }
.store-editor__item-actions button:disabled { opacity: .3; }
.store-editor__available { grid-template-columns: minmax(0,1fr) auto; }
.store-editor__available span { overflow: hidden; font-size: var(--text-sm); text-overflow: ellipsis; white-space: nowrap; }
.store-editor__available button { min-height: 36px; padding: 5px 8px; color: var(--accent); font-size: var(--text-xs); font-weight: 700; }
.store-editor__structure-controls { display: grid; gap: 10px; }
.store-editor__structure-controls label { display: grid; gap: 5px; color: var(--text2); font-size: var(--text-xs); }
.store-editor__structure-controls small { color: var(--text3); font-size: 11px; line-height: 1.45; }
.store-editor__structure-toggle { display: none; }
.store-editor__stage { width:100%; min-width: 0; min-height:0; overflow: auto; overscroll-behavior:contain; padding: 20px; background: var(--bg2,var(--bg)); }
.store-editor__frame { position: relative; width:100%; min-width:1024px; margin:0; container: store-preview / inline-size; transition: width .25s ease; }
.store-editor__frame[data-viewport="tablet"] { width:820px; min-width:768px; margin-inline:auto; }
.store-editor__frame[data-viewport="mobile"] { width:390px; min-width:320px; margin-inline:auto; }
.store-editor__canvas { width: 100%; min-height: 680px; overflow: hidden; border: 1px solid #302b25; border-radius: 10px; color: #eee8df; background: #0d0c0a; box-shadow: 0 18px 45px rgba(0,0,0,.24); }
.store-editor-site { min-height: 100%; color: #eee8df; background: radial-gradient(circle at 80% 10%,#21170f,#0d0c0a 36%); font-family: var(--font-ui); }
.store-editor__hero { position: relative; min-height: var(--store-hero-height,360px); display: grid; align-items: end; overflow: hidden; isolation: isolate; container-type:inline-size; }
.store-editor__hero-media,.store-editor__hero-media picture,.store-editor__hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.store-editor__hero-media { background: #1c1712; }
.store-editor__hero-media img { object-fit: cover; object-position: var(--hero-desktop-position,center); }
.store-editor__hero-media > span { position: absolute; inset: 0; display: grid; place-items: center; color: #8f8274; }
.store-editor__hero-media > .store-editor__hero-fallback { align-content:center;gap:8px;color:#e9dfd2;text-align:center;background:radial-gradient(circle at 72% 26%,#5a3924 0,#21150e 25%,#0b0a09 68%); }
.store-editor__hero-fallback small { color:var(--store-accent,#c9a96e);font-size:10px;font-weight:700;letter-spacing:.25em; }
.store-editor__hero-fallback strong { font:500 clamp(26px,5cqi,58px)/1 var(--store-font-title,var(--font-editorial));letter-spacing:.16em; }
.store-editor__hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg,rgba(8,7,6,var(--hero-overlay,.35)),rgba(8,7,6,var(--hero-overlay,.35)) 56%,rgba(8,7,6,.08)); pointer-events: none; }
.store-editor__hero-content { position: relative; z-index: 2; display: grid; grid-template-columns:minmax(190px,.9fr) 112px minmax(260px,1.35fr) auto minmax(70px,.35fr); align-items:end; gap:clamp(14px,2.2cqi,30px); padding:clamp(24px,4cqi,58px); }
.store-editor__hero-editorial { align-self:center; }.store-editor__hero-editorial small { display:block;color:#c9a96e;text-transform:uppercase; }.store-editor__hero-editorial h2 { margin:8px 0 6px;font-family:var(--font-editorial);font-size:clamp(28px,4cqi,52px);line-height:1.02; }.store-editor__hero-editorial p { max-width:32ch;color:#ded4c8; }.store-editor__hero-editorial i { display:block;width:30px;height:2px;margin-top:14px;background:#c9a96e; }
.store-editor__hero-identity { align-self:end;min-width:0; }.store-editor__hero-identity h1 { margin:0 0 6px; }.store-editor__hero-identity > small { display:block;margin-block:4px;color:#c0b7ac; }.store-editor__hero-identity p { margin-top:8px;color:#d1c8bd; }
.store-editor__hero-actions { display:flex;align-items:center;gap:7px;white-space:nowrap; }.store-editor__hero-actions button { min-height:34px;padding:7px 11px;border:1px solid #6f6251;border-radius:999px;color:#f1e8db;background:rgba(12,11,9,.66);font-size:11px; }.store-editor__hero-actions button:first-child { border-color:#d9b978;color:#1a140d;background:#d9b978;font-weight:700; }
.store-editor__hero-content > [data-text-field="hero.sidePhrase"] { align-self:center;max-width:9ch;color:#d9b978;text-transform:uppercase;word-break:normal; }
.store-editor__logo { width: 104px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 2px solid #c9a96e; border-radius: 50%; background: #17130f; color: #c9a96e; font: 2rem var(--font-editorial); }
.store-editor__logo img { width: 100%; height: 100%; object-fit: cover; }
.store-editor__hero [data-text-field="hero.slogan"] { margin-bottom: 8px; color: #c9a96e; font-family: var(--font-mono); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.store-editor__hero h1 { margin-bottom: 8px; font-size: clamp(2rem,5vw,4rem); }
.store-editor__hero [data-text-field="hero.description"] { max-width: 58ch; color: #c9c1b7; line-height: 1.6; }
.store-editor-site[data-hero-layout="centered"] .store-editor__hero-content { text-align:center; }.store-editor-site[data-hero-layout="centered"] .store-editor__hero-editorial i { margin-inline:auto; }
.store-editor-site[data-hero-layout="editorial-right"] .store-editor__hero-editorial { text-align:right; }.store-editor-site[data-hero-layout="editorial-right"] .store-editor__hero-editorial i { margin-left:auto; }
.store-editor__site-nav { display: flex; gap: 28px; padding: 0 clamp(20px,5vw,64px); border-block: 1px solid #2e2923; }
.store-editor__site-nav span { padding: 14px 2px 11px; color: #aaa198; font-size: 12px; }
.store-editor__site-nav .active { color: #d9b978; border-bottom: 2px solid #d9b978; }
.store-editor__module-grid { display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;gap:var(--store-gap,18px);padding:var(--store-gap,18px) clamp(20px,5vw,64px) 32px; }
.store-editor__module { position:relative;grid-column:span 12;min-width:0;padding:var(--store-padding,24px);border:1px solid #312d27;border-radius:var(--store-radius,12px);background:linear-gradient(145deg,#171512,#11100e);container-type:inline-size; }
.store-editor__module.span-3-4 { grid-column: span 9; }
.store-editor__module.span-2-3 { grid-column: span 8; }
.store-editor__module.span-1-2 { grid-column: span 6; }
.store-editor__module.span-1-3 { grid-column: span 4; }
.store-editor__module.span-1-4 { grid-column: span 3; }
.store-editor__module[data-module-slot="main"] { order:0; }.store-editor__module[data-module-slot="aside"] { order:10;align-self:start; }
.store-editor__module.variant-compact { padding:min(var(--store-padding,24px),16px); }.store-editor__module.variant-compact header { margin-bottom:9px; }
.store-editor__module.variant-media-left,.store-editor__module.variant-media-right { display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,1.2fr);gap:16px;align-items:center; }.store-editor__module.variant-media-left header { grid-column:2; }.store-editor__module.variant-media-left .store-editor__media { grid-column:1;grid-row:1/3; }.store-editor__module.variant-media-right .store-editor__media { grid-column:2;grid-row:1/3; }.store-editor__module.variant-horizontal-editorial .store-editor__media { aspect-ratio:8/3; }.store-editor__module.variant-three-card :is(.store-editor__posts,.store-editor__collections) { grid-template-columns:repeat(3,minmax(0,1fr)); }
.store-editor__module[data-module-type="promo"] { display:flex;flex-direction:column; }
.store-editor__module[data-module-type="promo"] > .store-editor__media { flex:1 1 auto;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px; }
.store-editor__module.is-selected,.store-editor__module.is-linked,.store-editor__hero.is-selected { outline: 2px solid #d9b978; outline-offset: -2px; }
.store-editor__module-actions { position: absolute; top: 7px; right: 7px; z-index: 5; display: flex; align-items: center; gap: 4px; opacity: 0; transition: opacity .15s; }
.store-editor__module:hover .store-editor__module-actions,.store-editor__module:focus-within .store-editor__module-actions { opacity: 1; }
.store-editor__module-actions button,.store-editor__hero-media button { min-height: 32px; padding: 5px 8px; border: 1px solid #4a4238; border-radius: 7px; color: #eadfcf; background: rgba(12,11,9,.88); font-size: 11px; }
.store-editor__hero-media button { position: absolute; right: 14px; bottom: 14px; z-index: 4; opacity: 0; }
.store-editor__hero:hover .store-editor__hero-media button,.store-editor__hero:focus-within .store-editor__hero-media button { opacity: 1; }
.store-editor__module header { margin-bottom: 14px; padding-right: 78px; }
.store-editor__module header h2 { font-size: 1.35rem; }
.store-editor__module header p { margin-top: 4px; color: #a9a097; font-size: 12px; }
.store-editor__editable,.store-editor__readonly { color:var(--editor-text-color,#eee8df);font-size:var(--editor-font-size,inherit);font-weight:var(--editor-font-weight,inherit);line-height:var(--editor-line-height,inherit);letter-spacing:var(--editor-letter-spacing,inherit);text-align:var(--editor-text-align,left);border-radius:4px;outline:0; }
.store-editor__editable { cursor: text; }
.store-editor__readonly { cursor: pointer; }
.store-editor__editable:hover { box-shadow: 0 0 0 1px rgba(217,185,120,.55); }
.store-editor__editable:focus,.store-editor__readonly:focus { box-shadow: 0 0 0 2px #d9b978; }
:is(.store-editor__editable,.store-editor__readonly)[data-font="inter"] { font-family: var(--font-ui); }:is(.store-editor__editable,.store-editor__readonly)[data-font="georgia"] { font-family: Georgia,serif; }:is(.store-editor__editable,.store-editor__readonly)[data-font="system-sans"] { font-family: system-ui,sans-serif; }:is(.store-editor__editable,.store-editor__readonly)[data-font="arial"] { font-family: Arial,sans-serif; }:is(.store-editor__editable,.store-editor__readonly)[data-font="dm-mono"] { font-family: var(--font-mono); }
:is(.store-editor__editable,.store-editor__readonly)[data-size="xs"] { font-size: 11px }:is(.store-editor__editable,.store-editor__readonly)[data-size="sm"] { font-size: 13px }:is(.store-editor__editable,.store-editor__readonly)[data-size="base"] { font-size: 15px }:is(.store-editor__editable,.store-editor__readonly)[data-size="md"] { font-size: 16px }:is(.store-editor__editable,.store-editor__readonly)[data-size="lg"] { font-size: 18px }:is(.store-editor__editable,.store-editor__readonly)[data-size="xl"] { font-size: 22px }:is(.store-editor__editable,.store-editor__readonly)[data-size="2xl"] { font-size: 30px }:is(.store-editor__editable,.store-editor__readonly)[data-size="display"] { font-size: clamp(36px,6cqi,72px) }
:is(.store-editor__editable,.store-editor__readonly)[data-weight="normal"] { font-weight: 400 }:is(.store-editor__editable,.store-editor__readonly)[data-weight="medium"] { font-weight: 500 }:is(.store-editor__editable,.store-editor__readonly)[data-weight="semibold"] { font-weight: 600 }:is(.store-editor__editable,.store-editor__readonly)[data-weight="bold"] { font-weight: 700 }
:is(.store-editor__editable,.store-editor__readonly)[data-align="center"] { text-align: center }:is(.store-editor__editable,.store-editor__readonly)[data-align="right"] { text-align: right }
.store-editor__products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.store-editor__product { min-width: 0; overflow: hidden; border: 1px solid var(--store-border,#302c26); border-radius: 8px; background:var(--store-bg,#0d0c0b);color:var(--store-text,#eee8df); }
.store-editor__product > div { aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; background:var(--store-surface,#24211d);color:var(--store-text-muted,#6f655b); }
.store-editor__product img { width: 100%; height: 100%; object-fit: cover; }
.store-editor__product small,.store-editor__product strong,.store-editor__product b { display: block; overflow: hidden; padding-inline: 9px; text-overflow: ellipsis; white-space: nowrap; }
.store-editor__product small { padding-top: 8px; color:var(--store-text-muted,#9b9187); font-size: 9px; text-transform: uppercase; }.store-editor__product strong { padding-top: 3px; font: 500 12px var(--font-editorial); }.store-editor__product b { padding-block: 5px 9px; font-size: 11px; }
.store-editor__collections,.store-editor__posts { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px; }
.store-editor__contact { display:grid;gap:7px; }.store-editor__contact span { display:grid;grid-template-columns:minmax(76px,.35fr) minmax(0,1fr);align-items:baseline;gap:8px;padding:7px 9px; }.store-editor__contact span strong { min-width:0;overflow-wrap:anywhere;font-size:clamp(10px,4.5cqi,13px);font-weight:500; }
.store-editor__collections article,.store-editor__post,.store-editor__contact span { min-width: 0; padding: 12px; border:1px solid var(--store-border,#302c26);border-radius:8px;background:var(--store-bg,#0d0c0b);color:var(--store-text,#eee8df); }
.store-editor__collections small { display: block; margin-top: 4px; color:var(--store-text-muted,#9b9187); font-size: 10px; }
.store-editor__post img { width: 100%; aspect-ratio: 16/9; margin-bottom: 8px; object-fit: cover; border-radius: 5px; }.store-editor__post small { color:var(--store-text-muted,#bba98f);font-size:9px; }.store-editor__post p { margin-top: 6px; font-size: 11px; line-height: 1.45; }.store-editor__poll-options { display: grid; gap: 4px; margin-top: 8px; }.store-editor__poll-options span { padding:5px 7px;border-radius:999px;background:var(--store-surface,#29251f);font-size:9px; }
.store-editor__media { position: relative; min-height: 170px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background:color-mix(in srgb,var(--store-surface) 75%,var(--store-bg));color:var(--store-text-muted); }.store-editor__media::after { content:"";position:absolute;inset:0;background:rgba(0,0,0,var(--media-overlay,0));pointer-events:none; }.store-editor__media[data-ratio="8/3"] { aspect-ratio:8/3; }.store-editor__media[data-ratio="16/9"] { aspect-ratio:16/9; }.store-editor__media[data-ratio="4/3"] { aspect-ratio:4/3; }.store-editor__media[data-ratio="1/1"] { aspect-ratio:1; }.store-editor__media[data-ratio="4/5"] { aspect-ratio:4/5; }.store-editor__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }.store-editor__media>span,.store-editor__media>small { position:relative;z-index:1; }.store-editor__media button { position: relative; z-index: 2; min-height: 36px; padding: 6px 10px; border-radius: 7px; color:var(--store-button-text,#17120d);background:var(--store-button,#d9b978);opacity: 0; }.store-editor__media:hover button,.store-editor__media:focus button { opacity: 1; }
.store-editor__body-copy { color:var(--store-text-muted,#c8bfb6); font-size: 13px; line-height: 1.7; white-space: pre-line; }.store-editor__social { display: flex; flex-wrap: wrap; gap: 7px; }.store-editor__social span { padding: 7px 10px; border:1px solid var(--store-border,#403a32);border-radius: 999px; font-size: 11px; }.store-editor__rating { display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 8px;align-items:center; }.store-editor__rating strong { font:clamp(22px,11cqi,32px)/1 var(--font-editorial); }.store-editor__rating span { color:var(--store-accent,#d9b978);font-size:clamp(11px,5cqi,16px);white-space:nowrap; }.store-editor__rating small { grid-column:1/-1;color:var(--store-text-muted,#9b9187);font-size:9px; }
.store-editor__empty { padding: 14px; color:var(--store-text-muted,#998f85); font-size: 12px; text-align: center; }
.store-editor__site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px clamp(20px,5vw,64px); border-top: 1px solid #2e2923; color: #81786f; font-size: 10px; }.store-editor__site-footer strong { color: #d9d0c5; letter-spacing: .18em; }
.store-editor__text-toolbar { position: absolute; z-index: 30; display: flex; flex-wrap: wrap; gap: 5px; max-width: calc(100% - 16px); padding: 7px; border: 1px solid #4a4238; border-radius: 9px; color: #e9dfd2; background: rgba(18,16,13,.97); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.store-editor__text-toolbar label { display: grid; gap: 2px; color: #a89e92; font-size: 9px; }.store-editor__text-toolbar select,.store-editor__text-toolbar input { width: auto; min-width: 64px; height: 30px; padding: 3px 6px; border: 1px solid #403a32; border-radius: 5px; color: #eee8df; background: #29251f; font-size: 11px; }.store-editor__text-toolbar input[type="color"] { min-width: 40px; padding: 2px; }
.store-editor__numeric { display:grid;grid-template-columns:30px minmax(54px,1fr) 30px auto;align-items:center;gap:4px; }.store-editor__numeric button { width:30px;height:30px;border:1px solid var(--border,#403a32);border-radius:5px;background:var(--bg,#29251f); }.store-editor__numeric input { width:100%;min-width:0;text-align:center; }.store-editor__numeric small { color:var(--text3,#9b9187);font-size:10px; }
.store-editor__source-note { display:grid; gap:6px; padding:10px; border:1px solid color-mix(in srgb,var(--accent) 38%,var(--border)); border-radius:8px; background:color-mix(in srgb,var(--accent) 8%,var(--bg)); color:var(--text2); font-size:11px; line-height:1.45; }
.store-editor__source-note strong { color:var(--text); }.store-editor__source-note button { justify-self:start; color:var(--accent); font-weight:700; }
.store-editor__content-list { display:grid;gap:6px;margin-block:8px 12px; }.store-editor__content-list>div { display:grid;grid-template-columns:minmax(0,1fr) repeat(4,auto);align-items:center;gap:4px;padding:7px;border:1px solid var(--border);border-radius:7px; }.store-editor__content-list button { min-width:30px;min-height:30px;padding:4px;color:var(--text2); }.store-editor__content-list [aria-pressed="true"] { color:var(--accent); }
.store-editor[data-editor-mode="content"] .store-editor__module,.store-editor[data-editor-mode="content"] .store-editor__hero { cursor:default; }.store-editor[data-editor-mode="content"] .store-editor__module-actions { display:none; }
.store-editor__incomplete { display:block;color:#d7a653;font-size:9px;font-weight:700;line-height:1.2; }
.store-editor__contact span small { display:block;margin-bottom:5px;color:#9b9187;font-size:9px;text-transform:uppercase; }
.store-editor-site.is-clean-preview .store-editor__module-actions,.store-editor-site.is-clean-preview .store-editor__hero-media button { display:none; }
.store-editor-site.is-clean-preview :is(.store-editor__module,.store-editor__hero,.store-editor__editable,.store-editor__readonly) { outline:none!important;box-shadow:none!important; }
.store-editor__structure-controls label.store-editor__visibility { display:flex; align-items:center; gap:8px; min-height:34px; }.store-editor__visibility input { width:16px; height:16px; accent-color:var(--accent); }
.store-editor__theme-modes { display:grid; grid-template-columns:1fr 1fr; gap:5px; }.store-editor__theme-modes button { min-height:34px; border:1px solid var(--border); border-radius:7px; }.store-editor__theme-modes button[aria-pressed="true"] { border-color:var(--accent); color:var(--accent); background:color-mix(in srgb,var(--accent) 10%,transparent); }
.store-editor__structure-controls label:has([data-site-theme-token]) { grid-template-columns:minmax(0,1fr) 38px; align-items:center; }.store-editor__structure-controls [data-site-theme-token] { width:38px; height:30px; padding:2px; border:1px solid var(--border); border-radius:6px; background:transparent; }
.store-editor-site { color:var(--store-text,#eee8df); background:var(--store-bg,#0d0c0a); font-family:var(--store-font-body,var(--font-ui)); }.store-editor__module { border-color:var(--store-border,#312d27); background:var(--store-surface,#171512); }.store-editor__module header h2 { color:var(--store-text,#eee8df); }.store-editor__module header p,.store-editor__body-copy { color:var(--store-text-muted,#a9a097); }
.store-editor__sidebar-overlay { display: none; }

/* Arquitetura v4: a barra lateral organiza; o canvas configura e edita. */
.store-editor__active { display:block;color:var(--success,#76b889);font-size:9px;font-weight:700;line-height:1.2; }
.store-editor__changed { display:block;color:var(--accent,#d7a653);font-size:9px;font-weight:700;line-height:1.2; }
.store-editor__hero-tree { display:grid;gap:4px;margin:-2px 0 8px 38px;padding-left:10px;border-left:1px solid var(--border); }
.store-editor__hero-tree-item { display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:4px;border-radius:7px; }
.store-editor__hero-tree-item.is-selected { background:color-mix(in srgb,var(--accent) 10%,transparent); }
.store-editor__hero-tree-item button { min-width:0;min-height:34px;padding:5px;color:var(--text2);font-size:11px;text-align:left; }
.store-editor__hero-tree-item button:last-child { text-align:center; }.store-editor__hero-tree-item small { display:block;color:var(--text3);font-size:8px; }
.store-editor__canvas-controls { position:sticky;top:0;z-index:35;display:flex;flex-wrap:wrap;gap:8px;padding:8px;border-bottom:1px solid #3b352e;color:#d8cec0;background:rgba(16,14,12,.96); }
.store-editor__canvas-controls>label { display:flex;align-items:center;gap:7px;font-size:10px; }.store-editor__canvas-controls .store-editor__numeric { grid-template-columns:26px 48px 26px auto; }.store-editor__canvas-controls :is(button,input) { color:#eee8df;background:#28231e;border-color:#4b4339; }
.store-editor__context-controls { top:7px;right:7px;left:auto;max-width:calc(100% - 14px);flex-wrap:wrap;justify-content:flex-end;padding:5px;border:1px solid #4a4238;border-radius:8px;background:rgba(12,11,9,.94);box-shadow:0 7px 20px rgba(0,0,0,.25); }
.store-editor__context-controls label { display:flex;align-items:center;gap:4px;color:#bdb2a5;font-size:9px; }.store-editor__context-controls select { max-width:100px;height:28px;padding:3px;border:1px solid #4a4238;border-radius:5px;color:#eee8df;background:#25211d;font-size:10px; }
.store-editor__context-controls input[type="range"] { width:70px; }.store-editor__module-drag { padding:5px;cursor:grab; }
.store-editor-site.is-content-mode .store-editor__context-controls { opacity:1; }
.store-editor[data-editor-mode="content"] .store-editor__context-controls { display:flex; }
.store-editor__products,.store-editor__collections,.store-editor__posts { display:flex!important;grid-template-columns:none;gap:9px;overflow-x:auto;overscroll-behavior-inline:contain;padding:2px 2px 8px;scroll-snap-type:x proximity;scrollbar-width:thin; }
.store-editor__product,.store-editor__collections article,.store-editor__post { position:relative;flex:0 0 clamp(145px,22cqw,210px);scroll-snap-align:start; }
.store-editor__product em { display:block;padding:0 9px 9px;color:var(--store-accent);font-size:9px;font-style:normal; }
.store-editor__product.is-featured { box-shadow:inset 0 0 0 2px var(--store-accent); }
.store-editor__item-controls { position:absolute;inset:auto 5px 5px 5px;z-index:6;display:flex;justify-content:flex-end;gap:3px;padding:4px;border-radius:6px;background:rgba(9,8,7,.9); }
.store-editor__item-controls button { width:27px;height:27px;border:1px solid #4b4339;border-radius:5px;color:#eee8df;background:#24201b;font-size:12px; }.store-editor__item-controls button[aria-pressed="true"] { color:#e0b96f; }
.store-editor__item-controls+* { margin-bottom:38px; }

.store-editor__hero-content { --store-hero-grid-padding:clamp(20px,3cqi,46px);position:absolute;inset:0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));align-items:center;gap:8px;padding:var(--store-hero-grid-padding); }
.store-editor__hero-block { position:relative;z-index:4;grid-column:var(--hero-col) / span var(--hero-col-span);grid-row:var(--hero-row) / span var(--hero-row-span);min-width:0;align-self:var(--hero-block-align,center);overflow:visible; }
.store-editor__hero-side { color:#d9b978;text-transform:uppercase; }.store-editor__hero-side p { max-width:9ch; }
.store-editor__hero-handle { position:absolute;top:3px;right:3px;z-index:8;display:none;width:30px;height:30px;border:1px solid #d9b978;border-radius:6px;color:#17120d;background:#d9b978;cursor:grab;touch-action:none;user-select:none; }
.store-editor__hero.is-selected .store-editor__hero-block { outline:1px dashed rgba(255,218,145,.72);outline-offset:5px; }
.store-editor__hero-block:hover>.store-editor__hero-handle,.store-editor__hero-block.is-block-selected>.store-editor__hero-handle { display:grid;place-items:center; }
.store-editor__hero-block.is-block-selected { outline:2px solid #ffd98b!important;outline-offset:6px;box-shadow:0 0 0 4px rgba(255,217,139,.18),inset 0 0 0 999px rgba(201,169,110,.075); }
.store-editor__hero-block.is-block-selected::before { content:attr(data-hero-label);position:absolute;right:0;bottom:calc(100% + 8px);z-index:9;padding:3px 7px;border-radius:5px;color:#17120d;background:#ffd98b;font:700 9px/1.2 var(--font-ui);white-space:nowrap;pointer-events:none; }
.store-editor__hero-block.is-block-selected[data-hero-y="1"]::before { top:4px;right:auto;bottom:auto;left:4px; }
.store-editor__hero-block:is([data-hero-block="logo"],[data-hero-block="actions"],[data-hero-block="sidePhrase"]) { justify-self:var(--hero-inline-align,start); }
.store-editor__hero-actions { width:max-content;max-width:100%; }
.store-editor__hero-grid { position:absolute;inset:var(--store-hero-grid-padding,clamp(20px,3cqi,46px));z-index:3;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:8px;pointer-events:none;background-color:rgba(5,4,3,.12);background-image:linear-gradient(rgba(255,218,145,.3) 1px,transparent 1px),linear-gradient(90deg,rgba(255,218,145,.3) 1px,transparent 1px);background-size:calc((100% + 8px)/12) calc((100% + 8px)/6);outline:1px solid rgba(255,218,145,.58); }
.store-editor__hero-grid span { display:none;grid-column:var(--hero-col) / span var(--hero-col-span);grid-row:var(--hero-row) / span var(--hero-row-span);justify-self:var(--hero-inline-align,start);align-self:var(--hero-block-align,center);width:var(--hero-drag-width);height:var(--hero-drag-height);border:3px solid #ffd98b;border-radius:8px;background:rgba(255,217,139,.22);box-shadow:0 0 0 3px rgba(8,7,6,.72),0 0 18px rgba(255,217,139,.28); }
.store-editor__canvas.is-moving-hero .store-editor__hero-grid span { display:block; }
.store-editor__hero-block.is-dragging { opacity:.78;cursor:grabbing; }.store-editor__hero-block.is-invalid-position,.store-editor__hero-grid span.is-invalid-position { outline-color:#ef5f54;border-color:#ef5f54;background:rgba(239,95,84,.2); }
.store-editor__hero-controls { position:absolute;right:8px;bottom:8px;z-index:12;display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:calc(100% - 16px);padding:6px;border:1px solid #544939;border-radius:9px;color:#d8cec0;background:rgba(12,11,9,.94); }
.store-editor__hero-controls :is(button,select,input) { min-height:28px;padding:4px 7px;border:1px solid #4a4238;border-radius:5px;color:#eee8df;background:#28231e;font-size:9px; }.store-editor__hero-controls label { display:flex;align-items:center;gap:4px;font-size:9px; }.store-editor__hero-controls .store-editor__numeric { grid-template-columns:25px 46px 25px auto; }

.store-editor__selector-backdrop { position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(5px); }
.store-editor__selector { display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(980px,96vw);max-height:min(820px,92dvh);overflow:hidden;border:1px solid var(--border);border-radius:16px;color:var(--text);background:var(--surface);box-shadow:0 28px 80px rgba(0,0,0,.5); }
.store-editor__selector>header,.store-editor__selector>footer { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border); }.store-editor__selector>footer { justify-content:flex-end;border-top:1px solid var(--border);border-bottom:0; }.store-editor__selector h2 { margin:3px 0;font-size:1.25rem; }.store-editor__selector header p,.store-editor__selector header small { color:var(--text3);font-size:.72rem; }
.store-editor__selector-search { display:grid;gap:5px;padding:12px 20px;color:var(--text3);font-size:.72rem; }.store-editor__selector-search input { min-height:42px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--bg); }
.store-editor__selector-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;overflow:auto;padding:4px 20px 20px; }
.store-editor__selector-card { position:relative;display:grid;grid-template-rows:120px auto auto;min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--bg);cursor:pointer; }.store-editor__selector-card:has(input:checked) { border-color:var(--accent);box-shadow:inset 0 0 0 2px var(--accent); }.store-editor__selector-card input { position:absolute;top:8px;right:8px;z-index:2;width:20px;height:20px;accent-color:var(--accent); }.store-editor__selector-card img,.store-editor__selector-placeholder { width:100%;height:120px;object-fit:cover; }.store-editor__selector-placeholder { display:grid;place-items:center;color:var(--text3);background:var(--surface2); }.store-editor__selector-card strong { overflow:hidden;padding:10px 10px 2px;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem; }.store-editor__selector-card small { padding:0 10px 10px;color:var(--text3);font-size:.65rem; }

@container store-preview (max-width: 900px) {
  .store-editor__module-grid { grid-template-columns:1fr; }.store-editor__module { grid-column:1!important; }.store-editor__products { grid-template-columns:repeat(3,minmax(0,1fr)); }.store-editor__hero { min-height:max(var(--store-hero-height,360px),440px); }.store-editor__hero-content { grid-template-columns:minmax(180px,.8fr) 94px minmax(230px,1.2fr);padding:34px; }.store-editor__hero-actions { grid-column:3;width:100%;flex-wrap:wrap;justify-content:flex-end;white-space:normal; }.store-editor__hero-content > [data-text-field="hero.sidePhrase"] { display:none; }.store-editor__collections,.store-editor__posts { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@container store-preview (max-width: 599px) {
  .store-editor__hero { min-height:max(var(--store-hero-height,360px),620px); }.store-editor__hero-media img { object-position:var(--hero-mobile-position,center); }.store-editor__hero-overlay { background:linear-gradient(0deg,rgba(8,7,6,.96),rgba(8,7,6,.2)); }.store-editor__hero-content,.store-editor-site[data-hero-layout] .store-editor__hero-content { grid-template-columns:74px minmax(0,1fr);justify-items:start;align-self:end;gap:12px;padding:22px;text-align:left; }.store-editor__hero-editorial { grid-column:1/-1; }.store-editor__hero-editorial h2 { font-size:32px; }.store-editor__logo,.store-editor-site[data-hero-layout] .store-editor__logo { order:0;width:74px; }.store-editor__hero-identity { align-self:center; }.store-editor__hero-actions { grid-column:1/-1; }.store-editor__hero-content > [data-text-field="hero.sidePhrase"] { display:block;position:absolute;right:18px;top:20px;font-size:10px!important; }.store-editor__site-nav { gap:18px;overflow-x:auto;padding-inline:18px; }.store-editor__module-grid { gap:min(var(--store-gap,18px),14px);padding:14px 12px 24px; }.store-editor__products { grid-template-columns:repeat(2,minmax(0,1fr));overflow-x:auto; }.store-editor__collections,.store-editor__posts { grid-template-columns:1fr; }.store-editor__module-actions { opacity:1; }.store-editor__site-footer { align-items:flex-start;flex-direction:column;padding-inline:18px; }
}

@container store-preview (max-width: 899px) {
  .store-editor__hero-content,.store-editor-site[data-hero-layout] .store-editor__hero-content { grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));align-self:stretch;padding:24px; }
}
@container store-preview (max-width: 599px) {
  .store-editor__hero-block[data-hero-block="logo"] { width:74px; }
  .store-editor__hero-side p { max-width:none; }
  .store-editor__hero-controls { left:6px;right:6px;max-width:none;overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start; }
  .store-editor__selector-backdrop { align-items:end;padding:0; }.store-editor__selector { width:100%;max-height:92dvh;border-radius:18px 18px 0 0; }.store-editor__selector-grid { grid-template-columns:repeat(2,minmax(0,1fr));padding-inline:12px; }.store-editor__selector>header,.store-editor__selector>footer,.store-editor__selector-search { padding-inline:14px; }
}
