*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
img { display: block; max-width: 100%; }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Universal Top Switcher Bar — Parisian Forest Green Brand */
.f-switcher {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13, 59, 46, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 199, 128, 0.22);
  color: #ffffff;
  padding: 10px 18px;
}
.f-switcher-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.f-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.f-logo, .f-logo-img {
  width: 34px; height: 34px; border-radius: 10px; display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.f-brand-name { font-weight: 800; font-size: 14px; letter-spacing: -0.02em; color: #ffffff; }
.f-brand-sub { font-size: 11px; color: #e8c780; }
.f-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.f-nav a {
  text-decoration: none; color: rgba(255, 255, 255, 0.85); font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05); transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.f-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.f-nav a.active { background: #b83b19; border-color: #b83b19; color: #ffffff; font-weight: 800; }
.f-badge {
  font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px;
  background: #e8c780; color: #082920; font-variant-numeric: tabular-nums;
}
.f-badge.red { background: #b83b19; color: #fff; }

/* Toast (top-center so it never overlaps bottom cart drawer / mobile docks) */
.f-toast {
  position: fixed; top: 68px; left: 50%; z-index: 120;
  background: #082920; color: #fff; border: 1px solid rgba(232, 199, 128, 0.42);
  border-radius: 14px; padding: 11px 16px; font-size: 13px; font-weight: 600;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  display: flex; align-items: center; gap: 10px;
  transform: translate(-50%, -14px); opacity: 0; pointer-events: none; transition: all .22s ease;
  max-width: min(460px, calc(100vw - 24px));
}
.f-toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

/* Modal backdrop */
.f-modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.62); backdrop-filter: blur(5px);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.f-modal-backdrop.open { display: flex; }

@keyframes pulseUrgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}
.pulse-urgent { animation: pulseUrgent 1.7s infinite; }
