:root {
  /* Brand colours taken from the Burn Bites logo */
  --green-900: #0f2a13;
  --green-700: #0a5413;
  --green-600: #0c6b17;
  --green-500: #1c8a2a;
  --green-100: #e3f2e4;
  --cream: #f5f8f5;
  --sand: #ebeee9;
  --orange: #f08a3c;
  --charcoal: #3d3d3d;
  --ink: #1c1f1d;
  --muted: #66736c;
  --line: #e4e1d8;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 61, 44, .06), 0 8px 24px rgba(20, 61, 44, .08);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 40px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(35, 119, 79, .3); }
.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn-ghost:hover { background: var(--green-100); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--cream); color: var(--green-900); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; height: 42px; padding: 0; font-size: 1.4rem; line-height: 1; }
.btn:disabled { opacity: .6; cursor: progress; }
.pulse { animation: pulse .4s; }
@keyframes pulse { 50% { transform: scale(1.18); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--green-900); letter-spacing: -.02em; }
.logo-img { height: 58px; width: auto; }
.logo-chip { display: inline-block; background: #fff; border-radius: 16px; padding: 10px 14px; }
.logo-chip img { height: 72px; width: auto; }
.main-nav { display: flex; gap: 6px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { background: var(--green-100); color: var(--green-700); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-search input { width: 200px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font: inherit; font-size: .9rem; }
.header-search input:focus { outline: 2px solid var(--green-500); background: #fff; }
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--green-900); background: var(--cream); }
.cart-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 20%, #d6ecd8 0%, transparent 60%), var(--cream); padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin-bottom: 14px; }
.eyebrow-light { color: #9fd8b6; }
.accent { color: var(--green-600); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 16px 8px 8px; font-weight: 600; font-size: .88rem; box-shadow: var(--shadow); }
.hero-badges span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-100); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-visual > img { border-radius: 32px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-plate { width: min(440px, 84vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff 0%, #fbfdfb 55%, #e6efe7 100%); box-shadow: 0 40px 80px rgba(15, 42, 19, .16), inset 0 -10px 30px rgba(0, 0, 0, .04); }
.hero-plate img { width: 82%; height: auto; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .12)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.float-card { position: absolute; background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.3; }
.float-card b { font-size: 1.3rem; color: var(--green-700); }
.float-card small { color: var(--muted); }
.fc-1 { top: 12%; left: 0; }
.fc-2 { bottom: 10%; right: 0; }

/* Sections */
.section { padding: 80px 0; }
.section-tight { padding: 40px 0 80px; }
.section-tint { background: var(--cream); }
.section-dark { background: var(--green-900); color: #e8f1ec; }
.section-dark h2 { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head.center { justify-content: center; text-align: center; }
.link-arrow { font-weight: 700; }
.page-hero { background: var(--cream); padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--green-100); font-size: 1.6rem; margin-bottom: 18px; }
.feature p { color: var(--muted); margin: 0; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.badge.static { position: static; }
.badge-sale { left: 12px; background: var(--orange); color: #fff; }
.badge-kcal { right: 12px; background: rgba(255, 255, 255, .95); color: var(--green-900); }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.product-title { font-size: 1.05rem; margin: 4px 0 10px; }
.product-title a { color: var(--ink); }
.macros { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.macros span { font-size: .75rem; color: var(--muted); background: var(--cream); padding: 4px 8px; border-radius: 8px; }
.macros b { color: var(--ink); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-weight: 800; font-size: 1.1rem; color: var(--green-900); }
.price-old { color: var(--muted); font-size: .85rem; }
.price-lg .price-now { font-size: 1.8rem; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 16px; border-radius: var(--radius); background: var(--cream); color: var(--ink); transition: background .2s, transform .2s; }
.cat-card:hover { background: var(--green-100); transform: translateY(-3px); color: var(--ink); }
.cat-icon { font-size: 2.4rem; }
.cat-name { font-weight: 700; }
.cat-count { font-size: .8rem; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid p { color: #c4d6cc; font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 28px; }
.stats b { display: block; font-size: 2.2rem; color: #fff; font-weight: 800; }
.stats span { color: #a9c3b5; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { margin: 0; padding: 28px; background: var(--cream); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.testimonial blockquote { margin: 0; font-size: 1.02rem; }
.testimonial figcaption { display: flex; gap: 12px; align-items: center; }
.testimonial figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.testimonial small { color: var(--muted); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--green-600); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }

.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px; border-radius: 28px; background: linear-gradient(120deg, var(--green-600), var(--green-900)); color: #fff; }
.cta-banner h2 { color: #fff; max-width: 620px; }
.cta-banner p { margin: 0; color: #cfe5d8; }

/* Menu */
.menu-toolbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 18px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 600; font-size: .9rem; border: 1px solid transparent; }
.chip:hover { border-color: var(--green-500); color: var(--ink); }
.chip.active { background: var(--green-600); color: #fff; }
.menu-filters { display: flex; gap: 10px; }
.menu-filters input, .menu-filters select { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); font: inherit; font-size: .9rem; background: #fff; }
.empty { text-align: center; padding: 64px 20px; }
.empty > span { font-size: 3.5rem; display: block; margin-bottom: 8px; }

/* Product detail */
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.detail-media { border-radius: 28px; overflow: hidden; background: var(--sand); aspect-ratio: 1; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.nutrition { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
.nut { background: var(--cream); border-radius: 14px; padding: 14px 8px; text-align: center; }
.nut b { display: block; font-size: 1.3rem; color: var(--green-900); }
.nut span { font-size: .8rem; color: var(--muted); }
.nut.kcal { background: var(--green-600); }
.nut.kcal b, .nut.kcal span { color: #fff; }
.buy-row { display: flex; gap: 12px; margin: 24px 0; }
.grow { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 50px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--green-900); }
.qty button:hover { background: var(--cream); }
.qty input { width: 44px; text-align: center; border: 0; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 34px; height: 36px; font-size: 1.1rem; }
.qty-sm input { width: 34px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.cart-items { display: grid; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--sand); }
.ci-info { display: flex; flex-direction: column; }
.ci-name { font-weight: 700; color: var(--ink); }
.ci-total { min-width: 90px; text-align: right; }
.ci-remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 6px; border-radius: 8px; }
.ci-remove:hover { background: #fdecea; color: #c0392b; }
.summary { position: sticky; top: 96px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }
.summary .btn + .btn { margin-top: 10px; }
.checkout h2 { font-size: 1.4rem; }
.seg { display: inline-flex; background: var(--cream); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.seg input:checked + span { background: #fff; box-shadow: var(--shadow); color: var(--green-700); }
.seg input:focus-visible + span { outline: 2px solid var(--green-500); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.form-grid input, .form-grid textarea { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); font: inherit; font-weight: 400; background: #fff; }
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--green-500); border-color: transparent; }
.span-2 { grid-column: span 2; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 12px 0; font-weight: 500; }
.alert-error { background: #fdecea; color: #a12d22; }
.alert-success { background: var(--green-100); color: var(--green-900); }

.success-card { text-align: center; padding: 48px 32px; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--green-600); color: #fff; font-size: 2.2rem; display: grid; place-items: center; }
.success-card h1 { font-size: 2rem; }
.order-lines { text-align: left; max-width: 420px; margin: 24px auto; }

/* Footer */
.site-footer { background: #0c2210; color: #c4d6cc; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid a:not(.logo) { display: block; color: #c4d6cc; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.muted-light { color: #93ab9e; margin-top: 14px; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid !important; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); padding: 0 !important; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding: 22px 0; font-size: .85rem; color: #93ab9e; }

.whatsapp-fab { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .4); z-index: 40; transition: transform .2s; }
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); background: var(--green-900); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mobile-tabbar { display: none; }

/* Responsive */
@media (max-width: 1000px) {
  .header-search { display: none; }
  .hero-grid, .about-grid, .product-detail, .cart-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .main-nav, .hide-mobile { display: none; }
  .header-inner { height: 64px; }
  .logo-img { height: 48px; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 56px 0; }
  .features, .testimonials { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px; }
  .product-title { font-size: .95rem; }
  .macros { display: none; }
  .btn-icon { width: 36px; height: 36px; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .menu-filters { width: 100%; }
  .menu-filters input { flex: 1; min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chip { white-space: nowrap; }
  .nutrition { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .cart-item { grid-template-columns: 56px 1fr auto; }
  .cart-item img { width: 56px; height: 56px; }
  .cart-item .qty { grid-column: 2; justify-self: start; }
  .ci-total { grid-column: 3; grid-row: 2; }
  .ci-remove { grid-column: 3; grid-row: 1; justify-self: end; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  body { padding-bottom: 68px; }
  .whatsapp-fab { display: none; }
  .toast { bottom: 84px; }
  .mobile-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0 0; height: 64px; background: #fff; border-top: 1px solid var(--line); z-index: 45; }
  .mobile-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600; color: var(--muted); position: relative; }
  .mobile-tabbar a span { font-size: 1.2rem; }
  .mobile-tabbar a.active { color: var(--green-700); }
  .mobile-tabbar b { position: absolute; top: 6px; left: 55%; background: var(--orange); color: #fff; border-radius: 999px; font-size: .65rem; padding: 1px 6px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
