/* ==========================================================================
   EPH design system — shared by customer, rider and back-office portals.
   Layered on Bootstrap 5.3 (assets/css/bootstrap.min.css).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Brand */
  --eph-primary: #0E7C66;
  --eph-primary-600: #0B6654;
  --eph-primary-700: #08513F;
  --eph-primary-50: #E8F5F1;
  --eph-primary-100: #CDEBE2;
  --eph-secondary: #1F3A5F;
  --eph-secondary-50: #EBF0F6;
  --eph-accent: #F59E0B;
  --eph-accent-50: #FEF3E2;
  /* Status */
  --eph-success: #16A34A;
  --eph-warning: #D97706;
  --eph-danger: #DC2626;
  --eph-info: #0284C7;
  /* Neutrals */
  --eph-ink: #0F172A;
  --eph-text: #334155;
  --eph-muted: #64748B;
  --eph-line: #E2E8F0;
  --eph-soft: #F1F5F9;
  --eph-bg: #F6F8FA;
  --eph-surface: #FFFFFF;
  /* Shape & depth */
  --eph-radius-sm: 8px;
  --eph-radius: 12px;
  --eph-radius-lg: 18px;
  --eph-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --eph-shadow: 0 4px 16px rgba(15, 23, 42, .07);
  --eph-shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
  --eph-header-h: 60px;
  --eph-bottom-nav-h: 64px;
  --eph-safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Bootstrap bridges */
  --bs-primary: var(--eph-primary);
  --bs-primary-rgb: 14, 124, 102;
  --bs-secondary: var(--eph-secondary);
  --bs-secondary-rgb: 31, 58, 95;
  --bs-success-rgb: 22, 163, 74;
  --bs-warning-rgb: 217, 119, 6;
  --bs-danger-rgb: 220, 38, 38;
  --bs-info-rgb: 2, 132, 199;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--eph-text);
  --bs-body-bg: var(--eph-bg);
  --bs-border-color: var(--eph-line);
  --bs-link-color: var(--eph-primary);
  --bs-link-color-rgb: 14, 124, 102;
  --bs-link-hover-color: var(--eph-primary-700);
  --bs-border-radius: var(--eph-radius-sm);
  --bs-border-radius-lg: var(--eph-radius);
  --bs-focus-ring-color: rgba(14, 124, 102, .25);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-size: .9375rem; line-height: 1.5; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--eph-ink); font-weight: 700; letter-spacing: -.01em; }
.text-muted { color: var(--eph-muted) !important; }
.text-ink { color: var(--eph-ink) !important; }
.text-primary { color: var(--eph-primary) !important; }
.bg-primary-soft { background: var(--eph-primary-50) !important; }
.bg-accent-soft { background: var(--eph-accent-50) !important; }
.bg-secondary-soft { background: var(--eph-secondary-50) !important; }
.fw-semibold { font-weight: 600 !important; }
.small-xs { font-size: .75rem; }
.tabular { font-variant-numeric: tabular-nums; }
.min-w-0 { min-width: 0; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--eph-primary); outline-offset: 2px; }

/* ---- Buttons --------------------------------------------------------------- */
.btn { font-weight: 600; border-radius: var(--eph-radius-sm); padding: .55rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-lg { padding: .8rem 1.25rem; font-size: 1rem; border-radius: var(--eph-radius); }
.btn-sm { padding: .35rem .7rem; }
.btn-primary { --bs-btn-bg: var(--eph-primary); --bs-btn-border-color: var(--eph-primary); --bs-btn-hover-bg: var(--eph-primary-600); --bs-btn-hover-border-color: var(--eph-primary-600); --bs-btn-active-bg: var(--eph-primary-700); --bs-btn-active-border-color: var(--eph-primary-700); --bs-btn-disabled-bg: var(--eph-primary); --bs-btn-disabled-border-color: var(--eph-primary); }
.btn-outline-primary { --bs-btn-color: var(--eph-primary); --bs-btn-border-color: var(--eph-primary); --bs-btn-hover-bg: var(--eph-primary); --bs-btn-hover-border-color: var(--eph-primary); --bs-btn-active-bg: var(--eph-primary-600); }
.btn-secondary { --bs-btn-bg: var(--eph-secondary); --bs-btn-border-color: var(--eph-secondary); --bs-btn-hover-bg: #172d4a; --bs-btn-hover-border-color: #172d4a; }
.btn-soft { background: var(--eph-primary-50); color: var(--eph-primary-700); border: 0; }
.btn-soft:hover { background: var(--eph-primary-100); color: var(--eph-primary-700); }
.btn-light { --bs-btn-bg: var(--eph-soft); --bs-btn-border-color: var(--eph-soft); --bs-btn-hover-bg: var(--eph-line); }
.btn-accent { background: var(--eph-accent); color: #fff; border: 0; }
.btn-accent:hover { background: #d98a06; color: #fff; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn-xl { min-height: 56px; font-size: 1.05rem; border-radius: var(--eph-radius); }

/* ---- Cards & surfaces -------------------------------------------------------- */
.card { border: 1px solid var(--eph-line); border-radius: var(--eph-radius); box-shadow: var(--eph-shadow-sm); }
.card-header { background: transparent; border-bottom-color: var(--eph-line); font-weight: 600; color: var(--eph-ink); }
.surface { background: var(--eph-surface); border-radius: var(--eph-radius); border: 1px solid var(--eph-line); }
.section { margin-bottom: 1.75rem; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.section-title h2 { font-size: 1.15rem; margin: 0; }
.section-title p { margin: .1rem 0 0; color: var(--eph-muted); font-size: .85rem; }
.section-title a { font-weight: 600; font-size: .875rem; white-space: nowrap; text-decoration: none; }

/* ---- Forms ---------------------------------------------------------------- */
.form-control, .form-select { border-radius: var(--eph-radius-sm); border-color: #CBD5E1; padding: .6rem .8rem; font-size: .9375rem; }
.form-control:focus, .form-select:focus { border-color: var(--eph-primary); box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.form-label { font-weight: 600; font-size: .85rem; color: var(--eph-ink); margin-bottom: .35rem; }
.form-text { color: var(--eph-muted); }
.form-check-input:checked { background-color: var(--eph-primary); border-color: var(--eph-primary); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--eph-muted); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.4rem; }
.option-card { display: block; position: relative; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card .option-body { border: 1.5px solid var(--eph-line); border-radius: var(--eph-radius); padding: .85rem 1rem; display: flex; gap: .75rem; align-items: center; background: #fff; transition: border-color .15s, background .15s; }
.option-card input:checked + .option-body { border-color: var(--eph-primary); background: var(--eph-primary-50); }
.option-card input:focus-visible + .option-body { outline: 2px solid var(--eph-primary); outline-offset: 2px; }
.option-card .option-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--eph-soft); display: grid; place-items: center; font-size: 1.2rem; color: var(--eph-primary); flex: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--eph-line); border-radius: 999px; background: #fff; }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.1rem; color: var(--eph-primary); }
.qty button:disabled { color: var(--eph-line); }
.qty input { width: 40px; border: 0; text-align: center; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- Badges & chips ------------------------------------------------------- */
.badge { font-weight: 600; letter-spacing: .01em; border-radius: 999px; padding: .35em .65em; }
.badge-soft-primary { background: var(--eph-primary-50); color: var(--eph-primary-700); }
.badge-soft-success { background: #DCFCE7; color: #166534; }
.badge-soft-warning { background: #FEF3C7; color: #92400E; }
.badge-soft-danger { background: #FEE2E2; color: #991B1B; }
.badge-soft-info { background: #E0F2FE; color: #075985; }
.badge-soft-secondary { background: var(--eph-soft); color: var(--eph-text); }
.rx-badge { background: #FEE2E2; color: #B91C1C; font-weight: 700; font-size: .7rem; border-radius: 6px; padding: .15rem .4rem; }
/* Horizontal chip scroller: swipe on touch, drag / wheel with a mouse (eph.js), fades show there is more. */
.chip-row { display: flex; flex-wrap: nowrap; gap: .5rem; overflow-x: auto; overflow-y: hidden; max-width: 100%; min-width: 0;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scroll-snap-type: x proximity;
    scrollbar-width: none; padding-bottom: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row > * { scroll-snap-align: start; }
.chip-row.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.chip-row.is-dragging a { pointer-events: none; }
.chip-row.fade-end { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.chip-row.fade-start { -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); }
.chip-row.fade-start.fade-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
@media (hover: hover) and (pointer: fine) { .chip-row { cursor: grab; scrollbar-width: thin; } .chip-row::-webkit-scrollbar { display: block; height: 4px; } .chip-row::-webkit-scrollbar-thumb { background: var(--eph-line); border-radius: 4px; } }
.chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--eph-line); color: var(--eph-text); font-weight: 600; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.chip.active, .chip:hover { background: var(--eph-primary); border-color: var(--eph-primary); color: #fff; }

/* ---- App header (customer / rider) ---------------------------------------- */
.app-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--eph-line); }
.app-header .bar { height: var(--eph-header-h); display: flex; align-items: center; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--eph-ink); font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; flex: none; }
.brand small { display: block; font-weight: 500; font-size: .7rem; color: var(--eph-muted); letter-spacing: 0; }
.header-search { flex: 1; position: relative; max-width: 560px; }
.header-search .form-control { border-radius: 999px; background: var(--eph-soft); border-color: transparent; padding-left: 2.5rem; height: 42px; }
.header-search .form-control:focus { background: #fff; }
.header-search > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--eph-muted); }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--eph-ink); font-size: 1.25rem; text-decoration: none; border: 0; background: transparent; }
.icon-btn:hover { background: var(--eph-soft); color: var(--eph-ink); }
.icon-btn .count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--eph-danger); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.suggest-box { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: var(--eph-radius); box-shadow: var(--eph-shadow-lg); border: 1px solid var(--eph-line); overflow: hidden; z-index: 1050; }
.suggest-box a { display: flex; gap: .75rem; align-items: center; padding: .6rem .85rem; text-decoration: none; color: var(--eph-text); }
.suggest-box a:hover, .suggest-box a.active { background: var(--eph-soft); }
.suggest-box img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--eph-soft); }

/* ---- Bottom navigation (mobile) ------------------------------------------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--eph-line); padding-bottom: var(--eph-safe-bottom); box-shadow: 0 -4px 16px rgba(15, 23, 42, .05); }
.bottom-nav .nav-inner { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--eph-bottom-nav-h); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--eph-muted); font-size: .7rem; font-weight: 600; position: relative; }
.bottom-nav a i { font-size: 1.35rem; line-height: 1; }
.bottom-nav a.active { color: var(--eph-primary); }
.bottom-nav a.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--eph-primary); }
.bottom-nav .count { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--eph-danger); color: #fff; font-size: .65rem; display: grid; place-items: center; padding: 0 4px; }
.has-bottom-nav { padding-bottom: calc(var(--eph-bottom-nav-h) + var(--eph-safe-bottom) + 12px); }
@media (min-width: 992px) {
  .bottom-nav { display: none; }
  .has-bottom-nav { padding-bottom: 0; }
}

/* ---- Sticky action bar (cart / checkout / product) ------------------------- */
.sticky-action { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1031; background: #fff; border-top: 1px solid var(--eph-line); padding: .75rem 1rem calc(.75rem + var(--eph-safe-bottom)); box-shadow: 0 -6px 20px rgba(15, 23, 42, .08); }
.sticky-action.above-nav { bottom: calc(var(--eph-bottom-nav-h) + var(--eph-safe-bottom)); padding-bottom: .75rem; }
.has-sticky-action { padding-bottom: 96px !important; }
@media (min-width: 992px) {
  .sticky-action.desktop-static { position: static; box-shadow: none; border: 0; padding: 0; }
  .has-sticky-action { padding-bottom: 1.5rem !important; }
  .sticky-action.above-nav { bottom: 0; }
}

/* ---- Hero / banners ------------------------------------------------------- */
.hero-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--eph-radius-lg); }
.hero-slider::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .hero-slider { grid-auto-columns: calc(50% - .375rem); } }
.banner { position: relative; scroll-snap-align: start; border-radius: var(--eph-radius-lg); overflow: hidden; min-height: 170px; padding: 1.4rem; display: flex; flex-direction: column; justify-content: center; color: #fff; text-decoration: none; isolation: isolate; }
.banner h3 { color: #fff; font-size: 1.35rem; margin-bottom: .35rem; max-width: 18ch; }
.banner p { margin: 0 0 .9rem; opacity: .92; max-width: 34ch; font-size: .9rem; }
.banner img.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.banner.theme-primary { background: linear-gradient(135deg, var(--eph-primary) 0%, var(--eph-primary-700) 100%); }
.banner.theme-secondary { background: linear-gradient(135deg, #24466f 0%, var(--eph-secondary) 100%); }
.banner.theme-accent { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.banner.theme-light { background: var(--eph-primary-50); color: var(--eph-ink); }
.banner.theme-light h3 { color: var(--eph-ink); }
.banner.has-image::after { background: linear-gradient(90deg, rgba(15, 23, 42, .65), rgba(15, 23, 42, .1)); }
.banner .btn { align-self: flex-start; background: #fff; color: var(--eph-ink); border: 0; }
.banner-deco { position: absolute; right: -20px; bottom: -30px; font-size: 9rem; opacity: .14; z-index: -1; line-height: 1; }

/* ---- Department tiles / categories ------------------------------------------ */
.dept-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .dept-tiles { grid-template-columns: repeat(4, 1fr); } }
.dept-tile { display: flex; gap: .75rem; align-items: center; padding: .9rem; border-radius: var(--eph-radius); background: #fff; border: 1px solid var(--eph-line); text-decoration: none; color: var(--eph-ink); font-weight: 700; }
.dept-tile i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.dept-tile small { display: block; font-weight: 500; color: var(--eph-muted); font-size: .75rem; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem .5rem; }
@media (min-width: 576px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 992px) { .cat-grid { grid-template-columns: repeat(8, 1fr); } }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; text-decoration: none; color: var(--eph-text); font-size: .75rem; font-weight: 600; line-height: 1.2; }
.cat-item .cat-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--eph-primary-50); color: var(--eph-primary); display: grid; place-items: center; font-size: 1.5rem; overflow: hidden; }
.cat-item .cat-icon.grocery { background: var(--eph-accent-50); color: #B45309; }
.cat-item .cat-icon img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Product cards ---------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 576px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1200px) { .product-grid.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.product-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: .75rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
.product-scroller::-webkit-scrollbar { display: none; }
@media (min-width: 576px) { .product-scroller { grid-auto-columns: 31%; } }
@media (min-width: 992px) { .product-scroller { grid-auto-columns: calc(20% - .6rem); } }
.product-card { position: relative; background: #fff; border: 1px solid var(--eph-line); border-radius: var(--eph-radius); overflow: hidden; display: flex; flex-direction: column; scroll-snap-align: start; transition: box-shadow .15s, transform .15s; }
@media (hover: hover) { .product-card:hover { box-shadow: var(--eph-shadow); } }
.product-card .thumb { position: relative; aspect-ratio: 1 / 1; background: #fff; display: block; padding: .5rem; border-bottom: 1px solid var(--eph-soft); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card .flags { position: absolute; top: .5rem; left: .5rem; display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; }
.product-card .flag-discount { background: var(--eph-danger); color: #fff; font-weight: 700; font-size: .7rem; padding: .15rem .45rem; border-radius: 6px; }
.product-card .fav { position: absolute; top: .4rem; right: .4rem; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--eph-muted); font-size: 1.05rem; box-shadow: var(--eph-shadow-sm); }
.product-card .fav.saved { color: var(--eph-danger); }
.product-card .body { padding: .65rem .7rem .75rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.product-card .name { color: var(--eph-ink); font-weight: 600; font-size: .85rem; line-height: 1.3; text-decoration: none; min-height: 2.6em; }
.product-card .meta { font-size: .72rem; color: var(--eph-muted); }
.product-card .price-row { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: .4rem; }
.price { color: var(--eph-ink); font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.price-old { color: var(--eph-muted); text-decoration: line-through; font-size: .75rem; font-weight: 500; }
.add-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--eph-primary); color: #fff; display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.add-btn:hover { background: var(--eph-primary-600); }
.add-btn:disabled { background: var(--eph-line); color: var(--eph-muted); }
.out-of-stock .thumb img { opacity: .45; filter: grayscale(.6); }
.stock-note { font-size: .72rem; font-weight: 600; color: var(--eph-danger); }

/* ---- Product page ------------------------------------------------------------ */
.gallery-main { aspect-ratio: 1 / 1; background: #fff; border-radius: var(--eph-radius-lg); border: 1px solid var(--eph-line); padding: 1rem; display: grid; place-items: center; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; margin-top: .6rem; }
.gallery-thumbs button { flex: none; width: 64px; height: 64px; border-radius: 10px; border: 1.5px solid var(--eph-line); background: #fff; padding: 4px; }
.gallery-thumbs button.active { border-color: var(--eph-primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.rx-notice { display: flex; gap: .75rem; padding: .85rem 1rem; border-radius: var(--eph-radius); background: #FEF2F2; color: #7F1D1D; border: 1px solid #FECACA; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--eph-line); font-size: .875rem; }
.info-list li span:first-child { color: var(--eph-muted); }

/* ---- Lists & rows -------------------------------------------------------------- */
.list-card { background: #fff; border: 1px solid var(--eph-line); border-radius: var(--eph-radius); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-bottom: 1px solid var(--eph-soft); text-decoration: none; color: var(--eph-text); }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--eph-soft); }
.list-row .lead-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--eph-primary-50); color: var(--eph-primary); display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.list-row .chev { margin-left: auto; color: var(--eph-muted); }
.cart-line { display: flex; gap: .85rem; padding: .9rem 1rem; border-bottom: 1px solid var(--eph-soft); }
.cart-line img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; border: 1px solid var(--eph-soft); background: #fff; flex: none; }

/* ---- Summary / totals -------------------------------------------------------- */
.totals { list-style: none; margin: 0; padding: 0; }
.totals li { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .9rem; }
.totals li.discount span:last-child { color: var(--eph-success); }
.totals li.grand { border-top: 1px dashed var(--eph-line); margin-top: .4rem; padding-top: .7rem; font-size: 1.1rem; font-weight: 800; color: var(--eph-ink); }

/* ---- Steps / timeline -------------------------------------------------------- */
.steps { display: flex; gap: .4rem; margin-bottom: 1rem; }
.steps .step { flex: 1; height: 4px; border-radius: 4px; background: var(--eph-line); }
.steps .step.done { background: var(--eph-primary); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.1rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: -2px; width: 2px; background: var(--eph-line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--eph-line); background: #fff; display: grid; place-items: center; font-size: .7rem; color: #fff; }
.timeline li.done .dot { background: var(--eph-primary); border-color: var(--eph-primary); }
.timeline li.done::before { background: var(--eph-primary); }
.timeline li.current .dot { border-color: var(--eph-primary); box-shadow: 0 0 0 4px var(--eph-primary-50); }
.timeline li.failed .dot { background: var(--eph-danger); border-color: var(--eph-danger); }
.timeline .t-title { font-weight: 600; color: var(--eph-ink); font-size: .9rem; }
.timeline li:not(.done):not(.current) .t-title { color: var(--eph-muted); font-weight: 500; }
.timeline .t-time { font-size: .75rem; color: var(--eph-muted); }

/* ---- Maps ---------------------------------------------------------------------- */
.map-box { height: 300px; border-radius: var(--eph-radius); overflow: hidden; border: 1px solid var(--eph-line); background: var(--eph-soft); position: relative; z-index: 0; }
.map-box.tall { height: 380px; }
@media (min-width: 992px) { .map-box.tall { height: 460px; } }
.map-center-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 500; font-size: 2.4rem; color: var(--eph-danger); pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); }
.map-tools { position: absolute; right: .6rem; bottom: .6rem; z-index: 500; display: flex; flex-direction: column; gap: .4rem; }
.map-tools .btn { box-shadow: var(--eph-shadow); }
.pin-marker { font-size: 1.9rem; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.pin-marker.store { color: var(--eph-secondary); }
.pin-marker.home { color: var(--eph-danger); }
.pin-marker.rider { color: var(--eph-primary); }

/* ---- Skeletons, empty states, toasts ----------------------------------------- */
.skeleton { background: linear-gradient(90deg, var(--eph-soft) 25%, #e8edf3 37%, var(--eph-soft) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--eph-muted); }
.empty-state i { font-size: 2.6rem; color: var(--eph-primary); background: var(--eph-primary-50); width: 76px; height: 76px; border-radius: 50%; display: inline-grid; place-items: center; margin-bottom: .85rem; }
.empty-state h3 { font-size: 1.05rem; color: var(--eph-ink); }
.toast-stack { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--eph-bottom-nav-h) + 16px + var(--eph-safe-bottom)); z-index: 1090; display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 992px) { .toast-stack { bottom: 24px; } }
.eph-toast { pointer-events: auto; display: flex; gap: .65rem; align-items: center; background: var(--eph-ink); color: #fff; padding: .75rem 1rem; border-radius: var(--eph-radius); box-shadow: var(--eph-shadow-lg); font-size: .875rem; animation: toast-in .2s ease-out; }
.eph-toast.success i { color: #4ADE80; }
.eph-toast.error i { color: #F87171; }
.eph-toast.warning i { color: #FBBF24; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.offline-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; background: #1E293B; color: #fff; text-align: center; font-size: .82rem; padding: .45rem 1rem; }
.install-banner { position: fixed; left: 1rem; right: 1rem; bottom: calc(var(--eph-bottom-nav-h) + 12px + var(--eph-safe-bottom)); z-index: 1040; background: #fff; border-radius: var(--eph-radius-lg); box-shadow: var(--eph-shadow-lg); border: 1px solid var(--eph-line); padding: .9rem 1rem; display: flex; gap: .85rem; align-items: center; }
@media (min-width: 992px) { .install-banner { left: auto; width: 380px; bottom: 24px; } }
.install-banner img { width: 44px; height: 44px; border-radius: 12px; }

/* ---- Bottom sheet (offcanvas-bottom) ------------------------------------------ */
.offcanvas-bottom.sheet { height: auto; max-height: 88vh; border-radius: var(--eph-radius-lg) var(--eph-radius-lg) 0 0; }
.offcanvas-bottom.sheet .offcanvas-header::before { content: ""; position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 2px; background: var(--eph-line); }
.offcanvas-bottom.sheet .offcanvas-body { padding-bottom: calc(1rem + var(--eph-safe-bottom)); }

/* ---- Account / profile ---------------------------------------------------------- */
.profile-head { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border-radius: var(--eph-radius-lg); background: linear-gradient(135deg, var(--eph-primary), var(--eph-primary-700)); color: #fff; }
.profile-head h1, .profile-head .h5 { color: #fff; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--eph-soft); border: 2px solid rgba(255, 255, 255, .6); flex: none; }
.avatar-sm { width: 36px; height: 36px; border-width: 1px; }
.avatar-lg { width: 96px; height: 96px; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.stat-tile { background: #fff; border: 1px solid var(--eph-line); border-radius: var(--eph-radius); padding: .8rem; text-decoration: none; color: var(--eph-text); }
.stat-tile b { display: block; font-size: 1.3rem; color: var(--eph-ink); }
.stat-tile span { font-size: .75rem; color: var(--eph-muted); }

/* ---- Camera / image capture ------------------------------------------------------ */
.capture-box { border: 2px dashed #CBD5E1; border-radius: var(--eph-radius); padding: 1rem; text-align: center; background: #fff; position: relative; }
.capture-box.has-image { border-style: solid; border-color: var(--eph-primary); }
.capture-box .preview { max-height: 260px; border-radius: 10px; margin: 0 auto .75rem; display: block; object-fit: contain; }
.capture-box .capture-actions { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.capture-box .size-note { font-size: .75rem; color: var(--eph-muted); margin-top: .5rem; }

/* ---- Face scan -------------------------------------------------------------------- */
.face-scan { position: relative; border-radius: var(--eph-radius-lg); overflow: hidden; background: #0B1220; aspect-ratio: 3 / 4; max-width: 360px; margin: 0 auto; }
.face-scan video, .face-scan canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.face-scan .oval { position: absolute; left: 50%; top: 46%; width: 62%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border: 3px dashed rgba(255, 255, 255, .7); border-radius: 50%; box-shadow: 0 0 0 999px rgba(11, 18, 32, .55); transition: border-color .2s; }
.face-scan .oval.ok { border-style: solid; border-color: #4ADE80; }
.face-scan .prompt { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem; text-align: center; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.face-scan .progress-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .4rem; }
.face-scan .progress-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.face-scan .progress-dots span.done { background: #4ADE80; }

/* ---- Rider app ---------------------------------------------------------------------- */
.rider-status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--eph-radius-lg); color: #fff; background: linear-gradient(135deg, #334155, #1E293B); }
.rider-status.online { background: linear-gradient(135deg, var(--eph-primary), var(--eph-primary-700)); }
.form-switch.big .form-check-input { width: 3.2rem; height: 1.7rem; }
.cash-box { border-radius: var(--eph-radius-lg); padding: 1rem 1.1rem; background: #FFFBEB; border: 2px solid #FCD34D; }
.cash-box .amount { font-size: 2rem; font-weight: 800; color: #92400E; letter-spacing: -.02em; }
.cash-box.prepaid { background: #F0FDF4; border-color: #86EFAC; }
.cash-box.prepaid .amount { color: #166534; font-size: 1.3rem; }
.action-stack { display: grid; gap: .6rem; }
.action-stack .btn { min-height: 56px; font-size: 1.05rem; }
.delivery-card { background: #fff; border: 1px solid var(--eph-line); border-radius: var(--eph-radius); padding: 1rem; text-decoration: none; color: var(--eph-text); display: block; }
.delivery-card:hover { box-shadow: var(--eph-shadow); color: var(--eph-text); }
.stop { display: flex; gap: .75rem; }
.stop .stop-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .95rem; }

/* ---- Ratings -------------------------------------------------------------------------- */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .25rem; }
.star-input input { display: none; }
.star-input label { font-size: 2rem; color: #CBD5E1; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #F59E0B; }
.stars { color: #F59E0B; letter-spacing: 1px; }
.tag-check input { display: none; }
.tag-check span { display: inline-block; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--eph-line); font-size: .8rem; font-weight: 600; cursor: pointer; background: #fff; }
.tag-check input:checked + span { background: var(--eph-primary-50); border-color: var(--eph-primary); color: var(--eph-primary-700); }

/* ---- Footer (desktop) -------------------------------------------------------------------- */
.site-footer { background: var(--eph-secondary); color: rgba(255, 255, 255, .78); padding: 2.5rem 0 1.5rem; margin-top: 2.5rem; font-size: .875rem; }
.site-footer h6 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .85rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 1.75rem; padding-top: 1rem; font-size: .78rem; }

/* ---- Auth pages ------------------------------------------------------------------------ */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1.05fr 1fr; } }
.auth-aside { display: none; background: linear-gradient(160deg, var(--eph-primary) 0%, var(--eph-primary-700) 55%, var(--eph-secondary) 100%); color: #fff; padding: 3rem; position: relative; overflow: hidden; }
@media (min-width: 992px) { .auth-aside { display: flex; flex-direction: column; justify-content: center; } }
.auth-aside h1 { color: #fff; font-size: 2.1rem; max-width: 16ch; }
.auth-aside .feature { display: flex; gap: .75rem; align-items: center; margin-top: .85rem; opacity: .95; }
.auth-aside .feature i { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.auth-aside .deco { position: absolute; right: -60px; bottom: -60px; font-size: 22rem; opacity: .06; line-height: 1; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.auth-card { width: 100%; max-width: 460px; }
.consent-box { background: var(--eph-soft); border-radius: var(--eph-radius); padding: .85rem 1rem; }
.consent-box .form-check { margin-bottom: .45rem; font-size: .85rem; }
.consent-box .form-check:last-child { margin-bottom: 0; }

/* ---- Content pages ---------------------------------------------------------------------- */
.prose { color: var(--eph-text); font-size: .975rem; line-height: 1.7; }
.prose h2, .prose h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.prose ul { padding-left: 1.2rem; }
.prose img { border-radius: var(--eph-radius); }

/* ---- Health ------------------------------------------------------------------------------ */
.health-tile { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border-radius: var(--eph-radius); background: #fff; border: 1px solid var(--eph-line); text-decoration: none; color: var(--eph-ink); height: 100%; }
.health-tile i { font-size: 1.5rem; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--eph-primary-50); color: var(--eph-primary); }
.health-tile b { font-size: .95rem; }
.health-tile span { font-size: .78rem; color: var(--eph-muted); }
.service-row { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--eph-soft); }
.service-row:last-child { border-bottom: 0; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 576px) { .slot-grid { grid-template-columns: repeat(4, 1fr); } }
.slot-grid label { display: block; }
.slot-grid input { display: none; }
.slot-grid span { display: block; text-align: center; padding: .55rem .25rem; border-radius: 10px; border: 1.5px solid var(--eph-line); font-weight: 600; font-size: .85rem; background: #fff; cursor: pointer; }
.slot-grid input:checked + span { border-color: var(--eph-primary); background: var(--eph-primary); color: #fff; }
.slot-grid input:disabled + span { color: #CBD5E1; background: var(--eph-soft); cursor: not-allowed; text-decoration: line-through; }
.date-strip { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.date-strip::-webkit-scrollbar { display: none; }
.date-strip label { flex: none; }
.date-strip input { display: none; }
.date-strip span { display: flex; flex-direction: column; align-items: center; width: 58px; padding: .5rem 0; border-radius: 12px; border: 1.5px solid var(--eph-line); background: #fff; font-size: .72rem; color: var(--eph-muted); cursor: pointer; }
.date-strip span b { font-size: 1.1rem; color: var(--eph-ink); }
.date-strip input:checked + span { border-color: var(--eph-primary); background: var(--eph-primary-50); color: var(--eph-primary-700); }
.doctor-card { display: flex; gap: .85rem; padding: 1rem; background: #fff; border: 1px solid var(--eph-line); border-radius: var(--eph-radius); text-decoration: none; color: var(--eph-text); }
.doctor-card img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--eph-soft); flex: none; }
.video-frame { width: 100%; height: calc(100dvh - var(--eph-header-h) - 70px); min-height: 420px; border: 0; border-radius: var(--eph-radius); background: #0B1220; }
.rx-paper { background: #fff; border: 1px solid var(--eph-line); border-radius: var(--eph-radius); padding: 1.25rem; font-size: .9rem; }
.rx-paper .rx-symbol { font-family: Georgia, serif; font-size: 2rem; font-weight: 700; color: var(--eph-primary); line-height: 1; }

/* ---- Print ---------------------------------------------------------------------------------- */
@media print {
  .app-header, .bottom-nav, .sticky-action, .site-footer, .no-print, .toast-stack, .install-banner { display: none !important; }
  body { background: #fff; }
  .has-bottom-nav { padding: 0; }
}
