/* ═══════════════════════════════════════════════
   Jacky's Cafe Halifax — style.css
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;700&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --red:         #B5271E;
  --red-dark:    #8C1D16;
  --red-hover:   #C93027;
  --gold:        #C9A84C;
  --gold-light:  #E8C96A;
  --ink:         #18100A;
  --ink-soft:    #2E1E12;
  --cream:       #FDF7EE;
  --cream2:      #F6EDD8;
  --card:        #FFFBF4;
  --muted:       #8A7560;
  --border:      #E5D8C0;
  --border-lt:   #EEE4CF;
  --success:     #1A6637;
  --success-bg:  #EAF7EF;
  --warn:        #92580A;
  --warn-bg:     #FEF5E7;
  --danger:      #B5271E;
  --danger-bg:   #FDEEEC;
  --r:           14px;
  --r-sm:        9px;
  --shadow:      0 4px 20px rgba(24,16,10,.09);
  --shadow-md:   0 8px 32px rgba(24,16,10,.13);
  --shadow-lg:   0 20px 60px rgba(24,16,10,.18);
  --font-serif:  'Noto Serif TC', serif;
  --font-sans:   'DM Sans', sans-serif;
  --font-mono:   'DM Mono', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--cream); color: var(--ink); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
button { cursor: pointer; font-family: var(--font-sans); }

/* ── UTILITY ─────────────────────────────────────────────── */
.muted  { color: var(--muted); }
.small  { font-size: 12px; }
.req    { color: var(--red); }
.page-inner { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.section-eyebrow { font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 6px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-family: var(--font-serif); font-size: 28px; color: var(--ink); letter-spacing: 1px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: var(--r-sm); padding: 11px 22px;
  font-size: 14px; font-weight: 500; font-family: var(--font-sans);
  transition: all .18s; white-space: nowrap; cursor: pointer;
}
.btn-primary  { background: var(--red); color: #fff; }
.btn-primary:hover  { background: var(--red-hover); box-shadow: 0 6px 20px rgba(181,39,30,.3); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover  { border-color: var(--red); color: var(--red); background: rgba(181,39,30,.04); }
.btn-ghost    { background: rgba(253,247,238,.12); color: #fff; border: 1.5px solid rgba(253,247,238,.25); }
.btn-ghost:hover    { background: rgba(253,247,238,.2); }
.btn-danger   { background: var(--danger-bg); color: var(--danger); border: 1.5px solid rgba(181,39,30,.2); }
.btn-danger:hover   { background: var(--red); color: #fff; }
.btn-sm       { padding: 6px 14px; font-size: 12px; border-radius: 7px; }
.btn-lg       { padding: 14px 28px; font-size: 15px; }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(253,247,238,.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 66px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; color: inherit; }
.logo-lantern { font-size: 22px; line-height: 1; }
.logo-cn { font-family: var(--font-serif); font-size: 18px; color: var(--red); letter-spacing: 3px; }
.logo-divider { width: 1px; height: 26px; background: var(--gold); opacity: .5; }
.logo-text { line-height: 1.3; }
.logo-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.logo-sub  { font-size: 10px; color: var(--muted); font-family: var(--font-mono); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-status {
  display: flex; align-items: center; gap: 6px;
  background: var(--success-bg); border: 1px solid #A8DFBE;
  border-radius: 999px; padding: 5px 13px;
  font-size: 11px; font-weight: 500; color: var(--success); font-family: var(--font-mono);
}
.status-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
.nav-order-btn {
  background: var(--red); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 9px 20px;
  font-size: 13px; font-weight: 500; transition: all .18s;
}
.nav-order-btn:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(181,39,30,.3); color: #fff; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--ink-soft); position: relative; overflow: hidden;
  padding: 72px 52px 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 80% at 72% 50%, rgba(201,168,76,.07), transparent);
}
.hero-deco { position: absolute; border-radius: 50%; border: 1px solid rgba(201,168,76,.07); pointer-events: none; }
.hero-deco-1 { width: 500px; height: 500px; right: -120px; top: -120px; }
.hero-deco-2 { width: 740px; height: 740px; right: -250px; top: -250px; }
.hero-content { position: relative; z-index: 2; flex: 1; max-width: 520px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.28);
  border-radius: 999px; padding: 5px 14px;
  font-size: 11px; font-family: var(--font-mono); color: var(--gold-light);
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 24px;
}
.hero-cn { font-family: var(--font-serif); font-size: clamp(40px,5.5vw,66px); color: var(--gold-light); letter-spacing: 8px; line-height: 1.05; margin-bottom: 8px; }
.hero-en { font-size: 15px; font-weight: 300; color: rgba(253,247,238,.48); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 22px; }
.hero-desc { font-size: 15px; color: rgba(253,247,238,.55); line-height: 1.9; max-width: 400px; margin-bottom: 30px; }
.hero-cta  { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; }
.hstat strong { font-family: var(--font-serif); font-size: 28px; color: #FDF7EE; display: block; line-height: 1; margin-bottom: 4px; }
.hstat span   { font-size: 10px; color: rgba(253,247,238,.38); text-transform: uppercase; letter-spacing: 1.2px; font-family: var(--font-mono); }
.hero-right   { position: relative; z-index: 2; flex-shrink: 0; }
.hero-bowl    { font-size: clamp(90px,13vw,150px); line-height: 1; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 6px 44px rgba(201,168,76,.2)); }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* ── WHY SECTION ─────────────────────────────────────────── */
.why-section { padding: 72px 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r); padding: 28px 24px; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why-icon { font-size: 32px; margin-bottom: 14px; }
.why-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.why-card p  { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── FEATURED SECTION ────────────────────────────────────── */
.featured-section { background: var(--cream2); padding: 72px 0; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.feat-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-img { height: 180px; position: relative; overflow: hidden; background: linear-gradient(135deg,#FFF4E0,#FDEAC4); display: flex; align-items: center; justify-content: center; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.feat-img-placeholder span { font-family: var(--font-serif); font-size: 48px; color: var(--gold); opacity: .4; }
.feat-badge { position: absolute; top: 11px; left: 11px; background: var(--red); color: #fff; font-size: 10px; font-family: var(--font-mono); padding: 3px 9px; border-radius: 999px; }
.feat-body { padding: 18px; }
.feat-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.feat-cn   { font-family: var(--font-serif); font-size: 12px; color: var(--gold); margin-bottom: 8px; }
.feat-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; min-height: 40px; }
.feat-foot { display: flex; align-items: center; justify-content: space-between; }
.feat-price { font-family: var(--font-serif); font-size: 22px; color: var(--ink); }
.feat-price small { font-size: 11px; color: var(--muted); font-family: var(--font-sans); }
.feat-order-btn {
  background: var(--red); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 8px 16px; font-size: 13px; font-weight: 500;
  transition: all .18s;
}
.feat-order-btn:hover { background: var(--red-hover); transform: scale(1.04); }

/* ── INFO STRIP ──────────────────────────────────────────── */
.info-strip { background: var(--ink-soft); padding: 40px 0; }
.info-strip-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.info-item { display: flex; align-items: center; gap: 14px; }
.info-icon { font-size: 24px; }
.info-label { font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; color: rgba(253,247,238,.4); margin-bottom: 3px; }
.info-val   { font-size: 14px; font-weight: 500; color: rgba(253,247,238,.85); }
.info-divider { width: 1px; height: 40px; background: rgba(253,247,238,.1); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--ink); padding: 36px 0; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-lantern { font-size: 20px; }
.footer-cn   { font-family: var(--font-serif); font-size: 16px; color: var(--gold); letter-spacing: 2px; }
.footer-name { font-size: 13px; font-weight: 600; color: rgba(253,247,238,.7); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: rgba(253,247,238,.55); transition: color .15s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-info p { font-size: 12px; color: rgba(253,247,238,.38); font-family: var(--font-mono); margin-bottom: 3px; }

/* ══════════════════════════════════════════════
   ORDER PAGE
   ══════════════════════════════════════════════ */
.page-order .nav { position: sticky; }
.order-layout {
  display: grid; grid-template-columns: 1fr 380px;
  height: calc(100vh - 66px); overflow: hidden;
}

/* Menu panel */
.menu-panel { overflow-y: auto; padding: 28px 32px; border-right: 1px solid var(--border); }
.menu-panel-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.menu-title { font-family: var(--font-serif); font-size: 26px; color: var(--ink); }
.menu-title-cn { color: var(--gold); letter-spacing: 3px; }
.menu-count { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

.menu-search-wrap { position: relative; margin-bottom: 16px; }
.menu-search {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 10px 36px 10px 14px; font-size: 14px; font-family: var(--font-sans);
  background: var(--card); color: var(--ink); outline: none;
  transition: border-color .2s;
}
.menu-search:focus { border-color: var(--red); }
.menu-search::placeholder { color: var(--muted); }
.menu-search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 15px; pointer-events: none; }

.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.cat-tab {
  border: 1.5px solid var(--border); background: var(--card);
  border-radius: 999px; padding: 6px 16px;
  font-size: 12px; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: all .16s; white-space: nowrap; font-family: var(--font-sans);
}
.cat-tab:hover  { border-color: var(--red); color: var(--red); background: rgba(181,39,30,.04); }
.cat-tab.active { background: var(--red); border-color: var(--red); color: #fff; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

/* Menu Item card */
.mcard {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
  user-select: none;
}
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(181,39,30,.2); }
.mcard.in-cart { border-color: var(--success); }
.mcard-visual {
  height: 148px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #FFF4E0, #FDEAC4);
  display: flex; align-items: center; justify-content: center;
}
.mcard-visual img { width: 100%; height: 100%; object-fit: cover; }
.mcard-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.mcard-placeholder-code { font-family: var(--font-serif); font-size: 36px; color: var(--gold); opacity: .35; }
.mcard-badge { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 10px; font-family: var(--font-mono); padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; z-index: 1; }
.mcard-code  { position: absolute; top: 10px; right: 10px; background: rgba(24,16,10,.5); color: rgba(253,247,238,.75); font-size: 10px; font-family: var(--font-mono); padding: 2px 7px; border-radius: 999px; z-index: 1; }
.mcard-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.mcard-name  { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 2px; }
.mcard-cn    { font-family: var(--font-serif); font-size: 11px; color: var(--gold); margin-bottom: 7px; }
.mcard-desc  { font-size: 12px; color: var(--muted); line-height: 1.55; flex: 1; margin-bottom: 12px; }
.mcard-foot  { display: flex; align-items: center; justify-content: space-between; }
.mcard-price { font-family: var(--font-serif); font-size: 20px; color: var(--ink); }
.mcard-price small { font-size: 10px; color: var(--muted); font-family: var(--font-sans); }
.add-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); border: none; color: #fff;
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  transition: all .16s; flex-shrink: 0; line-height: 1;
}
.add-btn:hover { background: var(--red-dark); transform: scale(1.1); box-shadow: 0 4px 12px rgba(181,39,30,.35); }
.add-btn.added { background: var(--success); font-size: 14px; }

/* Loading state */
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; gap: 14px; color: var(--muted); }
.loading-spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.no-results { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 14px; }

/* Cart panel */
.cart-panel {
  background: var(--card); display: flex; flex-direction: column;
  overflow: hidden; border-left: 1px solid var(--border);
}
.cart-header {
  padding: 20px 22px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.cart-title { font-family: var(--font-serif); font-size: 20px; color: var(--ink); letter-spacing: .5px; }
.cart-count-bubble {
  background: var(--red); color: #fff; min-width: 22px; height: 22px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; padding: 0 6px;
  transition: transform .2s;
}
.cart-body { flex: 1; overflow-y: auto; padding: 14px 22px; }
.cart-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.cart-empty-ico { font-size: 48px; display: block; margin-bottom: 14px; }
.cart-empty-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.cart-empty-sub { font-size: 13px; line-height: 1.6; }

/* Cart item */
.cart-item {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 0; border-bottom: 1px solid var(--border-lt);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-thumb {
  width: 48px; height: 48px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg,#FFF0D6,#FDEAC4);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-thumb-placeholder { font-family: var(--font-serif); font-size: 16px; color: var(--gold); opacity: .5; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-top: 2px; }
.qty-ctrl { display: flex; align-items: center; gap: 7px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--ink); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all .14s; line-height: 1;
}
.qty-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.qty-num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; min-width: 16px; text-align: center; }

/* Cart footer */
.cart-footer { padding: 16px 22px 22px; border-top: 1px solid var(--border); flex-shrink: 0; }
.cart-form { margin-bottom: 16px; }
.form-group { margin-bottom: 10px; }
.form-label { display: block; font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
.form-optional { font-size: 10px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.form-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 9px 12px; font-family: var(--font-sans); font-size: 13px;
  color: var(--ink); background: var(--cream); outline: none;
  transition: border-color .18s; display: block;
}
.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(181,39,30,.07); }
.form-input::placeholder { color: var(--muted); opacity: .7; }
.form-textarea { resize: vertical; min-height: 60px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-check-group { display: flex; align-items: center; }
.check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--ink); }
.check-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--red); }

.price-rows  { margin-bottom: 14px; }
.price-row   { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.price-total { font-size: 15px; font-weight: 600; color: var(--ink); padding-top: 10px; margin-top: 6px; border-top: 1.5px solid var(--border); margin-bottom: 0; }
.price-total span:last-child { font-family: var(--font-serif); font-size: 20px; }

.pay-btn {
  width: 100%; background: var(--red); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 14px;
  font-family: var(--font-serif); font-size: 16px; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden; transition: all .18s;
}
.pay-btn:hover:not(:disabled) { background: var(--red-hover); box-shadow: 0 8px 24px rgba(181,39,30,.32); transform: translateY(-1px); }
.pay-btn:disabled { opacity: .42; cursor: not-allowed; }
.pay-btn-shimmer { position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent); transform: translateX(-100%); animation: shim 2.5s infinite; }
@keyframes shim { to { transform: translateX(100%); } }
.pay-hint { text-align: center; font-size: 11px; color: var(--muted); font-family: var(--font-mono); margin-top: 8px; }

/* ── MODALS ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(24,16,10,.6);
  backdrop-filter: blur(10px); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal-box {
  background: #fff; border-radius: 18px; width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 28px 80px rgba(0,0,0,.22);
  animation: slideUp .24s cubic-bezier(.4,0,.2,1);
}
.modal-wide { max-width: 600px; }
@keyframes slideUp { from{transform:translateY(22px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-header { padding: 20px 22px 16px; border-bottom: 1px solid #E5D8C0; display: flex; align-items: center; justify-content: space-between; }
.modal-header h2 { font-size: 18px; font-weight: 600; color: var(--ink); }
.modal-close { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border); background: transparent; font-size: 15px; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: all .15s; }
.modal-close:hover { background: var(--cream2); color: var(--ink); }
.modal-body { padding: 22px; }
.modal-body-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 18px; }
.modal-footer { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* Stripe modal */
.stripe-header { background: #635BFF; padding: 20px 24px; display: flex; align-items: flex-start; justify-content: space-between; color: #fff; }
.stripe-brand  { font-weight: 700; font-size: 18px; letter-spacing: .5px; margin-bottom: 4px; }
.stripe-secure { font-size: 11px; opacity: .65; display: flex; align-items: center; gap: 4px; }
.stripe-amount { font-family: var(--font-mono); font-size: 22px; font-weight: 500; }
.stripe-foot   { text-align: center; margin-top: 12px; font-size: 11px; color: #9CA3AF; }
.slabel { display: block; font-size: 11px; font-weight: 600; color: #6B7280; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; margin-top: 12px; }
.sinput {
  width: 100%; border: 1.5px solid #E5E7EB; border-radius: 9px;
  padding: 11px 13px; font-size: 14px; font-family: var(--font-mono);
  outline: none; transition: border-color .18s; color: #111; display: block;
}
.sinput:focus { border-color: #635BFF; box-shadow: 0 0 0 3px rgba(99,91,255,.1); }
.sinput::placeholder { color: #9CA3AF; font-family: var(--font-sans); }
.srow   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spay-btn {
  width: 100%; background: #635BFF; color: #fff; border: none;
  border-radius: 9px; padding: 14px; font-size: 15px; font-weight: 600;
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .18s;
}
.spay-btn:hover:not(:disabled) { background: #4F46E5; box-shadow: 0 6px 20px rgba(99,91,255,.35); transform: translateY(-1px); }
.spay-btn:disabled { opacity: .45; cursor: not-allowed; }
.sclose-btn { width: 100%; background: transparent; border: none; font-size: 13px; color: #6B7280; margin-top: 8px; padding: 6px; transition: color .15s; }
.sclose-btn:hover { color: var(--ink); }

/* Confirm / tracking modal */
.confirm-box { text-align: center; padding: 32px 28px; max-width: 480px; }
.confirm-icon { font-size: 56px; margin-bottom: 16px; }
.confirm-title { font-family: var(--font-serif); font-size: 32px; color: var(--ink); margin-bottom: 8px; }
.confirm-sub   { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
.confirm-ref-wrap { background: var(--cream2); border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 14px; margin-bottom: 22px; }
.confirm-ref-label { font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
.confirm-ref  { font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: 2px; }
.confirm-detail { font-size: 12px; color: var(--muted); margin-bottom: 22px; }

/* Tracking steps */
.tracking-steps { text-align: left; margin-bottom: 4px; }
.ttrack-step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ttrack-step.last { margin-bottom: 0; }
.ts-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border); background: var(--cream2);
  color: var(--muted); font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.ts-dot.done { background: var(--success); border-color: var(--success); color: #fff; }
.ts-dot.live { background: var(--red); border-color: var(--red); color: #fff; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{box-shadow:0 0 0 0 rgba(181,39,30,.4)} 50%{box-shadow:0 0 0 8px rgba(181,39,30,0)} }
.ts-text b    { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.ts-text small { font-size: 11px; color: var(--muted); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 999px;
  font-size: 13px; font-weight: 500; z-index: 9999;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s;
  opacity: 0; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ══════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════ */
.page-admin body, body.page-admin { background: #F4F1EC; }
.admin-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 230px; flex-shrink: 0;
  background: var(--ink); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-lantern { font-size: 22px; }
.sidebar-name { font-size: 14px; font-weight: 600; color: rgba(253,247,238,.9); }
.sidebar-sub  { font-size: 10px; color: rgba(253,247,238,.35); font-family: var(--font-mono); }
.sidebar-nav  { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 9px; font-size: 13px; font-weight: 500;
  color: rgba(253,247,238,.55); transition: all .16s; text-decoration: none;
}
.sidebar-link:hover { background: rgba(253,247,238,.07); color: rgba(253,247,238,.9); }
.sidebar-link.active { background: rgba(181,39,30,.25); color: var(--gold-light); }
.sidebar-icon { font-size: 16px; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sidebar-user-ico  { font-size: 20px; }
.sidebar-user-name { font-size: 13px; font-weight: 500; color: rgba(253,247,238,.75); }
.sidebar-logout    { font-size: 11px; color: rgba(253,247,238,.35); text-decoration: none; display: block; margin-top: 2px; }
.sidebar-logout:hover { color: var(--gold-light); }
.sidebar-view-site {
  display: block; text-align: center; font-size: 12px; color: rgba(253,247,238,.35);
  border: 1px solid rgba(253,247,238,.1); border-radius: 7px; padding: 7px;
  transition: all .15s; text-decoration: none;
}
.sidebar-view-site:hover { border-color: rgba(253,247,238,.2); color: rgba(253,247,238,.7); }

/* Admin main */
.admin-main { flex: 1; padding: 32px 36px; overflow-y: auto; min-height: 100vh; background: #F4F1EC; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-page-header h1 { font-family: var(--font-serif); font-size: 26px; color: var(--ink); }
.admin-time { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r); padding: 22px 20px; position: relative; overflow: hidden;
}
.stat-icon  { font-size: 22px; margin-bottom: 10px; }
.stat-value { font-family: var(--font-serif); font-size: 30px; color: var(--ink); margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .5px; }
.stat-warn  { border-color: rgba(201,168,76,.4); }
.stat-warn .stat-value { color: var(--warn); }
.stat-green .stat-value { color: var(--success); }

/* Admin card */
.admin-card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.admin-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h2 { font-size: 15px; font-weight: 600; color: var(--ink); }
.admin-empty { padding: 40px; text-align: center; color: var(--muted); font-size: 14px; }

/* Table */
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: var(--cream2); padding: 11px 16px; text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-lt); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(253,247,238,.6); }

/* Badges & pills */
.order-ref  { font-family: var(--font-mono); font-size: 12px; font-weight: 500; background: var(--cream2); padding: 3px 8px; border-radius: 6px; color: var(--ink); }
.code-badge { font-family: var(--font-mono); font-size: 11px; background: var(--ink); color: var(--gold-light); padding: 3px 8px; border-radius: 6px; }
.cat-pill   { font-size: 11px; background: var(--cream2); border: 1px solid var(--border); color: var(--muted); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.cn-small   { font-family: var(--font-serif); font-size: 11px; color: var(--gold); }

/* Status select */
.status-sel {
  border: 1.5px solid var(--border); border-radius: 7px; background: var(--cream);
  padding: 5px 9px; font-size: 12px; font-family: var(--font-sans); color: var(--ink); outline: none;
  cursor: pointer;
}

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 38px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--border);
  border-radius: 999px; cursor: pointer; transition: background .2s;
}
.toggle-slider::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--success); }
.toggle input:checked + .toggle-gold   { background: var(--gold); }
.toggle input:checked + .toggle-slider::after { transform: translateX(16px); }

/* Item thumb */
.item-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); background: var(--cream2); }

/* Upload area */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--r-sm);
  padding: 20px; text-align: center; cursor: pointer;
  transition: border-color .18s; background: var(--cream);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.upload-area:hover { border-color: var(--red); }
.upload-preview { width: 80px; height: 80px; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); }
.upload-hint { font-size: 12px; color: var(--muted); }

/* Action buttons */
.action-btns { display: flex; gap: 6px; }

/* Alert */
.alert { padding: 11px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: var(--danger-bg); border: 1px solid rgba(181,39,30,.25); color: var(--danger); }

/* Admin login page */
.page-admin-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--cream2); }
.login-wrap { width: 100%; max-width: 380px; padding: 20px; }
.login-box  { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--r); padding: 36px 32px; box-shadow: var(--shadow-md); }
.login-logo { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 28px; }

/* Order detail in modal */
.order-detail .od-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.od-item { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--ink); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .order-layout { grid-template-columns: 1fr; height: auto; }
  .cart-panel { border-left: none; border-top: 1px solid var(--border); max-height: none; }
  .hero { padding: 48px 28px 40px; flex-direction: column; }
  .hero-right { display: none; }
  .admin-sidebar { width: 200px; }
  .admin-main { padding: 20px; }
}
@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .nav-status { display: none; }
  .page-inner, .hero, .featured-section .page-inner, .why-section .page-inner { padding-left: 16px; padding-right: 16px; }
  .info-strip-inner { flex-direction: column; gap: 16px; }
  .info-divider { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-nav { flex-direction: row; padding: 8px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
