/* ============================================
   Wawa Nutrition Calculator - Main Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --red: #CC0000;
  --red-dark: #990000;
  --red-light: #ff4444;
  --gold: #F5A623;
  --gold-light: #FFD166;
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --bg-section: #F3F1EE;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-light: #9A9A9A;
  --border: #E5E2DC;
  --border-dark: #D0CCC5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #121210;
  --bg-card: #1E1D1B;
  --bg-section: #181715;
  --text: #F0EDE8;
  --text-muted: #A09C96;
  --text-light: #6B6560;
  --border: #2E2C28;
  --border-dark: #3D3A35;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

/* ============ HEADER ============ */
header {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(204,0,0,0.35);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-brand .goose-icon {
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.theme-toggle:hover { background: rgba(255,255,255,0.25); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, #E60000 100%);
  color: white;
  padding: 72px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='12'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--gold-light); }

.hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 520px;
  margin: 0 auto 32px;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.hero-stat .lbl {
  font-size: 0.75rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

/* ============ MAIN LAYOUT ============ */
.calculator-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* ============ SEARCH & FILTER ============ */
.search-bar-wrap {
  margin-bottom: 24px;
}

.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 4px 4px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.1);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 8px 0;
}

.search-bar input::placeholder { color: var(--text-light); }

.search-icon {
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cat-tab {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}

.cat-tab:hover { border-color: var(--red); color: var(--red); }

.cat-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: 0 2px 8px rgba(204,0,0,0.25);
}

/* ============ MENU ITEMS GRID ============ */
.menu-section-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.menu-item-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  user-select: none;
}

.menu-item-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.menu-item-card.in-cart {
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(204,0,0,0.03) 0%, var(--bg-card) 100%);
}

.item-emoji {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.item-name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
}

.item-cal {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
}

.item-cal span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.item-macros-mini {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.macro-mini {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.macro-mini strong {
  color: var(--text);
  font-weight: 600;
}

.add-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--red);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  font-weight: 300;
}

.menu-item-card:hover .add-btn {
  background: var(--red);
  border-color: var(--red);
  color: white;
  transform: scale(1.1);
}

.item-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
}

/* ============ CART PANEL ============ */
.cart-panel {
  position: sticky;
  top: 84px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cart-header {
  background: var(--red);
  padding: 18px 20px;
  color: white;
}

.cart-header h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cart-header p {
  font-size: 0.78rem;
  opacity: 0.8;
}

.cart-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.cart-empty p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.cart-items {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
}

.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-track { background: transparent; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 4px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-item:last-child { border-bottom: none; }

.cart-item-emoji { font-size: 1.4rem; flex-shrink: 0; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-cal {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  line-height: 1;
}

.qty-btn:hover { border-color: var(--red); color: var(--red); }

.qty-btn.remove:hover { background: #fef2f2; }

.qty-display {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  color: var(--text);
}

/* ============ NUTRITION TOTALS ============ */
.nutrition-totals {
  padding: 16px;
  border-top: 2px solid var(--border);
  background: var(--bg-section);
}

.total-calories {
  text-align: center;
  padding: 14px;
  background: var(--red);
  border-radius: var(--radius-md);
  color: white;
  margin-bottom: 12px;
}

.total-calories .cal-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.total-calories .cal-label {
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.macro-bars { display: flex; flex-direction: column; gap: 8px; }

.macro-bar-item {}

.macro-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.macro-bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.macro-bar-value {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 3px;
}

.bar-fill.protein { background: linear-gradient(90deg, #4CAF50, #81C784); }
.bar-fill.carbs { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.bar-fill.fat { background: linear-gradient(90deg, #FF7043, #FFAB91); }
.bar-fill.sodium { background: linear-gradient(90deg, #5C6BC0, #9FA8DA); }

.full-nutrition-table {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.full-nutrition-table h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.nut-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.nut-row:last-child { border-bottom: none; }
.nut-row .nut-label { color: var(--text-muted); }
.nut-row .nut-val { font-weight: 600; color: var(--text); }

.clear-btn {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: 1.5px solid var(--red);
  background: transparent;
  color: var(--red);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.clear-btn:hover { background: var(--red); color: white; }

/* ============ CALORIE METER ============ */
.daily-meter {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.meter-label { color: var(--text-muted); font-weight: 500; }
.meter-pct { font-weight: 700; color: var(--text); }

.meter-track {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 4px;
}

.meter-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.5s ease, background 0.3s ease;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.meter-fill.warn { background: linear-gradient(90deg, var(--gold), var(--red-light)); }
.meter-fill.over { background: linear-gradient(90deg, var(--red-light), var(--red-dark)); }

.meter-note {
  font-size: 0.7rem;
  color: var(--text-light);
}

/* ============ NUTRITION FACTS MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  background: var(--red);
  color: white;
  padding: 20px 24px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
  margin-right: 12px;
}

.modal-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.modal-close:hover { background: rgba(255,255,255,0.35); }

.modal-body { padding: 24px; }

.nf-label {
  border: 3px solid var(--text);
  padding: 10px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.nf-title { font-size: 2.2em; font-weight: 900; border-bottom: 10px solid var(--text); padding-bottom: 6px; margin-bottom: 4px; }
.nf-serving { font-size: 0.9em; border-bottom: 1px solid var(--text); padding-bottom: 4px; margin-bottom: 4px; }
.nf-calories-row { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 4px solid var(--text); padding-bottom: 6px; margin-bottom: 4px; }
.nf-calories-label { font-size: 1em; font-weight: 700; }
.nf-calories-num { font-size: 2.8em; font-weight: 900; }
.nf-dv-note { font-size: 0.8em; text-align: right; color: #333; margin-bottom: 4px; }
.nf-row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #ccc; }
.nf-row.bold-top { border-top: 4px solid var(--text); }
.nf-row.indent { padding-left: 14px; }
.nf-row .nf-nutrient { font-size: 0.9em; }
.nf-row .nf-val { font-size: 0.9em; font-weight: 700; }
.nf-dv-footer { font-size: 0.75em; border-top: 6px solid var(--text); margin-top: 4px; padding-top: 4px; color: #555; }

.modal-add-btn {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.modal-add-btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(204,0,0,0.3); }

/* ============ BLOG SECTION PREVIEW ============ */
.blog-preview {
  background: var(--bg-section);
  padding: 60px 24px;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 1280px;
  margin: 0 auto 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header a {
  color: var(--red);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.blog-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
  display: block;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.blog-card-body { padding: 20px; }

.blog-tag {
  display: inline-block;
  background: rgba(204,0,0,0.1);
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ============ FOOTER ============ */
footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 28px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.83rem;
  line-height: 1.65;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  max-width: 600px;
  line-height: 1.5;
}

/* ============ NO RESULTS ============ */
.no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.no-results .icon { font-size: 2.5rem; margin-bottom: 12px; }
.no-results p { font-size: 0.9rem; }

/* ============ LOADING SKELETON ============ */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-section) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============ RESULTS COUNT ============ */
.results-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.results-info strong { color: var(--text); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .calc-grid { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--red-dark);
    padding: 12px;
    gap: 4px;
  }
  .hamburger { display: flex; }
  .hero { padding: 48px 20px 40px; }
  .hero-stats { gap: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .category-tabs { gap: 6px; }
  .cat-tab { padding: 6px 12px; font-size: 0.78rem; }
}

/* ============ SCROLL-TO-TOP ============ */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 50;
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ============ PRINT ============ */
@media print {
  header, .category-tabs, .search-bar-wrap, footer, .scroll-top, .add-btn, .cart-item-controls { display: none !important; }
  .calc-grid { grid-template-columns: 1fr; }
  .cart-panel { box-shadow: none; border: 1px solid #ccc; }
}
