@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

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

:root {
  --brand:       #e8436a;
  --brand-d:     #c73359;
  --brand-dd:    #a0254a;
  --brand-bg:    #fef2f5;
  --brand-soft:  #fbd5df;
  --cream:       #fdf8f3;
  --dark:        #1a0a05;
  --dark2:       #3d1f10;
  --dark3:       #7a4a2e;
  --muted:       #a07865;
  --gold:        #d4960e;
  --gold-bg:     #fffbeb;
  --green:       #15803d;
  --green-bg:    #dcfce7;
  --blue:        #1d4ed8;
  --blue-bg:     #dbeafe;
  --orange:      #c2410c;
  --orange-bg:   #ffedd5;
  --surface:     #ffffff;
  --surface2:    #fafaf9;
  --surface3:    #f5f0eb;
  --border:      #e8e0d8;
  --border2:     #d4ccc4;
  --shadow-sm:   0 1px 3px rgba(26,10,5,.06), 0 1px 2px rgba(26,10,5,.04);
  --shadow:      0 4px 16px rgba(26,10,5,.08), 0 2px 4px rgba(26,10,5,.04);
  --shadow-lg:   0 16px 48px rgba(26,10,5,.12), 0 4px 12px rgba(26,10,5,.06);
  --r-sm:        8px;
  --r:           14px;
  --r-lg:        20px;
  --r-xl:        28px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', sans-serif;
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-weight: 600; line-height: 1.25; }
.display { font-family: 'Playfair Display', serif; }

/* ── NAV ── */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 66px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow-sm);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--brand);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(232,67,106,.3);
}
.nav-logo-text h1 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--dark); }
.nav-logo-text p  { font-size: .6rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav-search {
  flex: 1; max-width: 380px;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0 14px;
  height: 38px;
  transition: border .2s, box-shadow .2s;
}
.nav-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232,67,106,.1); }
.nav-search input { border: none; background: none; font-family: 'Sora',sans-serif; font-size: .83rem; color: var(--dark); flex: 1; outline: none; }
.nav-search input::placeholder { color: var(--muted); }
.nav-search svg { color: var(--muted); flex-shrink: 0; }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; cursor: pointer;
  font-family: 'Sora', sans-serif; font-weight: 500; font-size: .83rem;
  border-radius: 50px; padding: 9px 20px;
  transition: all .18s cubic-bezier(.4,0,.2,1);
  text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-brand  { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(232,67,106,.25); }
.btn-brand:hover  { background: var(--brand-d); box-shadow: 0 6px 20px rgba(232,67,106,.35); transform: translateY(-1px); }
.btn-brand:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--dark2); border: 1.5px solid var(--border2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-bg); }
.btn-ghost  { background: transparent; color: var(--dark3); }
.btn-ghost:hover  { background: var(--surface3); }
.btn-dark   { background: var(--dark); color: #fff; }
.btn-dark:hover   { background: var(--dark2); }
.btn-green  { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(21,128,61,.2); }
.btn-green:hover  { background: #166534; }
.btn-sm { padding: 6px 14px; font-size: .77rem; }
.btn-lg { padding: 13px 28px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; }

/* ── CART BUTTON ── */
.cart-btn {
  position: relative;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 18px;
  font-family: 'Sora', sans-serif;
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all .18s;
}
.cart-btn:hover { background: var(--dark2); transform: translateY(-1px); }
.cart-pill {
  background: var(--brand);
  color: #fff;
  border-radius: 50px;
  min-width: 20px; height: 20px;
  font-size: .68rem; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  padding: 0 5px;
}
.cart-pill.show { display: flex; }

/* ── AVATAR ── */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-bg);
  border: 2px solid var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600; color: var(--brand-d);
  cursor: pointer; flex-shrink: 0;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.avatar:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232,67,106,.15); }
.avatar-lg { width: 56px; height: 56px; font-size: 1rem; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 50px;
  font-size: .69rem; font-weight: 600; letter-spacing: .02em;
}
.badge-brand   { background: var(--brand-bg);  color: var(--brand-d); }
.badge-green   { background: var(--green-bg);  color: var(--green); }
.badge-orange  { background: var(--orange-bg); color: var(--orange); }
.badge-blue    { background: var(--blue-bg);   color: var(--blue); }
.badge-gold    { background: var(--gold-bg);   color: var(--gold); }
.badge-muted   { background: var(--surface3);  color: var(--muted); }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1.25rem 1.5rem; }

/* ── PRODUCT CARD ── */
.prod-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.prod-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--brand-soft);
}
.prod-card-img {
  background: linear-gradient(135deg, var(--brand-bg) 0%, var(--cream) 100%);
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  position: relative;
  overflow: hidden;
}
.prod-card-body { padding: .85rem 1rem 1rem; }
.prod-card-name { font-size: .88rem; font-weight: 600; margin-bottom: 3px; color: var(--dark); }
.prod-card-desc { font-size: .72rem; color: var(--muted); line-height: 1.4; margin-bottom: .65rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card-footer { display: flex; align-items: center; justify-content: space-between; }
.prod-card-price { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--brand); font-weight: 700; }
.prod-card-add {
  width: 32px; height: 32px;
  background: var(--brand);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(232,67,106,.3);
  transition: all .18s;
  line-height: 1;
}
.prod-card-add:hover { background: var(--brand-d); transform: scale(1.12); }
.prod-card-add:active { transform: scale(.95); }
.prod-ribbon {
  position: absolute; top: 10px; left: 10px;
}
.prod-unavail-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.75);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}

/* ── FORMS ── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .78rem; font-weight: 600; color: var(--dark3); margin-bottom: 5px; }
.input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: 'Sora', sans-serif;
  font-size: .86rem;
  color: var(--dark);
  background: var(--surface);
  transition: border .18s, box-shadow .18s;
  outline: none;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232,67,106,.12); }
.input::placeholder { color: var(--muted); font-size: .82rem; }
.input:disabled { background: var(--surface3); opacity: .7; }
.input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
textarea.input { resize: vertical; min-height: 70px; }

/* ── SECTION TITLE ── */
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--dark);
  display: flex; align-items: center; gap: 10px;
  margin: 1.5rem 0 .9rem;
}
.sec-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── CATEGORIES BAR ── */
.cats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 66px;
  z-index: 400;
  overflow-x: auto;
  scrollbar-width: none;
}
.cats-bar::-webkit-scrollbar { display: none; }
.cats-inner { display: flex; gap: 6px; padding: .9rem 2rem; width: max-content; min-width: 100%; }
.cat-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: 'Sora', sans-serif;
  font-size: .78rem; font-weight: 500;
  color: var(--dark3);
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
}
.cat-chip:hover { border-color: var(--brand-soft); color: var(--brand); background: var(--brand-bg); }
.cat-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(232,67,106,.25); }

/* ── CART SIDEBAR ── */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 600; display: none; backdrop-filter: blur(2px); }
.cart-overlay.open { display: block; }
.cart-panel {
  position: fixed; top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--surface);
  z-index: 700;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(26,10,5,.12);
}
.cart-panel.open { transform: translateX(0); }
.cart-head {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cream);
}
.cart-head h2 { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.cart-close { width: 32px; height: 32px; border: none; background: var(--surface3); border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.cart-close:hover { background: var(--border2); }
.cart-body { flex: 1; overflow-y: auto; padding: .9rem 1.5rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.cart-empty .ce-icon { font-size: 3rem; margin-bottom: .8rem; opacity: .4; }
.cart-empty p { font-size: .84rem; }
.cart-item { display: flex; gap: 12px; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.ci-emoji { font-size: 1.8rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-weight: 600; font-size: .86rem; color: var(--dark); }
.ci-note { font-size: .72rem; color: var(--muted); margin-top: 2px; font-style: italic; }
.ci-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ci-ctrl-btn { width: 26px; height: 26px; border: 1.5px solid var(--border2); background: var(--surface); border-radius: 50%; cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center; transition: all .15s; color: var(--dark2); }
.ci-ctrl-btn:hover { border-color: var(--brand); color: var(--brand); }
.ci-qty { font-size: .86rem; font-weight: 600; min-width: 22px; text-align: center; }
.ci-price { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--brand); font-weight: 700; flex-shrink: 0; padding-top: 2px; }
.cart-foot { padding: 1.2rem 1.5rem; border-top: 2px solid var(--border); background: var(--cream); }
.coupon-row { display: flex; gap: 8px; margin-bottom: .5rem; }
.coupon-row .input { flex: 1; padding: 9px 12px; font-size: .8rem; }
.coupon-msg { font-size: .73rem; margin-bottom: .5rem; min-height: 16px; }
.cart-subtotals { margin-bottom: .8rem; }
.cart-sub-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); padding: 2px 0; }
.cart-sub-row.total { font-size: .95rem; font-weight: 700; color: var(--dark); border-top: 1px solid var(--border); margin-top: .4rem; padding-top: .4rem; }
.cart-sub-row.discount { color: var(--green); }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 800; display: none; align-items: flex-end; justify-content: center; padding: 0; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
@media(min-width:600px){ .modal-overlay { align-items: center; padding: 1rem; } }
.modal-box {
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
@media(min-width:600px){
  .modal-box { border-radius: var(--r-xl); transform: scale(.95); }
  .modal-overlay.open .modal-box { transform: scale(1); }
}
.modal-handle { width: 36px; height: 4px; background: var(--border2); border-radius: 99px; margin: 0 auto 1.2rem; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.modal-head h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.modal-close-btn { width: 30px; height: 30px; border: none; background: var(--surface3); border-radius: 50%; cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center; }

/* ── TOAST ── */
#toast-container {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--dark);
  color: #fff;
  padding: 11px 22px;
  border-radius: 50px;
  font-size: .84rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s cubic-bezier(.4,0,.2,1) forwards;
  white-space: nowrap;
}
.toast.out { animation: toastOut .3s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes toastIn  { from { opacity:0; transform:translateY(12px) scale(.95); } to { opacity:1; transform:none; } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform:translateY(8px) scale(.95); } }

/* ── DELIVERY OPTIONS ── */
.del-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1rem; }
.del-opt { border: 2px solid var(--border); border-radius: var(--r-lg); padding: 1rem; cursor: pointer; text-align: center; transition: all .18s; }
.del-opt:hover { border-color: var(--brand-soft); }
.del-opt.active { border-color: var(--brand); background: var(--brand-bg); }
.del-opt .doi { font-size: 1.8rem; margin-bottom: .4rem; }
.del-opt .dot { font-weight: 600; font-size: .86rem; }
.del-opt .dod { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* ── PAYMENT OPTIONS ── */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1rem; }
.pay-opt { border: 2px solid var(--border); border-radius: var(--r); padding: .85rem 1rem; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all .18s; }
.pay-opt:hover { border-color: var(--brand-soft); }
.pay-opt.active { border-color: var(--brand); background: var(--brand-bg); }
.pay-opt .poi { font-size: 1.4rem; }
.pay-opt .pon { font-weight: 600; font-size: .84rem; }
.pay-opt .pod { font-size: .7rem; color: var(--muted); margin-top: 1px; }

/* ── CHECKOUT STEPS ── */
.co-steps { display: flex; gap: 0; margin-bottom: 1.5rem; }
.co-step { flex: 1; text-align: center; position: relative; }
.co-step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border2); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 600; color: var(--muted); margin: 0 auto 4px; z-index: 1; position: relative; transition: all .2s; }
.co-step-line { position: absolute; top: 14px; left: 50%; right: -50%; height: 2px; background: var(--border); z-index: 0; }
.co-step:last-child .co-step-line { display: none; }
.co-step.active .co-step-dot { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(232,67,106,.15); }
.co-step.done .co-step-dot { border-color: var(--green); background: var(--green); color: #fff; }
.co-step.done .co-step-line { background: var(--green); }
.co-step-label { font-size: .68rem; color: var(--muted); font-weight: 500; }
.co-step.active .co-step-label { color: var(--brand); font-weight: 600; }
.co-step.done .co-step-label  { color: var(--green); }

/* ── ORDER SUMMARY ── */
.order-summary { background: var(--cream); border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: 1rem; border: 1px solid var(--border); }
.os-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); padding: 3px 0; }
.os-row.total { font-size: .92rem; font-weight: 700; color: var(--dark); border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .5rem; }
.os-row.discount { color: var(--green); }

/* ── TRACKING ── */
.track-header { background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%); border-radius: var(--r-lg); padding: 1.3rem 1.5rem; color: #fff; margin-bottom: 1.2rem; }
.track-header .t-id { font-size: .73rem; opacity: .6; margin-bottom: .2rem; }
.track-header .t-status { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: .4rem; }
.track-header .t-eta { font-size: .8rem; opacity: .8; }
.track-steps { margin-bottom: 1.2rem; }
.ts-item { display: flex; gap: 14px; }
.ts-col { display: flex; flex-direction: column; align-items: center; }
.ts-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; transition: all .3s; }
.ts-dot.done   { background: var(--green); color: #fff; }
.ts-dot.active { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(232,67,106,.2); }
.ts-dot.pend   { background: var(--surface3); color: var(--muted); border: 2px solid var(--border); }
.ts-line { width: 2px; flex: 1; min-height: 20px; background: var(--border); margin: 3px 0; transition: background .5s; }
.ts-line.done { background: var(--green); }
.ts-info { padding-top: 4px; padding-bottom: 14px; }
.ts-title { font-weight: 600; font-size: .86rem; }
.ts-sub   { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.map-box { background: var(--surface3); border-radius: var(--r-lg); height: 160px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; overflow: hidden; position: relative; }
.map-roads { position: absolute; inset: 0; opacity: .07; background-image: repeating-linear-gradient(0deg, var(--dark) 0px, transparent 1px, transparent 40px), repeating-linear-gradient(90deg, var(--dark) 0px, transparent 1px, transparent 40px); }
.map-content { text-align: center; position: relative; }
.map-pin { font-size: 2.5rem; animation: mapBounce 1.4s ease-in-out infinite; }
@keyframes mapBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.map-label { font-size: .75rem; color: var(--muted); margin-top: .4rem; font-weight: 500; }
.rep-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); }
.rep-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-bg); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.rep-name  { font-weight: 600; font-size: .88rem; }
.rep-info-sub { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.rep-rating { display: flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 600; color: var(--gold); margin-top: 2px; }

/* ── PROFILE TABS ── */
.p-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.2rem; gap: 0; overflow-x: auto; scrollbar-width: none; }
.p-tabs::-webkit-scrollbar { display: none; }
.p-tab { border: none; background: none; padding: 10px 18px; font-family: 'Sora',sans-serif; font-size: .82rem; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .18s; white-space: nowrap; }
.p-tab:hover { color: var(--dark); }
.p-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.p-tab-content { display: none; }
.p-tab-content.active { display: block; }

/* ── ORDER CARDS ── */
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1rem 1.2rem; margin-bottom: .8rem; cursor: pointer; transition: all .18s; box-shadow: var(--shadow-sm); }
.order-card:hover { box-shadow: var(--shadow); border-color: var(--brand-soft); transform: translateY(-2px); }
.oc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.oc-id   { font-weight: 700; font-size: .88rem; color: var(--dark); }
.oc-items { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-foot  { display: flex; justify-content: space-between; align-items: center; }
.oc-total { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--brand); font-weight: 700; }
.oc-meta  { font-size: .7rem; color: var(--muted); }

/* ── TICKET ── */
.ticket-card { background: var(--surface); border: 2px dashed var(--border2); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; margin-bottom: .8rem; }
.ticket-head { display: flex; justify-content: space-between; margin-bottom: .8rem; }
.qr-box { width: 58px; height: 58px; background: var(--dark); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; flex-shrink: 0; }
.ticket-rows { border-top: 1px dashed var(--border2); padding-top: .6rem; font-size: .79rem; color: var(--dark2); }
.tk-row { display: flex; justify-content: space-between; padding: 2px 0; }
.tk-total { font-weight: 700; border-top: 1px dashed var(--border2); margin-top: .4rem; padding-top: .4rem; display: flex; justify-content: space-between; font-size: .84rem; }

/* ── COUPON CARD ── */
.coupon-card { background: var(--surface); border: 2px solid var(--brand-soft); border-radius: var(--r-lg); padding: .85rem 1.1rem; display: flex; align-items: center; gap: 12px; margin-bottom: .7rem; box-shadow: var(--shadow-sm); }
.coupon-icon { font-size: 1.6rem; flex-shrink: 0; }
.coupon-code { font-family: 'Courier New', monospace; font-size: .9rem; font-weight: 700; background: var(--brand-bg); color: var(--brand-d); padding: 3px 10px; border-radius: 6px; letter-spacing: .05em; }

/* ── POINTS BAR ── */
.pts-track { background: var(--surface3); border-radius: 99px; height: 8px; overflow: hidden; margin: .5rem 0; }
.pts-fill  { background: linear-gradient(90deg, var(--gold) 0%, #f59e0b 100%); height: 100%; border-radius: 99px; transition: width .6s ease; }

/* ── ADMIN ── */
.admin-layout { display: flex; min-height: calc(100vh - 66px); }
.admin-sidebar { width: 200px; background: var(--dark); flex-shrink: 0; padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar-title { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); padding: 0 8px; margin: 1rem 0 .4rem; }
.admin-sidebar-title:first-child { margin-top: 0; }
.admin-nav { display: block; width: 100%; text-align: left; border: none; background: none; color: rgba(255,255,255,.65); padding: 8px 12px; border-radius: var(--r-sm); font-family: 'Sora',sans-serif; font-size: .8rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.admin-nav:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav.active { background: rgba(232,67,106,.2); color: #fff; }
.admin-nav .an-icon { font-size: .95rem; }
.admin-content { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; background: var(--cream); }
.adm-section { display: none; }
.adm-section.active { display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; margin-bottom: 1.3rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.stat-label { font-size: .71rem; color: var(--muted); font-weight: 500; margin-bottom: .3rem; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--dark); font-weight: 700; }
.stat-trend { font-size: .7rem; color: var(--green); margin-top: 3px; font-weight: 600; }
.stat-trend.down { color: var(--brand); }
.queue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 1rem; }
.queue-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: .9rem 1rem; box-shadow: var(--shadow-sm); }
.qc-header  { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.qc-id      { font-size: .72rem; color: var(--muted); font-weight: 600; }
.qc-items   { font-size: .79rem; color: var(--dark2); margin: .3rem 0; }
.qc-client  { font-size: .71rem; color: var(--muted); }
.qc-footer  { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; border-top: 1px solid var(--border); padding-top: .5rem; }
.qc-total   { font-weight: 700; font-size: .88rem; color: var(--brand); }
.data-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.data-table th { text-align: left; padding: 8px 10px; font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.data-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--dark2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface3); }
.toggle-sw { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle-sw input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: var(--border2); border-radius: 20px; cursor: pointer; transition: .25s; }
.toggle-track::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.toggle-sw input:checked + .toggle-track { background: var(--brand); }
.toggle-sw input:checked + .toggle-track::before { transform: translateX(16px); }

/* ── HERO (home) ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #5a1e0a 100%);
  padding: 3rem 2rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(232,67,106,.15) 0%, transparent 60%);
}
.hero-content { position: relative; max-width: 600px; }
.hero-eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; margin-bottom: .8rem; }
.hero p  { font-size: .9rem; opacity: .7; margin-bottom: 1.3rem; max-width: 440px; font-weight: 300; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.hero-chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 50px; padding: 5px 13px; font-size: .76rem; color: rgba(255,255,255,.85); }

/* ── UTIL ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wrap { max-width: 700px; margin: 0 auto; padding: 1.5rem 1.5rem; width: 100%; }
.wrap-wide { max-width: 1000px; margin: 0 auto; padding: 1.5rem 1.5rem; width: 100%; }
.mt-sm { margin-top: .5rem; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 1rem; } .mb-sm { margin-bottom: .5rem; }
.text-muted { color: var(--muted); }
.text-brand { color: var(--brand); }
.text-sm { font-size: .78rem; } .text-xs { font-size: .71rem; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-sm { gap: 8px; } .gap-1 { gap: 12px; }
.sim-info { background: var(--surface3); border-radius: var(--r-sm); padding: .6rem .9rem; font-size: .78rem; color: var(--muted); margin-bottom: .7rem; border-left: 3px solid var(--brand); }
.sim-info strong { display: block; font-size: .71rem; color: var(--brand); margin-bottom: 2px; }

@media(max-width:640px){
  .nav { padding: 0 1rem; gap: 1rem; }
  .nav-search { display: none; }
  .hero { padding: 2rem 1.2rem 1.8rem; }
  .wrap, .wrap-wide { padding: 1.2rem 1rem; }
  .cats-inner { padding: .7rem 1rem; }
  .prod-card-img { height: 90px; font-size: 2.2rem; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; overflow-x: auto; height: auto; padding: .6rem; }
  .admin-content { padding: 1rem; }
}
