.demo-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: #111;
  color: #fff;
  font-family: Inter, Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.demo-bar span {
  grid-column: 2;
  text-align: center;
}

.demo-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  background: #ff0000;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.demo-bar__nichos {
  grid-column: 1;
  justify-self: start;
}

.demo-bar__comprar {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 760px) {
  .demo-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem 0.55rem;
    text-align: center;
  }

  .demo-bar span {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 0.72rem;
  }

  .demo-bar a {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .demo-bar__nichos { grid-column: 1; grid-row: 2; justify-self: stretch; }
  .demo-bar__comprar { grid-column: 2; grid-row: 2; justify-self: stretch; }
}

@media (min-width: 1600px) {
  .demo-bar { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
  .demo-hero { min-height: 24rem; }
  .demo-hero__copy h1 { font-size: 4rem; }
}

@media (min-width: 2200px) {
  .demo-hero { min-height: 28rem; }
}

body.is-demo .flag-bar,
body.is-demo .cx-footer__trust,
body.is-demo .lang-switch { display: none; }

.demo-hero {
  position: relative;
  min-height: 18rem;
  color: #fff;
  background: #111;
}

.demo-hero img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  display: block;
  opacity: 0.55;
}

.demo-hero__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.4rem;
}

.demo-hero__copy h1 {
  margin: 0.2rem 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
}

.demo-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.2rem;
}

.demo-cats a {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: var(--demo-accent, #ff0000);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.demo-catalog-head,
.demo-product { padding-top: 1.5rem; padding-bottom: 1rem; }

.demo-product__grid {
  display: grid;
  gap: 1rem;
}

.demo-product__grid img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f3f3;
}

.demo-kicker { color: var(--demo-accent, #ff0000); font-weight: 700; }

.demo-order {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
}

.demo-order[hidden] { display: none; }

.demo-order__card {
  width: min(28rem, 100%);
  padding: 1.2rem;
  border-radius: 8px;
  background: #fff;
  color: #111;
}

.demo-order pre {
  white-space: pre-wrap;
  font-family: inherit;
}

@media (min-width: 800px) {
  .demo-product__grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* Cada ramo pinta a própria loja */
body.is-demo .cx-header.site-header,
body.is-demo .cx-header .cx-bar {
  background: var(--demo-accent);
}

body.is-demo .cx-header .cx-nav-drop__item:hover,
body.is-demo .cx-header .cx-nav-drop__item.is-active,
body.is-demo .product-card__cart,
body.is-demo .btn-primary,
body.is-demo .cx-body .btn-primary,
body.is-demo .page-home .cv-dock button {
  background: var(--demo-accent);
  border-color: var(--demo-accent);
  color: #fff;
}

body.is-demo .btn-primary:hover,
body.is-demo .cx-body .btn-primary:hover,
body.is-demo .product-card__cart:hover {
  background: var(--demo-accent);
  filter: brightness(0.9);
}

body.is-demo .ec-depts a:hover,
body.is-demo .ec-depts a.is-active,
body.is-demo .product-card .price-stack__main,
body.is-demo .product-card .price-now,
body.is-demo .cx-body .product-card .price-stack__main,
body.is-demo .cx-body .product-card .price-now,
body.is-demo .cx-head a,
body.is-demo .ec-perks strong {
  color: var(--demo-accent);
}

body.is-demo .cx-head h2 {
  box-shadow: inset 0 -2px 0 var(--demo-accent);
}

body.is-demo .ec-perks li,
body.is-demo .cx-steps article,
body.is-demo .site-footer,
body.is-demo .cx-footer {
  border-top-color: var(--demo-accent);
}
