:root {
  --ink: #26170f;
  --muted: #7d6656;
  --cream: #fff7ea;
  --paper: #fffdf7;
  --line: rgba(38, 23, 15, 0.14);
  --tomato: #e3523d;
  --forest: #123d33;
  --gold: #f7b744;
  --fire: #ef6b2f;
  --leaf: #2f7a5f;
  --mint: #dfeee2;
  --shadow: 0 28px 90px rgba(55, 36, 22, 0.18);
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(247, 183, 68, 0.42), transparent 25%),
    radial-gradient(circle at 93% 4%, rgba(239, 107, 47, 0.24), transparent 28%),
    radial-gradient(circle at 72% 88%, rgba(18, 61, 51, 0.18), transparent 30%),
    linear-gradient(135deg, #fff3df, #eff7ea 64%, #ffe0cc);
}

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

button {
  border: 0;
  border-radius: 18px;
  padding: 13px 16px;
  color: white;
  background: linear-gradient(135deg, var(--forest), #1b6657);
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.ghost.light {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

textarea {
  min-height: 82px;
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.13), transparent 20%),
    radial-gradient(circle at 78% 18%, rgba(247, 183, 68, 0.5), transparent 24%),
    radial-gradient(circle at 96% 74%, rgba(239, 107, 47, 0.46), transparent 22%),
    linear-gradient(135deg, #0c2f29, #18130f 58%, #a54829);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 390px;
  height: 390px;
  border-radius: 999px;
  border: 70px solid rgba(255, 255, 255, 0.08);
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  min-height: 54px;
  border-radius: 21px;
  padding: 10px 14px;
  color: #2c1909;
  background: linear-gradient(135deg, #fff0b8, var(--gold) 54%, var(--fire));
  font-weight: 950;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 22px 76px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  border-radius: 999px;
  padding: 9px 13px;
  color: #2c1909;
  background: linear-gradient(135deg, var(--gold), #ffe7a4);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 11vw, 98px);
  line-height: 0.86;
  letter-spacing: -0.075em;
  text-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.hero p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.hero-actions,
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shell {
  width: min(1120px, calc(100% - 28px));
  margin: -58px auto 80px;
  display: grid;
  gap: 16px;
}

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

.status-card,
.toolbar,
.product-card,
.highlight-card,
.product-modal-card,
.cart-panel,
.success {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.status-card {
  position: relative;
  z-index: 2;
  border-radius: 26px;
  padding: 16px 18px;
  color: var(--muted);
  font-weight: 800;
}

.status-card[data-state="online"] {
  border-color: rgba(47, 122, 95, 0.34);
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(223, 238, 226, 0.78));
}

.status-card[data-state="offline"] {
  border-color: rgba(227, 82, 61, 0.28);
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(255, 224, 210, 0.74));
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.status-copy {
  display: grid;
  gap: 7px;
}

.status-main {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
}

.status-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 6px rgba(47, 122, 95, 0.14);
  background: #2f7a5f;
}

.status-card[data-state="offline"] .status-dot {
  box-shadow: 0 0 0 6px rgba(227, 82, 61, 0.12);
  background: #e3523d;
}

.status-detail,
.status-meta {
  margin: 0;
  line-height: 1.4;
}

.status-meta {
  max-width: 320px;
  text-align: right;
}

.highlight-card {
  border-radius: 28px;
  padding: 18px;
}

.highlight-card-accent {
  color: white;
  background:
    radial-gradient(circle at 94% 8%, rgba(247, 183, 68, 0.3), transparent 24%),
    linear-gradient(135deg, #123d33, #8f3c22);
}

.highlight-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.highlight-card p {
  margin: 0;
}

.highlight-label {
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #2c1909;
  background: linear-gradient(135deg, var(--gold), #ffe49b);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.highlight-card-accent .highlight-copy {
  color: rgba(255, 255, 255, 0.82);
}

.highlight-copy {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(18, 61, 51, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.highlight-link {
  border: 1px solid rgba(18, 61, 51, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.toolbar {
  position: sticky;
  top: 10px;
  z-index: 8;
  border-radius: 28px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-color: rgba(18, 61, 51, 0.18);
}

.order-mode-field select {
  font-weight: 800;
}

.categories button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.categories button.active {
  color: #2c1909;
  background: var(--gold);
}

.categories {
  overflow-x: auto;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar {
  display: none;
}

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

.product-card {
  border-radius: 28px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 230, 0.9)),
    rgba(255, 253, 247, 0.94);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 183, 68, 0.62);
  box-shadow: 0 30px 78px rgba(55, 36, 22, 0.18);
}

.product-photo-button {
  position: relative;
  width: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border-radius: 22px;
  overflow: hidden;
}

.product-photo-button span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 7px 10px;
  color: white;
  background: rgba(18, 61, 51, 0.82);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-photo {
  width: 100%;
  height: 176px;
  border-radius: 22px;
  object-fit: cover;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--forest);
  background: linear-gradient(135deg, #fff0d0, #f8d98b);
  font-size: 38px;
  font-weight: 950;
}

.product-description {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

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

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--forest);
  background: var(--mint);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 14px 0 8px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price {
  color: var(--tomato);
  font-size: 30px;
  font-weight: 950;
}

.product-card button[data-add] {
  width: 100%;
  margin-top: 14px;
}

.options {
  display: grid;
  gap: 9px;
  margin: 13px 0;
}

.addons {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(18, 61, 51, 0.06);
}

.addons label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.addons input {
  width: auto;
}

.cart-panel {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  width: min(500px, 100vw);
  height: 100vh;
  padding: 20px;
  overflow: auto;
  transform: translateX(105%);
  transition: transform 180ms ease;
  background:
    radial-gradient(circle at 88% 4%, rgba(247, 183, 68, 0.34), transparent 28%),
    radial-gradient(circle at 10% 88%, rgba(18, 61, 51, 0.12), transparent 24%),
    linear-gradient(180deg, #fffaf0, #fff4df);
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

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

.product-modal-card {
  position: relative;
  width: min(920px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  border-radius: 32px;
  padding: 18px;
}

.product-modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  margin-bottom: 10px;
}

.product-detail {
  clear: both;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  gap: 18px;
  align-items: start;
}

.product-detail-photo {
  width: 100%;
  min-height: 420px;
  border-radius: 28px;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: linear-gradient(135deg, #fff0d0, #f8d98b);
  font-size: 74px;
  font-weight: 950;
}

.product-detail-info h2 {
  margin: 14px 0 8px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.product-detail-info p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

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

.mobile-cart-bar {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 18;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(18, 61, 51, 0.18);
  border-radius: 22px;
  padding: 14px 16px;
  color: white;
  background:
    radial-gradient(circle at 90% 18%, rgba(247, 183, 68, 0.32), transparent 24%),
    linear-gradient(135deg, rgba(18, 61, 51, 0.98), rgba(40, 110, 92, 0.98));
  box-shadow: 0 22px 54px rgba(18, 61, 51, 0.28);
}

.mobile-cart-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.mobile-cart-copy strong,
.mobile-cart-bar > strong {
  color: white;
}

.mobile-cart-copy small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.mobile-cart-bar.pulse {
  animation: cart-bar-pulse 0.38s ease;
}

@keyframes cart-bar-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

.cart-head,
.cart-row,
.total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-head h2 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -0.06em;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.cart-row {
  border-radius: 18px;
  padding: 12px;
  border: 1px solid rgba(18, 61, 51, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 183, 68, 0.12));
}

.cart-row small {
  display: block;
  color: var(--muted);
}

.cart-row button {
  padding: 9px 11px;
}

.checkout {
  display: grid;
  gap: 12px;
  border-radius: 28px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(18, 61, 51, 0.08);
}

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

.delivery-fields {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(18, 61, 51, 0.16);
  border-radius: 24px;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 183, 68, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(18, 61, 51, 0.07), rgba(255, 255, 255, 0.64));
}

.delivery-title {
  display: grid;
  gap: 3px;
  border-radius: 18px;
  padding: 11px 12px;
  color: white;
  background: linear-gradient(135deg, var(--forest), var(--leaf));
}

.delivery-title strong {
  font-size: 16px;
}

.delivery-title small {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
}

.total-box {
  border-radius: 22px;
  padding: 18px;
  color: white;
  background:
    radial-gradient(circle at 92% 20%, rgba(247, 183, 68, 0.35), transparent 28%),
    linear-gradient(135deg, var(--forest), #120d0a);
}

.total-box strong {
  font-size: 30px;
}

.send {
  color: #2c1909;
  background: linear-gradient(135deg, var(--gold), #ef7c35);
  box-shadow: 0 18px 38px rgba(239, 107, 47, 0.28);
}

.location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(18, 61, 51, 0.22);
  color: white;
  background: linear-gradient(135deg, #1f6a58, #123d33);
}

.location-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

.location-status[data-tone="success"] {
  color: #16694f;
}

.location-status[data-tone="warn"] {
  color: #915d00;
}

.location-status[data-tone="error"] {
  color: #b13a2c;
}

.success {
  display: none;
  margin-top: 14px;
  border-radius: 24px;
  padding: 15px;
}

.success.show {
  display: block;
}

.success h3 {
  margin: 0 0 8px;
}

.pix-box {
  margin-top: 12px;
  border-radius: 20px;
  padding: 12px;
  text-align: center;
  background: rgba(18, 61, 51, 0.07);
}

.pix-box img {
  max-width: 220px;
  width: 80%;
  border-radius: 18px;
  background: white;
}

.trap {
  position: absolute;
  left: -9999px;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: none;
  background: rgba(20, 12, 8, 0.38);
}

.scrim.open {
  display: block;
}

@media (max-width: 720px) {
  body {
    padding-bottom: 22px;
  }

  .topbar,
  .hero-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.has-mobile-cart {
    padding-bottom: 110px;
  }

  .hero {
    min-height: 360px;
  }

  .hero::after {
    display: none;
  }

  .topbar {
    padding-top: 16px;
    padding-bottom: 10px;
  }

  .topbar::before {
    inset: 6px;
    border-radius: 22px;
  }

  .brand {
    min-width: 56px;
    min-height: 48px;
    border-radius: 18px;
    padding: 9px 12px;
  }

  .hero-copy {
    padding-top: 12px;
    padding-bottom: 42px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 54px);
    line-height: 0.92;
  }

  .hero p {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .eyebrow {
    margin-bottom: 10px;
    padding: 7px 11px;
    font-size: 11px;
  }

  #btnOpenCart {
    display: none;
  }

  .store-highlights,
  .toolbar,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .status-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-meta {
    max-width: none;
    text-align: left;
  }

  .shell {
    width: min(100% - 18px, 1120px);
    margin: -30px auto 120px;
  }

  .toolbar {
    top: 8px;
    border-radius: 22px;
    padding: 10px;
  }

  .categories {
    position: sticky;
    top: 76px;
    z-index: 7;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 1px 8px;
  }

  .categories button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 12px 15px;
    white-space: nowrap;
  }

  .product-card {
    padding: 14px;
    border-radius: 22px;
  }

  .product-card h3 {
    margin-top: 12px;
    font-size: 22px;
  }

  .price {
    font-size: 22px;
  }

  .product-photo {
    height: 156px;
  }

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

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail-photo {
    min-height: 260px;
  }
}
