:root {
  --ink: #26170f;
  --muted: #7d6656;
  --cream: #fff7ea;
  --paper: #fffdf7;
  --line: rgba(38, 23, 15, 0.14);
  --tomato: #e3523d;
  --forest: #123d33;
  --gold: #f7b744;
  --mint: #dfeee2;
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.55), transparent 28%),
    radial-gradient(circle at 14% 4%, rgba(247, 183, 68, 0.34), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(18, 61, 51, 0.2), transparent 28%),
    linear-gradient(135deg, #fff2df, #edf4e7 68%, #ffe3d7);
}

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: 470px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.12), transparent 20%),
    radial-gradient(circle at 78% 18%, rgba(247, 183, 68, 0.45), transparent 24%),
    linear-gradient(135deg, #123d33, #1b1713 64%, #9a492c);
}

.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: 18px;
  padding: 10px 14px;
  color: #2c1909;
  background: var(--gold);
  font-weight: 950;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.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: var(--gold);
  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 24px 64px rgba(0, 0, 0, 0.28);
}

.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;
}

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

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

.toolbar {
  position: sticky;
  top: 10px;
  z-index: 8;
  border-radius: 24px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 10px;
}

.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);
}

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

.product-card {
  border-radius: 28px;
  padding: 16px;
  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-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;
}

.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(460px, 100vw);
  height: 100vh;
  padding: 18px;
  overflow: auto;
  transform: translateX(105%);
  transition: transform 180ms ease;
  background:
    radial-gradient(circle at 90% 10%, rgba(247, 183, 68, 0.22), transparent 26%),
    rgba(255, 253, 247, 0.96);
}

.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);
}

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

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

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

.cart-row {
  border-radius: 18px;
  padding: 12px;
  background: rgba(18, 61, 51, 0.07);
}

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

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

.checkout {
  display: grid;
  gap: 12px;
}

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

.total-box {
  border-radius: 22px;
  padding: 16px;
  color: white;
  background: linear-gradient(135deg, var(--forest), #1b1713);
}

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

.send {
  color: #2c1909;
  background: linear-gradient(135deg, var(--gold), #ef7c35);
}

.location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.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) {
  .topbar,
  .hero-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

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

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

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