:root {
  --qd-accent: #ff5a1f;
  --qd-accent-dark: #e14a12;
  --qd-dark: #1f2430;
  --qd-bg: #f7f7fb;
  /* Matches the MAUI apps' Button/CardFrame corner radii (Resources/Styles/Styles.xaml)
     so the two surfaces read as the same product, not just the same color. */
  --bs-border-radius: 0.5rem;
  --bs-border-radius-lg: 0.875rem;
}

body {
  background-color: var(--qd-bg);
  /* Matches the MAUI apps' bundled OpenSansRegular/OpenSansSemibold fonts (see each app's
     MauiProgram.cs ConfigureFonts) - loaded via Google Fonts in base.html's <head>. */
  font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.qd-navbar .navbar-brand,
h1, h2, h3, h4, h5, h6,
.fw-bold, .fw-semibold {
  font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

.qd-navbar {
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(20, 20, 30, 0.06), 0 4px 16px rgba(20, 20, 30, 0.04);
}

.qd-hamburger {
  color: var(--qd-dark);
  font-size: 1.4rem;
  padding: 0.4rem 0.6rem;
  line-height: 1;
  border: none;
  background: none;
}
.qd-hamburger:hover,
.qd-hamburger:focus {
  color: var(--qd-accent);
  background-color: rgba(255, 90, 31, 0.08);
}
.qd-hamburger .badge {
  font-size: 0.6rem;
}

.qd-nav-link {
  color: var(--qd-dark) !important;
  font-weight: 600;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--bs-border-radius);
  background: none;
  border: none;
}
.qd-nav-link:hover,
.qd-nav-link:focus {
  color: var(--qd-accent) !important;
  background-color: rgba(255, 90, 31, 0.08);
}
.qd-nav-link.dropdown-toggle::after {
  vertical-align: 0.1em;
}

.qd-navbar-logo-zone {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1.1rem;
}
.qd-navbar-logo-zone .navbar-brand {
  margin-right: 0;
}
.qd-navbar-logo-img {
  height: 52px;
  width: auto;
}

/* Mobile-only "flies in from the left, skids to a stop" entrance for the centered navbar
   logo - on desktop the logo sits fixed in its own zone so this doesn't apply there. */
@media (max-width: 991.98px) {
  .qd-logo-intro {
    animation: qd-logo-intro 1.05s cubic-bezier(0.25, 0.1, 0.25, 1) both;
  }
}
@keyframes qd-logo-intro {
  0% {
    transform: translateX(-160px) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
  62% {
    transform: translateX(0) rotate(-10deg);
  }
  72% {
    transform: translateX(0) rotate(8deg);
  }
  82% {
    transform: translateX(0) rotate(-5deg);
  }
  90% {
    transform: translateX(0) rotate(3deg);
  }
  96% {
    transform: translateX(0) rotate(-1deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .qd-logo-intro {
    animation: none;
  }
}
.qd-navbar-content-zone {
  flex: 1 1 auto;
  min-width: 0;
}
.qd-navbar-content-zone > .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* PC has real width to work with - don't cap out at Bootstrap's default 1140/1320px
   container on very wide viewports, or the page reads like a phone layout stretched
   into empty margins instead of an actual desktop layout. */
@media (min-width: 1400px) {
  .qd-wide-container {
    max-width: 1600px;
  }
}

/* App-shell layout: the side panel is a structural column attached to the navbar/page,
   not a card floating in the content area next to other cards. Full-bleed (outside any
   .container), so it reads as one continuous surface from the navbar down. */
:root {
  --qd-navbar-h: 78px;
}

.qd-page-shell {
  display: flex;
  align-items: flex-start;
}
.qd-main-area {
  flex: 1 1 auto;
  min-width: 0;
}
.qd-side-panel {
  flex: 0 0 220px;
  width: 220px;
  position: sticky;
  top: var(--qd-navbar-h);
  min-height: calc(100vh - var(--qd-navbar-h));
  background-color: #fff;
  border-right: 1px solid rgba(20, 20, 30, 0.08);
  padding: 1.25rem 0.75rem;
}
.qd-side-panel-nav .nav-link {
  color: var(--qd-dark);
  font-weight: 600;
  border-radius: var(--bs-border-radius);
  padding: 0.65rem 0.75rem;
}
.qd-side-panel-nav .nav-link i {
  width: 1.4rem;
  display: inline-block;
  color: var(--qd-accent);
}
.qd-side-panel-nav .nav-link:hover {
  background-color: rgba(255, 90, 31, 0.08);
}
.qd-side-panel-nav .nav-link.active {
  background-color: var(--qd-accent);
  color: #fff;
}
.qd-side-panel-nav .nav-link.active i {
  color: #fff;
}

.qd-cart-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--qd-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(255, 90, 31, 0.45);
  z-index: 1030;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.qd-cart-fab:hover,
.qd-cart-fab:focus {
  background-color: var(--qd-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}
.qd-cart-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 0.7rem;
  border: 2px solid #fff;
}

.qd-sidebar {
  width: 290px;
}
.qd-sidebar .offcanvas-header {
  border-bottom: 1px solid #eee;
}
.qd-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--qd-bg);
  border-radius: var(--bs-border-radius);
  font-size: 0.9rem;
  color: var(--qd-dark);
}
.qd-sidebar-user i {
  font-size: 1.4rem;
  color: var(--qd-accent);
}
.qd-sidebar-nav .nav-link {
  color: var(--qd-dark);
  font-weight: 600;
  border-radius: var(--bs-border-radius);
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.15rem;
}
.qd-sidebar-nav .nav-link i {
  width: 1.4rem;
  display: inline-block;
  color: var(--qd-accent);
}
.qd-sidebar-nav .nav-link:hover {
  background-color: rgba(255, 90, 31, 0.08);
}
.qd-sidebar-nav .nav-link.active {
  background-color: var(--qd-accent);
  color: #fff;
}
.qd-sidebar-nav .nav-link.active i {
  color: #fff;
}
.qd-sidebar-divider {
  border-top: 1px solid #eee;
  margin: 0.5rem 0;
}

.btn-qd-accent {
  background-color: var(--qd-accent);
  border-color: var(--qd-accent);
  color: #fff;
}
.btn-qd-accent:hover,
.btn-qd-accent:focus {
  background-color: var(--qd-accent-dark);
  border-color: var(--qd-accent-dark);
  color: #fff;
}

.btn-outline-qd-accent {
  border: 2px dashed var(--qd-accent);
  color: var(--qd-accent);
  background: transparent;
}
.btn-outline-qd-accent:hover {
  background-color: rgba(255, 90, 31, 0.08);
  color: var(--qd-accent-dark);
}

.bg-qd-accent {
  background-color: var(--qd-accent) !important;
}

.text-qd-accent {
  color: var(--qd-accent) !important;
}

.qd-see-all-link {
  color: var(--qd-accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.qd-see-all-link:hover {
  color: var(--qd-accent-dark);
}

.qd-hero {
  background: linear-gradient(135deg, var(--qd-accent) 0%, #ff8a3d 100%);
  overflow: hidden;
}

.qd-hero-mascot {
  max-width: 240px;
  width: 100%;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.2));
}

.qd-logo-full {
  max-width: 180px;
  width: 100%;
}

.qd-step {
  background-color: #fff;
  border-radius: var(--bs-border-radius-lg);
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.qd-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 90, 31, 0.12);
  color: var(--qd-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.qd-features {
  background-color: #fff;
  border-radius: var(--bs-border-radius-lg);
  padding: 2rem 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.qd-features i {
  font-size: 1.6rem;
  color: var(--qd-accent);
}

.qd-restaurant-header {
  background-size: cover;
  background-position: center;
  position: relative;
}
.qd-restaurant-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: inherit;
}
.qd-restaurant-header > * {
  position: relative;
  z-index: 1;
}

.qd-card {
  border: none;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.qd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.qd-card-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
  position: relative;
}
.qd-status-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.qd-product-card {
  border: 1px solid #eee;
  border-radius: 0.75rem;
}

.qd-footer {
  background-color: #fff;
  border-top: 1px solid #eee;
}
