/* ==========================================================================
   Quick Food — couche finale (chargée après premium.css)
   Contraste : textes ≥ 7:1 sur fond, boutons blanc sur orange-rouge #d63a0c (≈ 4,9:1).
   ========================================================================== */
:root {
  --qf-bg: #0f0c0a;
  --qf-surface: #1b1714;
  --qf-surface-2: #26201b;
  --qf-line: rgba(255, 240, 225, 0.13);
  --qf-text: #fff7ef;
  --qf-text-2: #e6dbcf;
  --qf-muted: #c2b6a9;
  --qf-orange: #ff7a3d;
  --qf-cta: #d63a0c;
  --qf-cta-hover: #b52f08;
  --qf-star: #ffc233;
  --qf-radius: 18px;
  --qf-display: "Anton", "Oswald", Impact, sans-serif;
  --qf-head: "Oswald", "Arial Narrow", sans-serif;
  --qf-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Remap de l'héritage (le jaune #ffca0b venait de Dangerous Burger) */
  --premium-ink: #0f0c0a;
  --premium-ink-2: #1b1714;
  --premium-ink-3: #26201b;
  --premium-cream: #fff7ef;
  --premium-orange: #ff7a3d;
  --premium-red: #d63a0c;
  --premium-mint: #ffb38a;
  --premium-line: rgba(255, 240, 225, 0.13);
  --primary: #ff7a3d;
  --primary-rgb: 255, 122, 61;
  --accent: #ff7a3d;
  --text-muted: #c2b6a9;
  --color-text-light: #c2b6a9;
  --color-primary-hover: #b52f08;
  --font-family: var(--qf-body);
  --font-family-heading: var(--qf-head);
  --font-display: var(--qf-display);
  --font-family-accent: var(--qf-display);
}

html { scroll-padding-top: calc(var(--header-height, 72px) + 64px); }

body {
  background: var(--qf-bg);
  color: var(--qf-text);
  font-family: var(--qf-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 3px solid var(--qf-orange); outline-offset: 3px; }

h1, h2, h3, h4,
.qf-title, .qf-hero__title, .qf-final h2,
body.page-catalog .category-summary-title,
body.page-product .product-title { font-style: normal; }

.qf-final h2 { color: var(--qf-text); }

/* Titres du bloc SEO / FAQ de la home */
body .seoext-home h2, body .seoext-home h3 { color: var(--qf-text); font-style: normal; }

/* ---------- Boutons ---------- */
.qf-btn,
.btn-primary,
.header-order,
.order-mode-submit,
.cnc-btn,
body.page-catalog .product-actions .btn,
body.page-catalog .add-form .btn-primary {
  background: var(--qf-cta);
  border: 1.5px solid var(--qf-cta);
  color: #fff;
}

.qf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font: 700 1rem/1 var(--qf-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(214, 58, 12, 0.9);
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.qf-btn:hover,
.btn-primary:hover,
.header-order:hover,
.order-mode-submit:hover {
  background: var(--qf-cta-hover);
  border-color: var(--qf-cta-hover);
  color: #fff;
}

.qf-btn:hover { transform: translateY(-1px); }
.qf-btn:active { transform: translateY(1px); }

.qf-btn svg,
.qf-link svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qf-btn--xl { min-height: 58px; padding: 0 2rem; font-size: 1.08rem; }
.qf-btn--block { width: 100%; }

.qf-btn--ghost {
  background: rgba(255, 247, 239, 0.08);
  border-color: rgba(255, 247, 239, 0.38);
  color: var(--qf-text);
  box-shadow: none;
}

.qf-btn--ghost:hover {
  background: rgba(255, 247, 239, 0.14);
  border-color: var(--qf-orange);
  color: var(--qf-text);
}

/* ---------- Header / bandeau d'état ---------- */
.header-logo .header-logo-img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease;
}

.header-logo:hover .header-logo-img { transform: rotate(-6deg) scale(1.04); }
.footer-brand .footer-logo { width: 112px; height: 112px; flex: none; }

@media (min-width: 900px) {
  .header-logo .header-logo-img { width: 58px; height: 58px; }
}
.header-order { border-radius: 999px; font-family: var(--qf-head); }

.status-bar {
  font-family: var(--qf-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--qf-text-2);
}

.status-bar--open { color: var(--qf-text-2); }

/* ==========================================================================
   ACCUEIL
   ========================================================================== */
body.page-home .main { padding: 0; }
body.page-home .status-bar { position: relative; z-index: 3; }

.qf-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(90svh, 860px);
  overflow: hidden;
  background: var(--qf-bg);
}

.qf-hero__media,
.qf-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.qf-hero__media { z-index: -2; }

.qf-hero__media img {
  object-fit: cover;
  object-position: 76% 30%;
}


.qf-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.1) 0%, rgba(15, 12, 10, 0.25) 30%, rgba(15, 12, 10, 0.86) 58%, var(--qf-bg) 100%);
}

.qf-hero__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 7rem 20px 2rem;
}

.qf-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 247, 239, 0.22);
  border-radius: 999px;
  background: rgba(15, 12, 10, 0.62);
  backdrop-filter: blur(10px);
  color: var(--qf-text);
  font-size: 0.92rem;
  text-decoration: none;
}

.qf-rating strong { font-weight: 800; }
.qf-rating > span:last-child { color: var(--qf-text-2); }

.qf-stars { color: var(--qf-star); letter-spacing: 0.06em; }
.qf-stars span { color: rgba(255, 194, 51, 0.35); }

.qf-hero__title {
  margin: 0 0 0.9rem;
  color: var(--qf-text);
  font-family: var(--qf-display);
  font-size: clamp(2.7rem, 12.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

.qf-hero__title span { display: block; color: var(--qf-orange); }
.qf-br-d { display: none; }

.qf-hero__lead {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: var(--qf-text-2);
  font-size: 1.1rem;
  line-height: 1.5;
}

.qf-hero__lead strong { color: var(--qf-text); font-weight: 700; }

.qf-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.qf-hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qf-hero__perks li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--qf-line);
  border-radius: 999px;
  background: rgba(15, 12, 10, 0.55);
  color: var(--qf-text-2);
  font-size: 0.9rem;
}

.qf-hero__perks strong { color: var(--qf-text); }

/* ---------- Sections ---------- */
.qf-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.75rem 20px;
}

.qf-head { margin-bottom: 1.5rem; }

.qf-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.qf-kicker {
  margin: 0 0 0.4rem;
  color: var(--qf-orange);
  font: 600 0.82rem/1.2 var(--qf-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.qf-title {
  margin: 0;
  color: var(--qf-text);
  font-family: var(--qf-display);
  font-size: clamp(2rem, 8vw, 3.1rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.qf-title span { color: var(--qf-orange); }

.qf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  padding: 0.4rem 0;
  color: var(--qf-text);
  font: 600 0.95rem var(--qf-head);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 2px solid var(--qf-cta);
}

/* ---------- Tuiles catégories ---------- */
.qf-cats { padding-top: 2.5rem; }

.qf-cats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.qf-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 0.92;
  border: 1px solid var(--qf-line);
  border-radius: var(--qf-radius);
  background: var(--qf-surface);
  color: var(--qf-text);
  text-decoration: none;
}

.qf-tile__media,
.qf-tile__media picture,
.qf-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.qf-tile__media img {
  object-fit: cover;
  object-position: 50% 45%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.qf-tile:hover .qf-tile__media img { transform: scale(1.06); }

.qf-tile__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 2.2rem 0.85rem 0.8rem;
  background: linear-gradient(180deg, transparent, rgba(15, 12, 10, 0.92) 55%);
}

.qf-tile__label strong {
  font: 600 1.08rem/1.15 var(--qf-head);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.qf-tile__label small {
  color: var(--qf-orange);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- Best-sellers ---------- */
.qf-best__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 14px;
  margin: 0 -20px;
  padding: 0 20px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
}

.qf-best__track::-webkit-scrollbar { display: none; }

.qf-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--qf-line);
  border-radius: var(--qf-radius);
  background: var(--qf-surface);
  color: var(--qf-text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.qf-card:hover { border-color: rgba(255, 122, 61, 0.6); transform: translateY(-2px); }

.qf-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--qf-surface-2);
}

.qf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.qf-card:hover .qf-card__media img { transform: scale(1.05); }

.qf-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--qf-cta);
  color: #fff;
  font: 700 0.75rem/1 var(--qf-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qf-badge--dark { background: #0f0c0a; color: var(--qf-orange); }

.qf-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.1rem 1.1rem;
}

.qf-card__name {
  font: 600 1.3rem/1.15 var(--qf-head);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.qf-card__desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--qf-text-2);
  font-size: 0.95rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.qf-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.qf-card__price { font: 700 1.4rem/1 var(--qf-head); color: var(--qf-text); }

.qf-card__add {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--qf-cta);
  color: #fff;
  font: 700 0.9rem/1 var(--qf-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.qf-card__add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }

/* ---------- Formule menu ---------- */
.qf-deal {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.qf-deal__media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 22px;
  border: 1px solid var(--qf-line);
}

.qf-deal__media img { width: 100%; height: 100%; object-fit: cover; }

.qf-deal__copy > p:not(.qf-kicker) {
  margin: 1rem 0;
  color: var(--qf-text-2);
  font-size: 1.05rem;
}

.qf-deal__copy .qf-title span { display: block; margin-top: 0.3rem; font-size: 0.62em; }

.qf-deal__list {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.qf-deal__list li {
  padding: 0.8rem 1rem;
  border: 1px solid var(--qf-line);
  border-left: 4px solid var(--qf-cta);
  border-radius: 12px;
  background: var(--qf-surface);
  color: var(--qf-text-2);
}

.qf-deal__list strong { display: block; color: var(--qf-text); font-family: var(--qf-head); font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; }

/* ---------- Pourquoi ---------- */
.qf-why__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qf-why__grid li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1rem 1.2rem;
  border: 1px solid var(--qf-line);
  border-radius: var(--qf-radius);
  background: var(--qf-surface);
}

.qf-why__num { color: var(--qf-orange); font: 400 2.6rem/1 var(--qf-display); }
.qf-why__grid strong { color: var(--qf-text); font: 600 1.05rem/1.2 var(--qf-head); letter-spacing: 0.03em; text-transform: uppercase; }
.qf-why__grid li > span:last-child { color: var(--qf-text-2); font-size: 0.93rem; line-height: 1.45; }

/* ---------- Infos ---------- */
.qf-info { display: grid; gap: 14px; }

.qf-info__card,
.qf-info__hours {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--qf-line);
  border-radius: 22px;
  background: var(--qf-surface);
}

.qf-info__addr { margin: 1rem 0 0.75rem; color: var(--qf-text); font: 500 1.3rem/1.35 var(--qf-head); }

.qf-info__modes { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.25rem; }

.qf-info__modes span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--qf-surface-2);
  color: var(--qf-text-2);
  font-size: 0.88rem;
  font-weight: 600;
}

.qf-info__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.qf-info__actions .qf-btn { min-height: 48px; padding: 0 1.2rem; font-size: 0.92rem; }

.qf-info__rating {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--qf-line);
  color: var(--qf-text-2);
  text-decoration: none;
}

.qf-info__score { color: var(--qf-text); font: 400 2.8rem/1 var(--qf-display); }

.qf-info__hours h3 { margin: 0 0 0.8rem; color: var(--qf-text); font: 600 1.3rem var(--qf-head); letter-spacing: 0.04em; text-transform: uppercase; }
.qf-info__hours ul { margin: 0; padding: 0; list-style: none; }

.qf-info__hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--qf-line);
  color: var(--qf-text-2);
  font-size: 1rem;
}

.qf-info__hours li:last-child { border-bottom: 0; }
.qf-info__hours li span:first-child { color: var(--qf-text); font-weight: 600; }

/* ---------- CTA final ---------- */
.qf-final {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 420px;
  margin-top: 1.5rem;
  overflow: hidden;
  text-align: center;
}

.qf-final__media,
.qf-final__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.qf-final__media { z-index: -2; }
.qf-final__media img { object-fit: cover; object-position: 70% 50%; }

.qf-final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 90% at 50% 50%, rgba(15, 12, 10, 0.72), rgba(15, 12, 10, 0.9));
}

.qf-final__inner { max-width: 640px; padding: 3.5rem 20px; }

.qf-final h2 {
  margin: 0 0 0.75rem;
  font-family: var(--qf-display);
  font-size: clamp(2.4rem, 10vw, 4rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.qf-final p { margin: 0 0 1.5rem; color: var(--qf-text-2); font-size: 1.1rem; }

/* ---------- Barre collante mobile ---------- */
.qf-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.75rem 16px calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(15, 12, 10, 0), rgba(15, 12, 10, 0.94) 35%);
  transform: translateY(110%);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.qf-sticky.is-visible { transform: none; pointer-events: auto; }
.qf-sticky .qf-btn { min-height: 54px; }

/* SEO + FAQ en bas de home */
body.page-home .seoext-home,
body.page-home .seo-ext-home { color: var(--qf-text-2); }

/* ==========================================================================
   CARTE (catalogue)
   ========================================================================== */
body.page-catalog .catalog-header h1 {
  font-family: var(--qf-display);
  font-weight: 400;
  letter-spacing: 0;
}

body.page-catalog .catalog-lead,
body.page-catalog .catalog-eyebrow { color: var(--qf-text-2); }
body.page-catalog .catalog-eyebrow { color: var(--qf-orange); }

body.page-catalog .sticky-nav { margin-bottom: 1.5rem; background: rgba(15, 12, 10, 0.94); }
body.page-catalog .categories-list { gap: 0.45rem; padding: 0.6rem 0; }

body.page-catalog .category-link {
  padding: 0.6rem 1rem;
  border: 1px solid var(--qf-line);
  border-radius: 999px;
  background: var(--qf-surface);
  color: var(--qf-text-2);
  font: 600 0.88rem/1 var(--qf-head);
  letter-spacing: 0.04em;
}

body.page-catalog .category-link.active,
body.page-catalog .category-link:hover {
  border-color: var(--qf-cta);
  background: var(--qf-cta);
  color: #fff;
}

body.page-catalog .category-summary { min-height: 0; padding: 1.75rem 0 1rem; }

body.page-catalog .category-summary-title {
  font-family: var(--qf-display);
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

body.page-catalog .category-summary-meta,
body.page-catalog .category-product-count { color: var(--qf-muted); font-size: 0.8rem; }

body.page-catalog .category-panel { padding-bottom: 2.5rem; }
body.page-catalog .category-accordion { border-bottom-color: var(--qf-line); }

body.page-catalog .products-grid { grid-template-columns: 1fr; gap: 12px; }

body.page-catalog .product-card {
  padding: 12px;
  border-color: var(--qf-line);
  border-radius: 16px;
  background: var(--qf-surface);
}

body.page-catalog .product-card:hover { border-color: rgba(255, 122, 61, 0.55); }

body.page-catalog .product-card-body { gap: 14px; }

body.page-catalog .product-media {
  flex: 0 0 118px;
  width: 118px;
  height: 118px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--qf-surface-2);
}

body.page-catalog .product-media picture { display: block; width: 100%; height: 100%; }

body.page-catalog .product-title {
  margin-bottom: 0.3rem;
  color: var(--qf-text);
  font: 600 1.12rem/1.2 var(--qf-head);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

body.page-catalog .product-desc { color: var(--qf-text-2); font-size: 0.9rem; line-height: 1.4; }

body.page-catalog .product-price {
  color: var(--qf-text);
  font: 700 1.2rem/1 var(--qf-head);
}

body.page-catalog .product-actions { padding-top: 0.6rem; }

body.page-catalog .product-actions .btn,
body.page-catalog .product-actions .btn-outline {
  min-height: 42px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--qf-cta);
  color: #fff;
  font: 700 0.88rem/1 var(--qf-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.page-catalog .product-actions .btn:hover { background: var(--qf-cta-hover); }

/* Fenêtre « Comment veux-tu commander ? » */
body.page-catalog .order-mode-card { background: var(--qf-surface); border-color: var(--qf-line); border-radius: 22px; }
body.page-catalog .order-mode-title { font-family: var(--qf-display); font-weight: 400; letter-spacing: 0; text-transform: uppercase; }
body.page-catalog .order-mode-kicker { color: var(--qf-orange); }
body.page-catalog .order-mode-subtitle,
body.page-catalog .order-mode-desc { color: var(--qf-text-2); }

body.page-catalog .order-mode-option {
  border: 1.5px solid var(--qf-line);
  border-radius: 16px;
  background: var(--qf-surface-2);
  color: var(--qf-text);
}

body.page-catalog .order-mode-option.is-active,
body.page-catalog .order-mode-option:hover { border-color: var(--qf-cta); background: rgba(214, 58, 12, 0.16); }
body.page-catalog .order-mode-submit { border-radius: 999px; min-height: 54px; }

/* Barre panier flottante */
.qf-cartbar {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(560px, calc(100% - 28px));
  min-height: 58px;
  padding: 0 0.6rem 0 1.2rem;
  border-radius: 999px;
  background: var(--qf-cta);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  color: #fff;
  font: 700 1rem/1 var(--qf-head);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.qf-cartbar__count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  margin-right: 0.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--qf-cta);
  font-size: 0.9rem;
}

.qf-cartbar__total { padding: 0.55rem 0.9rem; border-radius: 999px; background: rgba(0, 0, 0, 0.22); }
body.page-catalog .catalog-page { padding-bottom: 90px; }

/* ==========================================================================
   FICHE PRODUIT
   ========================================================================== */
body.page-product .product-detail > .product-media figure,
body.page-product .product-detail > .product-media {
  overflow: hidden;
  border-radius: 22px;
}

body.page-product .product-detail-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

body.page-product .product-title {
  font-family: var(--qf-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

body.page-product .product-eyebrow { color: var(--qf-orange); }
body.page-product #product-price { color: var(--qf-text); font-family: var(--qf-head); }
body.page-product .description,
body.page-product .description p { color: var(--qf-text-2); font-size: 1.02rem; }

body.page-product .step-name {
  color: var(--qf-text);
  font-family: var(--qf-head);
  font-style: normal;
  letter-spacing: 0.02em;
}

body.page-product .step-number { color: var(--qf-orange); }
body.page-product .badge-required { background: var(--qf-cta); color: #fff; }
body.page-product .badge-optional { color: var(--qf-muted); }
body.page-product .step-note,
body.page-product .step-instruction { color: var(--qf-text-2); }

body.page-product .choice-card {
  border: 1.5px solid var(--qf-line);
  border-radius: 14px;
  background: var(--qf-surface);
  color: var(--qf-text);
}

body.page-product .choice-card:hover { border-color: rgba(255, 122, 61, 0.55); }

body.page-product .choice-card:has(.choice-input:checked),
body.page-product .choice-card.is-selected {
  border-color: var(--qf-cta);
  background: rgba(214, 58, 12, 0.16);
}

body.page-product .choice-name { color: var(--qf-text); font-weight: 600; }
body.page-product .choice-price { color: var(--qf-orange); font-weight: 700; }

body.page-product .choice-media {
  flex: none;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
}

body.page-product .choice-image { width: 100%; height: 100%; object-fit: cover; }

body.page-product .wiz-progress-label { color: var(--qf-text-2); }
body.page-product .wiz-progress-bar span { background: var(--qf-cta); }
body.page-product .btn-primary { border-radius: 999px; }
body.page-product .back-link { color: var(--qf-text-2); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 560px) {
  .qf-best__track { grid-auto-columns: 46%; }
  .qf-hero__ctas { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 700px) {
  body.page-catalog .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qf-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qf-why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .qf-hero { align-items: center; min-height: min(86vh, 820px); }
  .qf-hero__media img { object-position: 70% 50%; }

  .qf-hero__shade {
    background:
      linear-gradient(90deg, rgba(15, 12, 10, 0.97) 0%, rgba(15, 12, 10, 0.86) 30%, rgba(15, 12, 10, 0.25) 58%, rgba(15, 12, 10, 0) 75%),
      linear-gradient(0deg, var(--qf-bg) 0%, rgba(15, 12, 10, 0) 22%);
  }

  .qf-hero__inner { padding: 5rem 40px 6rem; }
  .qf-hero__inner > * { max-width: 620px; }
  .qf-hero__title { font-size: clamp(3.8rem, 6.2vw, 5.6rem); }
  .qf-br-d { display: inline; }
  .qf-hero__lead { font-size: 1.22rem; }

  .qf-section { padding: 5rem 40px; }
  .qf-cats__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

  .qf-best__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 18px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .qf-deal { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .qf-info { grid-template-columns: 1.3fr 1fr; gap: 18px; }
  .qf-info__card, .qf-info__hours { padding: 2.2rem 2rem; }

  .qf-sticky { display: none; }
  .qf-final { min-height: 520px; }
}

@media (min-width: 1100px) {
  body.page-catalog .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  body.page-home { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .qf-btn, .qf-card, .qf-tile__media img, .qf-card__media img, .qf-sticky { transition: none; }
}

/* Carte produit de la carte : texte à gauche, photo à droite, prix + bouton sur une ligne */
body.page-catalog .product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  grid-template-rows: 1fr auto;
  column-gap: 14px;
}

body.page-catalog .product-card-body { display: contents; }
body.page-catalog .product-info { grid-column: 1; grid-row: 1; }
body.page-catalog .product-card .product-media { grid-column: 2; grid-row: 1 / span 2; align-self: start; }

body.page-catalog .product-actions {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.65rem 0 0;
}

body.page-catalog .product-actions .product-price { margin: 0; }
body.page-catalog .product-actions .add-form { margin: 0; }

body.page-catalog .order-mode-submit,
body.page-catalog .order-mode-actions .btn-primary {
  background: var(--qf-cta);
  border-color: var(--qf-cta);
  color: #fff;
}

body.page-catalog .order-mode-title { font-size: clamp(2.1rem, 9vw, 3.4rem); line-height: 1; }

@media (min-width: 700px) {
  body.page-catalog .product-card { grid-template-columns: minmax(0, 1fr) 132px; }
  body.page-catalog .product-card .product-media { width: 132px; height: 132px; flex-basis: 132px; }
}

/* Boutons principaux sur toutes les pages (les <style> en ligne des templates arrivent après cette feuille) */
body .btn-primary,
body .btn-primary:visited { background: var(--qf-cta); border-color: var(--qf-cta); color: #fff; }
body .btn-primary:hover,
body .btn-primary:focus-visible { background: var(--qf-cta-hover); border-color: var(--qf-cta-hover); color: #fff; }

/* Fiche produit : choix compacts et lisibles */
body.page-product .choice-card { min-height: 0; border-radius: 14px; }
body.page-product .choice-content-wrapper { min-height: 64px; padding: 0.7rem 0.9rem; }
body.page-product .choice-card:not(.qty-card) .choice-content-wrapper { padding-right: 2.8rem; }

body.page-product .choice-name {
  color: var(--qf-text);
  font-family: var(--qf-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

body.page-product .choice-price { display: block; margin-top: 0.15rem; color: var(--qf-orange); font-size: 0.92rem; font-weight: 700; letter-spacing: 0; }
body.page-product .choice-media { flex-basis: 52px; border-radius: 12px; }

body.page-product .choice-card:has(:checked) {
  border-color: var(--qf-cta);
  background: rgba(214, 58, 12, 0.16);
  box-shadow: inset 0 0 0 1px var(--qf-cta);
}

body.page-product .choice-card:hover { border-color: rgba(255, 122, 61, 0.6); }

body.page-product .choice-input:checked + .choice-content-wrapper .choice-indicator {
  border-color: var(--qf-cta);
  background: var(--qf-cta);
  color: #fff;
}

body.page-product .badge-required,
body.page-product .badge-optional {
  font-family: var(--qf-body);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.page-product .badge-required { background: var(--qf-cta); color: #fff; }
body.page-product .step-instruction { font-size: 0.85rem; }
body.page-product .choices-grid { gap: 0.6rem; }

@media (max-width: 560px) {
  body.page-product .choices-grid { grid-template-columns: 1fr; }
}

/* Héros mobile dédié : la nourriture occupe le haut, le texte se pose sur la zone sombre du bas */
.qf-hero__media.has-mobile img { object-position: 50% 0%; }

body.page-product .choice-input:checked ~ .choice-content-wrapper,
body.page-product .choice-input:checked + .choice-content-wrapper { background: transparent; box-shadow: none; }
