:root {
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #eef0f4;
  --surface: #ffffff;
  --line: #e4e7ec;
  --line-strong: #cdd2db;
  --text: #0e1726;
  --text-2: #475569;
  --text-3: #94a3b8;
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --brand-light: #e0f2fe;
  --orange: #f97316;
  --orange-light: #fff7ed;
  --green: #16a34a;
  --green-light: #dcfce7;
  --red: #dc2626;
  --yellow: #eab308;

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Plus Jakarta Sans', var(--sans);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -16px rgba(15, 23, 42, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-2);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px -2px rgba(14,165,233,0.4);
  position: relative;
  overflow: hidden;
}
.brand-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
  border-radius: 11px;
}

.brand-icon svg { width: 22px; height: 22px; position: relative; z-index: 1; }

.brand b { color: var(--text); }
.brand span { color: var(--brand); font-weight: 600; }

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  transition: all 0.15s;
}

.header-search input:focus {
  outline: none;
  background: white;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.header-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: white;
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-outline:hover { background: var(--bg-2); border-color: var(--text-3); }

.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: #ea580c; }

.btn-block { width: 100%; justify-content: center; padding: 14px 18px; font-size: 15px; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: white;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero p {
  font-size: 18px;
  opacity: 0.92;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-search {
  background: white;
  padding: 8px;
  border-radius: 999px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
}

.hero-search select {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
}

.hero-search select:focus { outline: none; }

.hero-search button {
  padding: 14px 28px;
  background: var(--orange);
  color: white;
  border-radius: 999px;
  font-weight: 600;
}
.hero-search button:hover { background: #ea580c; }

/* SECTIONS */
.section {
  padding: 60px 0;
}

.section-head {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-head p {
  color: var(--text-2);
  font-size: 15px;
  margin-top: 6px;
}

/* CARDS DE LOJA */
.lojas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.loja-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.loja-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.loja-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.loja-logo {
  width: 56px;
  height: 56px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.loja-info h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.loja-info .loja-cidade {
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.loja-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
}

.loja-stats {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.loja-stat {
  display: flex;
  flex-direction: column;
}

.loja-stat .label {
  color: var(--text-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.loja-stat .value {
  color: var(--text);
  font-weight: 600;
}

.loja-stat .value.preco {
  color: var(--brand);
  font-size: 15px;
}

/* FEATURES */
.features {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.feature {
  text-align: left;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg { width: 24px; height: 24px; }

.feature h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

/* CTA PARA LOJAS */
.cta-loja {
  background: var(--text);
  color: white;
  padding: 60px 0;
}

.cta-loja-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta-loja h2 {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-loja p {
  opacity: 0.8;
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 480px;
}

.cta-loja .cta-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.cta-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.cta-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
}

/* FOOTER */
.footer {
  background: var(--bg-3);
  padding: 40px 0 24px;
  color: var(--text-2);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-2);
}

.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-dev a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-weight: 500;
  transition: color 0.15s;
}

.footer-dev a:hover { color: var(--brand); }

.footer-dev .nmark {
  width: 16px;
  height: 16px;
  background: #b8ff3a;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #08090a;
}

.footer-dev .nmark svg { width: 10px; height: 10px; }

/* PÁGINA DA LOJA */
.loja-header {
  background: var(--brand);
  color: white;
  padding: 40px 0 80px;
  position: relative;
}

.loja-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.loja-header .loja-logo {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 28px;
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.loja-header h1 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.loja-header .loja-meta {
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.loja-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.loja-meta-item svg { width: 14px; height: 14px; }

.loja-body {
  max-width: 1200px;
  margin: -50px auto 0;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  position: relative;
}

.produtos-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.produtos-section h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.produtos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.produto-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.15s;
}

.produto-card:hover {
  border-color: var(--brand);
  background: white;
}

.produto-icon {
  width: 56px;
  height: 56px;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.produto-icon svg { width: 28px; height: 28px; }

.produto-info {
  flex: 1;
  min-width: 0;
}

.produto-info h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.produto-info p {
  font-size: 13px;
  color: var(--text-2);
}

.produto-preco {
  text-align: right;
}

.produto-preco .preco-original {
  font-size: 12px;
  color: var(--text-3);
  text-decoration: line-through;
}

.produto-preco .preco-atual {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}

.produto-acoes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qty-btn:hover { background: var(--brand); color: white; }

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

.btn-add {
  padding: 8px 16px;
  background: var(--brand);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.btn-add:hover { background: var(--brand-dark); }

/* CARRINHO */
.carrinho {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
  align-self: start;
}

.carrinho h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carrinho-empty {
  text-align: center;
  color: var(--text-3);
  padding: 24px 0;
  font-size: 14px;
}

.carrinho-itens {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.carrinho-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-2);
  border-radius: 8px;
}

.carrinho-item-info {
  flex: 1;
  min-width: 0;
}

.carrinho-item-nome {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.carrinho-item-qty {
  font-size: 12px;
  color: var(--text-3);
}

.carrinho-item-preco {
  font-weight: 700;
  font-size: 14px;
  color: var(--brand);
}

.carrinho-remove {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--text-3);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrinho-remove:hover { background: var(--red); color: white; }

.carrinho-totais {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.carrinho-total-line {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
}

.carrinho-total-line.final {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  margin-top: 4px;
}

/* CHECKOUT */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding: 32px 0 60px;
}

.checkout-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.checkout-form h2 {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.checkout-form .subtitle {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
}

.form-step {
  margin-bottom: 32px;
}

.form-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.form-step-num {
  width: 26px;
  height: 26px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--display);
}

.form-step h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full { grid-column: span 2; }

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: white;
  transition: all 0.15s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-field textarea { resize: vertical; min-height: 80px; font-family: inherit; }

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

.payment-option {
  border: 2px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.payment-option:hover { border-color: var(--brand); }

.payment-option.active {
  border-color: var(--brand);
  background: var(--brand-light);
}

.payment-option svg {
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  color: var(--text-2);
}

.payment-option.active svg { color: var(--brand); }

.payment-option .label {
  font-weight: 600;
  font-size: 13px;
}

.payment-option .sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.cupom-row {
  display: flex;
  gap: 8px;
}

.cupom-row input { flex: 1; }

.cupom-applied {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--green-light);
  border-radius: 8px;
  font-size: 13px;
  color: #14532d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* PEDIDO STATUS */
.pedido-status {
  max-width: 700px;
  margin: 40px auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.pedido-header-status {
  text-align: center;
  margin-bottom: 32px;
}

.pedido-icon-status {
  width: 72px;
  height: 72px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.pedido-icon-status svg { width: 36px; height: 36px; }

.pedido-numero {
  font-family: var(--display);
  font-size: 14px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.pedido-titulo {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.pedido-sub {
  color: var(--text-2);
  font-size: 14px;
}

.pedido-timeline {
  display: flex;
  justify-content: space-between;
  margin: 32px 0;
  position: relative;
}

.pedido-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.pedido-timeline-progress {
  position: absolute;
  top: 14px;
  left: 14px;
  height: 2px;
  background: var(--brand);
  z-index: 0;
  transition: width 0.5s;
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid white;
}

.timeline-step.active .timeline-dot {
  background: var(--brand);
  color: white;
}

.timeline-step.done .timeline-dot {
  background: var(--green);
  color: white;
}

.timeline-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  text-align: center;
}

.timeline-step.active .timeline-label,
.timeline-step.done .timeline-label {
  color: var(--text);
  font-weight: 600;
}

.pedido-detalhes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.pedido-detalhes h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 8px;
  font-weight: 600;
}

.pedido-detalhes p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.pedido-itens-list {
  margin-bottom: 24px;
}

.pedido-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.pedido-item-row:last-child { border-bottom: none; }

.pedido-totais {
  background: var(--bg-2);
  padding: 16px;
  border-radius: var(--radius);
  font-size: 14px;
}

.pedido-total-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-2);
}

.pedido-total-row.final {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  pointer-events: none;
  white-space: nowrap;
  width: max-content;
  /* INVISÍVEL POR PADRÃO */
  opacity: 0;
  visibility: hidden;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* No mobile: toast no topo */
@media (max-width: 768px) {
  .toast {
    bottom: auto !important;
    top: 78px !important;
    font-size: 13px !important;
    padding: 9px 16px !important;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.15) !important;
    max-width: 80vw !important;
  }
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .loja-body, .checkout-layout {
    grid-template-columns: 1fr;
  }

  .carrinho {
    position: static;
  }

  .cta-loja-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-search { display: none; }

  .hero { padding: 40px 0 60px; }
  .hero p { font-size: 16px; }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 12px;
  }

  .hero-search button { border-radius: var(--radius); }

  .section { padding: 40px 0; }

  .section-head h2 { font-size: 24px; }

  .loja-header { padding: 30px 0 70px; }
  .loja-header-inner { flex-direction: column; text-align: center; gap: 16px; }
  .loja-header h1 { font-size: 24px; }
  .loja-header .loja-meta { justify-content: center; }

  .produtos-section, .checkout-form, .carrinho { padding: 20px; }

  .produto-card {
    flex-wrap: wrap;
    gap: 12px;
  }

  .produto-info { width: calc(100% - 72px); }
  .produto-preco, .produto-acoes { flex: 1; }

  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: span 1; }

  .payment-options { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .pedido-detalhes { grid-template-columns: 1fr; }

  .pedido-status { padding: 24px; margin: 20px; }

  .timeline-label { font-size: 9px; }

  .cta-loja h2 { font-size: 26px; }

  .btn { padding: 9px 14px; font-size: 13px; }

  .header-inner { gap: 10px; }
  .header-inner .btn-outline { display: none; }
}

/* ═══════════════════════════════════════
   BANNER LOJA FECHADA/PAUSADA
   ═══════════════════════════════════════ */
.banner-loja-fechada {
  position: relative;
  z-index: 20;
  max-width: 1200px;
  margin: -30px auto 16px;
  padding: 0 20px;
}
.banner-loja-fechada .banner-loja-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.15);
}
.banner-loja-fechada.pausada .banner-loja-inner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
  color: #78350f;
}
.banner-loja-fechada.fechada .banner-loja-inner {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-color: #ef4444;
  color: #7f1d1d;
}
.banner-loja-icon {
  font-size: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
}
.banner-loja-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.banner-loja-text strong {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.banner-loja-text span {
  font-size: 12.5px;
  opacity: 0.85;
  line-height: 1.3;
}

/* Quando tem banner, o loja-body NÃO sobrepoe ele */
.banner-loja-fechada + .container .loja-body,
.banner-loja-fechada ~ main .loja-body {
  margin-top: 0 !important;
}

/* ═══════════════════════════════════════
   MOBILE RESPONSIVE — Refinamentos gerais
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-actions {
    gap: 6px !important;
  }
  .header-actions .btn {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }
  .header-actions .btn svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* Esconder textos longos em botões mobile */
  .header-actions .btn-ghost,
  .btn-hide-mobile {
    display: none !important;
  }

  /* Hero */
  .hero {
    padding: 30px 0 40px !important;
  }
  .hero h1 {
    font-size: 26px !important;
    line-height: 1.15;
  }

  /* Geo-box */
  .geo-box {
    padding: 16px !important;
    margin-top: 18px !important;
  }
  .geo-row {
    flex-direction: column;
  }
  .geo-row .btn {
    width: 100%;
  }

  /* Seções */
  .section {
    padding: 32px 0 !important;
  }
  .section-head h2 {
    font-size: 22px !important;
  }

  /* Loja header */
  .loja-header {
    padding: 24px 0 70px !important;
  }
  .loja-header-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  /* No mobile, loja-body NÃO sobe sobre o header — fica logo abaixo */
  .loja-body {
    margin-top: -30px !important;
  }
  .loja-header h1 {
    font-size: 24px !important;
  }
  .loja-header .loja-logo {
    width: 64px !important;
    height: 64px !important;
    font-size: 28px !important;
  }
  .loja-meta {
    flex-direction: column !important;
    gap: 4px !important;
    font-size: 12px !important;
    align-items: center !important;
  }
  .loja-endereco {
    margin: 8px auto 0 !important;
    font-size: 11.5px !important;
    padding: 5px 12px !important;
    max-width: 90%;
    text-align: center;
  }
  .loja-endereco span {
    word-wrap: break-word;
    word-break: break-word;
  }

  /* Banner loja fechada */
  .banner-loja-fechada {
    margin: -20px auto 12px;
    padding: 0 14px;
  }
  .banner-loja-fechada .banner-loja-inner {
    padding: 12px 14px;
    gap: 10px;
  }
  .banner-loja-icon {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  .banner-loja-text strong {
    font-size: 13px;
  }
  .banner-loja-text span {
    font-size: 11.5px;
  }

  /* Loja body — empilhar produtos e carrinho */
  .loja-body {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .carrinho {
    position: static !important;
  }
  .produtos-section {
    padding: 18px !important;
  }
  .produtos-section h2 {
    font-size: 18px !important;
  }

  /* Produto card */
  .produto-card {
    flex-wrap: wrap;
    gap: 10px !important;
    padding: 14px !important;
  }
  .produto-card .produto-icon {
    width: 44px !important;
    height: 44px !important;
  }
  .produto-card .produto-info {
    flex: 1;
    min-width: 0;
  }
  .produto-card .produto-info h3 {
    font-size: 15px !important;
  }
  .produto-card .produto-info p {
    font-size: 12px !important;
  }
  .produto-card .produto-preco {
    text-align: right;
  }
  .produto-card .preco-atual {
    font-size: 16px !important;
  }
  .produto-card .btn-add {
    width: 100%;
    margin-top: 6px;
    padding: 10px !important;
  }

  /* Carrinho */
  .carrinho {
    padding: 16px !important;
  }
  .carrinho h3 {
    font-size: 16px !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Form fields em geral */
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  /* Container padding */
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 22px !important }
  .footer-grid { grid-template-columns: 1fr !important }
  .header-actions { width: 100%; justify-content: flex-end }
  .brand { font-size: 16px }
  .brand-icon { width: 30px; height: 30px }
}


/* ═══════════════════════════════════════
   CARD PIX — visual clean, estilo banco
   ═══════════════════════════════════════ */
.pix-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 8px 24px -8px rgba(15,23,42,0.08);
}

.pix-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #0d3d3a 0%, #1a5d57 100%);
  color: white;
}

.pix-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.pix-card-brand svg { color: #4cd6c4 }

.pix-valor-topo {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pix-card-body {
  padding: 22px 20px 18px;
}

.pix-instrucao {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 14px;
  text-align: center;
}

/* Bloco da chave */
.pix-chave-bloco {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  text-align: center;
}

.pix-chave-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.pix-chave-valor {
  font-family: 'JetBrains Mono', 'SF Mono', 'Courier New', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
  line-height: 1.3;
}

/* Botão copiar */
.pix-btn-copiar {
  width: 100%;
  padding: 13px;
  background: #0d3d3a;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.15s;
  margin-bottom: 14px;
}

.pix-btn-copiar:hover { background: #1a5d57 }
.pix-btn-copiar:active { transform: scale(0.98) }

.pix-btn-copiar.copiado {
  background: #15803d;
}

/* Recebedor */
.pix-favorecido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
  gap: 10px;
  flex-wrap: wrap;
}

.pix-favorecido span {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.pix-favorecido strong {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

/* Aviso */
.pix-aviso-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.4;
}

.pix-aviso-box svg {
  color: #d97706;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 600px) {
  .pix-card-header { padding: 12px 14px }
  .pix-card-body { padding: 18px 16px 14px }
  .pix-valor-topo { font-size: 16px }
  .pix-chave-valor { font-size: 14px }
}

/* Endereço da loja no header */
.loja-endereco {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  background: rgba(255,255,255,0.12);
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
.loja-endereco svg { opacity: 0.9; flex-shrink: 0 }

@media (max-width: 768px) {
  .loja-endereco {
    font-size: 12px;
    padding: 5px 10px;
    margin-top: 4px;
  }
}

/* ═══════════════════════════════════════
   CARRINHO FLUTUANTE MOBILE
   ═══════════════════════════════════════ */
.cart-float-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -8px 24px -8px rgba(15,23,42,0.15);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { transform: translateY(100%) }
  to { transform: translateY(0) }
}
.cart-float-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-float-count {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.cart-float-total {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.cart-float-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 4px 12px -2px rgba(14,165,233,0.4);
}
.cart-float-btn:hover { background: var(--brand-dark) }
.cart-float-btn:active { transform: scale(0.97) }

/* Pulse rapido na barra quando carrinho atualiza */
@keyframes cartPulse {
  0% { background: white }
  30% { background: #dbf2fe }
  100% { background: white }
}
.cart-float-bar.pulse { animation: cartPulse 0.5s ease }

/* Esconde no desktop, mostra só no mobile */
@media (min-width: 769px) {
  .cart-float-bar { display: none !important }
}

/* ═══════════════════════════════════════
   BOTTOM SHEET DO CARRINHO
   ═══════════════════════════════════════ */
.cart-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.cart-sheet.open {
  pointer-events: auto;
  visibility: visible;
}
.cart-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.5);
  opacity: 0;
  transition: opacity 0.25s;
}
.cart-sheet.open .cart-sheet-overlay { opacity: 1 }

.cart-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 8px 20px 20px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -16px 40px -8px rgba(15,23,42,0.2);
}
.cart-sheet.open .cart-sheet-content { transform: translateY(0) }

.cart-sheet-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 999px;
  margin: 8px auto 14px;
}
.cart-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cart-sheet-header h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.cart-sheet-close {
  background: var(--bg-2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}
.cart-sheet-close:hover { background: var(--bg-3) }

/* Esconde no desktop */
@media (min-width: 769px) {
  .cart-sheet { display: none !important }
}

/* Mobile: esconder carrinho lateral antigo + ajustar padding pra não ficar atrás da barra flutuante */
@media (max-width: 768px) {
  .carrinho { display: none !important }
  /* Compensar barra flutuante na parte de baixo (≈80px) */
  body { padding-bottom: 80px }
  main.container { padding-bottom: 20px }
}
