:root {
  --red: #d93223;
  --red-dark: #a91f16;
  --orange: #ff9f1c;
  --orange-soft: #fff1d8;
  --black: #151515;
  --dark: #24211f;
  --gray: #f6f5f2;
  --gray-strong: #dfd8ce;
  --white: #ffffff;
  --muted: #68615b;
  --text: #2b2724;
  --shadow: 0 18px 48px rgba(33, 28, 24, 0.12);
  --shadow-soft: 0 10px 28px rgba(33, 28, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);

  background:
    radial-gradient(
      circle at top left,
      rgba(255, 159, 28, 0.18),
      transparent 34rem
    ),
    linear-gradient(180deg, #fffaf1 0%, var(--gray) 42%, #ffffff 100%);
}

body.modal-open,
body.panel-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;

  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  border-bottom: 1px solid rgba(223, 216, 206, 0.7);
  backdrop-filter: blur(16px);
}

.navbar {
  width: min(1120px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--red);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--red);
}

.nav-button,
.primary-button,
.secondary-button,
.add-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.nav-button,
.primary-button,
.add-button {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  box-shadow: 0 12px 26px rgba(217, 50, 35, 0.22);
}

.nav-button {
  padding: 11px 17px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
}

.secondary-button {
  border: 1px solid var(--gray-strong);
  background: var(--white);
  color: var(--black);
}

.secondary-button.light {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.full-button {
  width: 100%;
}

.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.nav-button:hover,
.primary-button:hover,
.secondary-button:hover,
.add-button:hover {
  transform: translateY(-2px);
}

.nav-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.add-button:focus-visible,
.filter-button:focus-visible,
.modal-close:focus-visible,
.icon-button:focus-visible,
.cart-float:focus-visible,
.quantity-control button:focus-visible,
.cart-item-actions button:focus-visible,
.remove-button:focus-visible,
.copy-pix-button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 159, 28, 0.55);
  outline-offset: 3px;
}

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--white);

  background:
    linear-gradient(
      90deg,
      rgba(21, 21, 21, 0.9),
      rgba(169, 31, 22, 0.64),
      rgba(21, 21, 21, 0.28)
    ),
    url("https://images.unsplash.com/photo-1550547660-d9450f859349?auto=format&fit=crop&w=1600&q=80")
      center/cover;
}

.hero-content,
.demo-strip,
.menu-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  padding: 78px 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.qr-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5rem);
  line-height: 0.98;
}

.hero p,
.qr-hero p {
  max-width: 610px;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-top: -54px;
  padding: 24px;
  border: 1px solid rgba(223, 216, 206, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.demo-strip h2,
.section-heading h2,
.cart-header h2,
.qr-card h2 {
  margin: 0;
  color: var(--black);
}

.demo-strip p,
.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.demo-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.demo-metrics span {
  border-radius: 999px;
  padding: 10px 13px;
  background: var(--orange-soft);
  color: var(--red-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.menu-section {
  padding: 58px 0 96px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 2.15rem;
}

.menu-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.search-label,
.qr-form label {
  font-weight: 900;
  color: var(--black);
}

#searchInput,
#urlInput {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--gray-strong);
  border-radius: 16px;
  padding: 0 16px;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-soft);
}

.filter-buttons {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 6px;
}

.filter-button {
  min-height: 44px;
  border: 1px solid var(--gray-strong);
  border-radius: 999px;
  padding: 0 17px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.filter-button.active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

  border: 1px solid rgba(223, 216, 206, 0.78);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card img {
  height: 220px;
  object-fit: cover;
}

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

.product-category {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 0;
  color: var(--black);
  font-size: 1.25rem;
}

.product-info p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.price {
  color: var(--red);
  font-size: 1.28rem;
  font-weight: 900;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--orange);
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 900;
}

.add-button {
  width: 100%;
  min-height: 48px;
}

.empty-state {
  margin: 32px 0 0;
  padding: 24px;
  border-radius: 18px;
  background: var(--white);
  color: var(--black);
  font-weight: 900;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.cart-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;

  display: grid;
  gap: 2px;
  min-width: 178px;
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.cart-float span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.cart-float strong {
  font-size: 1rem;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;

  width: min(420px, 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--white);
  box-shadow: -18px 0 48px rgba(21, 21, 21, 0.18);
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-strong);
}

.icon-button,
.modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
}

.cart-items {
  flex: 1;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--gray-strong);
  border-radius: 16px;
  background: #fffaf4;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.quantity-control,
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quantity-control button,
.cart-item-actions button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
}

.quantity-control span,
.cart-item-actions span {
  min-width: 22px;
  margin: 0;
  color: var(--black);
  text-align: center;
  font-weight: 900;
}

.cart-item-actions button[data-action="remove"] {
  width: auto;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--red);
}

.remove-button {
  grid-column: 1 / -1;
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-weight: 900;
}

.cart-empty {
  margin: 18px 0;
  color: var(--muted);
  font-weight: 800;
}

.cart-footer {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-strong);
}

.payment-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--gray-strong);
  border-radius: 18px;
  background: #fffaf4;
}

.payment-box h3 {
  margin: 0;
  color: var(--black);
  font-size: 1rem;
}

.payment-options {
  display: grid;
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--gray-strong);
  border-radius: 14px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-weight: 900;
}

.payment-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.pix-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--orange-soft);
}

.pix-box span {
  color: var(--red-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pix-box strong {
  color: var(--black);
  overflow-wrap: anywhere;
}

.copy-pix-button {
  width: fit-content;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
}

.copy-message {
  min-height: 18px;
  margin: 0;
  color: var(--red-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--black);
}

.cart-total strong {
  font-size: 1.35rem;
}

.screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(21, 21, 21, 0.45);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;

  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

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

.modal-content {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.modal-content img {
  height: 340px;
  object-fit: cover;
}

.modal-body {
  padding: 26px;
}

.modal-category {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.modal-body h2 {
  margin: 8px 0 10px;
  color: var(--black);
  font-size: 2rem;
}

.modal-body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.modal-body strong {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 1.45rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 40px max(16px, calc((100% - 1120px) / 2));
  background: var(--black);
  color: var(--white);
}

.footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.qr-page {
  min-height: calc(100vh - 74px);
  padding: 56px 16px 72px;
}

.qr-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

.qr-hero {
  min-height: 520px;
  display: grid;
  align-content: center;

  border-radius: 28px;
  padding: 42px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(21, 21, 21, 0.92), rgba(217, 50, 35, 0.66)),
    url("https://images.unsplash.com/photo-1606131731446-5568d87113aa?auto=format&fit=crop&w=1400&q=80")
      center/cover;
  box-shadow: var(--shadow);
}

.qr-card {
  border: 1px solid rgba(223, 216, 206, 0.9);
  border-radius: 24px;
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.qr-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-message {
  min-height: 22px;
  margin: 14px 0;
  color: var(--red);
  font-weight: 900;
}

.qr-preview {
  display: grid;
  place-items: center;
  min-height: 280px;
  margin-top: 16px;
  border: 1px dashed var(--gray-strong);
  border-radius: 20px;
  background: #fffaf4;
}

.qr-placeholder {
  max-width: 240px;
  margin: 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.qr-result {
  display: grid;
  place-items: center;
}

.qr-result canvas,
.qr-result img {
  max-width: 100%;
  height: auto;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
}

@media (max-width: 960px) {
  .products-grid,
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-layout {
    grid-template-columns: 1fr;
  }

  .qr-hero {
    min-height: 400px;
  }
}

@media (max-width: 720px) {
  .navbar {
    min-height: auto;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-button {
    padding: 10px 14px;
  }

  .hero {
    min-height: 590px;
    background:
      linear-gradient(
        180deg,
        rgba(21, 21, 21, 0.92),
        rgba(169, 31, 22, 0.76)
      ),
      url("https://images.unsplash.com/photo-1550547660-d9450f859349?auto=format&fit=crop&w=1000&q=80")
        center/cover;
  }

  .demo-strip {
    align-items: flex-start;
    flex-direction: column;
    margin-top: -34px;
  }

  .demo-metrics {
    justify-content: flex-start;
  }

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

  .product-card img {
    height: 240px;
  }

  .cart-float {
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .modal-actions,
  .hero-actions,
  .qr-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .modal-actions .primary-button,
  .modal-actions .secondary-button,
  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .qr-hero,
  .qr-card {
    border-radius: 22px;
    padding: 24px;
  }
}

@media (max-width: 430px) {
  .hero h1,
  .qr-hero h1 {
    font-size: 2.35rem;
  }

  .hero-content {
    padding: 58px 0 76px;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .modal-content img {
    height: 240px;
  }
}
