/* =============================================================================
   LOCAL BOSSMAN — Customer app styles
   =============================================================================
   Single CSS file with all global styles + utility classes.
   Brand: black + yellow, Inter font, white card backgrounds.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Tokens
   ----------------------------------------------------------------------------- */
:root {
  --black: #0E0E0E;
  --yellow: #FFC93C;
  --yellow-soft: #FFF6DC;

  --grey-900: #1a1a1a;
  --grey-700: #4a4a4a;
  --grey-500: #8a8a8a;
  --grey-300: #d4d4d4;
  --grey-100: #f4f4f4;
  --grey-50:  #fafafa;
  --white:    #ffffff;

  --success: #1f9d55;
  --danger:  #d33c3c;
  --warning: #e8a73c;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-pop:  0 8px 32px rgba(0,0,0,0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 24px;
  --gap-6: 32px;
  --gap-7: 48px;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
p  { margin: 0; }

a { color: inherit; text-decoration: none; }

/* -----------------------------------------------------------------------------
   App container
   ----------------------------------------------------------------------------- */
#app {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  background: var(--white);
  position: relative;
  padding-bottom: 80px;
}

/* -----------------------------------------------------------------------------
   Splash
   ----------------------------------------------------------------------------- */
#splash {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 200ms ease;
}
#splash[hidden] {
  opacity: 0;
  pointer-events: none;
  display: flex;
}
.splash-logo {
  width: 80px;
  height: 80px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.splash-lb {
  font-weight: 800;
  font-size: 32px;
  color: var(--black);
  letter-spacing: -0.04em;
}

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-2);
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 100ms ease, opacity 100ms ease;
  text-decoration: none;
  width: 100%;
  min-height: 52px;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--grey-900); }

.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover:not(:disabled) { background: #ffd566; }

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--grey-300);
}
.btn-secondary:hover:not(:disabled) { background: var(--grey-50); }

.btn-ghost { background: transparent; color: var(--black); }
.btn-ghost:hover:not(:disabled) { background: var(--grey-100); }

.btn-link {
  background: none;
  border: none;
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  padding: 8px;
  width: auto;
  min-height: 0;
}

/* -----------------------------------------------------------------------------
   Form inputs
   ----------------------------------------------------------------------------- */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
  margin-bottom: var(--gap-4);
}
.input-label { font-size: 14px; font-weight: 600; color: var(--grey-700); }
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px var(--yellow-soft);
}
.input.input-error { border-color: var(--danger); }
.input-help { font-size: 13px; color: var(--grey-500); }
.input-error-text { font-size: 13px; color: var(--danger); }

/* -----------------------------------------------------------------------------
   Cards
   ----------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-100);
  padding: var(--gap-5);
  box-shadow: var(--shadow-card);
}

/* -----------------------------------------------------------------------------
   Layout utilities
   ----------------------------------------------------------------------------- */
.screen {
  padding: 24px 20px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.screen-pad-top { padding-top: 56px; }

.stack { display: flex; flex-direction: column; gap: var(--gap-4); }
.stack-tight { gap: var(--gap-2); }
.stack-loose { gap: var(--gap-5); }

.row { display: flex; align-items: center; gap: var(--gap-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; }

.flex-1 { flex: 1; }
.text-center { text-align: center; }
.text-muted  { color: var(--grey-500); }
.text-small  { font-size: 14px; }

.spacer { flex: 1; }

.accent { color: var(--yellow); }

/* -----------------------------------------------------------------------------
   Header bar
   ----------------------------------------------------------------------------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--black);
  color: var(--yellow);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grey-100);
  border: none;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--white);
}

/* -----------------------------------------------------------------------------
   Toast
   ----------------------------------------------------------------------------- */
#toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  box-shadow: var(--shadow-pop);
  max-width: calc(100vw - 32px);
  animation: toastIn 200ms ease;
}
#toast.toast-error { background: var(--danger); }
#toast.toast-success { background: var(--success); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* =============================================================================
   HOME SCREEN
   ============================================================================= */
.home-greeting { margin: var(--gap-4) 0 var(--gap-5); }
.greeting-row {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  margin-bottom: var(--gap-2);
}
.hello { font-size: 14px; font-weight: 600; color: var(--grey-700); }
.home-headline {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: var(--gap-5) 0 var(--gap-3);
}
.section-row h3 { font-size: 17px; font-weight: 800; }
.section-row a {
  font-size: 13px;
  color: var(--grey-500);
  font-weight: 600;
  cursor: pointer;
}

/* Featured Bossman card (home screen) */
.featured-card {
  background: var(--yellow);
  border-radius: var(--radius-lg);
  padding: var(--gap-5);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 100ms ease;
}
.featured-card:active { transform: scale(0.99); }
.featured-card .pill {
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--gap-3);
}
.featured-card .feat-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.featured-card .feat-meta {
  font-size: 14px;
  color: var(--grey-700);
  font-weight: 500;
  margin-bottom: var(--gap-3);
}
.featured-card .feat-story {
  font-size: 14px;
  line-height: 1.5;
  color: var(--black);
  opacity: 0.85;
}

/* Generic shop card (home screen list) */
.shop-card {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  padding: var(--gap-4);
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 150ms ease;
}
.shop-card:active { transform: scale(0.99); }
.shop-card:hover { box-shadow: var(--shadow-card); }

.shop-card-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--black);
  flex-shrink: 0;
}
.shop-card-info { flex: 1; min-width: 0; }
.shop-card-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.shop-card-meta {
  font-size: 13px;
  color: var(--grey-500);
  display: flex;
  gap: 6px;
  align-items: center;
}
.shop-card-arrow { color: var(--grey-300); font-size: 22px; flex-shrink: 0; }

.bossman-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--yellow-soft);
  color: var(--black);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}
.bossman-pill .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  border: none;
  position: static;
}

/* Empty state */
.empty-state {
  padding: var(--gap-7) var(--gap-4);
  text-align: center;
  color: var(--grey-500);
}
.empty-state h3 { color: var(--grey-700); margin-bottom: 8px; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--grey-100) 0%, var(--grey-50) 50%, var(--grey-100) 100%);
  background-size: 200% 100%;
  animation: skel 1.4s ease-in-out infinite;
  border-radius: var(--radius-md);
}
@keyframes skel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 88px;
  margin-bottom: var(--gap-3);
}

/* =============================================================================
   SHOP SCREEN — Bossman hero + categories grid
   ============================================================================= */

.bossman-hero {
  background: var(--yellow);
  border-radius: var(--radius-lg);
  padding: var(--gap-5);
  margin-top: var(--gap-2);
}
.bossman-meet {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  opacity: 0.6;
  margin-bottom: var(--gap-3);
}
.bossman-row {
  display: flex;
  gap: var(--gap-3);
  align-items: center;
}
.bossman-avatar {
  width: 56px;
  height: 56px;
  background: var(--black);
  color: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}
.bossman-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2px;
}
.bossman-shop {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  opacity: 0.85;
}
.bossman-meta {
  font-size: 12px;
  color: var(--black);
  opacity: 0.6;
  font-weight: 500;
  margin-top: 2px;
}
.bossman-story {
  margin-top: var(--gap-4);
  font-size: 14px;
  line-height: 1.55;
  color: var(--black);
  opacity: 0.85;
}

/* Categories grid (2 cols) */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-3);
}

.cat-tile {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  padding: var(--gap-4) var(--gap-3);
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 100ms ease, box-shadow 150ms ease, border-color 150ms ease;
  min-height: 76px;
}
.cat-tile:active { transform: scale(0.98); }
.cat-tile:hover {
  border-color: var(--grey-300);
  box-shadow: var(--shadow-card);
}

.cat-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.cat-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
}
.cat-count {
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 500;
  margin-top: 2px;
}
.cat-arrow {
  font-size: 20px;
  color: var(--grey-300);
  flex-shrink: 0;
}

/* =============================================================================
   BOTTOM NAV
   ============================================================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-top: 1px solid var(--grey-100);
  display: flex;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 100;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-500);
  cursor: pointer;
}
.bottom-nav-item.active { color: var(--black); }
.nav-icon {
  font-size: 20px;
  line-height: 1;
}

/* =============================================================================
   CATEGORY SCREEN
   ============================================================================= */

/* Sub-category filter pills (horizontal scroll) */
.subcat-pills {
  display: flex;
  gap: 8px;
  margin-top: var(--gap-3);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.subcat-pills::-webkit-scrollbar { display: none; }

.subcat-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--grey-100);
  color: var(--black);
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.subcat-pill:hover { background: var(--grey-300); }
.subcat-pill.active {
  background: var(--black);
  color: var(--yellow);
}

/* Product row */
.product-row {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  padding: var(--gap-3);
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  transition: opacity 150ms ease;
}
.product-row.is-oos {
  opacity: 0.5;
}

.product-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
  min-width: 0;
}
.product-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.age-badge {
  font-size: 12px;
}
.product-brand {
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 500;
  margin-bottom: 4px;
}
.product-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--black);
}

.product-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-add {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 100ms ease;
  min-height: 32px;
}
.btn-add:active { transform: scale(0.95); }

.btn-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  border: none;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 100ms ease, background 150ms ease;
}
.btn-step:hover { background: #ffd566; }
.btn-step:active { transform: scale(0.92); }

.qty-display {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--black);
}

.oos-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  background: var(--grey-100);
  border-radius: 6px;
}

/* =============================================================================
   FLOATING BASKET BAR
   ============================================================================= */

#basket-bar {
  position: fixed;
  bottom: calc(72px + max(0px, env(safe-area-inset-bottom)));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 0 16px;
  z-index: 90;
  pointer-events: none;
  box-sizing: border-box;
}

/* If basket-bar is empty (no button inside), it shouldn't take any visual space */
#basket-bar:empty {
  display: none;
}

.basket-bar {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-xl);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  transition: transform 100ms ease;
  animation: basketBarIn 220ms ease;
}
.basket-bar:active { transform: scale(0.98); }
@keyframes basketBarIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.basket-bar-count {
  background: var(--yellow);
  color: var(--black);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
.basket-bar-text {
  flex: 1;
  text-align: left;
}
.basket-bar-total {
  font-weight: 800;
}

/* =============================================================================
   PRODUCT DETAIL SCREEN
   ============================================================================= */

/* Make product info clickable in category list — invisible button styling */
.product-info-tap {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
  outline: none;
}
.product-info-tap:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}
.product-info-tap:active { opacity: 0.6; }

/* -----------------------------------------------------------------------------
   PRODUCT DETAIL — compact card layout (no oversized hero)
   ----------------------------------------------------------------------------- */

.product-detail-card {
  margin-top: 8px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.product-detail-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.product-detail-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--yellow-soft);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  flex-shrink: 0;
}

.product-detail-info {
  flex: 1;
  min-width: 0;
}

.product-detail-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.product-detail-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.product-detail-meta {
  font-size: 13px;
  color: var(--grey-500);
  font-weight: 500;
  margin-top: 4px;
}

.age-pill-inline {
  display: inline-block;
  margin-top: 8px;
  background: var(--black);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.product-detail-divider {
  height: 1px;
  background: var(--grey-100);
  margin: 14px 0;
}

.product-detail-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-detail-price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.btn-add-detail {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 100ms ease;
  min-height: 40px;
}
.btn-add-detail:active { transform: scale(0.96); }

.stepper-detail {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stepper-detail .qty-display {
  min-width: 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}

/* -----------------------------------------------------------------------------
   Info sections (allergens warning + collapsibles)
   ----------------------------------------------------------------------------- */

.info-section {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--grey-50);
  border-radius: var(--radius-md);
}
.info-section.warn-section {
  background: #fff7e0;
  border-left: 3px solid var(--yellow);
}
.info-section.compact { padding: 12px 14px; }

.info-h {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.info-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-700);
  margin: 0;
}

.info-link {
  color: var(--black);
  text-decoration: underline;
  font-weight: 700;
}

/* Allergen pills */
.allergen-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.allergen-row:last-child { margin-bottom: 0; }
.allergen-label {
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 4px;
}
.allergen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.allergen-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.allergen-pill.bad   { background: #fde8e8; color: #a02020; }
.allergen-pill.maybe { background: #fff3cd; color: #856300; }

/* -----------------------------------------------------------------------------
   Collapsible sections (Ingredients, Nutrition)
   ----------------------------------------------------------------------------- */

.collapsible {
  margin-top: 12px;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.collapsible-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.collapsible-chevron {
  font-size: 22px;
  color: var(--grey-500);
  transition: transform 200ms ease;
  line-height: 1;
}

.collapsible.open .collapsible-chevron {
  transform: rotate(90deg);
}

.collapsible-body {
  display: none;
  padding: 0 16px 14px;
}

.collapsible.open .collapsible-body {
  display: block;
}

/* Nutrition table */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.nutrition-table tr { border-bottom: 1px solid var(--grey-100); }
.nutrition-table tr:last-child { border-bottom: none; }
.nutrition-table td { padding: 8px 0; color: var(--grey-700); }
.nutrition-table td:first-child { font-weight: 600; color: var(--black); }

/* -----------------------------------------------------------------------------
   Universal legal disclaimer (UK retail industry standard)
   ----------------------------------------------------------------------------- */

.legal-disclaimer {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--grey-50);
  border-radius: var(--radius-md);
  font-size: 12px;
  line-height: 1.55;
  color: var(--grey-500);
}
.legal-disclaimer p {
  margin: 0 0 10px;
}
.legal-disclaimer p:last-child { margin-bottom: 0; }
.legal-disclaimer strong { color: var(--grey-700); }

/* =============================================================================
   BASKET SCREEN
   ============================================================================= */

/* Empty state */
.basket-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  min-height: 60vh;
}
.basket-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.basket-empty h3 { margin-bottom: 6px; }

/* Shop card at top of basket */
.basket-shop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--yellow-soft);
  border-radius: var(--radius-md);
  margin: 12px 0;
}
.basket-shop-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.basket-shop-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.basket-shop-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.01em;
}
.basket-shop-addr {
  font-size: 12px;
  color: var(--grey-700);
  margin-top: 2px;
}

/* Section header (e.g. "3 items") */
.basket-section-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 20px 0 10px;
}

/* Basket items list */
.basket-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.basket-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
}

.basket-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

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

.basket-item-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.3;
}

.basket-item-price-row {
  margin-bottom: 8px;
}
.basket-item-unit {
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 500;
}

.basket-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.basket-item-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.basket-item-stepper .btn-step {
  width: 28px;
  height: 28px;
  font-size: 14px;
}
.basket-item-stepper .qty-display {
  min-width: 20px;
  font-size: 13px;
}

.basket-item-remove {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-500);
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
}
.basket-item-remove:hover { color: var(--danger); }

.basket-item-line-total {
  font-size: 14px;
  font-weight: 800;
  color: var(--black);
  align-self: flex-start;
  flex-shrink: 0;
  padding-top: 4px;
}

/* Totals */
.basket-totals {
  margin-top: 24px;
  padding: 16px;
  background: var(--grey-50);
  border-radius: var(--radius-md);
}
.basket-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--grey-700);
}
.basket-total-row:last-child { margin-bottom: 0; }
.basket-total-row-final {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--grey-300);
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
}

.basket-fineprint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--grey-500);
  text-align: center;
}

/* =============================================================================
   HEADER BASKET ICON (visible on screens without floating basket bar)
   ============================================================================= */

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-basket-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform 100ms ease;
}
.header-basket-btn:active { transform: scale(0.92); }
.header-basket-btn:hover { background: var(--grey-900); }

.header-basket-icon {
  font-size: 16px;
  line-height: 1;
}

.header-basket-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  letter-spacing: -0.02em;
}
