/* ==========================================================
   INTERACTIVE FRENCH BAKERY & CAFE - CORE STYLESHEET
   Warm Parisian Coffee & Viennoiserie Palette
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Playfair Display', Georgia, serif;

  /* Palette */
  --bg-sand: #f8f3ec;
  --bg-cream: #faf5ee;
  --pal-ivory: #FFFDF9;
  --pal-crema: #eed9c4;
  --primary: #b0744b;
  --primary-dark: #8c5531;
  --primary-light: #d2a679;
  --accent-gold: #c89554;
  --accent-gold-glow: rgba(200, 149, 84, 0.45);
  --text-main: #2b1810;
  --text-muted: #7a5c49;
  --border-color: #e6d3c0;
  --border-light: rgba(176, 116, 75, 0.18);
  --bg-glass: rgba(255, 253, 249, 0.88);
  --success: #2e7d32;
  --danger: #c62828;
  --shadow-sm: 0 2px 8px rgba(43, 24, 16, 0.06);
  --shadow-md: 0 6px 20px rgba(43, 24, 16, 0.10);
  --shadow-lg: 0 14px 40px rgba(43, 24, 16, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: var(--font-fa);
  background: radial-gradient(ellipse at 50% 0%, #faf3ea 0%, #f4e8d8 50%, #e8d7c2 100%);
  color: var(--text-main);
  min-height: 100vh;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* App Container */
.app-container {
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-cream);
  box-shadow: 0 0 40px rgba(43, 24, 16, 0.08);
}

/* ==========================================================
   TOP HEADER (NO CATEGORY TABS)
   ========================================================== */
.top-header {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--border-color);
  padding: 10px 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  object-fit: cover;
  background: #fff;
  box-shadow: 0 4px 12px rgba(176, 116, 75, 0.25);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-sand);
  color: var(--text-main);
  border: 1px solid var(--accent-gold);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 800;
}

.header-cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: 1px solid #8c5531;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(176, 116, 75, 0.28);
  transition: all 0.2s ease;
}

.header-cart-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(176, 116, 75, 0.36);
}

.header-cart-count {
  background: #d32f2f;
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--pal-ivory);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--bg-sand);
  transform: scale(1.05);
}

/* ==========================================================
   NAVIGATION BREADCRUMB & BACK CONTROLS
   ========================================================== */
.scene-navigation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: linear-gradient(180deg, rgba(248, 243, 236, 0.95) 0%, rgba(248, 243, 236, 0.6) 100%);
  border-bottom: 1px solid var(--border-light);
  min-height: 48px;
}

.scene-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.breadcrumb-link {
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--primary-dark);
}

.breadcrumb-sep {
  color: #c4ab98;
  font-size: 0.75rem;
}

.scene-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFDF9;
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(176, 116, 75, 0.15);
  transition: all 0.25s ease;
}

.scene-back-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 5px 14px rgba(176, 116, 75, 0.3);
}

.scene-back-btn i {
  transition: transform 0.2s;
}

.scene-back-btn:hover i {
  transform: translateX(3px);
}

/* Scene Instructions Micro-Banner */
.scene-guide-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 18px;
  background: #FFFDF9;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.scene-guide-banner i {
  color: var(--accent-gold);
}

/* ==========================================================
   INTERACTIVE STAGE & CAMERA VIEWPORT
   ========================================================== */
.interactive-stage {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #1e110b;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.camera-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
  transition: transform 0.75s cubic-bezier(0.25, 1, 0.35, 1);
  will-change: transform;
}

.scene-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  overflow: hidden;
}

.scene-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* Cross-fade Zone Scene Image Layer */
.zone-view-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 10;
}

.zone-view-layer.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================
   CLICKABLE AREA / HOTSPOT STYLING (MAIN VIEW ZONES)
   ========================================================== */
.hotspot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 5;
}

.zone-clickable-box {
  position: absolute;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 2px dashed rgba(200, 149, 84, 0.65);
  background: rgba(200, 149, 84, 0.08);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  backdrop-filter: blur(1px);
}

.zone-clickable-box:hover {
  border-color: #ffffff;
  border-style: solid;
  background: rgba(176, 116, 75, 0.28);
  box-shadow: 0 0 24px rgba(246, 186, 132, 0.5), inset 0 0 16px rgba(255, 255, 255, 0.25);
  transform: scale(1.01);
  z-index: 20;
}

/* Pulsing Badge on Hotspot */
.zone-hotspot-pin {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(43, 24, 16, 0.88);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1.5px solid var(--accent-gold);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  pointer-events: none;
}

.zone-clickable-box:hover .zone-hotspot-pin {
  background: var(--primary);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(176, 116, 75, 0.55);
}

/* Pulse Ring Animation */
.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  position: relative;
  display: inline-block;
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================
   ZONE VIEW ITEM HOTSPOTS (INDIVIDUAL PRODUCTS)
   ========================================================== */
.item-hotspot-box {
  position: absolute;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(176, 116, 75, 0.15);
  transition: all 0.25s ease;
  z-index: 15;
}

.item-hotspot-box:hover {
  border-color: #fff;
  background: rgba(200, 149, 84, 0.35);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
  z-index: 30;
}

.item-pill-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(43, 24, 16, 0.92);
  color: #fff;
  border: 1.5px solid var(--accent-gold);
  border-radius: 18px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  pointer-events: none;
}

.item-hotspot-box:hover .item-pill-tag {
  background: var(--primary);
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.06);
}

.item-pill-price {
  color: #fce7b2;
  font-weight: 900;
}

/* ==========================================================
   ITEM DETAIL CARD MODAL (POPUP WHEN ITEM CLICKED)
   ========================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 17, 11, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--pal-ivory);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-backdrop.show .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #fef2f2;
  color: #dc2626;
  transform: rotate(90deg);
}

.item-card-cover-container {
  width: 100%;
  height: 220px;
  position: relative;
  background: #ebd8c5;
  overflow: hidden;
}

.item-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.item-card-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: 1px solid #ffffff;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.item-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-card-title-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.item-card-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
}

.item-card-en-title {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.item-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg-sand);
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

.item-card-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.item-card-unit {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}

.item-card-description {
  font-size: 0.86rem;
  color: #553a29;
  line-height: 1.65;
  font-weight: 500;
}

.item-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-sand);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: var(--border-color);
}

.qty-display {
  width: 36px;
  text-align: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--text-main);
}

.btn-add-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(176, 116, 75, 0.3);
  transition: all 0.25s ease;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(176, 116, 75, 0.42);
}

/* Modal Back to Zone button */
.modal-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--pal-ivory);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.modal-back-btn:hover {
  background: var(--bg-sand);
  color: var(--primary-dark);
}

/* ==========================================================
   CART MODAL & TOAST
   ========================================================== */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-sand);
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.cart-totals-box {
  background: var(--bg-sand);
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border-color);
}

.cart-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.cart-total-line.final {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary-dark);
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
}

.toast-msg {
  background: rgba(43, 24, 16, 0.94);
  color: #fff;
  border: 1px solid var(--accent-gold);
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in 0.3s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   ADMIN PANEL STYLES
   ========================================================== */
.admin-body {
  background: #18110c;
  color: #f5ece3;
}

.admin-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px;
}

.admin-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #241912;
  border: 1px solid #3d2a1f;
  border-radius: var(--radius-md);
  padding: 14px 22px;
  margin-bottom: 20px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-nav-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid #3d2a1f;
  padding-bottom: 12px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: 12px;
  background: #241912;
  border: 1px solid #3d2a1f;
  color: #d1b8a5;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--accent-gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: #241912;
  border: 1px solid #3d2a1f;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(176, 116, 75, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}

.stat-label {
  font-size: 0.78rem;
  color: #a88c78;
  font-weight: 600;
}

/* Interactive Canvas / Visual Bounding Box Editor */
.visual-canvas-container {
  background: #241912;
  border: 1.5px solid #3d2a1f;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 24px;
}

.visual-canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.canvas-instruction {
  font-size: 0.82rem;
  color: #d1b8a5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.image-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid #3d2a1f;
  background: #110b07;
  cursor: crosshair;
  user-select: none;
}

.image-canvas-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Drawn Rectangles on Admin Canvas */
.canvas-bbox {
  position: absolute;
  border: 2px solid #f59e0b;
  background: rgba(245, 158, 11, 0.22);
  cursor: move;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4px;
  box-sizing: border-box;
}

.canvas-bbox.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}

.canvas-bbox-tag {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

/* Forms & Tables */
.admin-table-container {
  background: #241912;
  border: 1px solid #3d2a1f;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.85rem;
}

.admin-table th {
  background: #1e150f;
  color: #d1b8a5;
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 1px solid #3d2a1f;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #2d1f16;
  color: #f5ece3;
}

.admin-input, .admin-select, .admin-textarea {
  width: 100%;
  background: #18110c;
  border: 1px solid #4a3427;
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  font-family: var(--font-fa);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  border-color: var(--accent-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #332319;
  border: 1px solid #4a3427;
  color: #d1b8a5;
}
.btn-secondary:hover {
  background: #422d21;
  color: #fff;
}

.btn-danger {
  background: #991b1b;
  color: #fff;
}
.btn-danger:hover {
  background: #b91c1c;
}

.btn-success {
  background: #166534;
  color: #fff;
}
.btn-success:hover {
  background: #15803d;
}

/* ==========================================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS
   ========================================================== */
.mobile-floating-back-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 24, 16, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1.5px solid var(--accent-gold);
  border-radius: 25px;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  z-index: 80;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.mobile-floating-back-btn:active {
  transform: translateX(-50%) scale(0.96);
  background: var(--primary);
}

@media (max-width: 600px) {
  .top-header {
    padding: 8px 12px;
  }

  .brand-section {
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-en {
    font-size: 0.62rem;
  }

  .header-actions {
    gap: 6px;
  }

  .header-cart-pill {
    padding: 5px 10px;
    font-size: 0.74rem;
    gap: 5px;
  }

  .table-header-badge {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .scene-navigation-bar {
    padding: 6px 12px;
    min-height: 40px;
  }

  .scene-breadcrumb {
    font-size: 0.74rem;
  }

  .scene-back-btn {
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  .zone-hotspot-pin {
    padding: 4px 8px;
    font-size: 0.65rem;
    bottom: 6px;
    right: 6px;
    gap: 4px;
  }

  .item-pill-tag {
    padding: 3px 7px;
    font-size: 0.64rem;
  }

  .interactive-stage {
    min-height: 420px;
  }

  .modal-box {
    width: 95%;
    max-width: 380px;
  }

  .item-card-cover-container {
    height: 180px;
  }

  .item-card-body {
    padding: 14px 16px;
    gap: 10px;
  }

  .item-card-title {
    font-size: 1.05rem;
  }

  .item-card-price {
    font-size: 1.1rem;
  }
}
