/* ============================================================
   RSD FOOD — Global Stylesheet
   Design System: Poppins font, Red/Orange palette, Card-based UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@4.2.0/fonts/remixicon.css');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:       #c1121f;
  --primary-dark:  #9d0208;
  --primary-light: #fce4e4;
  --accent:        #f77f00;
  --accent-light:  #fff3e0;
  --success:       #10b981;
  --success-light: #d1fae5;
  --warning:       #f59e0b;
  --warning-light: #fef3c7;
  --info:          #0ea5e9;
  --info-light:    #e0f2fe;
  --danger:        #ef4444;
  --danger-light:  #fee2e2;

  --bg:            #f8f7f4;
  --bg-card:       #ffffff;
  --bg-section:    #fff9f9;
  --border:        #e8e0e0;
  --border-light:  #f0eaea;

  --text:          #1a0a0a;
  --text-muted:    #6b5c5c;
  --text-light:    #9e8e8e;

  --shadow-sm:  0 1px 3px rgba(193,18,31,0.06);
  --shadow:     0 4px 20px rgba(193,18,31,0.10);
  --shadow-md:  0 8px 30px rgba(193,18,31,0.12);
  --shadow-lg:  0 20px 60px rgba(193,18,31,0.15);

  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 999px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-h: 72px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--navbar-h);
}

img { max-width: 100%; display: block; }
a  { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; color: var(--text); }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(193,18,31,0.08);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(193,18,31,0.3);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-tagline { font-size: 10px; color: var(--text-muted); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

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

.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.nav-cart-btn:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(193,18,31,0.35);
}

.cart-badge {
  background: white;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: white;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.nav-user-btn:hover { border-color: var(--primary); color: var(--primary); }

.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.nav-user-btn:focus-within .dropdown,
.nav-user-btn:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.dropdown a:hover { background: var(--bg); color: var(--primary); }
.dropdown a i { font-size: 16px; }
.dropdown-divider { border-top: 1px solid var(--border-light); margin: 4px 0; }
.dropdown-danger { color: var(--danger) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Mobile Nav ────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-h);
  left: 0; right: 0;
  background: white;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 12px 16px; border-radius: var(--radius); }

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1a0a0a 0%, #3a0d0d 50%, #1a0a0a 100%);
  color: white;
  padding: 80px 24px 100px;
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex; align-items: center;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(193,18,31,0.3), transparent);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(247,127,0,0.15);
  border: 1px solid rgba(247,127,0,0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.hero-img-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: rotate(-3deg);
  transition: var(--transition);
}

.hero-img-card:hover { transform: rotate(0deg) scale(1.02); }
.hero-img-card img { width: 380px; height: 380px; object-fit: cover; }

.hero-float {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  animation: float 3s ease-in-out infinite;
}

.hero-float-1 { top: 20px; left: -20px; animation-delay: 0s; }
.hero-float-2 { bottom: 30px; right: -20px; animation-delay: 1.5s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-float-icon { font-size: 28px; }
.hero-float-text { display: flex; flex-direction: column; }
.hero-float-label { font-size: 11px; color: var(--text-muted); }
.hero-float-value { font-size: 14px; font-weight: 700; color: var(--text); }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #e63946 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(193,18,31,0.4);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(193,18,31,0.5);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }

.btn-outline-red {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-red:hover { background: var(--primary); color: white; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #e67e00);
  color: white;
  box-shadow: 0 4px 20px rgba(247,127,0,0.4);
}

.btn-accent:hover:not(:disabled) { transform: translateY(-2px); color: white; }

.btn-light {
  background: white;
  color: var(--primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; transform: translateY(-1px); }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 15px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--radius); }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ─── Food Card ─────────────────────────────────────────────── */
.food-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.food-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.food-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.food-card:hover .food-card-img img { transform: scale(1.08); }

.food-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: white;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.food-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.food-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.food-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.food-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.food-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.food-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.food-rating .stars i { color: var(--warning); font-size: 12px; }
.food-rating .rating-val { font-weight: 600; color: var(--text); }

.add-to-cart-btn {
  width: 36px; height: 36px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.add-to-cart-btn:hover { background: var(--primary-dark); transform: scale(1.1); }

/* ─── Section ───────────────────────────────────────────────── */
.section { padding: 70px 24px; }
.section-sm { padding: 40px 24px; }
.container { max-width: 1280px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ─── Grid Layouts ──────────────────────────────────────────── */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

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

/* ─── Category Filter ───────────────────────────────────────── */
.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: white;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cat-btn:hover,
.cat-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.cat-btn .cat-icon { font-size: 18px; }

/* ─── Search Bar ────────────────────────────────────────────── */
.search-bar {
  position: relative;
  max-width: 500px;
  margin: 0 auto 32px;
}

.search-bar input {
  width: 100%;
  padding: 14px 52px 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-family: inherit;
  background: white;
  color: var(--text);
  transition: var(--transition);
  outline: none;
}

.search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(193,18,31,0.1); }
.search-bar input::placeholder { color: var(--text-light); }

.search-bar .search-icon {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 20px;
  pointer-events: none;
}

/* ─── Form Elements ─────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-label span { color: var(--danger); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(193,18,31,0.08);
}

.form-input.error, .form-select.error { border-color: var(--danger); }
.form-textarea { resize: vertical; min-height: 100px; }

.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; display: none; }
.form-error.show { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ─── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success  { background: var(--success-light); color: var(--success); }
.badge-warning  { background: var(--warning-light); color: #b45309; }
.badge-info     { background: var(--info-light);    color: #0369a1; }
.badge-primary  { background: var(--primary-light); color: var(--primary); }
.badge-danger   { background: var(--danger-light);  color: var(--danger); }
.badge-secondary{ background: #f1f5f9; color: #64748b; }

/* ─── Alert ─────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #a7f3d0; }
.alert-error   { background: var(--danger-light);  color: var(--danger);  border: 1px solid #fca5a5; }
.alert-warning { background: var(--warning-light); color: #92400e;        border: 1px solid #fde68a; }
.alert-info    { background: var(--info-light);    color: #0369a1;        border: 1px solid #7dd3fc; }

.alert button { background: none; border: none; cursor: pointer; font-size: 18px; opacity: 0.6; transition: var(--transition); color: inherit; }
.alert button:hover { opacity: 1; }

/* ─── Toast Notification ────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999;
}

.toast {
  background: white;
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
  min-width: 260px;
  animation: toastIn 0.3s ease forwards;
}

.toast.out { animation: toastOut 0.3s ease forwards; }
.toast-success { border-left-color: var(--success); }
.toast-error   { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast i { font-size: 20px; }
.toast-success i { color: var(--success); }
.toast-error   i { color: var(--danger); }
.toast-warning i { color: var(--warning); }

@keyframes toastIn  { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(30px); } }

/* ─── Auth Pages ────────────────────────────────────────────── */
.auth-page { padding-top: 0; background: linear-gradient(135deg, #1a0a0a 0%, #3a0d0d 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.4s ease;
}

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

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.divider span { font-size: 12px; color: var(--text-light); white-space: nowrap; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 18px; pointer-events: none; }
.input-icon-wrap .form-input { padding-left: 44px; }
.input-icon-wrap .pw-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-muted); font-size: 18px; }
.input-icon-wrap .pw-toggle:hover { color: var(--primary); }

/* ─── Cart Page ─────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: var(--bg); }

.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 14px; color: var(--text-muted); }

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: var(--radius-full);
  padding: 4px;
}

.qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  line-height: 1;
}

.qty-btn:hover { background: var(--primary); color: white; }
.qty-val { font-size: 15px; font-weight: 700; min-width: 24px; text-align: center; }

.cart-item-total { font-size: 16px; font-weight: 700; color: var(--primary); min-width: 70px; text-align: right; }

.remove-btn { color: var(--text-light); background: none; border: none; cursor: pointer; font-size: 20px; padding: 4px; transition: var(--transition); }
.remove-btn:hover { color: var(--danger); }

.order-summary {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: sticky;
  top: calc(var(--navbar-h) + 16px);
}

.summary-title { padding: 20px; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--border-light); }

.summary-body { padding: 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; color: var(--text-muted); }
.summary-row.total { font-size: 17px; font-weight: 700; color: var(--text); border-top: 2px solid var(--border); padding-top: 14px; margin-top: 14px; }
.summary-row.total span:last-child { color: var(--primary); }

.empty-cart { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 80px; margin-bottom: 20px; opacity: 0.5; }
.empty-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.empty-desc { color: var(--text-muted); margin-bottom: 24px; }

/* ─── Food Detail Page ──────────────────────────────────────── */
.food-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.food-detail-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.food-detail-img img { width: 100%; height: 100%; object-fit: cover; }

.food-detail-category {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.food-detail-name { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 14px; }

.food-detail-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.food-detail-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; }

.qty-wrap { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.qty-label { font-size: 15px; font-weight: 600; }

/* ─── Orders Page ───────────────────────────────────────────── */
.order-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 20px;
  transition: var(--transition);
}

.order-card:hover { box-shadow: var(--shadow); }

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}

.order-number { font-size: 15px; font-weight: 700; color: var(--primary); }
.order-date   { font-size: 13px; color: var(--text-muted); }

.order-card-body { padding: 18px 22px; }

.order-items-list { list-style: none; }

.order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.order-item-row:last-child { border-bottom: none; }

.order-item-img {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.order-item-name { font-size: 14px; font-weight: 600; flex: 1; }
.order-item-qty  { font-size: 13px; color: var(--text-muted); }
.order-item-sub  { font-size: 14px; font-weight: 700; color: var(--primary); }

.order-card-footer {
  padding: 14px 22px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border-light);
}

.order-total { font-size: 16px; font-weight: 700; }
.order-total span { color: var(--primary); }

/* ─── Profile Page ──────────────────────────────────────────── */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }

.profile-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  text-align: center;
  padding: 32px 20px;
}

.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 16px; }

.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
}

.profile-avatar-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 32px; height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid white;
}

.profile-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-email { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
  margin-bottom: 4px;
}

.profile-nav-link:hover,
.profile-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ─── Checkout Page ─────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }

.payment-options { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.pay-option {
  display: none;
}

.pay-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  min-width: 130px;
}

.pay-label:hover { border-color: var(--primary); }

.pay-option:checked + .pay-label {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.pay-label i { font-size: 22px; }

/* ─── Page Header ───────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 40px 24px;
  text-align: center;
}

.page-header h1 { color: white; font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.page-header p  { color: rgba(255,255,255,0.7); font-size: 15px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: white; }
.breadcrumb i { font-size: 10px; }

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: #0f0606;
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 30px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.footer-logo-name { font-size: 20px; font-weight: 800; color: white; }

.footer-desc { font-size: 14px; line-height: 1.8; margin-bottom: 20px; max-width: 280px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 18px; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: white; }

.footer-col-title { color: white; font-size: 15px; font-weight: 700; margin-bottom: 16px; }

.footer-link { display: block; color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 10px; transition: var(--transition); }
.footer-link:hover { color: var(--accent); padding-left: 4px; }

.footer-contact { font-size: 14px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; }
.footer-contact i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

.footer-divider { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; font-size: 13px; max-width: 1280px; margin: 0 auto; }

/* ─── Loading Spinner ───────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Table ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { padding: 14px 16px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--bg); border-bottom: 2px solid var(--border); }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }

/* ─── Stats Card ────────────────────────────────────────────── */
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.stat-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.stat-info h3 { font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-info p  { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ─── Pagination ────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-muted); transition: var(--transition); text-decoration: none; background: white; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid          { grid-template-columns: 1fr; text-align: center; }
  .hero-image         { display: none; }
  .hero-desc          { max-width: 100%; }
  .cart-layout        { grid-template-columns: 1fr; }
  .checkout-layout    { grid-template-columns: 1fr; }
  .profile-layout     { grid-template-columns: 1fr; }
  .food-detail-grid   { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --navbar-h: 64px; }
  .nav-links          { display: none; }
  .hamburger          { display: flex; }
  .hero               { padding: 50px 20px 70px; min-height: unset; }
  .section            { padding: 50px 20px; }
  .food-grid          { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .form-row           { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr; gap: 24px; }
  .auth-card          { padding: 28px 20px; margin: 16px; }
  .cart-item-img      { width: 60px; height: 60px; }
}

@media (max-width: 480px) {
  .hero h1            { font-size: 30px; }
  .hero-actions       { flex-direction: column; }
  .food-grid          { grid-template-columns: 1fr 1fr; }
  .category-filters   { gap: 6px; }
  .cat-btn            { padding: 8px 14px; font-size: 13px; }
}
