:root {
  --bg-body: #0D0D0D;
  --bg-card: #181818;
  --bg-card-hover: #222222;
  --border: #2A2A2A;
  --gold: #FFC107;
  --gold-dark: #E0A800;
  --orange: #F57C00;
  --text-main: #F5F5F5;
  --text-muted: #A3A3A3;
  --green-wpp: #25D366;
  --danger: #EF5350;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding-bottom: 95px;
  line-height: 1.4;
}

header {
  background: linear-gradient(180deg, #1E1604 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border);
  padding: 20px 16px 16px;
  text-align: center;
}

.brand-badge {
  display: inline-block;
  background: rgba(255, 193, 7, 0.14);
  color: var(--gold);
  border: 1px solid rgba(255, 193, 7, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.brand-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
}

.brand-sub {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.badge-status {
  background: rgba(37, 211, 102, 0.15);
  color: var(--green-wpp);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 2px 9px;
  border-radius: 99px;
  font-weight: 600;
}

.promo-banner {
  background: linear-gradient(90deg, var(--orange), var(--gold));
  color: #000;
  padding: 10px 14px;
  margin: 14px auto 0;
  max-width: 740px;
  border-radius: 10px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 10px;
}

.promo-banner strong {
  display: block;
  font-size: 0.86rem;
}

.promo-banner span {
  font-size: 0.76rem;
  font-weight: 500;
}

.promo-code {
  background: #000;
  color: var(--gold);
  padding: 5px 9px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}

.sticky-nav-inner {
  max-width: 740px;
  margin: 0 auto;
}

.search-box {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.search-box:focus {
  outline: none;
  border-color: var(--gold);
}

.cats-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.cats-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.15s ease;
}

.cat-pill.active,
.cat-pill:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

main {
  max-width: 740px;
  margin: 0 auto;
  padding: 6px 16px 24px;
}

.loading-msg,
.empty-search {
  text-align: center;
  color: var(--text-muted);
  padding: 36px 16px;
  font-size: 0.92rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
  color: var(--gold);
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

.items-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.item-card.in-cart {
  border-color: rgba(255, 193, 7, 0.55);
  background: #1D1A10;
}

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

.item-name {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-main);
}

.item-desc {
  font-size: 0.79rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.item-price {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.96rem;
}

.item-pix-badge {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--green-wpp);
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.25);
  padding: 1px 7px;
  border-radius: 6px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
}

.btn-qty {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: var(--bg-card-hover);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-qty.add {
  background: var(--gold);
  color: #000;
}

.qty-val {
  font-weight: 700;
  font-size: 0.92rem;
  min-width: 18px;
  text-align: center;
}

.site-footer {
  max-width: 740px;
  margin: 12px auto 0;
  padding: 18px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-note {
  margin-top: 4px;
  font-size: 0.74rem;
}

/* Barra fixa inferior do carrinho */
.cart-bar {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  max-width: 716px;
  margin: 0 auto;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  display: none;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  z-index: 50;
}

.cart-bar.visible {
  display: flex;
}

.cart-bar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cart-count {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.85;
}

.cart-label {
  font-size: 0.96rem;
  font-weight: 800;
}

.cart-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

@media (min-width: 640px) {
  .modal-backdrop.open {
    align-items: center;
    padding: 16px;
  }
}

.modal-sheet {
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 640px) {
  .modal-sheet {
    border-radius: 16px;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #191919;
}

.modal-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-size: 1.4rem;
  color: var(--gold);
}

.btn-close {
  background: #252525;
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.modal-body {
  padding: 16px 18px 24px;
  overflow-y: auto;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  gap: 8px;
  font-size: 0.86rem;
}

.cart-item-row strong {
  display: block;
}

.cart-item-row small {
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 14px;
}

.form-group.hidden {
  display: none;
}

.form-group label,
.group-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
}

.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.radio-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.radio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.radio-card input {
  margin-top: 3px;
  accent-color: var(--gold);
}

.radio-card strong {
  display: block;
  font-size: 0.84rem;
}

.radio-card small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.radio-card .pix-tag {
  color: var(--green-wpp);
  font-weight: 700;
}

.radio-card.active {
  border-color: var(--gold);
  background: #211C0D;
}

.summary-box {
  background: #1A1A1A;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.summary-row.discount {
  color: var(--green-wpp);
  font-weight: 600;
}

.summary-row.total {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 6px;
  margin-bottom: 0;
  color: var(--gold);
  font-weight: 800;
  font-size: 1.02rem;
}

.flow-info {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.22);
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 14px;
}

.btn-submit {
  width: 100%;
  background: var(--green-wpp);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
}

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

/* Tela de sucesso */
.success-sheet {
  padding: 28px 20px;
  text-align: center;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.16);
  color: var(--green-wpp);
  border: 2px solid var(--green-wpp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 auto 12px;
}

.success-sheet h2 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-size: 1.7rem;
  color: var(--gold);
}

.order-number-badge {
  display: inline-block;
  background: #222;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 6px 16px;
  border-radius: 8px;
  margin: 10px 0 14px;
}

.success-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.btn-whatsapp-fallback {
  display: block;
  width: 100%;
  background: var(--green-wpp);
  color: #000;
  text-decoration: none;
  font-weight: 800;
  padding: 13px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.btn-secondary {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 11px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
