@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --orange: #f97316;
  --red: #ef4444;
  --gradient: linear-gradient(135deg, #f97316, #ef4444);
  --page-bg: #fef9f5;
  --page-bg-gray: #f3f4f6;
  --card-bg: #ffffff;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--page-bg-gray);
}

body.landing-body {
  background: radial-gradient(ellipse at center, #fff8f0 0%, #fef3e8 100%);
  min-height: 100vh;
}

.landing-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 64px;
}

.landing-hero {
  text-align: center;
}

.pizza-icon--brand {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.pizza-icon--brand .pizza-slice-graphic {
  width: 42px;
  height: 42px;
  max-width: none;
  max-height: none;
  display: block;
}

.landing-title {
  font-size: 52px;
  font-weight: 700;
  margin: 0 0 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.landing-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-grad {
  background: var(--gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  box-sizing: border-box;
  transition: opacity 0.15s, filter 0.15s;
  touch-action: manipulation;
}

.btn-grad:hover {
  opacity: 0.92;
  filter: brightness(1.03);
}

.btn-grad:active {
  transform: none;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  box-sizing: border-box;
  touch-action: manipulation;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--orange);
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cta-banner {
  margin-top: 64px;
  background: var(--gradient);
  border-radius: 16px;
  padding: 56px 40px;
  margin-left: 24px;
  margin-right: 24px;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.cta-banner p {
  color: #fff;
  font-size: 15px;
  opacity: 0.9;
  margin: 0 0 28px;
}

.cta-banner .btn-light {
  background: #fff;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}

.cta-banner .btn-light:hover {
  background: rgba(255, 255, 255, 0.9);
}

.customer-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  height: 56px;
  border-bottom: 1px solid #f3f4f6;
}

.customer-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.pizza-icon--sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
}

.pizza-icon--sm .pizza-slice-graphic {
  width: 18px;
  height: 18px;
  max-width: none;
  max-height: none;
  display: block;
}

.customer-nav-titles {
  display: flex;
  flex-direction: column;
}

.customer-nav-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.customer-nav-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.customer-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.customer-nav-iconlink {
  color: #374151;
  text-decoration: none;
  display: flex;
}

.nav-svg {
  display: block;
}

.cart-wrap {
  position: relative;
  display: inline-block;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.header-dropdown-trigger {
  position: relative;
  cursor: pointer;
  outline: none;
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: -10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 100;
  display: none;
  cursor: default;
  text-align: left;
}

.header-dropdown:after {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.header-dropdown a:hover {
  background: #f9fafb;
}

.header-dropdown-trigger:focus-within .header-dropdown,
.header-dropdown:hover {
  display: block;
}

.menu-hero {
  margin-top: 56px;
  height: 140px;
  background: var(--gradient);
  padding: 24px 24px 20px;
}

.menu-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.menu-hero h1 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.menu-hero p {
  color: #fff;
  font-size: 14px;
  opacity: 0.9;
  margin: 0 0 14px;
}

.search-pill {
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  max-width: 500px;
  min-width: 300px;
  width: fit-content;
}

.search-pill input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #374151;
  outline: none;
  font-family: inherit;
}

.search-pill input::placeholder {
  color: var(--text-muted);
}

.search-pill svg {
  margin-right: 8px;
  flex-shrink: 0;
}

.menu-main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 10px;
}

.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cat-pill {
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
}

.cat-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.cat-pill.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-head svg {
  color: var(--orange);
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .food-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .food-grid {
    grid-template-columns: 1fr;
  }
}

.food-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  position: relative;
  transition: opacity 0.2s;
}

.food-card.hidden {
  display: none;
}

.food-img-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  background: #e5e7eb;
}

.food-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.food-body {
  padding: 14px;
}

.food-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.food-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.rating-num {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.rating-count {
  font-size: 12px;
  color: var(--text-muted);
}

.food-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.food-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--orange);
}

.btn-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: #fff;
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.btn-add:hover {
  background: #ea6e10;
}

.section-spaced {
  margin: 24px 0 16px;
}

.profile-page {
  padding: 76px 20px 40px;
  max-width: 680px;
  margin: 0 auto;
}

.back-to-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  margin-bottom: 20px;
  cursor: pointer;
}

.back-to-menu:hover {
  color: var(--orange);
}

.profile-banner {
  background: var(--gradient);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}

.profile-banner-text {
  flex: 1;
  min-width: 0;
}

.profile-banner-text .name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
}

.profile-banner-text .email {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}

.btn-edit-profile {
  margin-left: auto;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  flex-shrink: 0;
}

.btn-edit-profile:hover {
  background: rgba(255, 255, 255, 0.15);
}

.info-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 16px;
}

.info-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px;
}

.field-line {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.field-line:last-child {
  border-bottom: none;
}

.field-line .lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 4px;
}

.field-line .lbl.plain {
  color: #374151;
}

.field-line .val {
  font-size: 14px;
  color: #374151;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
  text-align: center;
}

.stat-card .num {
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
}

.stat-card .lbl {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.logout-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--red);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.logout-card:hover {
  background: #fff5f5;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.toast.show {
  opacity: 1;
}

.cart-page,
.orders-page,
.dash-page {
  padding: 76px 20px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.page-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.table-basic {
  width: 100%;
  border-collapse: collapse;
}

.table-basic th {
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.table-basic td {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}

.badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-pending {
  background: #fef9c3;
  color: #a16207;
}

.badge-preparing {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-delivery {
  background: #ede9fe;
  color: #7c3aed;
}

.badge-completed {
  background: #dcfce7;
  color: #15803d;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.cart-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn-checkout {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
