:root {
  --bg: #0a0a0a;
  --bg-card: #171717;
  --bg-card-hover: #1f1f1f;
  --border: #2a2a2a;
  --accent: #ff6600;
  --accent-dark: #cc5200;
  --text: #ffffff;
  --text-dim: #9a9a9a;
  --text-dimmer: #6b6b6b;
  --green: #25d366;
  --price-green: #008c00;
  --radius: 12px;
}

* { box-sizing: border-box; }

/* Esconde a barra de rolagem (rolagem continua funcionando por toque/mouse/trackpad) */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Edge legado */
}
html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: 90px;
}

a { color: var(--accent); text-decoration: none; }

/* Header */
header.topbar {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 34px;
  color: #111;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name { font-size: 28px; font-weight: 700; line-height: 1.2; }
.status-open {
  font-size: 15px;
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.status-open::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
}
.status-closed { color: #ff5252; }
.status-closed::before { background: #ff5252; }

.info-btn {
  margin-left: auto;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
}
.info-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Category nav */
nav.catnav {
  max-width: 960px;
  margin: 10px 16px 0;
  display: flex;
  gap: 2px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #1f1f1f;
  border-radius: 10px;
}
@media (min-width: 992px) { nav.catnav { margin-left: auto; margin-right: auto; } }
nav.catnav::-webkit-scrollbar { display: none; }

.catnav button {
  white-space: nowrap;
  background: transparent;
  color: var(--text);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.catnav button.active {
  background: transparent;
  color: var(--accent);
}

main { max-width: 960px; margin: 0 auto; padding: 8px 16px 24px; }

.cat-section h2 {
  font-size: 21px;
  color: var(--text);
  margin: 18px 0 10px;
}

.product-card {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.product-card:hover { background: var(--bg-card-hover); border-color: #3a3a3a; }

.product-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #222;
}

.product-info { flex: 1; min-width: 0; }
.product-info .p-title { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.product-info .p-desc {
  color: var(--text-dim);
  font-size: 12px;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-info .p-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.p-price { font-weight: 800; color: var(--price-green); font-size: 16px; }
.p-price .a-partir { color: var(--accent); font-weight: 400; font-size: 12px; display: block; }
.add-btn {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.add-btn:hover { background: var(--accent); color: #111; }

/* Modal */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.overlay.show { display: flex; }
@media (min-width: 620px) {
  .overlay { align-items: center; }
}

.sheet {
  background: var(--bg-card);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  border-radius: 16px 16px 0 0;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-bottom: none;
}
@media (min-width: 620px) {
  .sheet { border-radius: 16px; border-bottom: 1px solid var(--border); }
}

.sheet-img { width: 100%; height: 200px; object-fit: cover; background: #222; }
.sheet-body { padding: 18px; }
.sheet-body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.sheet-body .sheet-desc { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 6px; }
.sheet-body .sheet-price { color: var(--accent); font-weight: 700; margin-bottom: 16px; }

.step { border-top: 1px solid var(--border); padding: 16px 0; }
.step-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.step-title { font-weight: 700; font-size: 0.92rem; text-transform: uppercase; }
.step-sub { font-size: 0.75rem; color: var(--text-dimmer); }
.step-req { color: var(--accent); font-size: 0.72rem; font-weight: 600; }

.option-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #222;
}
.option-row:last-child { border-bottom: none; }
.option-main { flex: 1; }
.option-name { font-size: 0.9rem; font-weight: 600; }
.option-desc { font-size: 0.76rem; color: var(--text-dimmer); }
.option-extra-price { font-size: 0.78rem; color: var(--text-dim); }

.radio-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--text-dimmer);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}
.radio-dot.checked { border-color: var(--accent); }
.radio-dot.checked::after {
  content: "";
  position: absolute; inset: 3px;
  border-radius: 50%; background: var(--accent);
}

.stepper { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.stepper button {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--text-dimmer);
  background: transparent; color: var(--text);
  cursor: pointer; font-size: 1rem; line-height: 1;
}
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper button.plus { border-color: var(--accent); color: var(--accent); }
.stepper span { min-width: 14px; text-align: center; font-weight: 600; }

textarea.obs {
  width: 100%; background: #111; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 10px;
  font-size: 0.85rem; resize: vertical; min-height: 60px;
  font-family: inherit;
}

.qty-add-row {
  position: sticky; bottom: 0;
  display: flex; gap: 10px; align-items: center;
  background: var(--bg-card);
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}
.qty-stepper {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px;
}
.qty-stepper button {
  background: none; border: none; color: var(--accent);
  font-size: 1.2rem; cursor: pointer; width: 24px;
}
.qty-stepper span { min-width: 18px; text-align: center; font-weight: 700; }

.btn-primary {
  flex: 1;
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding-left: 16px; padding-right: 16px;
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); }

.close-x {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff;
  border: none; font-size: 1.1rem; cursor: pointer;
  z-index: 2;
}
.sheet-imgwrap { position: relative; }

/* Cart floating bar */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  justify-content: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(10,10,10,1) 60%, rgba(10,10,10,0));
}
.cart-bar.show { display: flex; }
.cart-bar-inner {
  width: 100%; max-width: 560px;
  background: var(--accent);
  color: #111;
  border-radius: 12px;
  padding: 13px 18px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.cart-bar-count {
  background: #111; color: var(--accent);
  border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.cart-bar-left { display: flex; align-items: center; gap: 10px; }

/* Cart panel */
.cart-item {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #222;
}
.cart-item-name { font-weight: 700; font-size: 0.9rem; }
.cart-item-detail { font-size: 0.76rem; color: var(--text-dim); margin: 3px 0; }
.cart-item-price { font-weight: 700; white-space: nowrap; }
.cart-remove { color: #ff5252; font-size: 0.76rem; cursor: pointer; border: none; background: none; padding: 0; margin-top: 4px; }

.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 0.78rem; color: var(--text-dim); margin-bottom: 5px; }
.form-field input, .form-field select {
  width: 100%; background: #111; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 10px;
  font-size: 0.88rem; font-family: inherit;
}

.summary-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 4px 0; color: var(--text-dim); }
.summary-row.total { color: var(--text); font-weight: 700; font-size: 1.05rem; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 6px; }

.empty-cart { text-align: center; color: var(--text-dimmer); padding: 40px 20px; }

/* Info panel */
.info-block { margin-bottom: 18px; }
.info-block h4 { font-size: 0.78rem; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; letter-spacing: 0.03em; }
.hours-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 3px 0; color: var(--text-dim); }
.pay-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-tag { background: #222; border-radius: 6px; padding: 5px 10px; font-size: 0.78rem; }

.footer-note {
  text-align: center; color: var(--text-dimmer); font-size: 0.75rem;
  padding: 30px 16px 10px;
}

@media (max-width: 480px) {
  .product-card img { width: 90px; height: 90px; }
  .logo-badge { width: 80px; height: 80px; font-size: 28px; }
  .brand-name { font-size: 22px; }
}
