/* ═══════════════════════════════════════════════════
   SOVEL POS — Breakfast Floor Styles
   Mobile-first, iPhone-perfect, pearl canvas, terracotta accent.
   ═══════════════════════════════════════════════════ */

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

html {
  min-height: 100%;
  background: var(--hg-pearl);
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-base); /* ≥16px — iOS auto-zoom prevention */
  line-height: 1.5;
  color: var(--hg-charcoal);
  background: var(--hg-pearl);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--hg-navy); text-decoration: none; }

input, select, textarea {
  font-family: inherit;
  font-size: var(--hg-text-base);
  color: var(--hg-charcoal);
}

.root {
  max-width: 560px;
  margin: 0 auto;
  padding-top: calc(var(--safe-top) + var(--hg-space-4));
  padding-bottom: calc(var(--safe-bottom) + 120px); /* room for fixed action bar */
  padding-left:  calc(var(--safe-left)  + var(--hg-space-4));
  padding-right: calc(var(--safe-right) + var(--hg-space-4));
  min-height: 100vh;
}

/* ═══ Top brand band ═══ */

.brand-band {
  text-align: center;
  padding: var(--hg-space-5) 0 var(--hg-space-4);
  border-bottom: 1px solid var(--hg-gold-soft);
}
.brand-title {
  font-family: var(--hg-font-display);
  font-size: var(--hg-text-xl);
  letter-spacing: 0.12em;
  color: var(--hg-navy);
  margin: 0;
  font-weight: 500;
}
.brand-sub {
  margin-top: var(--hg-space-2);
  font-family: var(--hg-font-accent);
  font-style: italic;
  font-size: var(--hg-text-base);
  color: var(--hg-gray-dark);
}

/* ═══ Buttons ═══ */

.btn {
  min-height: 48px;
  padding: 14px 24px;
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--hg-radius-xs);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hg-space-2);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--hg-accent);
  color: var(--hg-offwhite);
}
.btn-primary:hover, .btn-primary:active {
  background: var(--hg-accent-dark);
}
.btn-primary:disabled {
  background: var(--hg-gray-light);
  color: var(--hg-gray-mid);
  cursor: not-allowed;
  transform: none;
}
.btn-gold {
  background: var(--hg-gold);
  color: var(--hg-navy-dark);
}
.btn-gold:hover { background: var(--hg-gold-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--hg-accent);
  color: var(--hg-accent-dark);
  padding: 13px 23px;
}
.btn-outline:hover { background: var(--hg-accent-soft); }

.btn-ghost {
  background: none;
  border: none;
  color: var(--hg-charcoal);
  padding: 8px 12px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--hg-accent-dark); }

.btn-full { width: 100%; }

/* ═══ Welcome / Menu picker ═══ */

.welcome-hero {
  text-align: center;
  padding: var(--hg-space-7) 0 var(--hg-space-5);
}
.welcome-headline {
  font-family: var(--hg-font-display);
  font-size: var(--hg-text-4xl);
  color: var(--hg-navy);
  margin: 0 0 var(--hg-space-3);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.welcome-accent {
  font-family: var(--hg-font-accent);
  font-style: italic;
  font-size: var(--hg-text-lg);
  color: var(--hg-gray-dark);
  margin: 0;
}

.menu-picker {
  display: grid;
  gap: var(--hg-space-4);
  margin-top: var(--hg-space-5);
}
.menu-picker-card {
  background: var(--hg-offwhite);
  border: 1px solid var(--hg-gray-light);
  border-radius: var(--hg-radius-lg);
  padding: var(--hg-space-5);
  box-shadow: var(--hg-shadow-sm);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: var(--hg-space-4);
  min-height: 96px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.menu-picker-card:hover,
.menu-picker-card:active {
  box-shadow: var(--hg-shadow-md);
  transform: translateY(-1px);
}
.menu-picker-card.disabled { opacity: 0.5; cursor: not-allowed; }

.picker-accent {
  width: 8px;
  align-self: stretch;
  border-radius: var(--hg-radius-xs);
  background: var(--hg-accent);
  flex-shrink: 0;
}
.picker-name {
  font-family: var(--hg-font-display);
  font-size: var(--hg-text-2xl);
  color: var(--hg-navy);
  margin: 0 0 var(--hg-space-1);
  font-weight: 500;
}
.picker-meta {
  font-size: var(--hg-text-sm);
  color: var(--hg-gray-dark);
  font-family: var(--hg-font-accent);
  font-style: italic;
}

/* ═══ Menu page ═══ */

.page-header {
  padding: var(--hg-space-3) 0 var(--hg-space-5);
  display: flex;
  align-items: center;
  gap: var(--hg-space-3);
}
.back-link {
  color: var(--hg-accent-dark);
  background: transparent;
  border: none;
  font-size: var(--hg-text-sm);
  font-weight: 500;
  padding: 8px 4px;
  cursor: pointer;
}
.back-link::before { content: '← '; }

.menu-title {
  font-family: var(--hg-font-display);
  font-size: var(--hg-text-3xl);
  color: var(--hg-navy);
  margin: var(--hg-space-4) 0 var(--hg-space-2);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.menu-italic {
  font-family: var(--hg-font-accent);
  font-style: italic;
  font-size: var(--hg-text-lg);
  color: var(--hg-gray-dark);
  margin: 0 0 var(--hg-space-5);
}

/* ═══ Item list ═══ */

.item-list {
  display: flex;
  flex-direction: column;
  gap: var(--hg-space-4);
}
.item-card {
  background: var(--hg-offwhite);
  border: 1px solid var(--hg-gray-light);
  border-radius: var(--hg-radius-lg);
  padding: var(--hg-space-4);
  display: flex;
  gap: var(--hg-space-4);
  align-items: stretch;
  box-shadow: var(--hg-shadow-sm);
}
.item-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: var(--hg-pearl-warm);
  border-radius: var(--hg-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hg-font-accent);
  font-style: italic;
  color: var(--hg-gray-dark);
  font-size: var(--hg-text-sm);
  text-align: center;
  padding: 6px;
  overflow: hidden;
}
.item-thumb img { max-width: 100%; max-height: 100%; object-fit: cover; border-radius: inherit; }
.item-body { flex: 1; min-width: 0; }
.item-name {
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-lg);
  font-weight: 600;
  color: var(--hg-charcoal);
  margin: 0 0 4px;
  line-height: 1.3;
}
.item-desc {
  font-size: var(--hg-text-sm);
  color: var(--hg-gray-dark);
  margin: 0 0 var(--hg-space-3);
  line-height: 1.5;
}
.item-price {
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-base);
  font-weight: 600;
  color: var(--hg-navy);
  margin-right: var(--hg-space-3);
}
.item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hg-space-3);
}
.qty-ctrl {
  display: flex;
  align-items: center;
  gap: var(--hg-space-3);
}
.qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  border: 1px solid var(--hg-accent);
  background: var(--hg-offwhite);
  color: var(--hg-accent-dark);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:active { background: var(--hg-accent-soft); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-val {
  min-width: 24px;
  text-align: center;
  font-family: var(--hg-font-body);
  font-weight: 600;
  font-size: var(--hg-text-lg);
}

/* ═══ Cart / Checkout ═══ */

.cart-line {
  padding: var(--hg-space-3) 0;
  border-bottom: 1px solid var(--hg-gray-light);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--hg-space-3);
  align-items: center;
}
.cart-line:last-child { border-bottom: none; }
.cart-line-name {
  font-weight: 500;
  font-size: var(--hg-text-base);
}
.cart-line-meta {
  font-size: var(--hg-text-sm);
  color: var(--hg-gray-mid);
  margin-top: 2px;
}
.cart-line-attr {
  display: flex;
  align-items: center;
  gap: var(--hg-space-2);
  margin-top: var(--hg-space-2);
  font-size: var(--hg-text-sm);
  color: var(--hg-gray-dark);
}
.cart-line-attr select {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--hg-gray-light);
  border-radius: var(--hg-radius-xs);
  background: var(--hg-offwhite);
  font-size: var(--hg-text-sm);
}

.cart-totals {
  margin-top: var(--hg-space-5);
  padding-top: var(--hg-space-4);
  border-top: 2px solid var(--hg-gold-soft);
}
.cart-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: var(--hg-text-base);
}
.cart-totals-row.total {
  font-weight: 700;
  font-size: var(--hg-text-lg);
  color: var(--hg-navy);
  padding-top: var(--hg-space-3);
  margin-top: var(--hg-space-2);
  border-top: 1px solid var(--hg-gray-light);
}
.folio-line {
  font-family: var(--hg-font-accent);
  font-style: italic;
  font-size: var(--hg-text-sm);
  color: var(--hg-gray-dark);
  text-align: center;
  margin-top: var(--hg-space-3);
}

.flag-banner {
  background: var(--hg-gold-soft);
  border: 1px solid var(--hg-gold);
  border-radius: var(--hg-radius-sm);
  padding: var(--hg-space-3) var(--hg-space-4);
  margin-bottom: var(--hg-space-5);
  font-size: var(--hg-text-sm);
  color: var(--hg-gold-dark);
  font-weight: 500;
}
.flag-banner.warn {
  background: rgba(212, 168, 67, 0.12);
  border-color: var(--hg-warning);
  color: #7E6418;
}
.flag-banner.error {
  background: rgba(193, 75, 75, 0.10);
  border-color: var(--hg-error);
  color: var(--hg-error);
}

/* ═══ Fixed action bar (iOS safe area) ═══ */

.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, var(--hg-pearl) 70%, rgba(245,240,232,0) 100%);
  padding-bottom: calc(var(--safe-bottom) + var(--hg-space-4));
  padding-top: var(--hg-space-6);
  padding-left: var(--hg-space-4);
  padding-right: var(--hg-space-4);
  display: flex;
  justify-content: center;
  z-index: 30;
}
.action-bar-inner {
  max-width: 560px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--hg-space-3);
}

.cart-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--hg-space-2);
  padding: 10px 16px;
  background: var(--hg-navy);
  color: var(--hg-pearl);
  border-radius: 100px;
  font-size: var(--hg-text-sm);
  font-weight: 600;
}
.cart-pill-dot {
  background: var(--hg-accent);
  color: var(--hg-offwhite);
  width: 24px; height: 24px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--hg-text-xs);
  font-weight: 700;
}

/* ═══ Shadow states (REFUSED, WINDOW_CLOSED) ═══ */

.state-screen {
  padding: var(--hg-space-7) var(--hg-space-4);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.state-screen h1 {
  font-family: var(--hg-font-display);
  font-size: var(--hg-text-3xl);
  color: var(--hg-navy);
  margin: 0 0 var(--hg-space-4);
  font-weight: 500;
}
.state-screen p {
  font-size: var(--hg-text-base);
  line-height: 1.6;
  color: var(--hg-gray-dark);
  margin: 0 0 var(--hg-space-3);
}
.state-screen .state-accent {
  font-family: var(--hg-font-accent);
  font-style: italic;
  font-size: var(--hg-text-lg);
  color: var(--hg-gold-dark);
  margin: var(--hg-space-5) 0;
}

/* ═══ Modal ═══ */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11, 29, 58, 0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}
.modal-card {
  background: var(--hg-offwhite);
  border-top-left-radius: var(--hg-radius-lg);
  border-top-right-radius: var(--hg-radius-lg);
  padding: var(--hg-space-6) var(--hg-space-5);
  padding-bottom: calc(var(--hg-space-6) + var(--safe-bottom));
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--hg-shadow-lg);
  animation: slide-up 0.28s ease-out;
}
@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0.6; }
  to   { transform: translateY(0);    opacity: 1;   }
}
.modal-title {
  font-family: var(--hg-font-display);
  font-size: var(--hg-text-2xl);
  color: var(--hg-navy);
  margin: 0 0 var(--hg-space-3);
  font-weight: 500;
  text-align: center;
}
.modal-accent {
  font-family: var(--hg-font-accent);
  font-style: italic;
  font-size: var(--hg-text-base);
  color: var(--hg-gray-dark);
  text-align: center;
  margin: 0 0 var(--hg-space-4);
}
.modal-conf-number {
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-xl);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--hg-accent-dark);
  text-align: center;
  padding: var(--hg-space-3);
  background: var(--hg-accent-soft);
  border-radius: var(--hg-radius-sm);
  margin: var(--hg-space-4) 0;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--hg-space-3);
  margin-top: var(--hg-space-5);
}

/* ═══ Toast ═══ */

.toasts {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 140px);
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hg-space-2);
  z-index: 2000;
  padding: 0 var(--hg-space-4);
  pointer-events: none;
}
.toast {
  padding: 10px 20px;
  background: var(--hg-navy);
  color: var(--hg-pearl);
  border-radius: 100px;
  font-size: var(--hg-text-sm);
  box-shadow: var(--hg-shadow-md);
  pointer-events: auto;
  max-width: 100%;
}
.toast.error   { background: var(--hg-error); }
.toast.success { background: var(--hg-success); }

/* ═══ Modifiers picker (part of item quick-add) ═══ */

.mod-row {
  display: flex;
  align-items: center;
  gap: var(--hg-space-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--hg-gray-light);
}
.mod-row:last-child { border-bottom: none; }
.mod-row input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--hg-accent);
}
.mod-row label { font-size: var(--hg-text-base); }

/* ═══ Loading ═══ */

.loading {
  text-align: center;
  padding: var(--hg-space-7) var(--hg-space-4);
  font-family: var(--hg-font-accent);
  font-style: italic;
  color: var(--hg-gray-mid);
}

/* ═══ Reduce motion ═══ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══ Room-QR claim screen ═══════════════════════════════════════ */
.claim-form {
  max-width: 420px;
  margin: 24px auto 0;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.claim-input {
  font-size: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(11, 29, 58, 0.25);
  border-radius: 10px;
  background: #fff;
  color: #0B1D3A;
}
.claim-input:focus { outline: 3px solid #C8A45E; outline-offset: 1px; }
.claim-submit {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  min-height: 52px;
  border: none;
  border-radius: 10px;
  background: #C8A45E;
  color: #0B1D3A;
  cursor: pointer;
}
.claim-submit:disabled { opacity: 0.6; cursor: wait; }
.claim-error {
  min-height: 22px;
  color: #B85450;
  font-size: 15px;
  text-align: center;
}

/* === Allergen chips on item cards (N1.1) =========================== */
.item-allergens { margin: 6px 0 2px; display: flex; flex-wrap: wrap; gap: 6px; }
.allergen-chip {
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid #C83D3D;
  color: #C83D3D;
  border-radius: 999px;
  background: rgba(200, 61, 61, 0.06);
  text-transform: capitalize;
}

/* === Upsell pairings strip (N1.2) ================================== */
.pairings-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(200, 164, 94, 0.10);
  border: 1px solid rgba(200, 164, 94, 0.45);
  border-radius: 10px;
  animation: pairings-in 220ms ease;
}
@keyframes pairings-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pairings-title {
  font-family: var(--hg-font-accent, Georgia, serif);
  font-style: italic;
  color: #8A6A14;
  margin-right: 4px;
}
.pairing-btn {
  border: 1px solid #C8A45E;
  background: #fff;
  color: #0B1D3A;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  min-height: 40px;
  cursor: pointer;
}
.pairing-btn.is-added { background: #2E9750; border-color: #2E9750; color: #fff; }
.pairing-price { color: #8A6A14; }
.pairing-dismiss {
  margin-left: auto;
  border: none;
  background: transparent;
  font-size: 20px;
  color: #8A6A14;
  cursor: pointer;
  min-width: 36px;
  min-height: 36px;
}

/* === Language switcher (N1.3) ====================================== */
.lang-switcher { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.lang-btn {
  border: 1px solid rgba(245, 240, 232, 0.45);
  background: transparent;
  color: #F5F0E8;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 32px;
}
.lang-btn.is-active { background: #C8A45E; border-color: #C8A45E; color: #0B1D3A; font-weight: 700; }

/* ═══ Guest entry v2 — professional welcome / claim ═════════════════ */

/* Language pills were styled for a dark band but the page is light —
   they were invisible. Light theme: navy on white, gold when active. */
.lang-switcher { margin-top: 14px; gap: 8px; }
.lang-btn {
  border: 1px solid var(--hg-gold);
  background: #fff;
  color: var(--hg-navy);
  font-weight: 600;
  padding: 6px 16px;
  min-height: 32px;
}
.lang-btn:hover { background: var(--hg-gold-soft); }
.lang-btn.is-active {
  background: var(--hg-gold);
  color: var(--hg-navy-dark);
  border-color: var(--hg-gold);
}

/* Brand band: gold hairline on top for a framed, printed feel */
.brand-band { position: relative; padding-top: 28px; }
.brand-band::before {
  content: '';
  position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 2px;
  background: var(--hg-gold);
}

/* Centered entry panel — welcome / claim / no-stay share it */
.claim-panel {
  max-width: 460px;
  margin: 40px auto 0;
  background: var(--hg-offwhite);
  border: 1px solid var(--hg-gold-soft);
  border-radius: var(--hg-radius-lg);
  box-shadow: var(--hg-shadow-md, 0 10px 30px rgba(11,29,58,0.08));
  padding: 36px 28px 32px;
  text-align: center;
}
.claim-panel .welcome-headline { margin-top: 18px; }
.claim-panel .welcome-accent   { margin-top: 6px; }
.claim-panel .claim-form       { margin-top: 24px; }

/* Room chip — the guest's room, presented like a key card tag */
.room-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  border: 1px solid var(--hg-gold);
  border-radius: 999px;
  padding: 8px 22px;
  background: var(--hg-gold-soft);
}
.room-chip-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hg-gold-dark);
  font-weight: 600;
}
.room-chip-number {
  font-family: var(--hg-font-display);
  font-size: 26px;
  color: var(--hg-navy);
  line-height: 1;
}

/* ═══ Menu view v2 — tighter, organized ═════════════════════════════ */

/* Two columns when there's room; one clean column on phones */
@media (min-width: 760px) {
  .item-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hg-space-4);
    align-items: stretch;
  }
}
.item-card { transition: box-shadow 0.15s ease, transform 0.15s ease; }
.item-card:hover { box-shadow: var(--hg-shadow-md, 0 6px 18px rgba(11,29,58,0.10)); }

/* Menu header: gold rule under the title anchors the page */
.menu-title {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--hg-gold);
  display: inline-block;
}

/* Bottom bar: one solid card instead of floating pill + loose button */
.action-bar {
  background: linear-gradient(to top, var(--hg-pearl) 82%, rgba(245,240,232,0) 100%);
}
.action-bar-inner {
  background: var(--hg-navy);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 10px 28px rgba(11,29,58,0.35);
  gap: var(--hg-space-3);
}
.action-bar-inner .cart-pill {
  background: transparent;
  padding: 10px 12px;
}
.action-bar-inner .btn,
.action-bar-inner .claim-submit { flex: 1; }
.action-bar-inner .btn-primary {
  background: var(--hg-gold);
  color: var(--hg-navy-dark);
}
.action-bar-inner .btn-primary:hover { background: var(--hg-gold-dark); }
.action-bar-inner .btn-primary:disabled {
  background: rgba(245,240,232,0.16);
  color: rgba(245,240,232,0.55);
}

/* ═══ Menu view v2.1 — fix cramped two-column cards ═════════════════ */

/* The page container is phone-width (560px); splitting it in two made
   each card ~210px and the "With your stay" note wrapped into a tiny
   3-line column. On desktop, when the item list is on screen, let the
   page breathe — each card gets a real width. */
@media (min-width: 900px) {
  .root:has(.item-list) { max-width: 920px; }
  .root:has(.item-list) .brand-band,
  .root:has(.item-list) .page-header { max-width: 920px; }
}

/* Actions row: the price / "With your stay" note stays on ONE line;
   if the card is too narrow it wraps as a whole line above the
   quantity controls instead of squeezing letter by letter. */
.item-actions { flex-wrap: wrap; row-gap: 6px; }
.item-actions > span:first-child {
  white-space: nowrap;
  font-size: 0.85rem;
}
.item-actions .qty-ctrl { margin-left: auto; }

/* ═══ Pairings strip fix ═════════════════════════════════════════════
   The strip is appended to .item-card, which is a FLEX row (thumb +
   body) — without wrap it rendered as a squeezed third column on top
   of the card text. Wrap + full-width makes it a clean row below. */
.item-card { flex-wrap: wrap; }
.pairings-strip { flex: 1 1 100%; }
