/* ============================================================
   PIZZA PALACE – THEME
   Primary: #C0392B (Tomato Red) | Gold: #F39C12 | Dark: #1C0A00
   ============================================================ */

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

:root {
  --primary:    #C0392B;
  --primary-dk: #922B21;
  --primary-lt: #FDEDEC;
  --accent:     #F39C12;
  --accent-dk:  #D68910;
  --accent-lt:  #FEF9E7;
  --green:      #27AE60;
  --green-lt:   #EAFAF1;
  --dark:       #1C0A00;
  --dark-2:     #3B1F13;
  --text:       #2C1810;
  --sub:        #6D4C41;
  --muted:      #A1887F;
  --bg:         #FFF5EC;
  --white:      #FFFFFF;
  --border:     #F0D9CC;
  --shadow:     0 2px 14px rgba(140,40,0,0.10);
  --shadow-md:  0 6px 28px rgba(140,40,0,0.16);
  --radius:     14px;
  --radius-sm:  9px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ── Notif Bar ── */
.notif-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  padding: 12px 20px; text-align: center; font-weight: 700;
  background: var(--green); color: #fff; font-size: 14px;
  animation: slideDown .3s ease;
}
.notif-bar.error { background: var(--primary); }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }

/* ── Header ── */
.header {
  background: var(--dark); color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { font-size: 34px; }
.brand-name { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; color: var(--accent); }
.brand-tagline { font-size: 11px; opacity: .7; color: #ddd; }
.header-actions { display: flex; gap: 10px; align-items: center; }

.btn-track {
  background: rgba(255,255,255,.1); color: #ddd;
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 14px; border-radius: 20px; cursor: pointer;
  font-size: 13px; font-weight: 600; transition: background .2s;
}
.btn-track:hover { background: rgba(255,255,255,.2); color: #fff; }

.btn-cart {
  background: var(--primary); color: #fff;
  border: none; padding: 10px 18px; border-radius: 20px;
  cursor: pointer; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 8px;
  transition: transform .15s, background .2s;
}
.btn-cart:hover { background: var(--primary-dk); transform: scale(1.05); }
.cart-badge {
  background: var(--accent); color: var(--dark);
  border-radius: 50%; width: 22px; height: 22px; font-size: 12px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, #3D0C02 50%, #1C0A00 100%);
  min-height: 340px; display: flex; align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(192,57,43,0.25) 0%, transparent 70%);
}
.hero-content {
  position: relative; z-index: 2; padding: 60px 20px;
}
.hero-badge {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700;
  margin-bottom: 18px; letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(32px, 6vw, 56px); font-weight: 900; color: #fff;
  line-height: 1.1; margin-bottom: 14px; letter-spacing: -1px;
}
.hero-title span { color: var(--accent); }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.7); margin-bottom: 28px; }
.btn-hero {
  background: var(--accent); color: var(--dark);
  border: none; padding: 14px 32px; border-radius: 30px;
  font-size: 16px; font-weight: 800; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(243,156,18,.5);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(243,156,18,.6); }
.hero-emojis {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 1; opacity: .2;
  font-size: 48px;
}

/* ── Banner ── */
.banner-section { padding: 12px 0; background: var(--dark-2); }
.banner-slider { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
.banner-slider::-webkit-scrollbar { display: none; }
.banner-card {
  flex-shrink: 0; padding: 10px 20px; border-radius: var(--radius-sm);
  color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap;
}

/* ── Promo Bar ── */
.promo-bar { padding: 10px 0; background: var(--accent-lt); border-bottom: 1px solid var(--border); }
.promo-tags-row { display: flex; gap: 8px; flex-wrap: wrap; }
.promo-tag {
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.promo-tag.red { background: var(--primary-lt); color: var(--primary); }
.promo-tag.blue { background: #EBF5FB; color: #1A5276; }
.promo-tag.green { background: var(--green-lt); color: var(--green); }
.promo-tag.yellow { background: var(--accent-lt); color: var(--accent-dk); }

/* ── Main ── */
.main-content { padding: 40px 0 60px; }
.section-title { margin-bottom: 26px; }
.section-title h2 { font-size: 28px; font-weight: 900; color: var(--text); }
.section-title p { color: var(--muted); font-size: 13px; margin-top: 5px; }

/* ── Category Tabs ── */
.category-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px;
}
.cat-tab {
  padding: 9px 18px; border-radius: 24px;
  border: 2px solid var(--border); background: var(--white);
  cursor: pointer; font-weight: 700; font-size: 13px; color: var(--sub);
  transition: all .2s; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(140,40,0,0.06);
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(192,57,43,.35);
}

/* ── Menu Grid ── */
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px; margin-bottom: 52px;
}
.menu-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; position: relative;
  border: 1px solid var(--border);
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.menu-card.unavailable { opacity: .5; }

.card-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; min-height: 22px; }
.veg-badge {
  background: var(--green-lt); color: var(--green);
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 10px;
}
.hot-badge {
  background: #FEF0E6; color: #E67E22;
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 10px;
}
.unavail-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--primary-lt); color: var(--primary);
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px;
}
.size-badge {
  background: var(--accent-lt); color: var(--accent-dk);
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 10px;
}

.menu-card-emoji { font-size: 32px; margin-bottom: 10px; }
.menu-card-name { font-weight: 800; font-size: 15px; color: var(--text); margin-bottom: 5px; }
.menu-card-desc { font-size: 12px; color: var(--muted); margin-bottom: 14px; flex: 1; line-height: 1.4; }
.menu-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.menu-price { font-size: 19px; font-weight: 900; color: var(--primary); }
.menu-price small { font-size: 11px; font-weight: 500; color: var(--muted); display: block; line-height: 1; }

.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--primary); background: var(--white);
  color: var(--primary); font-size: 17px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-val { font-weight: 800; font-size: 15px; min-width: 22px; text-align: center; }
.btn-add {
  background: var(--primary); color: #fff;
  border: none; padding: 8px 16px; border-radius: 20px;
  cursor: pointer; font-size: 13px; font-weight: 700;
  transition: background .2s, transform .15s;
}
.btn-add:hover { background: var(--primary-dk); transform: scale(1.05); }
.btn-size {
  background: var(--accent); color: var(--dark);
  border: none; padding: 8px 14px; border-radius: 20px;
  cursor: pointer; font-size: 12px; font-weight: 800;
  transition: background .2s, transform .15s;
}
.btn-size:hover { background: var(--accent-dk); transform: scale(1.05); }

/* ── Size Picker ── */
.size-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); margin-bottom: 10px;
  cursor: pointer; transition: all .2s; background: var(--white);
}
.size-option:hover {
  border-color: var(--primary); background: var(--primary-lt);
  transform: translateX(4px);
}
.size-option:last-child { margin-bottom: 0; }
.size-name { font-weight: 700; font-size: 14px; color: var(--text); }
.size-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.size-price-tag { font-size: 20px; font-weight: 900; color: var(--primary); }
.size-arrow { color: var(--muted); font-size: 18px; }

/* ── Cart Sidebar ── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200;
}
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 370px; max-width: 95vw;
  background: var(--white); z-index: 201;
  display: flex; flex-direction: column;
  box-shadow: -6px 0 32px rgba(0,0,0,0.18);
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.cart-header {
  padding: 20px; border-bottom: 2px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--dark); color: #fff;
}
.cart-header h3 { font-size: 18px; font-weight: 800; color: var(--accent); }
.icon-btn {
  background: rgba(255,255,255,.15); border: none; font-size: 16px;
  cursor: pointer; color: #fff; padding: 6px 10px; border-radius: 8px;
  transition: background .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.3); }
.icon-btn.light { background: none; color: var(--text); }
.icon-btn.light:hover { background: var(--bg); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item {
  display: flex; gap: 10px; align-items: center;
  padding: 12px; border-radius: var(--radius-sm); margin-bottom: 8px;
  background: var(--bg); border: 1px solid var(--border);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-cat { font-size: 11px; color: var(--muted); }
.cart-item-price { font-weight: 800; color: var(--primary); font-size: 14px; white-space: nowrap; }
.cart-item-controls { display: flex; align-items: center; gap: 5px; }
.cart-item-remove { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 18px; padding: 0 2px; }

.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1; padding: 40px; color: var(--muted); gap: 8px;
  text-align: center;
}
.cart-empty-icon { font-size: 56px; }
.cart-empty span { font-size: 13px; }

.cart-footer { padding: 20px; border-top: 2px solid var(--border); background: #FFF9F6; }
.cart-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: var(--sub); }
.cart-row.grand { font-size: 20px; font-weight: 900; color: var(--text); margin-bottom: 16px; }

/* ── Buttons ── */
.btn-primary {
  background: var(--primary); color: #fff;
  border: none; padding: 13px 26px; border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 800; font-size: 15px;
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-1px); }
.btn-primary.sm { padding: 8px 16px; font-size: 13px; border-radius: 6px; }
.btn-primary.full { width: 100%; }
.btn-danger { background: var(--primary); color: #fff; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 700; }
.btn-success { background: var(--green); color: #fff; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 700; }
.btn-warning { background: var(--accent); color: var(--dark); border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 800; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 700; }
.btn-outline:hover { background: var(--primary-lt); }

/* ── Modals ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--white); border-radius: var(--radius);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-md); animation: popIn .25s ease;
}
.modal.modal-sm { max-width: 400px; }
@keyframes popIn { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.pizza-modal-header {
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: flex-start;
  background: var(--dark); color: #fff;
}
.pizza-modal-header h3 { font-size: 17px; font-weight: 800; color: var(--accent); }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--primary-lt);
}
.modal-header h3 { font-size: 17px; font-weight: 800; color: var(--primary); }
.success-header { background: var(--green-lt); }
.success-header h3 { color: var(--green); font-size: 20px; }
.modal-body { padding: 24px; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text);
  background: var(--white); transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.order-summary-block {
  background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border);
  padding: 14px; margin-bottom: 20px;
}
.sum-item { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--sub); }
.sum-item.total-line { font-weight: 800; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; color: var(--text); font-size: 14px; }
.order-total-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--dark); padding: 14px 18px; border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.order-total-bar span:first-child { font-weight: 700; color: rgba(255,255,255,.8); }
.total-highlight { font-size: 24px; font-weight: 900; color: var(--accent); }

/* ── Confirm Modal ── */
.confirm-order-num { font-size: 38px; font-weight: 900; color: var(--green); letter-spacing: 2px; margin: 16px 0 10px; }
.text-center { text-align: center; }
.tip-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ── Order Board ── */
.order-board { display: flex; flex-direction: column; gap: 12px; margin-bottom: 52px; }
.no-orders { text-align: center; color: var(--muted); padding: 48px; font-size: 14px; background: var(--white); border-radius: var(--radius); border: 2px dashed var(--border); }
.order-status-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
  border-left: 5px solid var(--border);
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.order-status-card.pending    { border-color: #BDC3C7; }
.order-status-card.confirmed  { border-color: #3498DB; }
.order-status-card.preparing  { border-color: var(--accent); }
.order-status-card.ready      { border-color: var(--green); }
.order-status-card.delivered  { border-color: #3498DB; opacity: .7; }
.order-num   { font-size: 12px; font-weight: 700; color: var(--muted); }
.order-name  { font-weight: 800; font-size: 16px; color: var(--text); }
.order-items-summary { font-size: 12px; color: var(--sub); margin-top: 3px; }
.status-pill {
  margin-left: auto; padding: 7px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 800; white-space: nowrap;
}
.status-pill.pending   { background: #F2F3F4; color: var(--muted); }
.status-pill.confirmed { background: #EBF5FB; color: #1A5276; }
.status-pill.preparing { background: var(--accent-lt); color: #8B6914; }
.status-pill.ready     { background: var(--green-lt); color: var(--green); }
.status-pill.delivered { background: #EBF5FB; color: #1A5276; }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 24px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-brand { font-weight: 900; font-size: 16px; color: var(--accent); }
.footer a { color: var(--accent); font-weight: 600; }
.admin-link { color: rgba(255,255,255,.4); font-size: 12px; }
.admin-link:hover { color: rgba(255,255,255,.7); }

/* ============================
   ADMIN PANEL
   ============================ */
.admin-body { background: #F5ECE8; }

/* Login */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--dark); }
.login-card {
  background: var(--white); border-radius: var(--radius);
  padding: 40px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4); text-align: center;
}
.login-logo { font-size: 52px; margin-bottom: 10px; }
.login-card h2 { font-size: 24px; font-weight: 900; color: var(--text); }
.login-sub { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.login-error { background: var(--primary-lt); color: var(--primary); padding: 10px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; font-weight: 600; }
.back-link { display: block; margin-top: 18px; color: var(--primary); font-size: 13px; font-weight: 700; }

/* Admin panel layout */
.admin-panel { min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--dark); color: #fff;
  padding: 0 24px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.admin-brand { font-weight: 900; font-size: 17px; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.admin-user { opacity: .75; }
.btn-logout { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-logout:hover { background: rgba(255,255,255,.2); }
.btn-outline-sm { background: var(--accent); color: var(--dark); padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.new-order-badge { background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

.admin-layout { display: flex; flex: 1; overflow: hidden; }
.admin-sidebar { width: 220px; background: var(--dark-2); padding: 20px 0; flex-shrink: 0; overflow-y: auto; }
.sidebar-nav { }
.nav-item {
  padding: 13px 20px; cursor: pointer; font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 10px;
  border-left: 3px solid transparent; transition: all .15s;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.nav-item.active { background: rgba(192,57,43,.25); color: var(--accent); border-left-color: var(--primary); }
.nav-icon { font-size: 16px; }
.badge-count { background: var(--primary); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 10px; margin-left: auto; }

.admin-content { flex: 1; padding: 28px; overflow-y: auto; }
.admin-section { }
.sec-title { font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 24px; }
.sec-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.sec-header-row .sec-title { margin-bottom: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.stat-card.red   { background: var(--primary); color: #fff; }
.stat-card.orange{ background: var(--accent); color: var(--dark); }
.stat-card.dark  { background: var(--dark); color: #fff; }
.stat-card.green { background: var(--green); color: #fff; }
.stat-num { font-size: 38px; font-weight: 900; }
.stat-label { font-size: 13px; opacity: .85; font-weight: 700; margin-top: 4px; }

.admin-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.admin-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.card-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-header-row h3 { margin-bottom: 0; }
.row-group { display: flex; gap: 8px; align-items: center; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 12px; font-weight: 800; background: var(--bg); color: var(--sub); border-bottom: 2px solid var(--border); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #FFF9F6; }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }

.order-row-card { background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
.order-row-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.order-id { font-weight: 900; color: var(--primary); font-size: 15px; }
.order-customer { font-weight: 700; font-size: 14px; }
.order-time { font-size: 11px; color: var(--muted); margin-left: auto; }
.order-row-body { font-size: 13px; color: var(--sub); }
.order-row-footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }

.cat-list { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 8px 14px; font-size: 13px; font-weight: 700; }
.cat-chip button { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 15px; }

.banner-list-item, .promo-list-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; }
.user-table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.recent-orders-wrap h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.filter-row select { padding: 8px 12px; border: 2px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--white); cursor: pointer; }
.filter-row select:focus { outline: none; border-color: var(--primary); }

.detail-section { margin-bottom: 16px; }
.detail-section h4 { font-weight: 800; margin-bottom: 8px; color: var(--text); }
.detail-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--sub); }

.btn-wa { background: #25D366; color: #fff; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.btn-email { background: #E74C3C; color: #fff; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 700; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 25px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--border); border-radius: 25px; transition: .3s; }
.toggle-slider::before { content: ''; position: absolute; width: 19px; height: 19px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .3s; }
.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(21px); }

/* Sizes editor in admin */
.sizes-editor { margin-top: 10px; }
.size-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.size-row input { flex: 1; }
.size-row button { background: var(--primary); color: #fff; border: none; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { width: 56px; }
  .nav-item span:not(.nav-icon):not(.badge-count) { display: none; }
  .nav-item { justify-content: center; padding: 14px 0; }
  .hero-emojis { display: none; }
}
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .brand-name { font-size: 18px; }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .cart-sidebar { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .admin-topbar-right span.admin-user { display: none; }
}
