:root {
  --bg: #0a0f1a;
  --surface: #111827;
  --card: #1e293b;
  --card-soft: #162133;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --green: #22c55e;
  --green-dark: #16a34a;
  --yellow: #facc15;
  --blue: #38bdf8;
  --red: #f87171;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --header-height: 70px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

body.with-fixed-header {
  padding-top: var(--header-height);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  /* Sem backdrop-filter de propósito: o blur em tempo real deixava rastro de
     repintura no Chrome ao redimensionar, e custa GPU a cada scroll no celular.
     Fundo sólido com leve transparência dá o mesmo resultado visual. */
  background: rgba(9, 13, 23, 0.94);
}

.site-header .container,
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.5));
  color: var(--green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #041108;
  font-size: 12px;
  font-weight: 800;
}

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.28), transparent 38%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 18px;
}

.hero h1,
.page-title {
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  line-height: 1;
  font-weight: 900;
}

.hero h1 span,
.page-title span {
  color: var(--green);
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 480px;
}

.hero-actions,
.section-actions,
.checkout-actions,
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn,
.btn-outline,
.btn-whatsapp,
.filter-btn,
.qty-btn,
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  transition: 0.2s ease;
  font-weight: 700;
}

.btn {
  background: var(--green);
  color: #041108;
}

.btn:hover {
  background: var(--green-dark);
}

.btn[disabled],
.btn-outline[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.btn-outline,
.filter-btn,
.page-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-outline:hover,
.filter-btn:hover,
.page-btn:hover,
.filter-btn.active {
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--green);
}

.btn-whatsapp {
  background: #25d366;
  color: #041108;
}

.hero-badges,
.pill-list,
.filter-row,
.step-tabs,
.status-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badge,
.pill,
.step-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
}

.hero-badge {
  font-size: 0.95rem;
}

.section {
  padding: 84px 0;
}

.section-header,
.page-header,
.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title,
.page-title-sm {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* Home — limita 3 colunas e centraliza os cards */
#bestSellers {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  #bestSellers {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.product-card,
.summary-card,
.card,
.admin-card,
.step-panel,
.empty-state,
.login-card,
.order-block,
.success-card,
.frete-option {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(17, 24, 39, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  padding: 48px 32px;
  gap: 12px;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.1), transparent);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.product-placeholder {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  font-size: 2rem;
}

.product-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-content > div:first-child {
  flex: 1;
}

.product-description {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.price {
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 800;
}

.page-shell,
.checkout-shell,
.cart-shell,
.admin-shell {
  padding: 110px 0 54px;
}

.cart-layout,
.checkout-layout,
.admin-layout,
.pedido-layout {
  display: grid;
  gap: 22px;
}

.cart-layout,
.checkout-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
}

.cart-items,
.summary-card,
.step-panel,
.admin-card,
.success-card,
.order-block {
  padding: 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item-image {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
}

/* Sem isto a imagem entra no tamanho natural (972px) e o overflow da moldura
   mostra só o canto superior esquerdo. */
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.qty-btn {
  min-height: 34px;
  min-width: 34px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}

.summary-row,
.meta-row,
.order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child,
.meta-row:last-child,
.order-row:last-child {
  border-bottom: 0;
}

.summary-total {
  font-size: 1.3rem;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field,
.field-full {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 26, 0.75);
  color: var(--text);
  padding: 0 14px;
}

textarea {
  min-height: 110px;
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(34, 197, 94, 0.28);
  border-color: rgba(34, 197, 94, 0.45);
}

.step-tabs {
  margin-bottom: 16px;
}

.step-tab {
  opacity: 0.6;
}

.step-tab.active {
  opacity: 1;
  border-color: rgba(34, 197, 94, 0.45);
  color: var(--green);
}

.step-panel {
  display: none;
  animation: fadeUp 0.4s ease;
}

.step-panel.active {
  display: block;
}

.frete-options {
  display: grid;
  gap: 12px;
}

.frete-option {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.frete-option input {
  width: 18px;
  min-height: 18px;
}

.pix-box,
.payment-box,
.status-badge,
.toast,
.floating-whatsapp,
.metric-card,
.table-wrap,
.sidebar,
.admin-login-shell {
  animation: fadeUp 0.4s ease;
}

.payment-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.toggle-btn.active {
  background: var(--green);
  color: #041108;
  border-color: transparent;
}

.pix-box {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.pix-box img {
  width: min(260px, 100%);
  border-radius: 18px;
  background: #fff;
  padding: 10px;
}

.code-box {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  word-break: break-word;
}

.success-shell {
  padding: 120px 0 60px;
}

.success-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 18px;
}

.success-icon {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  font-size: 2.2rem;
  margin: 0 auto;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  z-index: 90;
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #041108;
  font-size: 1.6rem;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.25);
  z-index: 40;
  animation: pulse 2s infinite;
}

/* ---- VARIANT MODAL ---- */
.variant-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 20px;
  animation: fadeUp 0.2s ease;
}

.variant-modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
}

.variant-modal h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.variant-modal p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.variant-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.variant-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.18s ease;
}

.variant-btn:not([disabled]):hover {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}

.variant-btn[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
}

.variant-stock {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

.variant-btn[disabled] .variant-stock {
  color: var(--red);
}

.variant-cancel {
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
  font-family: inherit;
}

.variant-cancel:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-esgotado {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--muted) !important;
  cursor: not-allowed !important;
  border: 1px solid var(--line) !important;
}
/* ---- END VARIANT MODAL ---- */


.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-layout {
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.98));
}

.sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.sidebar a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
}

.sidebar a.active,
.sidebar a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(17, 24, 39, 0.98));
  border: 1px solid var(--line);
}

.metric-card strong {
  display: block;
  font-size: 1.9rem;
  margin-top: 6px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(10, 15, 26, 0.55);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-aguardando_pagamento {
  background: rgba(250, 204, 21, 0.12);
  color: var(--yellow);
  border-color: rgba(250, 204, 21, 0.22);
}

.status-pago,
.status-emitida,
.status-entregue {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.25);
}

.status-enviado,
.status-separando {
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue);
  border-color: rgba(56, 189, 248, 0.22);
}

.status-cancelado,
.status-rejeitado {
  background: rgba(248, 113, 113, 0.12);
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.22);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
  padding: 28px;
}

.login-card form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.pedido-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.pagination {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.hide {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.44);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 900px) {
  .cart-layout,
  .checkout-layout,
  .admin-layout,
  .pedido-layout,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-nav {
    gap: 4px;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.92rem;
  }

  .form-grid,
  .section-header,
  .page-header,
  .admin-header,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero-badge,
  .step-tab,
  .pill {
    width: 100%;
    justify-content: center;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-image {
    width: 100%;
    height: 180px;
  }

  .btn,
  .btn-outline,
  .btn-whatsapp {
    width: 100%;
  }
}

/* ── Espaçamento do filtro do catálogo ──────────────────────────────── */
/* Regra própria: .filter-row divide o flex com .step-tabs e .status-group,
   que não devem ganhar essa margem. */
.filter-row {
  margin-bottom: 28px;
}

/* ── Trilha de navegação ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--muted, #94a3b8);
}

.breadcrumb a {
  color: var(--muted, #94a3b8);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent, #22c55e);
}

/* ── Página de produto ──────────────────────────────────────────────── */
.produto-detalhe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.produto-detalhe-media {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 90px;
}

.produto-detalhe-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.produto-detalhe-info h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.price-lg {
  font-size: 2rem;
  margin: 16px 0 12px;
}

.estoque-aviso {
  margin: 0 0 24px;
  font-weight: 600;
  font-size: 0.95rem;
}

.estoque-aviso.disponivel { color: var(--accent, #22c55e); }
.estoque-aviso.esgotado { color: var(--muted, #94a3b8); }

.variante-escolha { margin-bottom: 20px; }
.variante-escolha .eyebrow { margin-bottom: 10px; }

.variant-btn.ativa {
  border-color: var(--accent, #22c55e);
  color: var(--accent, #22c55e);
}

.btn-comprar {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 14px 20px;
}

.produto-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 36px;
}

.btn-compartilhar {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text, #f1f5f9);
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-compartilhar:hover {
  border-color: var(--accent, #22c55e);
  color: var(--accent, #22c55e);
}

.ficha-titulo {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.ficha-tecnica {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.ficha-tecnica th,
.ficha-tecnica td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.ficha-tecnica th {
  width: 42%;
  font-weight: 600;
  color: var(--muted, #94a3b8);
}

.ficha-tecnica tr:last-child th,
.ficha-tecnica tr:last-child td {
  border-bottom: none;
}

/* Card de relacionado é um link inteiro: herda cor e tira o sublinhado. */
a.product-card {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 820px) {
  .produto-detalhe {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .produto-detalhe-media {
    position: static;
  }
}

/* Link do card do catálogo para a página do produto */
.card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.card-link:hover {
  color: var(--accent, #22c55e);
}

/* Dentro da moldura da imagem o link precisa ocupar a área inteira: a img usa
   height:100%, que só resolve se o pai tiver altura própria. Sem isto a imagem
   assume o tamanho natural e é cortada pelo overflow do .product-media. */
.product-media .card-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Banner da home ─────────────────────────────────────────────────── */
.hero-banner {
  padding-top: 24px;
  min-height: 0;
}

.banner-palco {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.banner-arte img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-conteudo h1 {
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
}

.banner-conteudo .hero-subtitle {
  margin-top: 10px;
}

.banner-conteudo .hero-actions {
  margin-top: 20px;
}

/* No desktop o texto ocupa o vazio da esquerda da arte. O degradê garante
   contraste caso a arte seja trocada por uma mais clara desse lado. */
@media (min-width: 768px) {
  .banner-conteudo {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: min(46%, 520px);
    padding: 0 clamp(20px, 3vw, 44px);
  }

  .banner-palco::before {
    content: '';
    position: absolute;
    inset: 0 40% 0 0;
    background: linear-gradient(to right, rgba(6, 10, 18, 0.78), transparent);
    pointer-events: none;
  }
}

/* No celular a arte é vertical e o topo fica livre: o texto entra ali, com
   largura limitada para não correr por baixo da bandeira do canto direito.
   Os botões ficam abaixo da imagem, sem cobrir o mascote nem os carretéis. */
@media (max-width: 767px) {
  .banner-palco {
    overflow: visible;
  }

  .banner-arte {
    display: block;
    border-radius: 18px;
    overflow: hidden;
  }

  /* Tudo em porcentagem: a arte é 9:16, então a altura acompanha a largura
     do aparelho. Com medidas fixas o texto ficaria proporcionalmente mais
     colado no topo em celular largo e mais afastado em celular estreito. */
  .banner-texto {
    position: absolute;
    top: 3.5%;
    left: 5.5%;
    width: 62%;
    z-index: 1;
  }

  .banner-conteudo h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
    text-shadow: 0 2px 18px rgba(6, 10, 18, 0.95);
  }

  .banner-conteudo .hero-subtitle {
    margin-top: 12px;
    font-size: 1rem;
    color: var(--text);
    text-shadow: 0 2px 14px rgba(6, 10, 18, 0.95);
  }

  .banner-conteudo .hero-actions {
    flex-direction: column;
    margin-top: 18px;
  }

  .banner-conteudo .hero-actions .btn,
  .banner-conteudo .hero-actions .btn-whatsapp {
    width: 100%;
  }
}
