:root {
  --bg: #121212;
  --bg-elevated: #1a1a1a;
  --bg-card: #1e1e1e;
  --border: #2c2c2c;
  --text: #f5f5f5;
  --text-dim: #a8a8a8;
  --accent: #e8482c;
  --accent-dark: #c93a22;
  --whatsapp: #25d366;
  --whatsapp-dark: #1eb857;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-bottom: 84px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 320px;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.75) 60%, rgba(10,10,10,.95) 100%),
              radial-gradient(circle at 30% 20%, #3a1a12, #0c0c0c 70%);
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
}

.menu-btn, .cart-btn {
  position: absolute;
  top: 20px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border: none;
  border-radius: 50%;
  color: #fff;
}
.menu-wrap { position: absolute; top: 20px; left: 20px; }
.menu-btn { position: static; }
.cart-btn { right: 20px; }
.menu-btn svg, .cart-btn svg { width: 20px; height: 20px; }

.menu-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  min-width: 170px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
.menu-dropdown.open { display: flex; }
.menu-link {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
}
.menu-link:hover { background: var(--bg-elevated); color: #fff; }
.menu-link.active { color: var(--accent); }

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.hero-content {
  margin-top: 56px;
  text-align: center;
}

.logo-peppers { font-size: 20px; margin-bottom: 4px; }

.logo h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
}
.logo h1 span { font-size: 16px; vertical-align: super; }

@media (max-width: 360px) {
  .logo h1 { font-size: 28px; }
  .tagline { letter-spacing: 2px; font-size: 12px; }
  .baseline { font-size: 14px; }
}

.tagline {
  margin: 2px 0 0;
  letter-spacing: 4px;
  font-size: 13px;
  color: #ddd;
}

.since {
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
}

.location {
  margin-top: 16px;
  font-size: 13px;
  color: #eee;
}
.location p { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.location a {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.baseline {
  margin-top: 16px;
  font-style: italic;
  font-family: Georgia, serif;
  color: #f0e6c8;
  font-size: 15px;
}

/* ---------- Info bar ---------- */
.info-bar {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  max-width: 160px;
}
.info-item svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--text-dim); }

/* ---------- Tabs ---------- */
.tabs-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 16px;
  margin-bottom: 12px;
}
.search-field svg { width: 18px; height: 18px; color: var(--text-dim); flex-shrink: 0; }
.search-field input {
  border: none;
  background: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.search-field input::placeholder { color: var(--text-dim); }

.no-results { color: var(--text-dim); font-size: 14px; padding: 20px 0; }

.tab {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Layout ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 16px 24px;
  max-width: 1440px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .content-grid {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
}

/* ---------- Pizza list ---------- */
.pizza-list { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 640px) {
  .pizza-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    align-items: start;
    min-width: 0;
  }
}

.pizza-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.pizza-card h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.25; }
.pizza-card .ingredients { margin: 0 0 12px; color: var(--text-dim); font-size: 13px; line-height: 1.4; }

.variant-rows { display: flex; flex-direction: column; }
.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.variant-row:first-child { border-top: none; padding-top: 0; }

.variant-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.variant-name { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.variant-price { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 5px 8px;
  flex-shrink: 0;
}
.stepper-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: #333;
  color: #fff;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.stepper-btn.add { background: var(--accent); }
.stepper-btn:active { transform: scale(0.92); }
.qty-value { min-width: 20px; text-align: center; font-weight: 700; }

/* ---------- Cart panel ---------- */
.cart-panel { display: flex; flex-direction: column; gap: 16px; }

.cart-card, .calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.cart-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cart-header h2 { margin: 0; font-size: 18px; }
.cart-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
}

.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.cart-empty { color: var(--text-dim); font-size: 14px; margin: 0; }

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.cart-line .name { font-weight: 600; }
.cart-line .variant { color: var(--text-dim); font-size: 12.5px; }
.cart-line .remove {
  background: none; border: none; color: var(--text-dim); font-size: 18px; line-height: 1; padding: 0 4px;
}
.cart-line .price { font-weight: 700; white-space: nowrap; }
.cart-line-main { display: flex; flex-direction: column; }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
}
.cart-total-row span:last-child { color: var(--accent); font-size: 20px; }

.date-field { margin-bottom: 12px; }
.date-field label {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.date-field input[type="date"] {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  color-scheme: dark;
}
.date-field input[type="date"]:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.date-error { margin: 6px 0 0; font-size: 12.5px; color: var(--accent); min-height: 1px; }

.whatsapp-order-btn {
  width: 100%;
  background: var(--whatsapp);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  line-height: 1.3;
}
.whatsapp-order-btn:disabled { opacity: .5; cursor: not-allowed; }
.whatsapp-order-btn.as-link { display: inline-flex; margin: 12px 0; }

.cart-notes { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.note { display: flex; gap: 10px; }
.note svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--text-dim); margin-top: 2px; }
.note strong { display: block; font-size: 13.5px; }
.note p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-dim); }

/* ---------- Calculator ---------- */
.calc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.calc-header svg { width: 22px; height: 22px; color: var(--text-dim); }
.calc-header h3 { margin: 0; font-size: 16px; }
.calc-sub { color: var(--text-dim); font-size: 13px; margin: 6px 0 14px; }

.calc-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
#peopleCount { font-size: 20px; font-weight: 700; min-width: 20px; text-align: center; }
.calc-result {
  margin-left: auto;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  line-height: 1.3;
}
.calc-result span { font-weight: 400; color: var(--text-dim); font-size: 12px; }

.calc-legend { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 12.5px; line-height: 1.7; }

/* ---------- Views (mobile nav) ---------- */
.view { display: none; padding: 0 16px 24px; max-width: 700px; margin: 0 auto; }
.view.active { display: block; }
#view-pizzas.active { display: block; max-width: none; }
.mobile-title { font-size: 22px; margin: 20px 0; }

.infos-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.infos-card h3 { margin: 0 0 10px; font-size: 15px; color: var(--accent); }
.infos-card h3:not(:first-child) { margin-top: 20px; }
.infos-card ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 14px; line-height: 1.9; }
.infos-card p { color: var(--text-dim); font-size: 14px; }
.contact-phone { margin-top: 8px; font-size: 13px; }

.hours-list { list-style: none; padding: 0; margin: 0 0 4px; }
.hours-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.hours-list li:last-child { border-bottom: none; }
.hours-list li span:first-child { color: var(--text); font-weight: 600; }
.hours-list li span:last-child { color: var(--text-dim); }

/* Desktop: cart panel is a sidebar, so hide the standalone panier view */
@media (min-width: 960px) {
  #view-panier { display: none !important; }
}

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 96px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 40;
}
.fab-bubble {
  background: #fff;
  color: #222;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 14px;
  border-bottom-right-radius: 2px;
  line-height: 1.3;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.fab-icon {
  position: relative;
  width: 54px; height: 54px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  flex-shrink: 0;
}
.fab-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  z-index: 50;
}
.bn-item {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0 8px;
  color: var(--text-dim);
  font-size: 11px;
}
.bn-item svg { width: 22px; height: 22px; }
.bn-item.active { color: var(--accent); }
.bn-cart-wrap { position: relative; }
.bn-cart-count {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 15px; height: 15px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

@media (min-width: 960px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .whatsapp-fab { bottom: 24px; }

  .menu-wrap { top: 30px; left: 40px; }

  .hero {
    min-height: 400px;
    padding: 30px 40px 40px;
  }
  .cart-btn { right: 40px; top: 30px; }
  .hero-content { margin-top: 40px; }

  .logo-peppers { font-size: 26px; }
  .logo h1 { font-size: 48px; letter-spacing: 3px; }
  .logo h1 span { font-size: 22px; }
  .tagline { font-size: 16px; letter-spacing: 6px; }
  .since { font-size: 12px; }
  .location { font-size: 14px; }
  .location a { font-size: 13px; }
  .baseline { font-size: 18px; margin-top: 22px; }

  .info-bar { padding: 24px; gap: 40px; }
  .info-item { font-size: 13px; max-width: 200px; }

  .tabs-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px 20px;
    gap: 20px;
  }
  .tabs { padding: 0; gap: 10px; }
  .tab { padding: 11px 22px; font-size: 14.5px; }
  .search-field { margin-bottom: 0; width: 280px; flex-shrink: 0; }

  .content-grid { padding: 0 40px 40px; gap: 32px; }
  .pizza-list { gap: 16px; }
  .pizza-card { padding: 20px; }
  .pizza-card h3 { font-size: 18px; }

  .cart-card, .calc-card { padding: 22px; }
}
