:root {
  --saffron:       #B05C1A;
  --saffron-light: #FDEBD0;
  --saffron-bg:    #FFF7ED;
  --navy:          #1A3A5C;
  --navy-light:    #D4EAFF;
  --gold:          #F59E0B;
  --dark-text:     #1C1C2E;
}

body {
  background-color: var(--saffron-bg);
  color: var(--dark-text);
  font-family: 'Segoe UI', sans-serif;
}

/* ── Navbar ── */
.navbar-milaboard {
  background-color: var(--saffron);
}
.navbar-milaboard .navbar-brand,
.navbar-milaboard .nav-link {
  color: #fff !important;
}
.navbar-milaboard .nav-link:hover {
  color: var(--saffron-light) !important;
}

/* ── Buttons ── */
.btn-milaboard {
  background-color: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}
.btn-milaboard:hover {
  background-color: #8A4412;
  border-color: #8A4412;
  color: #fff;
}
.btn-navy {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background-color: #0F2540;
  color: #fff;
}

/* ── Price display ── */
.price-value {
  color: var(--gold);
  font-weight: 600;
}
.price-old {
  text-decoration: line-through;
  color: #aaa;
  font-size: 0.85rem;
}
.discount-badge {
  background: var(--saffron-light);
  color: var(--saffron);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

/* ── Stale price warning ── */
.stale-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ── Shop avatar ── */
.shop-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: var(--saffron);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.shop-avatar-navy {
  background-color: var(--navy);
}

/* ── Cards ── */
.card-milaboard {
  border: 0.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.card-header-saffron {
  background-color: var(--saffron);
  color: #fff;
  border-radius: 12px 12px 0 0 !important;
}
.card-header-navy {
  background-color: var(--navy);
  color: #fff;
  border-radius: 12px 12px 0 0 !important;
}

/* ── Flash deal timer ── */
.deal-timer {
  background-color: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
}
.deal-timer .time-value {
  font-size: 1.2rem;
  font-weight: 600;
}

/* ── Updated tag ── */
.updated-today {
  background: var(--saffron-light);
  color: var(--saffron);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

/* ── Section headings ── */
.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── Stat card ── */
.stat-card {
  background: #fff;
  border: 0.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.stat-number {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--saffron);
}
.stat-label {
  font-size: 0.72rem;
  color: #888;
  margin-top: 2px;
}

/* ── Today's top shops slider ── */
.top-shop-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 0.5px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--saffron);
  z-index: 10;
  line-height: 1;
  padding: 0;
}
.top-shop-arrow:hover {
  background: var(--saffron-light);
}
.top-shop-card {
  background: #fff;
  border-radius: 12px;
  border: 0.5px solid #e5e7eb;
  overflow: hidden;
  width: calc(25% - 11px);
  min-width: 200px;
}
.top-shop-header {
  background: var(--saffron);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-shop-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.top-shop-name {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-shop-loc {
  font-size: 9px;
  color: rgba(255,255,255,0.7);
  margin-top: 1px;
}
.top-shop-cat-badge {
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 8px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.top-shop-prices {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e5c8a8 transparent;
}
.top-shop-prices::-webkit-scrollbar {
  width: 4px;
}
.top-shop-prices::-webkit-scrollbar-thumb {
  background: #e5c8a8;
  border-radius: 4px;
}
.top-shop-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border-bottom: 0.5px solid #f5f5f5;
}
.top-shop-price-row:last-child {
  border-bottom: none;
}
.top-shop-product-name {
  font-size: 10px;
  color: var(--dark-text);
}
.top-shop-product-unit {
  font-size: 8px;
  color: #aaa;
}
.top-shop-price-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
.top-shop-view-btn {
  display: block;
  margin: 8px 12px 10px;
  background: var(--saffron-light);
  border-radius: 7px;
  padding: 7px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--saffron);
  text-decoration: none;
}
.top-shop-view-btn:hover {
  background: var(--saffron);
  color: #fff;
}
.top-shop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5e7eb;
  cursor: pointer;
  transition: background 0.2s;
}
.top-shop-dot.active {
  background: var(--saffron);
}

/* Mobile — full width cards */
@media (max-width: 768px) {
  .top-shop-card {
    width: calc(100vw - 60px);
    min-width: calc(100vw - 60px);
  }
}


.order-item-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-bottom: 0.5px solid #f9f9f9;
}
.order-item-row:last-child {
  border-bottom: none;
}
.order-fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--saffron);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(176,92,26,0.3);
  z-index: 999;
  display: none;
}

/* Mobile bottom bar */
.order-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--saffron);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 14px 14px 0 0;
}





/* Modal overlay */
.order-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.order-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}