/* ═══════════════ ORYX CAFÉ — Desert Luxury Theme v2 ═══════════════ */

:root {
  --bg-0: #f7f4f0;
  --bg-1: #efe9e1;
  --bg-2: #e5ddd3;
  --card: rgba(255, 255, 255, .82);
  --card-hover: rgba(255, 255, 255, .95);
  --card-border: rgba(160, 130, 90, .15);
  --sand: #a07840;
  --sand-bright: #7a5a2a;
  --gold: #5D2839;
  --cream: #2c2218;
  --muted: #7a6e60;
  --green: #3a9060;
  --red: #d04a3e;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px rgba(60,40,10,.08);
  --shadow-sm: 0 8px 24px rgba(60,40,10,.06);
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Ambient desert background ─── */
.bg-scene {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(184,146,46,.08), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(160,120,64,.06), transparent 65%),
    linear-gradient(180deg, #f7f4f0 0%, #f2ece4 45%, #ede5da 100%);
}
.bg-dunes {
  position: fixed; left: 0; right: 0; bottom: 0; height: 34vh; z-index: -1;
  background:
    radial-gradient(140% 120% at 20% 130%, rgba(184,146,46,.06), transparent 60%),
    radial-gradient(160% 140% at 85% 150%, rgba(160,120,64,.05), transparent 62%);
  pointer-events: none;
}
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ─── Nav ─── */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(12px, 3vw, 64px);
  backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(247, 244, 240, .82);
  border-bottom: 1px solid var(--card-border);
  gap: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold), rgba(93,40,57,.32));
  color: #1c130a; font-size: 22px;
  box-shadow: 0 0 0 1px rgba(236,207,158,.3), 0 6px 18px rgba(0,0,0,.4);
}
.brand-name {
  font-family: var(--font-display); font-size: 30px; letter-spacing: 3px;
  color: var(--sand-bright); font-weight: 700; white-space: nowrap;
}
.brand-name small { display: block; font-family: var(--font-body); font-size: 9px; letter-spacing: 5px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.nav-links { display: flex; gap: 24px; align-items: center; flex-shrink: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: .5px; transition: color var(--transition); font-weight: 500; }
.nav-links a:hover { color: var(--sand-bright); }

.loc-btn {
  background: rgba(184,146,46,.06); border: 1px solid var(--card-border);
  color: var(--gold); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  transition: transform .2s, background .2s, border-color .2s;
}
.loc-btn:hover { transform: translateY(-2px); background: rgba(184,146,46,.12); border-color: rgba(184,146,46,.3); }

.cart-btn {
  position: relative; cursor: pointer; border: none;
  background: rgba(184,146,46,.06); border: 1px solid var(--card-border);
  color: var(--gold); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .2s, background .2s, border-color .2s;
}
.cart-btn:hover { transform: translateY(-2px); background: rgba(184,146,46,.12); border-color: rgba(184,146,46,.3); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 5px;
  border: 2px solid var(--bg-0);
  animation: popIn .3s cubic-bezier(.2,1.6,.4,1);
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

/* ─── Hero ─── */
.hero {
  position: relative; text-align: center;
  padding: clamp(60px, 10vh, 120px) 24px 10px;
}
.hero-content { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; font-size: 11px; letter-spacing: 6px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 20px;
  padding: 8px 18px; border: 1px solid var(--card-border); border-radius: 999px;
  background: rgba(118, 43, 60, 0.349);
  animation: fadeUp .8s ease both;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 6vw, 66px); line-height: 1.1;
  background: linear-gradient(140deg, var(--gold), #5D2839 );
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fadeUp .8s .1s ease both;
}
.hero p.sub {
  max-width: 500px; margin: 18px auto 0; color: var(--muted);
  font-size: 16px; line-height: 1.7;
  animation: fadeUp .8s .2s ease both;
}
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp .8s .3s ease both; }
.btn-primary, .btn-ghost {
  padding: 14px 30px; border-radius: 999px; font-size: 15px; font-weight: 700;
  cursor: pointer; letter-spacing: .5px; font-family: var(--font-body);
  transition: transform .2s, box-shadow .2s; text-decoration: none; display: inline-block;
}
.btn-primary {
  border: none; color: #fff;
  background: linear-gradient(140deg, var(--gold), #5D2839);
  box-shadow: 0 10px 30px rgba(107, 45, 58, 0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(107, 45, 58, 0.35); }
.btn-ghost { background: transparent; border: 1px solid var(--card-border); color: var(--sand-bright); }
.btn-ghost:hover { background: rgba(107, 45, 58, 0.06); border-color: rgba(107, 45, 58, 0.25); }
.hero-stats { display: flex; justify-content: center; gap: clamp(24px, 6vw, 60px); margin-top: 50px; animation: fadeUp .8s .4s ease both; }
.hero-stats div { text-align: center; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 28px; color: var(--sand-bright); }
.hero-stats span { font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ─── Menu ─── */
.menu-section { padding: 40px clamp(20px, 5vw, 64px) 80px; position: relative; z-index: 1; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); color: #5D2839; }
.section-head p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* Search */
.search-bar {
  max-width: 480px; margin: 0 auto 28px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--card-border); background: rgba(255,255,255,.6);
  backdrop-filter: blur(12px); transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--gold); }
.search-bar svg { color: var(--muted); flex-shrink: 0; }
.search-bar input {
  flex: 1; border: none; background: none; color: var(--cream);
  font-size: 15px; font-family: var(--font-body); outline: none;
}
.search-bar input::placeholder { color: var(--muted); }

/* Category tabs */
.cat-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.cat-tab {
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: 13px;
  border: 1px solid var(--card-border); background: transparent; color: var(--muted);
  font-family: var(--font-body); letter-spacing: .3px; transition: all var(--transition);
  font-weight: 500; white-space: nowrap;
}
.cat-tab.active, .cat-tab:hover {
  background: linear-gradient(140deg, var(--gold), #5D2839);
  color: #fff; border-color: transparent; font-weight: 700;
}

/* Menu grid */
.menu-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  max-width: 1200px; margin: 0 auto;
}

/* Item card with image */
.item-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform .3s var(--transition), border-color .3s, box-shadow .3s;
  animation: fadeUp .5s ease both;
  display: flex; flex-direction: column;
}
.item-card:hover {
  transform: translateY(-8px);
  border-color: rgba(184,146,46,.35);
  box-shadow: 0 24px 60px rgba(60,40,10,.12);
}
.item-card.soldout { opacity: .9; filter: grayscale(.85); pointer-events: none; position: relative; overflow: hidden; }
.item-card.soldout .item-img-wrap img { filter: grayscale(1) brightness(.85); transform: scale(1.02); }
.item-card.soldout .item-name,
.item-card.soldout .item-ar,
.item-card.soldout .item-desc { color: var(--muted); }
.item-card.soldout::after {
  content: 'SOLD OUT';
  position: absolute; top: 46%; left: 50%;
  transform: translate(-50%, -50%) rotate(-9deg);
  background: rgba(208, 74, 62, .94); color: #fff;
  font-family: var(--font-body); font-weight: 800; letter-spacing: 3px;
  font-size: 15px; padding: 9px 22px; border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px rgba(208, 74, 62, .35); z-index: 6;
}
.item-card.soldout::before {
  content: ''; position: absolute; inset: 0; z-index: 5;
  background: linear-gradient(180deg, rgba(247,244,240,.1), rgba(247,244,240,.45));
}

.item-img-wrap {
  position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg-2);
}
.item-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--transition);
}
.item-card:hover .item-img-wrap img { transform: scale(1.08); }
.item-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 999px; font-size: 10px;
  font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.item-badge.featured { background: var(--gold); color: #fff; }
.item-badge.soldout-badge { background: var(--red); color: #fff; }

.item-body { padding: 18px 20px 16px; flex: 1; display: flex; flex-direction: column; }
.item-name { font-family: var(--font-display); font-size: 18px; color: var(--cream); line-height: 1.2; }
.item-ar { color: var(--gold); font-size: 13px; margin-top: 2px; font-weight: 500; }
.item-desc { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 8px 0 14px; flex: 1; }
.item-foot { display: flex; align-items: center; justify-content: space-between; }
.item-price { font-weight: 800; font-size: 17px; color: var(--sand-bright); }
.add-btn {
  border: none; cursor: pointer; font-weight: 700; font-size: 13px;
  padding: 9px 18px; border-radius: 999px; font-family: var(--font-body);
  background: rgba(184,146,46,.1); color: var(--sand-bright);
  border: 1px solid var(--card-border); transition: all var(--transition);
}
.add-btn:hover:not(:disabled) { background: linear-gradient(140deg, var(--gold), #5D2839); color: #fff; border-color: transparent; }
.add-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ─── About section ─── */
.about-section { padding: 20px clamp(20px, 5vw, 64px) 60px; position: relative; z-index: 1; }
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; max-width: 1000px; margin: 0 auto;
}
.about-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  backdrop-filter: blur(10px); transition: transform .3s var(--transition), border-color .3s;
}
.about-card:hover { transform: translateY(-4px); border-color: rgba(184,146,46,.3); }
.about-icon { font-size: 36px; margin-bottom: 14px; }
.about-card h3 { font-family: var(--font-display); font-size: 18px; color: var(--sand-bright); margin-bottom: 8px; }
.about-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ─── Cart drawer ─── */
.drawer-veil {
  position: fixed; inset: 0; background: rgba(60,40,10,.3); backdrop-filter: blur(6px);
  z-index: 90; opacity: 0; pointer-events: none; transition: opacity .35s;
}
.drawer-veil.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: linear-gradient(180deg, #fff, #f7f4f0);
  border-left: 1px solid var(--card-border); z-index: 100;
  transform: translateX(105%); transition: transform .4s cubic-bezier(.2,.8,.25,1);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 80px rgba(60,40,10,.1);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--card-border);
}
.drawer-head h3 { font-family: var(--font-display); font-size: 22px; color: var(--sand-bright); }
.drawer-close {
  background: none; border: 1px solid var(--card-border); color: var(--muted);
  width: 36px; height: 36px; border-radius: 50%; font-size: 18px;
  cursor: pointer; display: grid; place-items: center; transition: all var(--transition);
}
.drawer-close:hover { border-color: var(--sand); color: var(--cream); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.cart-empty .empty-icon { font-size: 44px; display: block; margin-bottom: 12px; opacity: .5; }

.cart-line {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px dashed rgba(160,130,90,.15);
}
.cart-line-img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line-price { color: var(--muted); font-size: 12px; }
.qty { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.qty button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--card-border);
  background: rgba(184,146,46,.08); color: var(--sand-bright); cursor: pointer;
  font-size: 14px; display: grid; place-items: center; transition: all var(--transition);
}
.qty button:hover { background: rgba(184,146,46,.18); }
.qty b { font-size: 14px; min-width: 20px; text-align: center; }

.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--card-border); }
.total-row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 14px; color: var(--muted); }
.total-row.grand { font-size: 18px; color: var(--cream); font-weight: 800; margin: 10px 0 16px; }
.checkout-btn {
  width: 100%; padding: 15px; border-radius: 14px; border: none; cursor: pointer;
  font-weight: 800; font-size: 15px; font-family: var(--font-body);
  background: linear-gradient(140deg, var(--gold), #5D2839); color: #fff;
  box-shadow: 0 10px 30px rgba(93,40,57,.2); transition: transform .2s, box-shadow .2s;
}
.checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(184,146,46,.3); }

/* ─── Checkout modal ─── */
.modal-veil {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(60,40,10,.35); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .35s; padding: 20px;
}
.modal-veil.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(480px, 100%); max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, #fff, #f7f4f0);
  border: 1px solid var(--card-border); border-radius: 24px;
  padding: 28px 26px; box-shadow: var(--shadow);
  transform: translateY(20px) scale(.97); transition: transform .35s var(--transition);
}
.modal-veil.open .modal { transform: none; }
.modal-back {
  background: none; border: none; color: var(--muted); font-size: 14px;
  cursor: pointer; font-family: var(--font-body); margin-bottom: 10px;
  transition: color var(--transition);
}
.modal-back:hover { color: var(--sand-bright); }
.modal h3 { font-family: var(--font-display); font-size: 24px; color: var(--cream); margin-bottom: 4px; }
.modal .msub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 14px;
  border: 1px solid var(--card-border); background: rgba(247,244,240,.8);
  color: var(--cream); font-family: var(--font-body); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,146,46,.1);
}
.field select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237a6e60'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.field select option { background: #fff; color: var(--cream); }

/* Order summary in checkout */
.order-summary {
  background: rgba(237,229,218,.6); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 18px;
}
.order-summary .os-title { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.order-summary .os-item { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--cream); }
.order-summary .os-total { border-top: 1px solid var(--card-border); margin-top: 6px; padding-top: 6px; font-weight: 800; color: var(--sand-bright); }

/* ─── Payment section ─── */
.pay-section { margin-bottom: 20px; }
.pay-header {
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
}
.pay-shield { color: var(--green); flex-shrink: 0; }
.pay-label {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

.pay-methods { margin: 0; }
.pay-card {
  position: relative;
  border: 1.5px solid var(--card-border); border-radius: 16px;
  padding: 16px 18px; cursor: pointer;
  transition: all var(--transition);
  background: rgba(255,255,255,.6);
  overflow: hidden;
}
.pay-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 16px;
  background: linear-gradient(135deg, rgba(184,146,46,.04), transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.pay-card:hover { border-color: rgba(184,146,46,.3); }
.pay-card:hover::before { opacity: 1; }
.pay-card.selected {
  border-color: var(--gold);
  background: rgba(184,146,46,.05);
  box-shadow: 0 0 0 3px rgba(184,146,46,.08), 0 8px 32px rgba(184,146,46,.08);
}
.pay-card.selected::before { opacity: 1; }

.pay-card-inner {
  display: flex; align-items: center; gap: 14px; position: relative; z-index: 1;
}
.pay-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(201,162,75,.1); border: 1px solid rgba(201,162,75,.15);
  color: var(--gold); transition: all var(--transition);
}
.pay-card.selected .pay-card-icon {
  background: linear-gradient(140deg, var(--gold), #5D2839);
  color: #1c130a; border-color: transparent;
  box-shadow: 0 4px 16px rgba(201,162,75,.3);
}
.pay-card-text { flex: 1; min-width: 0; }
.pay-card-name { display: block; font-weight: 700; font-size: 14px; color: var(--cream); }
.pay-card-desc { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.pay-card-brands { display: flex; gap: 5px; flex-shrink: 0; position: relative; z-index: 1; }
.brand-tag {
  padding: 3px 7px; border-radius: 5px; font-size: 9px; font-weight: 800;
  letter-spacing: .5px; background: rgba(212,175,122,.1); color: var(--muted);
  border: 1px solid rgba(212,175,122,.1); line-height: 1;
}
.brand-tag.mc { color: #e87c3a; background: rgba(232,124,58,.08); border-color: rgba(232,124,58,.15); }
.brand-tag.mada { color: var(--green); background: rgba(76,175,125,.08); border-color: rgba(76,175,125,.15); }

.pay-card-check {
  position: absolute; top: 14px; right: 16px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: #1c130a;
  opacity: 0; transform: scale(.6);
  transition: all .3s cubic-bezier(.2,1.6,.4,1);
  box-shadow: 0 2px 8px rgba(201,162,75,.3);
}
.pay-card.selected .pay-card-check { opacity: 1; transform: scale(1); }

.pay-btn {
  width: 100%; padding: 16px; border-radius: 14px; border: none; cursor: pointer;
  font-weight: 800; font-size: 16px; font-family: var(--font-body);
  background: linear-gradient(140deg, var(--sand-bright), var(--gold)); color: #5b2935;
  box-shadow: 0 10px 30px rgba(201,162,75,.25);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.pay-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .6s;
}
.pay-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(201,162,75,.4); }
.pay-btn:hover::after { transform: translateX(100%); }
.pay-btn:active { transform: translateY(0); }
.pay-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.pay-btn:disabled::after { display: none; }
.pay-lock { flex-shrink: 0; }

.pay-trust {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; padding: 10px 0;
  border-top: 1px solid rgba(212,175,122,.08);
}
.pay-trust svg { color: var(--green); flex-shrink: 0; }
.pay-trust span { font-size: 11px; color: var(--muted); line-height: 1.4; }
.pay-trust b { color: var(--sand); font-weight: 600; }

/* Google Pay button wrapper */
.gpay-btn-wrap {
  margin: 14px 0 6px;
  display: flex; justify-content: center;
}
.gpay-btn-wrap > div {
  width: 100%;
}
.gpay-btn-wrap button {
  width: 100% !important;
  height: 48px !important;
  border-radius: 12px !important;
}

/* Google Pay icon in payment card */
.gpay-icon {
  background: #fff !important;
  border-color: rgba(0,0,0,.1) !important;
}
.pay-card.selected .gpay-icon {
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.15) !important;
}

/* Apple Pay button + icon in payment card */
.apay-btn-wrap {
  margin: 14px 0 6px;
  display: flex; justify-content: center;
}
.apple-pay-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.apple-pay-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(0,0,0,.45); }
.apple-pay-btn:active { transform: translateY(0); }
.apple-pay-btn .ap-logo {
  width: 20px; height: 22px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 12.04c-.03-2.05 1.67-3.03 1.75-3.08-1.04-1.52-2.66-1.73-3.23-1.75-1.37-.14-2.68.81-3.38.81-.7 0-1.78-.79-2.92-.77-1.5.02-2.89.87-3.66 2.21-1.56 2.71-.4 6.72 1.12 8.92.74 1.07 1.62 2.27 2.77 2.23 1.11-.04 1.53-.72 2.88-.72 1.34 0 1.73.72 2.92.7 1.21-.02 1.97-1.1 2.71-2.18.86-1.25 1.21-2.46 1.23-2.52-.03-.01-2.36-.9-2.39-3.57zM14.5 5.34c.62-.75 1.04-1.79.92-2.83-.89.04-1.97.59-2.61 1.33-.57.66-1.07 1.71-.94 2.72 1 .08 2.01-.51 2.63-1.22z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 12.04c-.03-2.05 1.67-3.03 1.75-3.03 1.75-3.08-1.04-1.52-2.66-1.73-3.23-1.75-1.37-.14-2.68.81-3.38.81-.7 0-1.78-.79-2.92-.77-1.5.02-2.89.87-3.66 2.21-1.56 2.71-.4 6.72 1.12 8.92.74 1.07 1.62 2.27 2.77 2.23 1.11-.04 1.53-.72 2.88-.72 1.34 0 1.73.72 2.92.7 1.21-.02 1.97-1.1 2.71-2.18.86-1.25 1.21-2.46 1.23-2.52-.03-.01-2.36-.9-2.39-3.57zM14.5 5.34c.62-.75 1.04-1.79.92-2.83-.89.04-1.97.59-2.61 1.33-.57.66-1.07 1.71-.94 2.72 1 .08 2.01-.51 2.63-1.22z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.apay-icon {
  background: #000 !important;
  border-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
}
.pay-card.selected .apay-icon {
  background: #000 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.3) !important;
}

/* ─── Success screen ─── */
.success { text-align: center; padding: 20px 4px; }
.success .tick {
  width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(140deg, var(--green), #2a7050);
  display: grid; place-items: center; font-size: 38px; color: #fff;
  animation: pop .5s cubic-bezier(.2,1.6,.4,1) both;
  box-shadow: 0 14px 40px rgba(58,144,96,.25);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.success h3 { margin-bottom: 6px; }
.success .oid { font-size: 22px; letter-spacing: 3px; color: var(--gold); font-weight: 800; margin: 10px 0; }
.success-items { text-align: left; margin: 16px 0; padding: 14px; background: rgba(237,229,218,.6); border-radius: 12px; font-size: 13px; color: var(--muted); }
.success-actions { display: flex; gap: 10px; margin-top: 8px; }
.success-actions .checkout-btn { flex: 1; }
.ghost-btn {
  flex: 1; border: 1.5px solid var(--sand); background: #fff; color: var(--ink);
  padding: 14px 18px; border-radius: 14px; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: transform .15s ease, box-shadow .25s ease, border-color .2s ease;
}
.ghost-btn:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(184,146,46,.18); }

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--card-border); padding: 40px clamp(20px,5vw,64px);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  color: var(--muted); font-size: 13px; position: relative; z-index: 1;
}
footer a { color: var(--sand); text-decoration: none; }
.footer-brand { font-family: var(--font-display); font-size: 16px; color: #5D2839; margin-bottom: 6px; letter-spacing: 2px; }
.footer-right { text-align: right; }

/* ─── Toast ─── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: linear-gradient(140deg, var(--gold), #5D2839); color: #fff;
  font-weight: 700; padding: 12px 24px; border-radius: 999px; z-index: 300;
  box-shadow: 0 14px 40px rgba(60,40,10,.2);
  transition: transform .4s cubic-bezier(.2,.9,.3,1.2);
  font-size: 13px; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ═══════════════ STAFF PANEL ═══════════════ */
.staff-body { background: var(--bg-0); }
.staff-wrap { max-width: 1280px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 40px) 80px; position: relative; z-index: 1; }
.staff-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.staff-top h1 { font-family: var(--font-display); font-size: 28px; color: var(--cream); }
.staff-top h1 small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: 3px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.sound-toggle {
  display: flex; align-items: center; gap: 8px; padding: 9px 18px;
  border-radius: 999px; border: 1px solid var(--card-border); cursor: pointer;
  background: var(--card); color: var(--cream); font-size: 13px; font-family: var(--font-body);
  transition: all var(--transition);
}
.sound-toggle.on { border-color: var(--green); color: var(--green); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 16px;
  padding: 18px 20px; backdrop-filter: blur(8px);
}
.stat-card .sv { font-family: var(--font-display); font-size: 28px; color: var(--cream); }
.stat-card .sl { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.stat-card.alert .sv { color: var(--red); }

.staff-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
@media (max-width: 980px) { .staff-cols { grid-template-columns: 1fr; } }
.panel {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 18px;
  padding: 22px; backdrop-filter: blur(8px);
}
.panel h2 { font-family: var(--font-display); font-size: 20px; color: var(--cream); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(58,144,96,.5); } 50% { box-shadow: 0 0 0 9px rgba(58,144,96,0); } }

.order-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.order-filter {
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 13px;
  border: 1px solid var(--card-border); background: transparent; color: var(--muted);
  font-family: var(--font-body); font-weight: 600; transition: all var(--transition);
}
.order-filter b { font-weight: 800; margin-left: 4px; color: var(--sand); }
.order-filter.active, .order-filter:hover {
  background: linear-gradient(140deg, var(--gold), #5D2839); color: #fff; border-color: transparent;
}
.order-filter.active b { color: #fff; }

.order-card {
  border: 1px solid var(--card-border); border-radius: 14px; padding: 16px;
  margin-bottom: 12px; background: rgba(237,229,218,.5); transition: border-color .3s;
}
.order-card.new { border-color: var(--gold); animation: ringGlow 1.2s ease infinite alternate; }
@keyframes ringGlow { from { box-shadow: 0 0 0 0 rgba(184,146,46,0); } to { box-shadow: 0 0 22px 2px rgba(184,146,46,.15); } }
.oc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.oc-id { font-weight: 800; letter-spacing: 1.5px; color: var(--gold); }
.oc-meta { color: var(--muted); font-size: 12px; }
.oc-items { font-size: 13px; line-height: 1.7; color: var(--cream); margin-bottom: 4px; }
.oc-items b { color: var(--sand); }
.oc-note { font-size: 12px; color: var(--muted); font-style: italic; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; flex-wrap: wrap; gap: 8px; }
.oc-total { font-weight: 800; color: var(--cream); }
.status-chip { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.status-chip.new { background: rgba(184,146,46,.12); color: var(--gold); }
.status-chip.preparing { background: rgba(80,150,220,.12); color: #5a9de0; }
.status-chip.ready { background: rgba(58,144,96,.12); color: var(--green); }
.status-chip.done { background: rgba(160,160,160,.1); color: #888; }
.status-chip.finished { background: rgba(120,120,120,.12); color: #999; }
.oc-actions { display: flex; gap: 6px; }
.oc-actions button {
  border: 1px solid var(--card-border); background: rgba(184,146,46,.06);
  color: var(--cream); padding: 7px 12px; border-radius: 10px;
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font-body);
  transition: all var(--transition);
}
.oc-actions button:hover { background: linear-gradient(140deg, var(--gold), #5D2839); color: #fff; }
.oc-del { color: var(--green) !important; border-color: rgba(58,144,96,.4) !important; background: rgba(58,144,96,.08) !important; }
.oc-del:hover { background: var(--green) !important; color: #fff !important; }

/* Stock panel hides when scrolling down, reappears when scrolling up */
#stockPanel { transition: opacity .35s, transform .35s; }
#stockPanel.scroll-hidden { opacity: 0; transform: translateY(-14px); pointer-events: none; }

.stock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 4px; border-bottom: 1px dashed rgba(160,130,90,.12); gap: 8px;
}
.stock-row .sn { font-size: 13px; }
.stock-row .sn small { display: block; color: var(--muted); font-size: 11px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; border-radius: 999px; transition: .25s;
  background: rgba(224,90,78,.3); border: 1px solid rgba(224,90,78,.5);
}
.slider::before {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  left: 3px; top: 3px; background: var(--red); transition: .25s;
}
.switch input:checked + .slider { background: rgba(76,175,125,.25); border-color: rgba(76,175,125,.5); }
.switch input:checked + .slider::before { transform: translateX(20px); background: var(--green); }
.empty-msg { color: var(--muted); text-align: center; padding: 32px 10px; font-size: 13px; }

/* ─── Passcode Gate ─── */
.passcode-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg-0);
}
.passcode-gate::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(93,40,57,.06) 0%, transparent 70%);
}
.passcode-box {
  text-align: center; padding: 48px 40px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--card-border);
  box-shadow: var(--shadow); width: 360px; max-width: 90vw;
  position: relative;
}
.passcode-box svg { opacity: .7; }
.passcode-box h2 { font-family: var(--font-display); font-size: 24px; color: var(--cream); margin: 18px 0 6px; }
.passcode-box p { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.passcode-box input {
  width: 100%; padding: 16px; border-radius: 14px; border: 1.5px solid var(--card-border);
  background: var(--bg-0); color: var(--cream); font-size: 30px;
  font-family: var(--font-body); letter-spacing: 14px; text-align: center;
  outline: none; box-sizing: border-box; transition: border-color .25s, box-shadow .25s;
}
.passcode-box input:focus { border-color: #5D2839; box-shadow: 0 0 0 3px rgba(93,40,57,.1); }
.passcode-box input::placeholder { color: rgba(44,34,24,.2); letter-spacing: 14px; }
.passcode-error { color: var(--red); font-size: 12px; margin-top: 12px; display: none; font-weight: 500; }
.passcode-box button {
  margin-top: 20px; width: 100%; padding: 14px; border: none; border-radius: 14px;
  background: linear-gradient(140deg, #5D2839, #8b3a52); color: #f7f4f0;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; cursor: pointer;
  letter-spacing: 1.5px; transition: transform .15s, box-shadow .2s;
}
.passcode-box button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(93,40,57,.3); }
.passcode-box button:active { transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  nav { padding: 10px 12px; overflow: visible; }
  .brand { gap: 6px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark svg { width: 20px; height: 20px; }
  .brand-name { font-size: 22px; letter-spacing: 3px; }
  .nav-links { gap: 10px; flex-shrink: 0; }
  .nav-links a { font-size: 11px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .item-body { padding: 12px 14px 14px; }
  .item-name { font-size: 15px; }
  .item-desc { display: none; }
  .item-img-wrap { aspect-ratio: 1/1; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .footer-right { text-align: left; }
  .drawer { width: 100vw; }
  .pay-card-brands { display: none; }
  .pay-card-inner { gap: 10px; }
  .pay-card-icon { width: 38px; height: 38px; border-radius: 10px; }
}
@media (max-width: 380px) {
  .menu-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

/* ─── Scroll animations ─── */
.item-card { opacity: 0; animation: fadeUp .5s ease forwards; }
.item-card:nth-child(1) { animation-delay: 0ms; }
.item-card:nth-child(2) { animation-delay: 40ms; }
.item-card:nth-child(3) { animation-delay: 80ms; }
.item-card:nth-child(4) { animation-delay: 120ms; }
.item-card:nth-child(5) { animation-delay: 160ms; }
.item-card:nth-child(6) { animation-delay: 200ms; }
.item-card:nth-child(7) { animation-delay: 240ms; }
.item-card:nth-child(8) { animation-delay: 280ms; }
.item-card:nth-child(9) { animation-delay: 320ms; }
.item-card:nth-child(10) { animation-delay: 360ms; }

/* ─── Closed banner (shown only when store is closed) ─── */
.open-banner {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(140deg, #5D2839, #8b3a52);
  color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: .3px;
  padding: 12px 20px; box-shadow: 0 10px 28px rgba(93,40,57,.28);
}
.open-banner b { font-weight: 800; }
.ob-ico {
  font-size: 17px; display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.14); flex-shrink: 0;
  animation: pulse 1.8s infinite;
}

/* ─── Centered cart popup ─── */
.midcart-veil {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: rgba(60,40,10,.35); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .35s; padding: 20px;
}
.midcart-veil.open { opacity: 1; pointer-events: auto; }
.midcart {
  width: min(440px, 100%); max-height: 86vh; overflow-y: auto;
  background: linear-gradient(180deg, #fff, #f7f4f0);
  border: 1px solid var(--card-border); border-radius: 24px;
  padding: 24px 24px 22px; box-shadow: var(--shadow);
  transform: translateY(20px) scale(.97); transition: transform .35s var(--transition);
}
.midcart-veil.open .midcart { transform: none; }
.mc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mc-head h3 { font-family: var(--font-display); font-size: 22px; color: var(--sand-bright); }
.mc-close {
  background: none; border: 1px solid var(--card-border); color: var(--muted);
  width: 34px; height: 34px; border-radius: 50%; font-size: 16px; cursor: pointer;
  display: grid; place-items: center; transition: all var(--transition);
}
.mc-close:hover { border-color: var(--sand); color: var(--cream); }
.mc-body { max-height: 48vh; overflow-y: auto; }
.mc-foot { border-top: 1px solid var(--card-border); margin-top: 12px; padding-top: 14px; }
.mc-btns { display: flex; gap: 10px; margin-top: 14px; }

/* ─── Receipt styling inside the cart ─── */
.mc-receipt { text-align: center; }
.mc-brand { font-family: var(--font-display); font-size: 24px; letter-spacing: 3px; color: var(--gold); }
.mc-receipt-sub { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.mc-receipt-meta { font-size: 12px; color: var(--muted); margin-top: 5px; }
.mc-divider { border-top: 2px dashed rgba(160,130,90,.35); margin: 14px 0; }
.mc-line { text-align: left; margin: 12px 0; }
.mc-line-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; color: var(--cream); }
.mc-name { font-size: 14px; }
.mc-amt { font-size: 14px; white-space: nowrap; }
.mc-line-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.mc-qty { font-size: 12px; color: var(--muted); }
.mc-totals { text-align: left; margin-top: 4px; }
.mc-trow { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 4px 0; }
.mc-trow.mc-grand {
  font-size: 18px; font-weight: 800; color: var(--cream);
  border-top: 1px solid var(--card-border); margin-top: 6px; padding-top: 10px;
}
.mc-thanks { text-align: center; font-size: 12px; color: var(--sand); margin-top: 14px; font-style: italic; }
.mc-keep {
  flex: 1; padding: 14px; border-radius: 14px; cursor: pointer; font-weight: 700;
  font-size: 14px; font-family: var(--font-body); background: transparent;
  border: 1px solid var(--card-border); color: var(--sand-bright); transition: all var(--transition);
}
.mc-keep:hover { background: rgba(107,45,58,.06); border-color: rgba(107,45,58,.25); }
.mc-btns .checkout-btn { flex: 1; }

/* ─── Stock delete button ─── */
.stock-del {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; cursor: pointer;
  border: 1px solid rgba(224,90,78,.3); background: rgba(224,90,78,.08);
  color: var(--red); font-size: 13px; display: grid; place-items: center;
  transition: all var(--transition);
}
.stock-del:hover { background: var(--red); color: #fff; border-color: transparent; }

/* ─── Staff top action buttons ─── */
.staff-top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.staff-btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 18px;
  border-radius: 999px; border: 1px solid var(--card-border); cursor: pointer;
  background: var(--card); color: var(--cream); font-size: 13px; font-family: var(--font-body);
  font-weight: 600; transition: all var(--transition);
}
.staff-btn:hover { background: linear-gradient(140deg, var(--gold), #5D2839); color: #fff; border-color: transparent; }

/* ═══════════════ PRINTABLE DAILY RECEIPT ═══════════════ */
.print-area { display: none; }
@media print {
  body * { visibility: hidden !important; }
  .print-area, .print-area * { visibility: visible !important; }
  .print-area {
    display: block !important; position: absolute; left: 0; top: 0;
    width: 100%; padding: 0; margin: 0; background: #fff; color: #111;
  }
  .passcode-gate, .staff-content, .toast, nav, .bg-scene, .bg-dunes, .grain { display: none !important; }
  @page { margin: 14mm; }

  .pr-wrap { font-family: var(--font-body); color: #111; max-width: 820px; margin: 0 auto; }
  .pr-header { text-align: center; border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 14px; }
  .pr-header h1 { font-family: var(--font-display); font-size: 30px; letter-spacing: 3px; color: #5D2839; margin: 0; }
  .pr-sub { font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #444; }
  .pr-date { font-size: 14px; margin-top: 4px; }
  .pr-gen { font-size: 11px; color: #888; }
  .pr-summary {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin: 14px 0; border: 1px solid #ccc; border-radius: 10px; padding: 12px;
  }
  .pr-summary div { text-align: center; }
  .pr-summary span { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #888; }
  .pr-summary b { font-size: 18px; color: #111; }
  .pr-section { font-family: var(--font-display); font-size: 17px; color: #5D2839; margin: 18px 0 8px; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
  .pr-best { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
  .pr-line { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; border-bottom: 1px dotted #eee; }
  .pr-orders { margin-top: 4px; }
  .pr-order-head { display: flex; gap: 12px; align-items: center; font-size: 14px; }
  .pr-order-head b { letter-spacing: 1px; }
  .pr-status { font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #eee; }
  .pr-status.pr-new { background: #f6e7c2; color: #8a6d1f; }
  .pr-status.pr-preparing { background: #dcecfb; color: #2f6fb0; }
  .pr-status.pr-ready { background: #d8f0e2; color: #2a7d52; }
  .pr-status.pr-done { background: #ececec; color: #666; }
  .pr-status.pr-finished { background: #e2e2e2; color: #555; }
  .pr-meta { font-size: 12px; color: #555; margin: 2px 0 6px; }
  .pr-items { margin: 4px 0; }
  .pr-note { font-size: 12px; color: #777; font-style: italic; }
  .pr-order-total { text-align: right; font-weight: 800; margin-top: 6px; }
  .pr-empty { color: #999; font-size: 13px; }
  .pr-footer { text-align: center; font-size: 11px; color: #999; margin-top: 22px; border-top: 1px solid #ddd; padding-top: 10px; }
  .pr-orders hr { border: none; border-top: 1px solid #eee; margin: 12px 0; }

  .pr-invoice { max-width: 720px; border: 1px solid #111; border-radius: 14px; padding: 26px 30px; }
  .pr-invoice .pr-sub { color: #5D2839; }
  .pr-meta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px;
    margin: 16px 0; padding: 12px 14px; border: 1px dashed #bbb; border-radius: 10px;
  }
  .pr-meta-grid div { font-size: 13px; }
  .pr-meta-grid span { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #999; }
  .pr-meta-grid b { color: #111; font-weight: 700; }
  .pr-totals { margin-top: 16px; margin-left: auto; width: 60%; max-width: 320px; }
  .pr-trow { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; border-bottom: 1px dotted #ddd; }
  .pr-trow span { color: #555; }
  .pr-trow.pr-grand { border-bottom: none; font-size: 18px; font-weight: 800; color: #5D2839; padding-top: 10px; }
  .pr-note-box {
    margin-top: 16px; padding: 10px 14px; background: #faf7f1; border-left: 3px solid #5D2839;
    border-radius: 6px; font-size: 13px; color: #555;
  }
  .pr-note-box span { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #999; margin-bottom: 3px; }
}
