:root {
  --color-primary: #5C1A1A;
  --color-primary-dark: #3d1212;
  --color-primary-light: #7B2828;
  --color-accent: #C9A84C;
  --color-accent-light: #E8C96A;
  --color-bg: #F8F0E0;
  --color-bg-dark: #EFE3C8;
  --color-text: #2D1B00;
  --color-muted: #7a6a55;
  --color-surface: #ffffff;
  --color-stepper: #5C1A1A;
  --color-stepper-text: #fff;
  --radius-card: 14px;
  --shadow-card: 0 4px 6px rgba(92, 26, 26, 0.04), 0 12px 32px rgba(92, 26, 26, 0.10);
  --app-max: 480px;
  --bottom-nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

.portal-body {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(201, 168, 76, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(92, 26, 26, 0.06) 0%, transparent 45%),
    linear-gradient(165deg, var(--color-bg) 0%, var(--color-bg-dark) 100%);
  min-height: 100dvh;
}

.portal-app {
  max-width: var(--app-max);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  box-shadow: 0 0 40px rgba(92, 26, 26, 0.08);
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.portal-brand { display: flex; align-items: center; gap: 12px; }
.portal-brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  color: var(--color-primary-dark);
  font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.portal-brand-mark-lg { width: 64px; height: 64px; font-size: 1.1rem; border-radius: 14px; }
.portal-brand-name { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.portal-brand-tag { font-size: 0.7rem; opacity: 0.85; }
.portal-user { font-size: 0.85rem; opacity: 0.9; }

.portal-main {
  flex: 1;
  padding: 16px 16px calc(var(--bottom-nav-h) + 16px);
  overflow-y: auto;
  background: transparent;
}

.portal-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: var(--app-max);
  height: var(--bottom-nav-h);
  display: flex;
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(201, 168, 76, 0.35);
  z-index: 30;
}
.portal-bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-size: 0.65rem; color: var(--color-muted); text-decoration: none;
}
.portal-bottom-nav a i { font-size: 1.1rem; }
.portal-bottom-nav a.active { color: var(--color-primary); font-weight: 600; }

.btn-portal-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
}
.btn-portal-primary:hover, .btn-portal-primary:focus {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: #fff;
}
.btn-portal-outline {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: 10px;
  background: transparent;
}
.btn-portal-outline:hover { background: rgba(92, 26, 26, 0.06); color: var(--color-primary); }

.portal-auth-body { display: flex; align-items: center; justify-content: center; padding: 24px; }
.portal-auth-wrap { width: 100%; max-width: 400px; }
.portal-auth-card {
  background: var(--color-surface); border-radius: var(--radius-card);
  padding: 32px 24px; box-shadow: var(--shadow-card);
}
.portal-auth-brand { text-align: center; margin-bottom: 24px; }
.portal-auth-brand h1 { color: var(--color-primary); font-size: 1.5rem; margin: 12px 0 4px; }
.portal-auth-brand p { margin: 0; color: var(--color-muted); font-size: 0.9rem; }
.portal-auth-sub { font-size: 0.8rem !important; margin-top: 4px !important; }
.portal-login-hint { font-size: 0.8rem; color: var(--color-muted); text-align: center; }

.portal-hero-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff; border-radius: var(--radius-card); padding: 20px;
  margin-bottom: 16px; box-shadow: var(--shadow-card);
}
.portal-hero-card--dashboard { padding: 22px 20px 20px; }
.portal-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.portal-hero-eyebrow {
  margin: 0 0 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0.85;
}
.portal-hero-card h2 { font-size: 1.35rem; margin: 0 0 4px; font-weight: 700; }
.portal-hero-store { margin: 0; font-size: 0.88rem; opacity: 0.9; }
.portal-hero-sub { margin: 0 0 16px; font-size: 0.85rem; line-height: 1.45; opacity: 0.92; }
.portal-hero-mark {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201, 168, 76, 0.25); color: var(--color-accent);
  font-weight: 800; font-size: 0.85rem;
}
.portal-hero-cta { width: 100%; }
.portal-hero-card .btn-portal-primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-primary-dark); }

.portal-action-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px;
}
.portal-action-card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px;
  background: var(--color-surface); border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, 0.28); text-decoration: none; color: inherit;
  box-shadow: 0 2px 10px rgba(92, 26, 26, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.portal-action-card:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(92, 26, 26, 0.08); color: inherit; }
.portal-action-card--primary {
  background: linear-gradient(145deg, rgba(92, 26, 26, 0.06), rgba(201, 168, 76, 0.12));
  border-color: rgba(92, 26, 26, 0.2);
}
.portal-action-card--accent {
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.18), rgba(248, 240, 224, 0.9));
}
.portal-action-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(92, 26, 26, 0.08); color: var(--color-primary); font-size: 0.9rem;
}
.portal-action-card--primary .portal-action-icon { background: var(--color-primary); color: #fff; }
.portal-action-label { font-weight: 700; font-size: 0.92rem; color: var(--color-primary); }
.portal-action-hint { font-size: 0.75rem; color: var(--color-muted); line-height: 1.3; }

.portal-metrics-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px;
}
.portal-metric-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 12px 8px; background: var(--color-surface);
  border-radius: 12px; border: 1px solid rgba(201, 168, 76, 0.22);
}
.portal-metric-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.portal-metric-icon--gold { background: rgba(201, 168, 76, 0.25); color: var(--color-primary); }
.portal-metric-icon--maroon { background: rgba(92, 26, 26, 0.1); color: var(--color-primary); }
.portal-metric-icon--cream { background: rgba(248, 240, 224, 0.9); color: var(--color-primary); }
.portal-metric-label { font-size: 0.68rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.portal-metric-value { font-size: 0.95rem; font-weight: 700; color: var(--color-primary); line-height: 1.2; }

.portal-panel {
  background: var(--color-surface); border-radius: 14px; padding: 14px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  box-shadow: 0 2px 10px rgba(92, 26, 26, 0.04);
}
.portal-panel .portal-section-head h3 { font-size: 0.95rem; display: flex; align-items: center; }
.portal-panel .portal-section-head h3 i { color: var(--color-accent); font-size: 0.85rem; }

.portal-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.portal-stat-card {
  background: var(--color-surface); border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 12px; padding: 14px;
}
.portal-stat-label { font-size: 0.75rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.portal-stat-value { font-size: 1.15rem; font-weight: 700; color: var(--color-primary); margin-top: 4px; }

.portal-section { margin-bottom: 24px; }
.portal-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.portal-section-head h3 { font-size: 1rem; margin: 0; color: var(--color-primary); }
.portal-section-head a { font-size: 0.85rem; color: var(--color-primary); text-decoration: none; }
.portal-page-title { font-size: 1.25rem; color: var(--color-primary); margin: 0 0 16px; }
.portal-subtitle { font-size: 0.95rem; color: var(--color-primary); margin: 20px 0 10px; }
.portal-back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); text-decoration: none; font-size: 0.9rem; margin-bottom: 8px; }
.portal-empty { color: var(--color-muted); font-size: 0.9rem; }

.portal-card-list { display: flex; flex-direction: column; gap: 10px; }
.portal-list-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--color-surface); border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.25); text-decoration: none; color: inherit;
  box-shadow: 0 2px 8px rgba(92, 26, 26, 0.04);
}
.portal-list-card-static { pointer-events: none; }
.portal-list-card--rich { align-items: flex-start; }
.portal-list-card-main { flex: 1; min-width: 0; }
.portal-list-card-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.portal-list-action { font-size: 0.72rem; font-weight: 600; color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.04em; }
.portal-list-card-row { padding: 0; overflow: hidden; }
.portal-list-card-link {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex: 1; padding: 14px 16px; text-decoration: none; color: inherit;
}
.portal-list-edit-btn { margin: 8px 12px 8px 0; flex-shrink: 0; white-space: nowrap; }
.portal-list-meta { font-size: 0.8rem; color: var(--color-muted); margin-top: 2px; }
.portal-list-amount { font-weight: 700; color: var(--color-primary); white-space: nowrap; }

.portal-detail-card {
  background: var(--color-surface); border-radius: 12px; padding: 4px 16px;
  border: 1px solid rgba(201, 168, 76, 0.25); margin-bottom: 16px;
}
.portal-detail-row {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  font-size: 0.9rem;
}
.portal-detail-row:last-child { border-bottom: none; }

.badge-status { text-transform: capitalize; font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: rgba(201,168,76,0.2); }
.badge-draft { background: rgba(201, 168, 76, 0.28); color: var(--color-primary-dark); }
.badge-confirmed { background: rgba(92,26,26,0.12); color: var(--color-primary); }
.badge-cancelled { background: rgba(0,0,0,0.08); color: var(--color-muted); }
.badge-pay-paid { background: rgba(92,26,26,0.12); color: var(--color-primary); }
.badge-pay-unpaid { background: rgba(201, 168, 76, 0.28); color: var(--color-primary-dark); }
.badge-pay-partial { background: rgba(201, 168, 76, 0.18); color: var(--color-primary); }

.portal-page-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
}
.portal-page-head .portal-page-title { margin-bottom: 0; }
.portal-edit-btn { flex-shrink: 0; white-space: nowrap; }
.portal-alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: 10px; font-size: 0.85rem; margin-bottom: 14px; line-height: 1.4;
}
.portal-alert-info {
  background: rgba(201, 168, 76, 0.18); color: var(--color-primary-dark);
  border: 1px solid rgba(201, 168, 76, 0.35);
}
.portal-alert i { margin-top: 2px; color: var(--color-primary); }
.portal-filter-hint { font-size: 0.85rem; color: var(--color-muted); margin: -8px 0 14px; }
.badge-draft { background: rgba(201,168,76,0.25); }

/* Order screen — Swiggy-style with Aromi theme */
.portal-order-body { background: var(--color-bg); }
.portal-order-app {
  max-width: var(--app-max); margin: 0 auto; min-height: 100dvh;
  background: var(--color-bg);
  position: relative;
}
.portal-order-app--browse {
  display: flex; flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}
.portal-order-app--cart {
  display: block;
  height: auto;
  overflow: visible;
  min-height: 100dvh;
}
.order-browse-view {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0;
}

.order-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--color-primary); color: #fff;
  position: sticky; top: 0; z-index: 25;
  transition: padding 0.2s ease;
}
.order-header--compact { padding: 8px 16px; }
.order-header--compact .order-header-text p { display: none; }
.order-header--compact .order-header-text h1 { font-size: 0.9rem; }
.order-back {
  background: none; border: none; color: #fff; font-size: 1.1rem; padding: 8px;
}
.order-header-text { flex: 1; min-width: 0; }
.order-header-text h1 { margin: 0; font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-header-text p { margin: 0; font-size: 0.75rem; opacity: 0.85; }

.order-search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--color-bg-dark);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  position: sticky; top: 52px; z-index: 24;
}
.order-search-icon { color: var(--color-muted); font-size: 0.9rem; flex-shrink: 0; }
.order-search-input {
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 10px;
  background: var(--color-surface);
  font-size: 0.9rem;
  padding: 8px 12px;
}
.order-search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
}

.order-categories {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  scrollbar-width: none; position: sticky; top: 104px; z-index: 20;
}
.order-categories--searching { opacity: 0.55; }
.order-categories::-webkit-scrollbar { display: none; }
.order-cat-chip {
  flex-shrink: 0; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid rgba(92,26,26,0.25); background: var(--color-surface);
  font-size: 0.85rem; font-weight: 500; color: var(--color-text);
  cursor: pointer; transition: all 0.15s ease;
}
.order-cat-chip.active {
  background: var(--color-primary); border-color: var(--color-primary); color: #fff;
}

.order-products-wrap {
  flex: 1; overflow-x: hidden; overflow-y: auto; touch-action: pan-y;
  padding-bottom: 100px;
  background: var(--color-bg);
  -webkit-overflow-scrolling: touch;
}
.order-products { padding: 8px 0; min-height: 200px; }

.order-product-card {
  padding: 14px 16px;
  background: var(--color-bg);
}
.order-product-block {
  border-bottom: 2px solid rgba(92, 26, 26, 0.2);
}
.order-product-card--loose {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.14) 0%, var(--color-bg) 28%);
  border-left: 6px solid var(--color-accent);
}
.order-product-card--packed {
  background: linear-gradient(90deg, rgba(92, 26, 26, 0.06) 0%, var(--color-bg) 24%);
}
.order-product-info { flex: 1; min-width: 0; }
.order-product-pack {
  display: flex; justify-content: flex-start; align-items: center;
  min-width: 0; padding: 0;
}
.order-product-pack .order-badge-pack { white-space: nowrap; }
.order-product-name { font-weight: 600; font-size: 0.95rem; color: var(--color-text); margin: 0 0 6px; }
.order-product-card--packed .order-product-name {
  font-weight: 400;
  margin-left: 8px;
}
.order-product-card--loose .order-product-name { font-weight: 600; }
.order-product-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.order-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  padding: 3px 8px; border-radius: 6px; line-height: 1.3;
}
.order-badge-loose {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.order-badge-quality {
  background: rgba(92, 26, 26, 0.08);
  color: var(--color-primary);
}
.order-badge-pack {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  box-shadow: 0 1px 4px rgba(92, 26, 26, 0.2);
}
.order-product-group--packed .order-badge-pack {
  font-size: 0.85rem;
  padding: 7px 14px;
  min-width: 64px;
  text-align: center;
}

.order-product-actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.order-action-col {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; min-width: 72px;
}
.order-price-col {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 1px; min-width: 52px;
}
.order-product-price {
  font-size: 0.88rem; font-weight: 700; color: var(--color-primary);
  text-align: right; line-height: 1.2;
}
.order-line-total {
  font-size: 0.68rem; font-weight: 700; color: var(--color-primary-light);
  line-height: 1; white-space: nowrap; text-align: center;
}
.order-price-unit { font-size: 0.72rem; font-weight: 500; color: var(--color-muted); }

.order-search-section { margin-bottom: 8px; }
.order-search-cat {
  margin: 0; padding: 10px 16px 6px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--color-primary);
  background: rgba(201, 168, 76, 0.12);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.order-price-pack {
  display: block; font-size: 0.62rem; font-weight: 500; color: var(--color-muted);
  line-height: 1.2; margin-top: 1px;
}

.order-product-group--packed {
  background: linear-gradient(90deg, rgba(92, 26, 26, 0.08) 0%, var(--color-bg) 24%);
  border-left: 6px solid var(--color-primary);
}
.order-product-group--packed .order-product-card--variant:first-child {
  padding-top: 12px;
}
.order-product-name-row {
  display: flex; align-items: center; gap: 8px;
}
.order-in-cart-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent); flex-shrink: 0;
  opacity: 0; transition: opacity 0.15s ease;
}
.order-product-card--in-cart .order-in-cart-dot {
  opacity: 1;
}
.order-product-card--variant {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(92, 26, 26, 0.1);
  border-left: none;
  padding: 8px 16px 10px 18px; background: transparent;
}
.order-product-card--variant:last-child {
  padding-bottom: 14px;
  border-bottom: none;
}
.order-product-card--variant .order-product-pack {
  min-width: 72px;
}
.order-product-card--variant .order-product-actions {
  justify-content: flex-end;
}

.order-quick-actions { padding: 10px 16px 0; }
.order-reorder-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 10px 14px; border-radius: 10px;
  border: 1.5px dashed rgba(201, 168, 76, 0.6);
  background: rgba(201, 168, 76, 0.12); color: var(--color-primary);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.order-reorder-btn i { color: var(--color-accent); }
.order-reorder-meta {
  margin-left: auto; font-size: 0.72rem; font-weight: 500;
  color: var(--color-muted);
}

.order-search-empty {
  padding: 36px 20px; text-align: center; color: var(--color-muted);
}
.order-search-empty-icon { font-size: 2rem; color: var(--color-accent); margin-bottom: 8px; }
.order-search-empty p { margin: 0 0 4px; color: var(--color-primary); font-weight: 600; }
.order-search-empty-sub { font-size: 0.82rem; margin-bottom: 10px !important; font-weight: 400 !important; }
.order-search-hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.order-search-hint {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: var(--color-surface); color: var(--color-primary);
  font-size: 0.8rem; cursor: pointer;
}

.order-pull-hint {
  text-align: center; font-size: 0.78rem; color: var(--color-primary);
  padding: 6px; background: rgba(201, 168, 76, 0.15);
}

.order-weight-presets {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.order-weight-preset {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.45);
  background: rgba(201, 168, 76, 0.12);
  color: var(--color-primary); font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
}
.order-weight-preset:hover { background: rgba(201, 168, 76, 0.28); }

.order-qty-add {
  min-width: 72px; min-height: 44px; height: 44px; border-radius: 8px;
  border: 1.5px solid var(--color-primary); background: var(--color-surface);
  color: var(--color-primary); font-weight: 700; font-size: 0.78rem;
  cursor: pointer; flex-shrink: 0;
}
.order-qty-stepper {
  display: flex; align-items: center; height: 44px; border-radius: 8px;
  background: var(--color-stepper); color: var(--color-stepper-text);
  overflow: hidden; min-width: 72px; flex-shrink: 0;
}
.order-qty-stepper button {
  width: 28px; height: 100%; border: none; background: transparent;
  color: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer;
}
.order-qty-stepper span { flex: 1; text-align: center; font-weight: 700; font-size: 0.85rem; }

.order-loose-kg {
  font-size: 0.85rem; font-weight: 700; color: var(--color-primary);
  background: rgba(201, 168, 76, 0.25);
  padding: 8px 12px; border-radius: 8px;
  white-space: nowrap; border: none; cursor: pointer;
  min-width: 72px; min-height: 44px; text-align: center;
}
.order-loose-kg:hover { background: rgba(201, 168, 76, 0.38); }
.order-loose-remove {
  border: none; background: none; color: var(--color-muted);
  font-size: 0.72rem; cursor: pointer; padding: 0;
}

.order-weight-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 70;
}
.order-weight-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(100% - 32px); max-width: 360px;
  background: var(--color-bg-dark); border-radius: 16px;
  padding: 20px; z-index: 75;
  box-shadow: var(--shadow-card);
}
.order-weight-title { margin: 0 0 4px; font-size: 1.1rem; color: var(--color-primary); }
.order-weight-product { margin: 0 0 16px; font-size: 0.9rem; color: var(--color-muted); }
.order-weight-hint { margin: 8px 0 0; font-size: 0.8rem; color: var(--color-muted); }
.order-weight-actions {
  display: flex; gap: 10px; margin-top: 16px;
}
.order-weight-actions .btn { flex: 1; }

.order-sheet-line--loose .order-sheet-loose-qty {
  font-weight: 700; color: var(--color-primary);
  font-size: 0.9rem; white-space: nowrap;
  background: rgba(201, 168, 76, 0.22); border: none;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.order-sheet-line--loose .order-sheet-loose-qty:hover {
  background: rgba(201, 168, 76, 0.35);
}
.order-cart-delete {
  border: none; background: none; color: var(--color-muted);
  padding: 8px; font-size: 0.95rem; cursor: pointer;
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; flex-shrink: 0;
}
.order-cart-delete:hover,
.order-cart-delete:focus-visible {
  color: #a82828; background: rgba(168, 40, 40, 0.08);
}

.order-cart-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-max);
  padding: 10px 16px 12px; background: var(--color-primary); color: #fff;
  box-shadow: 0 -4px 20px rgba(92,26,26,0.2); z-index: 40;
}
.order-cart-bar--bump { animation: order-cart-bump 0.35s ease; }
@keyframes order-cart-bump {
  0%, 100% { transform: translateX(-50%) scale(1); }
  40% { transform: translateX(-50%) scale(1.02); }
}
.order-cart-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.order-cart-summary { display: flex; flex-direction: column; font-size: 0.8rem; }
.order-cart-summary strong { font-size: 1.1rem; }
.btn-portal-cart {
  background: var(--color-accent); border: none; color: var(--color-primary-dark);
  font-weight: 700; padding: 10px 20px; border-radius: 8px;
  min-height: 44px;
}
.order-qty-add--pop { animation: order-add-pop 0.3s ease; }
@keyframes order-add-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); background: rgba(201, 168, 76, 0.35); }
  100% { transform: scale(1); }
}

.order-cart-view {
  background: var(--color-bg);
  min-height: 100dvh;
}
.order-cart-page {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
.order-cart-place-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-max);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 -4px 20px rgba(92, 26, 26, 0.1);
  z-index: 30;
}
.order-cart-place-bar .btn-portal-primary {
  font-weight: 700; letter-spacing: 0.01em;
}
.order-cart-header .order-back {
  cursor: pointer;
}
.order-sheet-lines { padding: 8px 16px; }
.order-sheet-line {
  padding: 14px 0;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.order-sheet-line-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.order-sheet-line-name {
  flex: 1; min-width: 0;
  font-size: 0.92rem; font-weight: 600; color: var(--color-text);
  line-height: 1.3;
}
.order-sheet-line-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.order-sheet-line-sub { font-size: 0.8rem; color: var(--color-muted); }
.order-sheet-line-total {
  font-size: 0.88rem; font-weight: 700; color: var(--color-primary);
  white-space: nowrap; line-height: 1.2; flex-shrink: 0;
}
.order-sheet-line-controls {
  display: flex; align-items: center; justify-content: flex-start;
}
.order-sheet-line-head .order-cart-delete {
  margin: -6px -6px -6px 0;
  min-width: 40px; min-height: 40px;
  padding: 6px;
}
.order-sheet-foot {
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(201,168,76,0.2);
  background: var(--color-bg-dark);
}
.order-sheet-section-totals {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 8px 16px; font-size: 0.78rem; color: var(--color-muted);
  border-top: 1px solid rgba(201,168,76,0.12);
}
.order-sheet-section-totals span {
  padding: 4px 10px; border-radius: 6px;
  background: rgba(201, 168, 76, 0.12); color: var(--color-primary);
  font-weight: 600;
}
.order-sheet-gst-row { font-size: 0.9rem; color: var(--color-muted); }
.order-sheet-gst-row strong { font-weight: 600; color: var(--color-primary); }
.order-sheet-grand-total { font-size: 1.05rem; font-weight: 700; margin-top: 4px; }
.order-sheet-gst-note {
  font-size: 0.72rem; color: var(--color-muted); text-align: center;
  margin: 8px 0 0; line-height: 1.35;
}
.order-sheet-total-row {
  display: flex; justify-content: space-between; margin-bottom: 12px;
  font-size: 1rem; color: var(--color-primary);
}
.order-sheet-hint { font-size: 0.75rem; color: var(--color-muted); text-align: center; margin: 10px 0 0; }

.order-toast {
  position: fixed; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  background: var(--color-primary); color: #fff; padding: 12px 20px;
  border-radius: 8px; font-size: 0.9rem; z-index: 60;
  box-shadow: var(--shadow-card);
}

.order-empty-cat { padding: 40px 20px; text-align: center; color: var(--color-muted); }
