/* Each surface inherits its own background, readable text and control colors. */
:root[data-menu-color] .store-shell > header {
  --store-bg: var(--store-menu-bg);
  --store-ink: var(--store-menu-ink);
  --store-line: color-mix(in srgb, var(--store-ink) 32%, var(--store-bg));
  --store-soft: color-mix(in srgb, var(--store-ink) 9%, var(--store-bg));
  --store-muted: color-mix(in srgb, var(--store-ink) 85%, var(--store-bg));
  background-color: var(--store-bg);
  color: var(--store-ink);
}

:root[data-menu-color] .mercado-masthead input::placeholder {
  color: var(--store-muted);
  opacity: 1;
}

:root[data-footer-color] .store-footer {
  background-color: var(--store-footer-bg);
  color: var(--store-footer-ink);
  border-color: color-mix(in srgb, var(--store-footer-ink) 24%, var(--store-footer-bg));
}

:root[data-footer-color] .store-footer strong { color: inherit; }
:root[data-footer-color] .store-footer a:focus-visible { outline-color: currentColor; }

.store-layout-essencial { --surface-gutter: var(--studio-gutter); }
.store-layout-vitrine { --surface-gutter: var(--mercado-gutter); }

:root[data-menu-color] :is(.store-layout-essencial, .store-layout-vitrine) > header,
:root[data-footer-color] :is(.store-layout-essencial, .store-layout-vitrine) > footer {
  width: auto;
  margin-inline: calc(0px - var(--surface-gutter));
  padding-inline: var(--surface-gutter);
}

:root[data-footer-color] .store-layout-editorial > footer {
  width: auto;
  padding-inline: max(var(--moda-gutter), calc((100% - 88rem) / 2));
}

:root[data-store-example][data-store-template="essencial"]{--store-accent:#963f2b;--store-accent-ink:#ffffff;--store-font-family:Inter, "Segoe UI", Arial, sans-serif;--store-bg:#fbf4e8;--store-ink:#35261e;--store-muted:#7a6e65;--store-line:#d3cbc0;--store-menu-bg:#703624;--store-menu-ink:#ffffff;--store-footer-bg:#3d2820;--store-footer-ink:#ffffff}
:root[data-store-example][data-store-template="editorial"]{--store-accent:#82364f;--store-accent-ink:#ffffff;--store-font-family:Inter, "Segoe UI", Arial, sans-serif;--store-bg:#fff8fb;--store-ink:#392430;--store-muted:#7e6e77;--store-line:#d7ced2;--store-menu-bg:#f0d5e2;--store-menu-ink:#392430;--store-footer-bg:#55263d;--store-footer-ink:#ffffff}
:root[data-store-example][data-store-template="vitrine"]{--store-accent:#ffb14c;--store-accent-ink:#11180d;--store-font-family:Inter, "Segoe UI", Arial, sans-serif;--store-bg:#f2f7fd;--store-ink:#142746;--store-muted:#627086;--store-line:#c6cdd8;--store-menu-bg:#173e98;--store-menu-ink:#ffffff;--store-footer-bg:#102444;--store-footer-ink:#ffffff}