/* =========================================================
   مطعم السلام — نظام التصميم
   الفكرة: سوق التوابل الليلي + تذكرة الطلب في المطبخ
   الألوان: خلفية داكنة دافئة + ذهبي زعفران + أحمر فلفل + زيتوني
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@300;400;500;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  --bg:            #17140F;
  --bg-elevated:   #211B14;
  --bg-elevated-2: #2A2318;
  --cream:         #F2E9D8;
  --muted:         #B3A78E;
  --gold:          #D9A441;
  --gold-dim:      #A8801F;
  --paprika:       #C1442B;
  --paprika-dim:   #8F2F1D;
  --olive:         #7C8A55;
  --line:          rgba(242,233,216,0.14);
  --line-strong:   rgba(242,233,216,0.28);
  --radius:        14px;
  --shadow:        0 18px 40px rgba(0,0,0,0.35);
  --font-display:  'Cairo', sans-serif;
  --font-body:     'Tajawal', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.65;
  direction: rtl;
}

/* subtle woven-fabric / grain texture on the background */
body::before{
  content:"";
  position: fixed; inset:0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(217,164,65,0.06), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(193,68,43,0.06), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

h1,h2,h3,h4{ font-family: var(--font-display); margin:0; color: var(--cream); }
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
input,textarea,select{ font-family: inherit; }

.container{ max-width: 1140px; margin:0 auto; padding: 0 24px; position: relative; z-index:1; }

/* ---------------------------------------------------------
   الشريط العلوي
--------------------------------------------------------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(23,20,15,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; height:76px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-logo{
  width:70px; height:70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo{
  transform: scale(1.08) rotate(-5deg);
}
.brand-mark{
  width:44px; height:44px; border-radius:50%;
  background: conic-gradient(from 210deg, var(--paprika), var(--gold), var(--olive), var(--paprika));
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:900; color:var(--bg); font-size:18px;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text strong{ font-family: var(--font-display); font-weight:800; font-size:19px; }
.brand-text span{ font-size:12px; color: var(--muted); letter-spacing:.5px; }

.main-nav{ display:flex; align-items:center; gap:28px; }
.main-nav a{ font-size:15px; color: var(--muted); transition: color .2s; position:relative; }
.main-nav a:hover, .main-nav a.active{ color: var(--gold); }
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after {
  transform: scaleX(1);
}

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

.cart-link{
  display:flex; align-items:center; gap:8px;
  background: var(--bg-elevated); border:1px solid var(--line-strong);
  padding:9px 18px; border-radius: 999px; font-size:14px; color: var(--cream) !important;
  transition: border-color .2s, background .2s, transform 0.15s;
}
.cart-link:hover{ border-color: var(--gold); transform: translateY(-1px); }
.cart-link:active{ transform: translateY(1px); }
.cart-badge{
  background: var(--paprika); color:#fff; font-size:11px; font-weight:700;
  min-width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono);
  transition: transform 0.2s ease;
}
.status-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  border:1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.status-btn.open{
  background: rgba(124, 138, 85, 0.15);
  border-color: rgba(124, 138, 85, 0.35);
  color: var(--gold);
}
.status-btn.closed{
  background: rgba(193, 68, 43, 0.14);
  border-color: rgba(193, 68, 43, 0.35);
  color: var(--paprika);
}
.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.admin-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(217,164,65,0.12);
}

.store-status-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid rgba(242,233,216,0.08);
}
.store-status-banner.open {
  background: rgba(124, 138, 85, 0.12);
  color: var(--gold);
}
.store-status-banner.closed {
  background: rgba(193, 68, 43, 0.12);
  color: var(--paprika);
}
.status-closed {
  display: inline-block;
  width: 100%;
  color: var(--paprika);
  font-weight: 700;
  text-align: center;
}

.store-closed-alert {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  border-radius: 14px;
  background: rgba(193, 68, 43, 0.16);
  color: var(--cream);
  border: 1px solid rgba(193, 68, 43, 0.28);
  text-align: center;
  font-weight: 700;
  margin-bottom: 20px;
}

.home-alert {
  margin-top: 16px;
}

.cart-badge.bounce {
  animation: cart-bounce 0.4s ease;
}

@keyframes cart-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Hamburger button */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 110;
}
.burger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.3s ease;
}
.burger-btn.open .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.open .burger-bar:nth-child(2) {
  opacity: 0;
}
.burger-btn.open .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -285px;
  width: 280px;
  background: rgba(23, 20, 15, 0.98);
  backdrop-filter: blur(15px);
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  z-index: 105;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer.open {
  right: 0;
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 32px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.close-drawer-btn:hover {
  color: var(--gold);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid rgba(242,233,216,0.05);
  transition: color 0.2s, padding-right 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--gold);
  padding-right: 8px;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  width: calc(100% - 48px);
}
.toast {
  background: rgba(33, 27, 20, 0.95);
  backdrop-filter: blur(8px);
  border-right: 4px solid var(--gold);
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: toast-in 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s, transform 0.3s;
}
.toast.success {
  border-right-color: var(--olive);
}
.toast.error {
  border-right-color: var(--paprika);
}
.toast-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  line-height: 1;
}
.toast-close:hover {
  color: var(--cream);
}
@keyframes toast-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-20px); }
}


/* ---------------------------------------------------------
   الهيرو
--------------------------------------------------------- */
.hero {
  padding: 84px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  max-width: 760px;
  line-height: 1.25;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  bottom: 5px; left: 0; right: 0;
  height: 8px;
  background: rgba(217, 164, 65, 0.15);
  z-index: -1;
  border-radius: 4px;
}
.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin-top: 18px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, background-color .18s, border-color .18s;
}
.btn:active {
  transform: scale(.97);
}
.btn-primary {
  background: var(--paprika);
  color: #fff;
  box-shadow: 0 10px 24px rgba(193, 68, 43, 0.25);
}
.btn-primary:hover {
  background: var(--paprika-dim);
  box-shadow: 0 14px 30px rgba(193, 68, 43, 0.4);
}
.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--cream);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(217, 164, 65, 0.04);
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 8px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  display: block;
}
.hero-stats div span {
  font-size: 13px;
  color: var(--muted);
}

/* Hero visual / floating elements */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
}
.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow), 0 0 30px rgba(217, 164, 65, 0.2);
  z-index: 2;
  position: relative;
  animation: float 6s ease-in-out infinite;
}
.hero-glow {
  position: absolute;
  top: -10%; left: -10%; right: -10%; bottom: -10%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.15) 0%, transparent 70%);
  z-index: 1;
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}
.floating-badge {
  position: absolute;
  background: rgba(33, 27, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 3;
  animation: float-badge 4s ease-in-out infinite alternate;
}
.floating-badge.badge-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0.5s;
}
.floating-badge.badge-2 {
  bottom: 10%;
  left: -25px;
  animation-delay: 1.2s;
}
.floating-badge .icon {
  font-size: 24px;
}
.floating-badge h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: var(--gold);
}
.floating-badge p {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 0 0;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes float-badge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}
@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

/* ---------------------------------------------------------
   شريط الأصناف
--------------------------------------------------------- */
.category-bar-wrapper {
  position: relative;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.category-bar-wrapper::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 50px;
  background: linear-gradient(to right, var(--bg), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.category-bar-wrapper.has-scroll::after {
  opacity: 1;
}
.category-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 0;
  width: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-bar::-webkit-scrollbar {
  display: none;
}
.category-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.25s ease;
  background: var(--bg-elevated);
}
.category-pill:hover {
  color: var(--cream);
  border-color: var(--gold);
  background: var(--bg-elevated-2);
}
.category-pill.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(217, 164, 65, 0.25);
}

/* ---------------------------------------------------------
   بطاقة الطبق - على شكل تذكرة طلب مثقوبة
--------------------------------------------------------- */
.menu-section {
  padding: 20px 0 40px;
  scroll-margin-top: 100px;
}
.menu-section h2 {
  font-size: 26px;
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-section h2 .icon {
  font-size: 22px;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.ticket {
  position: relative;
  background: var(--bg-elevated);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.ticket:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(217, 164, 65, 0.08), var(--shadow);
}

/* notch holes to sell the "ticket stub" idea */
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.ticket::before { right: -10px; }
.ticket::after { left: -10px; }

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  z-index: 2;
}
.ticket-top h3 {
  font-size: 18px;
  font-weight: 700;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  color: #fff;
  flex-shrink: 0;
}
.tag.gold { background: var(--gold-dim); }
.tag.paprika { background: var(--paprika-dim); }
.tag.olive { background: var(--olive); }

.ticket p.desc {
  color: var(--muted);
  font-size: 13.5px;
  min-height: 38px;
  z-index: 2;
}

.ticket-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: auto;
  z-index: 2;
}
.price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--gold);
  font-size: 16px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cream);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  box-shadow: 0 4px 10px rgba(217, 164, 65, 0.2);
}
.qty-val {
  min-width: 18px;
  text-align: center;
  font-family: var(--font-mono);
}

.unavailable {
  opacity: .45;
  filter: grayscale(.4);
}
.unavailable .qty-control {
  pointer-events: none;
}

.ticket-image {
  width: calc(100% + 40px);
  margin: -22px -20px 8px -20px;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 1.6;
  position: relative;
}
.ticket-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ticket:hover .ticket-image img {
  transform: scale(1.08);
}

/* ---------------------------------------------------------
   السلة / الدفع
--------------------------------------------------------- */
.page-title {
  padding: 48px 0 8px;
}
.page-title h1 {
  font-size: 34px;
}
.page-title p {
  color: var(--muted);
  margin-top: 8px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  padding-bottom: 60px;
  align-items: start;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}
.cart-item.removing {
  opacity: 0;
  transform: translateX(-30px);
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border-bottom: none;
  overflow: hidden;
}
.cart-item .info {
  flex: 1;
}
.cart-item .info h4 {
  font-size: 16px;
  font-weight: 700;
}
.cart-item .info span {
  font-size: 13px;
  color: var(--muted);
}
.remove-link {
  color: var(--paprika);
  font-size: 13px;
  transition: color 0.2s;
}
.remove-link:hover {
  color: var(--paprika-dim);
}

.summary-box {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--muted);
}
.summary-row.total {
  color: var(--cream);
  font-weight: 800;
  font-size: 19px;
  border-top: 1px dashed var(--line-strong);
  margin-top: 8px;
  padding-top: 16px;
}
.summary-row.total .price {
  font-size: 19px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--cream);
  padding: 13px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(217, 164, 65, 0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-state .emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ---------------------------------------------------------
   إيصال تأكيد الطلب
--------------------------------------------------------- */
.receipt {
  max-width: 440px;
  margin: 60px auto;
  background: var(--bg-elevated);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
  box-shadow: var(--shadow);
}
.receipt::before, .receipt::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  background: var(--bg);
  border-radius: 50%;
}
.receipt::before { right: 24px; }
.receipt::after { left: 24px; }
.receipt-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;
}
.receipt h2 {
  text-align: center;
  font-size: 22px;
}
.receipt .code {
  text-align: center;
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 2px;
  margin: 14px 0 22px;
}
.receipt-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
}
.receipt-line b {
  color: var(--cream);
  font-weight: 600;
}

/* ---------------------------------------------------------
   لوحة الإدارة
--------------------------------------------------------- */
.admin-shell {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  background: var(--bg-elevated);
  border-left: 1px solid var(--line);
  padding: 26px 20px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}
.admin-sidebar .brand-text strong {
  font-size: 16px;
}
.admin-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-nav a {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.admin-nav a:hover {
  background: var(--bg-elevated-2);
  color: var(--cream);
}
.admin-nav a.active {
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
}
.admin-main {
  flex: 1;
  padding: 36px 40px;
  max-width: 1200px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.stat-card span {
  color: var(--muted);
  font-size: 13px;
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  margin-top: 8px;
  color: var(--gold);
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.admin-table th, table.admin-table td {
  padding: 14px 16px;
  text-align: right;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
table.admin-table th {
  color: var(--muted);
  font-weight: 600;
  background: var(--bg-elevated-2);
}
table.admin-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-badge.new { background: rgba(217, 164, 65, 0.18); color: var(--gold); }
.status-badge.prep { background: rgba(124, 138, 85, 0.25); color: var(--olive); }
.status-badge.way { background: rgba(193, 68, 43, 0.2); color: var(--paprika); }
.status-badge.done { background: rgba(80, 180, 120, 0.2); color: #7BD39C; }
.status-badge.cancel { background: rgba(180, 80, 80, 0.2); color: #E88; }

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  width: 100%;
  max-width: 380px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}
.flash.error { background: rgba(193, 68, 43, 0.15); color: #F0958A; border: 1px solid rgba(193, 68, 43, 0.4); }
.flash.success { background: rgba(124, 138, 85, 0.18); color: #B9CB94; border: 1px solid rgba(124, 138, 85, 0.4); }

/* ---------------------------------------------------------
   تذييل
--------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer p {
  color: var(--muted);
  font-size: 13px;
}

/* ---------------------------------------------------------
   التجاوب مع الشاشات
--------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-image-wrapper {
    max-width: 280px;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .summary-box {
    position: static;
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
  .cart-label {
    display: none;
  }
  .cart-link {
    padding: 9px 12px;
  }
  .admin-shell {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-left: none;
    border-bottom: 1px solid var(--line);
  }
  .admin-main {
    padding: 24px 18px;
  }
}

