:root {
  --black: #050505;
  --panel: #11100d;
  --panel2: #1b1810;
  --gold: #f6b51d;
  --gold2: #ffd86a;
  --green: #109447;
  --green2: #20c768;
  --orange: #f47b22;
  --white: #fff7e8;
  --muted: #b9aa8b;
  --line: rgba(246, 181, 29, .22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--white);
  background: radial-gradient(circle at 80% 10%, rgba(16, 148, 71, .35), transparent 28rem), var(--black);
}
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; color: inherit; }
input, select {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0a0907;
  color: var(--white);
  padding: 0 12px;
}
.app-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 98px;
  background: linear-gradient(180deg, rgba(10, 10, 9, .97), #020202);
}
.topbar, .brand, .panel-head { display: flex; align-items: center; }
.topbar, .panel-head { justify-content: space-between; gap: 12px; }
.brand { gap: 10px; }
.logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: #000;
  border: 1px solid rgba(246, 181, 29, .42);
}
.brand small { display: block; color: var(--muted); font-size: 12px; }
.brand strong { display: block; font-size: 18px; line-height: 1; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #9dffbf;
  border: 1px solid rgba(32, 199, 104, .28);
  background: rgba(32, 199, 104, .13);
  font-size: 12px;
  font-weight: 900;
}
.hero {
  position: relative;
  min-height: 230px;
  margin-top: 14px;
  padding: 18px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(4, 89, 38, .9), rgba(0,0,0,.5)), var(--campaign-image) center 18% / cover;
  border: 1px solid var(--line);
}
.hero-content { position: relative; z-index: 2; width: 72%; }
.hero span { color: var(--gold2); font-size: 12px; font-weight: 950; text-transform: uppercase; }
h1 { margin: 10px 0 8px; font-size: 34px; line-height: .94; text-transform: uppercase; }
.hero p { margin: 0 0 18px; color: #f7ebcc; font-size: 14px; line-height: 1.38; }
.primary {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 7px;
  color: #120d02;
  background: var(--gold);
  font-weight: 950;
}
.wide { width: 100%; margin-top: 16px; }
.closed-banner {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  color: #ffd3c8;
  background: rgba(255, 104, 77, .12);
  border: 1px solid rgba(255, 104, 77, .3);
  font-size: 13px;
}
.closed-banner.active { display: block; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 24px 0 12px; }
.section-head h2 { margin: 0; font-size: 19px; }
.section-head small { color: var(--muted); }
.categories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.category {
  min-height: 76px;
  border-radius: 8px;
  padding: 8px 5px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #181510, #0d0c0a);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}
.category.active { color: #120d02; background: var(--gold); border-color: transparent; }
.category b { display: block; font-size: 23px; margin-bottom: 4px; }
.product-list { display: grid; gap: 12px; }
.product {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  min-height: 126px;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(145deg, #15130e, #0a0a09);
  border: 1px solid var(--line);
}
.product img { width: 104px; height: 104px; border-radius: 7px; object-fit: cover; background: #000; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.tag { padding: 4px 7px; border-radius: 5px; font-size: 10px; font-weight: 950; color: #160f03; background: var(--gold); text-transform: uppercase; }
.tag.green { background: var(--green2); }
.tag.orange { color: #fff5df; background: var(--orange); }
.product h3 { margin: 0 0 5px; font-size: 17px; }
.product p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.price { color: var(--gold2); font-weight: 950; }
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 20;
  width: min(404px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(2, 2, 2, .92);
  border: 1px solid rgba(246, 181, 29, .18);
}
.nav-btn {
  height: 48px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  position: relative;
  text-decoration: none;
}
.nav-btn.active { color: var(--gold); }
.whatsapp-nav { color: #78ff9c; }
.nav-btn svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn img { width: 32px; height: 32px; object-fit: contain; }
#cartCount {
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green2);
  color: #021006;
  font-size: 10px;
  font-weight: 950;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(0, 0, 0, .72);
}
.overlay.active { display: block; }
.panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 18px 16px 24px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #15130e, #050505);
  border: 1px solid var(--line);
}
.panel h2 { margin: 0; }
.panel small { color: var(--muted); }
.close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  font-size: 22px;
}
label { display: block; margin: 16px 0 7px; color: var(--gold2); font-size: 12px; font-weight: 950; text-transform: uppercase; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.choice {
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0c0b09;
  font-weight: 900;
}
.choice.active { color: #130d02; background: var(--gold); border-color: transparent; }
.option-list { display: grid; gap: 8px; }
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0b0a08;
  font-weight: 800;
}
.option.active { color: #ffd0c7; border-color: rgba(255, 104, 77, .45); background: rgba(255, 104, 77, .12); }
.cart-item {
  padding: 12px;
  border-radius: 8px;
  background: #0d0c09;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.cart-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.mini-btn {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #0a0907;
  color: var(--gold2);
  font-weight: 900;
}
.mini-btn.danger {
  color: #ffd3c8;
  border-color: rgba(255, 104, 77, .35);
  background: rgba(255, 104, 77, .1);
}
.cart-item strong, .cart-item small { display: block; }
.cart-item small { color: var(--muted); line-height: 1.5; margin-top: 5px; }
.checkout { display: grid; gap: 10px; }
.hidden { display: none !important; }
.suggestions {
  margin: 14px 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #090806;
}
.suggestions h3 {
  margin: 0 0 10px;
  color: var(--gold2);
  font-size: 15px;
}
.suggestion-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: #0d0c09;
  border: 1px solid rgba(246, 181, 29, .16);
  margin-bottom: 8px;
}
.suggestion-card img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 7px;
}
.suggestion-card strong,
.suggestion-card small {
  display: block;
}
.suggestion-card small {
  color: var(--muted);
  margin-top: 3px;
}
.compact-panel {
  max-height: 78vh;
}
pre {
  white-space: pre-wrap;
  min-height: 170px;
  padding: 14px;
  border-radius: 8px;
  background: #080806;
  color: #f5ead0;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}
.effect-layer {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  overflow: hidden;
}
.effect-ball {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: 58px;
  height: 58px;
  object-fit: contain;
  opacity: 0;
  animation: ballFly .95s ease-out forwards;
}
.effect-phrase {
  position: absolute;
  left: 50%;
  bottom: 162px;
  width: min(340px, calc(100% - 40px));
  padding: 14px 16px;
  border-radius: 8px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .86);
  border: 1px solid rgba(246, 181, 29, .4);
  color: var(--gold2);
  text-align: center;
  font-weight: 950;
  text-transform: uppercase;
  animation: phrasePop 1.15s ease-out forwards;
}
@keyframes ballFly {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.65) rotate(0deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), var(--y)) scale(1.15) rotate(var(--r)); }
}
@keyframes phrasePop {
  0% { opacity: 0; transform: translateX(-50%) translateY(18px) scale(.92); }
  18%, 78% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(.98); }
}
