/*
 * FOOD HUB — Fine Food Supply
 * Design System: Luxury Editorial
 * Typo: Playfair Display + DM Sans
 * Palette: Cream / Obsidian / Gold
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,500;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@300;400;500&display=swap');

:root {
  /* Core palette */
  --obsidian:   #0a0a0a;
  --ink:        #141414;
  --charcoal:   #1e1e1e;
  --smoke:      #2a2a2a;
  --ash:        #404040;
  --stone:      #6b6b6b;
  --silver:     #9a9a9a;
  --mist:       #c8c8c8;
  --cloud:      #e8e5e0;
  --cream:      #f5f2ec;
  --ivory:      #faf9f6;
  --white:      #ffffff;

  /* Accent: gold */
  --gold:       #c9a84c;
  --gold-light: #e8d08a;
  --gold-dark:  #9a7830;
  --gold-bg:    #fdf9ef;

  /* Semantic */
  --success:    #2d7a4f;
  --success-bg: #edf7f2;
  --warning:    #c47c1a;
  --warning-bg: #fdf4e7;
  --danger:     #b83232;
  --danger-bg:  #fdf0f0;
  --info:       #1a5fa8;
  --info-bg:    #eff5fd;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.14), 0 8px 24px rgba(0,0,0,.08);

  /* Sidebar */
  --sb-width: 264px;
  --sb-bg: var(--obsidian);
  --sb-border: rgba(255,255,255,.06);
}

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

html { font-size: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
#sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sb-width); height: 100vh;
  background: var(--sb-bg);
  display: flex; flex-direction: column;
  z-index: 100; overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--sb-border);
  scrollbar-width: thin;
  scrollbar-color: var(--smoke) transparent;
}
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb { background: var(--smoke); border-radius: 2px; }

/* LOGO */
.fh-logo-wrap {
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.fh-logo-img {
  display: block;
  width: 100%;
  max-width: 190px;
  margin: 0 auto;
  height: auto;
  overflow: visible;
}

/* Sidebar header items (Dashboard, Mon espace) — V1 affirmed */
.sb-header-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; color: rgba(255,255,255,.72);
  text-decoration: none; font-size: 13px; font-weight: 600;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(255,255,255,.04);
  letter-spacing: .01em;
  transition: all .18s;
  position: relative;
}
.sb-header-item:hover { background: rgba(255,255,255,.05); color: #fff; padding-left: 22px; }
.sb-header-item.active { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(201,168,76,.12), rgba(201,168,76,.02)); color: #fff; font-weight: 700; }
.sb-header-item i { font-size: 1rem; width: 18px; flex-shrink: 0; opacity: .65; transition: .18s; }
.sb-header-item.active i { opacity: 1; color: var(--gold-light); }
.sb-header-item:hover i { opacity: 1; }

/* Sidebar sections */
.sb-sec { border-bottom: 1px solid var(--sb-border); }
.sb-sec-hdr {
  display: flex; align-items: center; gap: 8px; padding: 9px 20px;
  cursor: pointer; user-select: none;
  font-size: .62rem; font-weight: 700;
  color: var(--stone); letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .15s;
}
.sb-sec-hdr:hover { color: var(--silver); }
.sb-sec-hdr.open { color: var(--mist); }
.sb-sec-hdr i { font-size: .85rem; width: 16px; flex-shrink: 0; }
.sb-sec-chev { margin-left: auto; font-size: .55rem; transition: transform .2s; }
.sb-sec-body { display: none; }
.sb-sec-body.open { display: block; }

/* Sidebar campaign pill */
.sb-camp-pill {
  font-size: .55rem; background: rgba(201,168,76,.15); color: var(--gold-light);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 999px; padding: 1px 7px; font-weight: 600;
  max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: inline-block; vertical-align: middle; margin-left: 4px;
}

/* Campaign rows in sidebar */
.sc-camp-row { margin: 3px 10px; border-radius: 8px; background: rgba(255,255,255,.03); overflow: hidden; border: 1px solid var(--sb-border); }
.sc-camp-row-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; cursor: pointer; font-size: .74rem; color: var(--silver);
  transition: background .15s;
}
.sc-camp-row-hdr:hover { background: rgba(255,255,255,.04); color: var(--white); }
.sc-dot { width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; flex-shrink: 0; display: inline-block; }
.sc-camp-row-body { padding: 10px; display: none; border-top: 1px solid rgba(255,255,255,.05); background: rgba(0,0,0,.2); }
.sc-camp-row-body.open { display: block; }
.sc-label { font-size: .64rem; color: var(--stone); margin-bottom: 3px; letter-spacing: .04em; text-transform: uppercase; }
.sc-input {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; color: var(--cloud); font-size: .75rem;
  padding: 5px 8px; outline: none; color-scheme: dark;
  font-family: var(--font-body);
  transition: border-color .15s;
}
.sc-input:focus { border-color: rgba(201,168,76,.4); }
.sc-btn {
  width: 100%; border: none; border-radius: 6px; color: var(--white);
  font-size: .72rem; font-weight: 600; padding: 6px; cursor: pointer;
  margin-top: 4px; transition: all .18s; font-family: var(--font-body);
}
.sc-btn-create { background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.25); color: var(--gold-light); }
.sc-btn-create:hover { background: rgba(201,168,76,.25); }
.sc-btn-save { background: rgba(255,255,255,.08); }
.sc-btn-save:hover { background: rgba(255,255,255,.14); }
.sc-btn-danger { background: rgba(184,50,50,.15); color: #f87171; }
.sc-btn-danger:hover { background: rgba(184,50,50,.25); }
.sc-row { margin-bottom: 8px; }

/* Sidebar order tree */
.so-group-lbl { padding: 8px 20px 3px; font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); }
.so-camp-hdr { display: flex; align-items: center; justify-content: space-between; padding: 5px 16px 5px 12px; cursor: pointer; font-size: .74rem; color: var(--ash); transition: all .15s; }
.so-camp-hdr:hover { color: var(--silver); background: rgba(255,255,255,.03); }
.so-order-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 4px 28px; font-size: .7rem; color: var(--stone); cursor: pointer; transition: background .12s; }
.so-order-row:hover { color: var(--silver); background: rgba(255,255,255,.03); }
.so-camp-body { display: none; }
.so-camp-body.open { display: block; }

/* Nav items */
.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; color: var(--stone);
  text-decoration: none; font-size: .75rem; font-weight: 400;
  border-left: 2px solid transparent;
  transition: all .15s; letter-spacing: .01em;
}
.nav-item:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.04); }
.nav-item.active { color: var(--white); background: rgba(201,168,76,.07); border-left-color: var(--gold); }
.nav-item i { font-size: .9rem; width: 16px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════ */
#main {
  margin-left: var(--sb-width);
  min-height: 100vh;
  background: var(--cream);
}

.topbar {
  background: rgba(250,249,246,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cloud);
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-xs);
}
.topbar h5 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600; font-size: .82rem;
  color: var(--ink); letter-spacing: .01em;
}

.content { padding: 20px 24px; }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.2;
  color: var(--ink); letter-spacing: -.01em;
}
h5, h6 {
  font-family: var(--font-body);
  font-weight: 700; line-height: 1.3;
  color: var(--ink);
}
.section-label {
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--stone);
}

/* ═══════════════════════════════════════════
   BADGES & ALERTS
═══════════════════════════════════════════ */
.fh-badge {
  background: var(--obsidian); color: var(--white);
  padding: 3px 10px; border-radius: 999px;
  font-size: .65rem; font-weight: 600; letter-spacing: .06em;
  font-family: var(--font-body);
}
.fh-alert {
  background: var(--ink); color: var(--white);
  padding: 10px 14px; border-radius: 8px;
  font-size: .8rem; margin-bottom: 14px;
  border-left: 3px solid var(--gold);
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-xs);
  animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.fh-alert-error { background: var(--danger-bg); color: var(--danger); border-left-color: var(--danger); }

.status-badge { padding: 2px 8px; border-radius: 999px; font-size: .65rem; font-weight: 600; letter-spacing: .03em; }
.badge-attente   { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge-confirmee { background: var(--obsidian); color: var(--white); }
.badge-encours   { background: var(--ash); color: var(--white); }
.badge-expediee  { background: var(--stone); color: var(--white); }
.badge-livree    { background: var(--success-bg); color: var(--success); border: 1px solid #b6dfc8; }
.badge-annulee   { background: var(--danger-bg); color: var(--danger); text-decoration: line-through; }

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--cloud);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.stat-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; background: var(--ivory); border: 1px solid var(--cloud);
}

.form-card {
  background: var(--white);
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid var(--cloud);
  box-shadow: var(--shadow-xs);
}

/* Campaign card */
.campaign-card {
  background: var(--white);
  border-radius: 10px;
  border: 1.5px solid var(--cloud);
  padding: 14px 16px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none; color: inherit; display: block;
  box-shadow: var(--shadow-xs);
}
.campaign-card:hover { border-color: var(--gold); color: inherit; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.campaign-card.cc-selected { border-color: var(--obsidian); background: var(--ivory); box-shadow: var(--shadow-sm); }
.cc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cc-title { font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: 8px; font-family: var(--font-body); }
.cc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.cc-cell {
  background: var(--ivory); border-radius: 10px; padding: 10px 12px;
  border: 1px solid var(--cloud);
}
.cc-val { font-weight: 700; font-size: .85rem; color: var(--ink); }
.cc-lbl { font-size: .62rem; color: var(--stone); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

/* ═══════════════════════════════════════════
   TABLE
═══════════════════════════════════════════ */
.table-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--cloud);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-card table { margin: 0; }
.table-card thead th {
  background: var(--ivory);
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--stone);
  border-bottom: 1px solid var(--cloud);
  padding: 8px 12px;
  font-family: var(--font-body);
}
.table-card tbody td { font-size: .8rem; vertical-align: middle; border-color: var(--ivory); padding: 8px 12px; }
.table-card tbody tr { transition: background .12s; }
.table-card tbody tr:hover { background: var(--ivory); }

/* ═══════════════════════════════════════════
   HERO BANNER
═══════════════════════════════════════════ */
.hero-banner {
  background: var(--obsidian);
  border-radius: 14px;
  padding: 22px 20px;
  color: var(--white);
  border: 1px solid rgba(201,168,76,.15);
  margin-bottom: 16px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(201,168,76,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-title { text-align: center; margin-bottom: 16px; position: relative; }
.hero-title h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem; margin: 0;
  letter-spacing: -.02em;
}
.hero-title small { color: var(--stone); font-size: .7rem; display: block; margin-top: 4px; font-family: var(--font-body); }
.hero-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; position: relative; }
.hero-metric {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 12px 10px; text-align: center;
  transition: all .2s;
}
.hero-metric:hover { background: rgba(201,168,76,.08); border-color: rgba(201,168,76,.2); }
.hero-metric .hm-icon { font-size: 1rem; margin-bottom: 6px; display: block; }
.hero-metric .hm-value { font-size: 1.4rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 3px; font-family: var(--font-display); }
.hero-metric .hm-value.hm-date { font-size: 1rem; }
.hero-metric .hm-label { font-size: .56rem; color: var(--stone); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.hero-metric .hm-sub { font-size: .68rem; color: var(--ash); margin-top: 3px; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
/* Legacy buttons — aligned on V1 design system (single source of truth) */
.btn-fh {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #0e0e0e; color: #fff; border: 1.5px solid #0e0e0e;
  border-radius: 8px; padding: 8px 16px;
  font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: 0;
  cursor: pointer; text-decoration: none; transition: .15s;
  min-height: 36px; white-space: nowrap; font-family: var(--font-body);
}
.btn-fh:hover { background: #262626; color: #fff; border-color: #262626; transform: none; box-shadow: none; }
.btn-fh:active { transform: none; }
.btn-fh:disabled, .btn-fh.disabled { opacity: .45; cursor: not-allowed; }
.btn-fh-sm { padding: 5px 10px; font-size: 11px; min-height: 28px; border-radius: 6px; }
.btn-fh-outline { background: #fff; color: #0e0e0e; border-color: #d4d4d4; }
.btn-fh-outline:hover { background: #fafafa; color: #0e0e0e; border-color: #0e0e0e; box-shadow: none; }
@media (max-width: 640px) {
  .btn-fh { min-height: 44px; padding: 10px 18px; font-size: 14px; }
  .btn-fh-sm { min-height: 36px; padding: 7px 12px; font-size: 12px; }
}

/* Bootstrap overrides */
.btn-primary { background: var(--obsidian) !important; border-color: var(--obsidian) !important; color: var(--white) !important; font-family: var(--font-body); font-weight: 600; border-radius: 8px !important; }
.btn-primary:hover { background: var(--ink) !important; }
.btn-success { background: var(--success) !important; border-color: var(--success) !important; color: var(--white) !important; border-radius: 8px !important; font-family: var(--font-body); font-weight: 600; }
.btn-outline-primary { color: var(--ink) !important; border-color: var(--cloud) !important; background: var(--white) !important; border-radius: 8px !important; font-size: .78rem !important; font-family: var(--font-body); }
.btn-outline-primary:hover { background: var(--ivory) !important; color: var(--ink) !important; border-color: var(--mist) !important; }
.btn-outline-secondary { color: var(--stone) !important; border-color: var(--cloud) !important; background: var(--white) !important; border-radius: 8px !important; font-size: .78rem !important; }
.btn-outline-secondary:hover { background: var(--ivory) !important; color: var(--ink) !important; border-color: var(--mist) !important; }
.btn-outline-success { color: var(--success) !important; border-color: #b6dfc8 !important; background: var(--success-bg) !important; border-radius: 8px !important; font-size: .78rem !important; }
.btn-outline-danger { color: var(--danger) !important; border-color: #f0c0c0 !important; background: var(--danger-bg) !important; border-radius: 8px !important; font-size: .78rem !important; }
.btn-outline-danger:hover { background: var(--danger) !important; color: var(--white) !important; border-color: var(--danger) !important; }
.btn-sm { padding: 5px 12px !important; font-size: .75rem !important; }

/* ═══════════════════════════════════════════
   FORMS
═══════════════════════════════════════════ */
.form-control, .form-select {
  border: 1.5px solid var(--cloud) !important;
  border-radius: 7px !important;
  font-size: .8rem !important;
  padding: 7px 12px !important;
  background: var(--white) !important;
  color: var(--ink) !important;
  transition: all .18s !important;
  font-family: var(--font-body) !important;
  box-shadow: none !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--obsidian) !important;
  box-shadow: 0 0 0 3px rgba(10,10,10,.06) !important;
  outline: none !important;
}
.form-label {
  font-size: .72rem; font-weight: 600;
  color: var(--ash); margin-bottom: 3px;
  letter-spacing: .02em; display: block;
}
.form-text { font-size: .68rem; color: var(--silver); margin-top: 3px; }

/* ═══════════════════════════════════════════
   MISC COMPONENTS
═══════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 64px 24px; color: var(--silver);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 16px; display: block; opacity: .4; }

/* Timeline */
.timeline { display: flex; gap: 0; margin-bottom: 24px; }
.tl-step { flex: 1; text-align: center; position: relative; }
.tl-step::before { content: ''; position: absolute; top: 14px; left: 50%; right: -50%; height: 1.5px; background: var(--cloud); z-index: 0; }
.tl-step:last-child::before { display: none; }
.tl-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ivory); border: 1.5px solid var(--cloud);
  margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; position: relative; z-index: 1; color: var(--stone);
  transition: all .2s;
}
.tl-dot.done { background: var(--obsidian); color: var(--white); border-color: var(--obsidian); }
.tl-dot.active { background: var(--gold); color: var(--white); border-color: var(--gold-dark); box-shadow: 0 0 0 4px rgba(201,168,76,.15); }
.tl-label { font-size: .67rem; color: var(--stone); letter-spacing: .03em; }

/* ═══════════════════════════════════════════
   ADMIN LAYOUT
═══════════════════════════════════════════ */
.admin-sidebar {
  position: fixed; top: 0; left: 0;
  width: 248px; height: 100vh;
  background: var(--obsidian);
  display: flex; flex-direction: column;
  z-index: 100; overflow-y: auto;
  border-right: 1px solid var(--sb-border);
  scrollbar-width: thin;
  scrollbar-color: var(--smoke) transparent;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media(max-width: 1024px) {
  :root { --sb-width: 240px; }
}
@media(max-width: 768px) {
  :root { --sb-width: 0px; }
  #sidebar { transform: translateX(-264px); transition: transform .25s ease; }
  #sidebar.open { transform: translateX(0); }
  #main { margin-left: 0; }
  .hero-metrics { grid-template-columns: repeat(2,1fr); }
  .cc-grid { grid-template-columns: repeat(2,1fr); }
  .content { padding: 20px; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS & MICRO-INTERACTIONS
═══════════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.content > *:first-child { animation: fadeUp .2s ease both; }

/* Override fadeUp for toggle panels — animation breaks display:none toggling */
.no-animate { animation: none !important; opacity: 1 !important; }


/* Subtle row entrance */
.table-card tbody tr { animation: fadeIn .2s ease; }

/* ═══════════════════════════════════════════
   DIVIDER UTILITY
═══════════════════════════════════════════ */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .35; margin: 0;
}

/* ═══════════════════════════════════════════
   CONFIRM-PRICES — input + sticky bar
   Pilote : confirm_prices_controller.js
═══════════════════════════════════════════ */
.fh-confirm-price {
  width: 84px;
  padding: 6px 8px;
  border: 2px solid #c9a84c;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  background: #fffbeb;
  transition: border-color .15s, background .15s, box-shadow .15s;
  font-variant-numeric: tabular-nums;
}
.fh-confirm-price:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .25);
}
.fh-confirm-price.price-up   { border-color: #16a34a; background: #f0fdf4; color: #166534; }
.fh-confirm-price.price-down { border-color: #ea580c; background: #fff7ed; color: #9a3412; }

.fh-sticky-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 24px);
  width: min(720px, calc(100% - 24px));
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .06);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}
.fh-sticky-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.fh-sticky-bar__inner {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
}
.fh-sticky-bar__info {
  flex: 1;
  min-width: 0;
}
.fh-sticky-bar__label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #737373;
  margin-bottom: 1px;
}
.fh-sticky-bar__total {
  font-size: 1.25rem;
  font-weight: 900;
  color: #166534;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.fh-sticky-bar__sub {
  font-size: .72rem;
  color: #737373;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.fh-sticky-bar__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.fh-sticky-bar__btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.fh-sticky-bar__btn:active { transform: scale(.97); }
.fh-sticky-bar__btn--ghost {
  background: #f5f5f5;
  color: #0e0e0e;
}
.fh-sticky-bar__btn--ghost:hover { background: #e5e5e5; }
.fh-sticky-bar__btn--primary {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 1px 3px rgba(22, 163, 74, .3);
}
.fh-sticky-bar__btn--primary:hover { background: #15803d; }

@media (max-width: 640px) {
  .fh-sticky-bar {
    bottom: 10px;
    width: calc(100% - 16px);
    border-radius: 12px;
  }
  .fh-sticky-bar__inner { flex-wrap: wrap; padding: 10px 12px; gap: 10px; }
  .fh-sticky-bar__info { flex: 1 1 100%; }
  .fh-sticky-bar__actions { flex: 1 1 100%; }
  .fh-sticky-bar__btn { flex: 1; min-height: 44px; }
  .fh-sticky-bar__total { font-size: 1.1rem; }
}
