:root{
  --bg:#fff7e6;          /* warm off-white */
  --card:#ffffff;        /* white cards */
  --muted:#5b6472;       /* readable muted text */
  --text:#1a1f2b;        /* near-black text */
  --brand:#d61f26;       /* pack red */
  --brand2:#ffd54a;      /* pack yellow */
  --brand3:#0ea55a;      /* pack green */
  --line:#e6e8ee;        /* soft border */
  --good:#16a34a;
  --bad:#dc2626;
  --shadow: 0 12px 30px rgba(16,24,40,.10);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(255,213,74,.32), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(214,31,38,.14), transparent 55%),
    radial-gradient(800px 450px at 60% 90%, rgba(14,165,90,.12), transparent 60%),
    var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.wrap{max-width:1100px; margin:0 auto; padding:0 16px}
.mt8{margin-top:8px}
.mt16{margin-top:16px}
.mt24{margin-top:24px}
.muted{color:var(--muted); font-size:14px}

/* HEADER */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.78);
  border-bottom:1px solid var(--line);
}
.topbarInner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
}
.brand{display:flex; gap:10px; align-items:center}
.brandMark{
  width:42px; height:42px; border-radius:12px;
  background: linear-gradient(135deg, rgba(214,31,38,.14), rgba(255,213,74,.30));
  border:1px solid rgba(214,31,38,.18);
  display:grid; place-items:center;
  font-weight:900; letter-spacing:.5px;
  color: var(--brand);
}
.brandName{font-weight:900}
.brandTag{font-size:12px; color:var(--muted)}

.nav{display:flex; gap:14px; align-items:center}
.nav a{
  padding:8px 10px;
  border-radius:10px;
  color: #2b3445;
}
.nav a:hover{
  background:rgba(214,31,38,.08);
  color: var(--brand);
}
.cartBtn{
  background:rgba(255,255,255,.85);
  border:1px solid var(--line);
  color: var(--text) !important;
  box-shadow: 0 6px 16px rgba(16,24,40,.06);
}
.pill{
  margin-left:8px;
  font-size:12px;
  padding:2px 8px;
  border-radius:999px;
  background: rgba(255,213,74,.35);
  border:1px solid rgba(255,213,74,.55);
}

/* HERO */
.hero{ padding:40px 0 10px; }
.heroCard{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.80));
  border-radius:18px;
  padding:22px;
  box-shadow: var(--shadow);
}
.heroTitle{font-size:34px; font-weight:1000; line-height:1.05}
.heroSub{margin-top:10px; color:var(--muted); max-width:720px}
.heroBtns{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}

/* BUTTONS */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.88);
  color: var(--text);
  font-weight:800;
  box-shadow: 0 6px 18px rgba(16,24,40,.06);
}
.btn.primary{
  background: linear-gradient(135deg, rgba(214,31,38,.16), rgba(255,213,74,.45));
  border:1px solid rgba(214,31,38,.18);
  color:#5a0b0e;
}
.btn:hover{transform: translateY(-1px)}

/* GRID */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 900px){ .grid{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 560px){
  .grid{grid-template-columns: 1fr;}
  .heroTitle{font-size:28px}
  .nav{gap:6px}
}

/* CARDS */
.card{
  border:1px solid var(--line);
  background: var(--card);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 10px 24px rgba(16,24,40,.06);
}
.cardTop{display:flex; justify-content:space-between; gap:10px}
.badge{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  background: rgba(14,165,90,.12);
  border:1px solid rgba(14,165,90,.22);
  color:#0a5f35;
  font-weight:800;
}
.price{font-size:18px; font-weight:1000}
.small{font-size:13px; color:var(--muted)}

.pimg{
  width:100%;
  aspect-ratio: 16/10;
  border-radius:14px;
  border:1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
  display:grid; place-items:center;
  overflow:hidden;
  margin:10px 0;
}
.pimg img{width:100%; height:100%; object-fit:cover}

.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.qty{
  display:flex; gap:8px; align-items:center;
  padding:6px; border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.90);
}
.qbtn{
  width:34px; height:34px;
  border-radius:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.88);
  color: var(--text);
  font-weight:1000;
}
.qnum{min-width:26px; text-align:center; font-weight:1000}

.hr{height:1px; background:var(--line); margin:16px 0}

/* FOOTER */
.footer{
  border-top:1px solid var(--line);
  padding:26px 0;
  margin-top:28px;
  background: rgba(255,255,255,.55);
}
.footerGrid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:16px;
}
@media (max-width: 760px){ .footerGrid{grid-template-columns:1fr;} }
.footerTitle{font-weight:1000; margin-bottom:8px}
.footerBottom{margin-top:18px; padding-top:14px; border-top:1px solid var(--line)}

/* STICKY WHATSAPP */
.waFloat{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:80;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  background: rgba(22,163,74,.14);
  border:1px solid rgba(22,163,74,.28);
  box-shadow: 0 16px 40px rgba(16,24,40,.18);
  font-weight:1000;
}
.waDot{
  width:12px; height:12px;
  border-radius:999px;
  background: var(--good);
  box-shadow: 0 0 0 6px rgba(22,163,74,.16);
}

/* NOTICES */
.notice{
  border:1px solid rgba(255,213,74,.55);
  background: rgba(255,213,74,.22);
  border-radius:14px;
  padding:12px 14px;
  color: #4a3b00;
  font-weight:700;
}
.err{
  border:1px solid rgba(220,38,38,.30);
  background: rgba(220,38,38,.10);
  border-radius:14px;
  padding:12px 14px;
  color:#7a0b0b;
  font-weight:700;
}