:root {
  --bg: #0d0f13;
  --bg-2: #14171d;
  --panel: #1a1e26;
  --panel-2: #20242c;
  --ink: #fff;
  --muted: #9aa3ad;
  --green: var(--jn-green, #a0e747);
  --green-dim: rgba(160,231,71,0.14);
  --orange: #ff9d4d;
  --red: #ff6b6b;
  --juniora-h: 38px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg); color: var(--ink); font-family: var(--jn-font); overflow-x: hidden;
  height: auto;
  overflow-y: auto;
  overscroll-behavior: auto;
  touch-action: auto;
}
body { padding-bottom: var(--juniora-h); }
button, input { font-family: var(--jn-font); }
button { cursor: pointer; border: none; }
a { color: inherit; text-decoration: none; }

/* ============ NAV ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 300; transition: background .25s ease, box-shadow .25s ease; }
.nav.scrolled { background: rgba(13,15,19,0.88); backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.nav-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 13px 22px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 17px; }
.brand-icon { font-size: 20px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--green); }
@media (max-width: 640px) { .nav-links { display: none; } }

.cart-btn { position: relative; background: var(--panel); border: 1px solid rgba(255,255,255,0.08); width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: transform .15s ease; }
.cart-btn:hover { transform: scale(1.06); }
.cart-badge {
  position: absolute; top: -6px; left: -6px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 900; min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  animation: badgeBump .3s ease;
}
@keyframes badgeBump { 0% { transform: scale(0.5); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ============ HERO ============ */
.hero { position: relative; min-height: 92vh; padding: 120px 22px 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.3; z-index: 0; animation: floatBlob 10s ease-in-out infinite; }
.blob-1 { width: 340px; height: 340px; background: var(--orange); top: -80px; right: -60px; }
.blob-2 { width: 260px; height: 260px; background: var(--green); bottom: -60px; left: -50px; animation-delay: -4s; }
@keyframes floatBlob { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(18px,-20px) scale(1.06); } }

.hero-content { position: relative; z-index: 2; max-width: 460px; }
.hero-badge { display: inline-block; background: rgba(255,157,77,0.16); color: var(--orange); font-size: 12.5px; font-weight: 800; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(28px, 5.2vw, 40px); line-height: 1.4; margin-bottom: 14px; }
.highlight { color: var(--orange); }
.hero-sub { color: var(--muted); font-size: 15px; line-height: 1.95; margin-bottom: 26px; max-width: 400px; }

.btn-primary {
  background: var(--green); color: #10231f; font-weight: 900; font-size: 14.5px;
  padding: 14px 26px; border-radius: 14px; box-shadow: 0 10px 24px rgba(160,231,71,0.26);
  transition: transform .18s ease, box-shadow .18s ease; position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); }
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-primary.full { width: 100%; }
.btn-primary:disabled { opacity: 0.5; cursor: default; transform: none !important; }

/* hero pizza art */
.hero-art { position: relative; z-index: 2; width: 260px; height: 260px; flex-shrink: 0; }
.hero-pizza { animation: floatSlow 4.5s ease-in-out infinite; }
@keyframes floatSlow { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.hp-base {
  width: 220px; height: 220px; border-radius: 50%; margin: 20px auto;
  background: radial-gradient(circle at 35% 30%, #ffd479, #e8a83c 65%, #c9862a);
  border: 7px solid #d9a24d; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.hp-top { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #b23a2e; }
.hp-top.t1 { top: 28px; left: 50px; } .hp-top.t2 { top: 45px; left: 130px; background:#5a8f3c; }
.hp-top.t3 { top: 95px; left: 35px; background:#5a8f3c; } .hp-top.t4 { top: 110px; left: 150px; }
.hp-top.t5 { top: 150px; left: 70px; background:#f2e2b8; width:14px;height:14px; }
.hp-top.t6 { top: 60px; left: 90px; background:#f2e2b8; width:14px;height:14px; }
.hp-top.t7 { top: 140px; left: 130px; background:#5a8f3c; width:14px;height:14px; }
.hp-top.t8 { top: 170px; left: 110px; }
.steam { position: absolute; width: 10px; height: 30px; background: linear-gradient(to top, transparent, rgba(255,255,255,0.5)); border-radius: 50%; filter: blur(3px); animation: steamRise 2.5s ease-in-out infinite; }
.steam.s1 { top: -10px; left: 30%; animation-delay: 0s; }
.steam.s2 { top: -10px; left: 50%; animation-delay: .6s; }
.steam.s3 { top: -10px; left: 68%; animation-delay: 1.2s; }
@keyframes steamRise { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: .8; } 100% { transform: translateY(-40px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .blob, .hero-pizza, .steam { animation: none !important; }
}

/* ============ SECTIONS shared ============ */
section { max-width: 1080px; margin: 0 auto; padding: 70px 22px; position: relative; z-index: 2; }
.section-title { text-align: center; font-size: clamp(22px, 4vw, 28px); margin-bottom: 6px; }
.section-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ FILTER TABS ============ */
.filter-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.filter-tab {
  background: var(--panel); border: 1px solid rgba(255,255,255,0.08); color: var(--muted);
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; transition: all .2s ease;
}
.filter-tab.active { background: var(--green); color: #10231f; border-color: var(--green); }
.filter-tab:hover:not(.active) { border-color: rgba(160,231,71,0.4); color: var(--ink); }

/* ============ PIZZA GRID ============ */
.pizza-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.pizza-card {
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px; padding: 18px; display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, opacity .3s ease;
}
.pizza-card:hover { transform: translateY(-5px); border-color: rgba(160,231,71,0.3); }
.pizza-card.hidden-filter { display: none; }

.p-thumb { width: 100%; aspect-ratio: 1.5; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.pizza-art { width: 92px; height: 92px; border-radius: 50%; position: relative; border: 5px solid; box-shadow: 0 10px 22px rgba(0,0,0,0.3); }
.p-top { position: absolute; width: 11px; height: 11px; border-radius: 50%; }
.p-top:nth-child(1) { top: 12px; left: 22px; } .p-top:nth-child(2) { top: 18px; left: 55px; }
.p-top:nth-child(3) { top: 38px; left: 12px; } .p-top:nth-child(4) { top: 45px; left: 65px; }
.p-top:nth-child(5) { top: 60px; left: 30px; } .p-top:nth-child(6) { top: 65px; left: 50px; }
.p-top:nth-child(odd) { opacity: 0.95; }
.p-top:nth-child(even) { opacity: 0.85; }

.pizza-pepperoni { background: radial-gradient(circle at 35% 30%, #ffcf6b, #e8a83c); border-color: #d9a24d; }
.pizza-pepperoni .p-top { background: #c0392b; }
.pizza-margherita { background: radial-gradient(circle at 35% 30%, #fff3d6, #f2d99b); border-color: #e3c583; }
.pizza-margherita .p-top:nth-child(odd) { background: #5a8f3c; }
.pizza-margherita .p-top:nth-child(even) { background: #fff; width: 14px; height: 14px; }
.pizza-veggie { background: radial-gradient(circle at 35% 30%, #ffd479, #e8a83c); border-color: #d9a24d; }
.pizza-veggie .p-top:nth-child(3n+1) { background: #5a8f3c; }
.pizza-veggie .p-top:nth-child(3n+2) { background: #d9534f; }
.pizza-veggie .p-top:nth-child(3n) { background: #f2c94c; }
.pizza-bbq { background: radial-gradient(circle at 35% 30%, #e0a860, #b97a3a); border-color: #8a5a2a; }
.pizza-bbq .p-top { background: #6b3f1f; }
.pizza-cheese { background: radial-gradient(circle at 35% 30%, #fff0c2, #f0d98c); border-color: #e0c47a; }
.pizza-cheese .p-top { background: #fff8e0; width: 15px; height: 15px; }
.pizza-mexican { background: radial-gradient(circle at 35% 30%, #ffcf6b, #e8a83c); border-color: #d9a24d; }
.pizza-mexican .p-top:nth-child(odd) { background: #c0392b; }
.pizza-mexican .p-top:nth-child(even) { background: #e67e22; }

.p-name { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.p-desc { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 10px; flex: 1; }
.p-tags { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: wrap; }
.p-tag { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.p-tag.hot { background: rgba(255,157,77,0.16); color: var(--orange); }
.p-tag.veg { background: rgba(160,231,71,0.16); color: var(--green); }
.p-tag.spicy { background: rgba(255,107,107,0.16); color: var(--red); }

.p-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-price { font-size: 14.5px; font-weight: 900; color: var(--ink); }
.add-btn {
  background: var(--green); color: #10231f; font-weight: 900; font-size: 12.5px;
  padding: 9px 14px; border-radius: 10px; transition: transform .15s ease;
}
.add-btn:hover { transform: scale(1.05); }
.add-btn.added { background: var(--panel-2); color: var(--green); border: 1px solid var(--green); }

.qty-stepper { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border-radius: 10px; padding: 4px 8px; }
.qty-stepper button { background: transparent; color: var(--ink); font-size: 15px; font-weight: 900; width: 22px; height: 22px; }
.qty-stepper span { font-size: 13px; font-weight: 800; min-width: 16px; text-align: center; }

/* ============ WHY SECTION ============ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.why-card { text-align: center; background: var(--panel); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 24px 16px; transition: transform .25s ease; }
.why-card:hover { transform: translateY(-4px); }
.why-icon { font-size: 30px; margin-bottom: 10px; }
.why-card h3 { font-size: 14.5px; margin-bottom: 6px; }
.why-card p { font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* ============ FOOTER ============ */
.footer { text-align: center; padding: 40px 22px 70px; color: var(--muted); font-size: 13px; }
.footer-note { margin-top: 8px; font-size: 11.5px; opacity: 0.7; }

/* ============ MINI CART BAR ============ */
.mini-cart-bar[hidden] { display: none; }
.mini-cart-bar {
  position: fixed; bottom: calc(var(--juniora-h) + 14px); left: 50%; transform: translateX(-50%) translateY(0);
  background: var(--panel-2); border: 1px solid rgba(160,231,71,0.3); border-radius: 999px;
  padding: 10px 8px 10px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.4); z-index: 200;
  animation: miniCartIn .35s ease;
  max-width: 92vw;
}
@keyframes miniCartIn { from { transform: translateX(-50%) translateY(30px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
.mini-cart-bar span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.mini-cart-bar button {
  background: var(--green); color: #10231f; font-weight: 900; font-size: 12.5px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}

/* ============ CART DRAWER ============ */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 400; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cart-drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(360px, 92vw);
  background: var(--bg-2); z-index: 401; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
  box-shadow: -20px 0 40px rgba(0,0,0,0.4);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.drawer-head h3 { font-size: 16px; }
.close-btn { background: var(--panel-2); width: 30px; height: 30px; border-radius: 50%; color: var(--ink); font-size: 14px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.drawer-empty { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 40px; line-height: 1.9; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cart-item .ci-thumb { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; overflow: hidden; border-width: 2px; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-name { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.cart-item .ci-price { font-size: 11.5px; color: var(--muted); }
.cart-item .ci-remove { background: transparent; color: var(--red); font-size: 12px; padding: 4px; }
.drawer-footer { padding: 16px 18px; border-top: 1px solid rgba(255,255,255,0.06); }
.subtotal-row { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 800; margin-bottom: 12px; }
.subtotal-row span:last-child { color: var(--green); }

/* ============ CHECKOUT MODAL ============ */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .25s ease;
}
.modal {
  position: relative; background: var(--panel); border-radius: 20px; padding: 26px 22px;
  width: 100%; max-width: 340px; border: 1px solid rgba(255,255,255,0.08);
  animation: modalPop .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { text-align: center; margin-bottom: 16px; font-size: 17px; }
.modal label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 5px; }
.modal input {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
  background: var(--panel-2); color: var(--ink); font-size: 13.5px; outline: none;
}
.modal input:focus { border-color: var(--green); }
.modal .btn-primary { margin-top: 18px; }
.modal .close-btn { position: absolute; top: 14px; left: 14px; }

#successView { text-align: center; }
.success-icon { font-size: 52px; margin-bottom: 10px; animation: successPop .5s cubic-bezier(.2,.8,.3,1.4); }
@keyframes successPop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
#successView h3 { margin-bottom: 8px; }
#successView p { color: var(--muted); font-size: 13.5px; line-height: 1.9; margin-bottom: 6px; }

/* ============ BRAND BAR ============ */
.juniora-overlay {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center;
  padding: 8px 14px; background: rgba(13, 15, 19, 0.92); backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.06); z-index: 1000;
}
.juniora-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #9aa3ad; font-family: var(--jn-font); font-size: 10.5px; font-weight: 600; line-height: 1; opacity: 0.85; }
.juniora-link:hover { opacity: 1; }
.juniora-logo { width: 13px; height: auto; display: block; flex-shrink: 0; }

/* ============ CUSTOMIZE MODAL ============ */
.customize-modal { max-width: 380px; max-height: 88vh; overflow-y: auto; }
.cz-preview { display: flex; justify-content: center; margin-bottom: 10px; }
.cz-art { width: 84px; height: 84px; transition: transform .18s ease; position: relative; }
.cz-extra-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  animation: czDotPop .28s cubic-bezier(.2,.9,.3,1.3) forwards;
}
@keyframes czDotPop { to { transform: translate(-50%, -50%) scale(1); } }
.customize-modal h3 { margin-bottom: 16px; }
.cz-block { margin-bottom: 16px; }
.cz-label { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }

.cz-size-row { display: flex; gap: 8px; }
.cz-size-btn {
  flex: 1; padding: 9px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
  background: var(--panel-2); color: var(--muted); font-size: 12.5px; font-weight: 700;
  transition: all .15s ease;
}
.cz-size-btn.active { background: var(--green); color: #10231f; border-color: var(--green); }

.cz-topping-chips { display: flex; flex-direction: column; gap: 6px; }
.cz-chip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
  background: var(--panel-2); color: var(--ink); font-size: 12.5px; text-align: right;
  transition: all .15s ease;
}
.cz-chip.selected { border-color: var(--green); background: rgba(160,231,71,0.1); }
.cz-chip-price { color: var(--muted); font-size: 11px; }
.cz-chip.selected .cz-chip-price { color: var(--green); }

.qty-stepper.small { padding: 4px 10px; }

.cz-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.cz-price { font-size: 15px; font-weight: 900; color: var(--green); }
.cz-footer .btn-primary { padding: 11px 20px; font-size: 13px; }

/* cart line item detail + qty/remove row */
.ci-detail { font-size: 10.5px; color: var(--muted); margin-bottom: 2px; line-height: 1.6; }
.ci-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
