/* =====================================================
   Kinn Thai – Main Stylesheet
   ===================================================== */

:root {
  --bg-primary:    #0f0e0d;
  --bg-secondary:  #1a1714;
  --bg-card:       #201e1a;
  --card-bg:       #201e1a;
  --border:        rgba(255,255,255,0.08);
  --gold:          #d4a84b;
  --gold-light:    #f0c96a;
  --red:           #c0392b;
  --red-dark:      #96281b;
  --text-primary:  #f5f0e8;
  --text-muted:    #9a9080;
  --text-dark:     #2c2a26;
  --green:         #4caf50;
  --transition:    0.25s ease;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 8px 32px rgba(0,0,0,0.4);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.3);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
::placeholder { color: var(--text-muted); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.text-gold { color: var(--gold); }
.btn-full { width: 100%; text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--text-dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,75,0.4); color: var(--text-dark); }
.btn-secondary { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--text-dark); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* =====================================================
   TOP BANNER
   ===================================================== */
.top-banner {
  background: var(--gold);
  color: var(--text-dark);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-banner .separator { opacity: 0.4; }
.top-banner i { margin-right: 0.3rem; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,14,13,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-icon { font-size: 1.8rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
}
.logo-sub { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: all var(--transition);
}
.cart-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.cart-count.visible { display: flex; }
.btn-order-nav {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--text-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.btn-order-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,168,75,0.4); color: var(--text-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 106px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,168,75,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(192,57,43,0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a84b' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 750px;
  padding: 3rem 1.5rem;
}
.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-family: 'Playfair Display', serif;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.badge i { color: var(--gold); }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: float 2s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-6px)} }

/* =====================================================
   FEATURES BAR
   ===================================================== */
.features-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.features-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212,168,75,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.feature-text strong { display: block; font-size: 0.9rem; }
.feature-text span { font-size: 0.78rem; color: var(--text-muted); }

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); max-width: 540px; margin: 0 auto; }
.section-cta { text-align: center; margin-top: 3rem; }

/* =====================================================
   DISHES GRID (Homepage Featured)
   ===================================================== */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.dish-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dish-image-wrap { position: relative; }
.dish-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a2520, #1e1b17);
}
.dish-emoji { font-size: 4rem; }
.dish-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-spicy { background: rgba(192,57,43,0.85); color: white; }
.badge-popular { background: rgba(212,168,75,0.85); color: var(--text-dark); }
.dish-info { padding: 1.2rem; }
.dish-category { font-size: 0.72rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.dish-name { margin: 0.4rem 0; font-size: 1.05rem; }
.dish-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-allergens { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.dish-allergens i { color: var(--gold); }
.dish-footer { display: flex; align-items: center; justify-content: space-between; }
.dish-price { font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.btn-add-cart {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--text-dark);
  border: none;
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-add-cart:hover { background: var(--gold-light); transform: scale(1.05); }

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section { background: var(--bg-secondary); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-visuals { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}
.about-card p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }
.about-card-1 { grid-column: 1; }
.about-card-2 { grid-column: 2; }
.about-stats { grid-column: 1 / -1; display: flex; justify-content: space-around; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', serif; }
.stat span { font-size: 0.8rem; color: var(--text-muted); }
.about-content .section-title { text-align: left; }
.about-content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
.about-features { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.about-features li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.about-features i { color: var(--green); }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-section { background: var(--bg-primary); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition);
}
.testimonial-card:hover { transform: translateY(-3px); }
.stars { font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; font-style: italic; margin-bottom: 1.25rem; }
.reviewer strong { font-size: 0.9rem; }
.reviewer span { font-size: 0.78rem; color: var(--text-muted); margin-left: 0.5rem; }

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(212,168,75,0.12), rgba(192,57,43,0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 0.75rem; color: var(--gold); }
.cta-banner p { color: var(--text-muted); margin-bottom: 2rem; }

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
  text-align: center;
}
.page-hero-sm { padding: 2.5rem 1.5rem; }
.page-hero-content p { color: var(--text-muted); margin-top: 0.75rem; }
.page-hero-content a { color: var(--gold); }
.menu-hero { background: linear-gradient(135deg, rgba(212,168,75,0.08) 0%, rgba(15,14,13,1) 60%); }

/* =====================================================
   MENU PAGE LAYOUT
   ===================================================== */
.menu-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}
.menu-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}
.sidebar-inner { padding: 1.5rem; }
.sidebar-inner h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; }
.category-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.cat-link:hover, .cat-link.active {
  background: rgba(212,168,75,0.12);
  color: var(--gold);
}
.cat-count {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.sidebar-filters { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.sidebar-filters h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.75rem; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem 0;
}
.filter-check input { width: auto; }
.filter-check:hover { color: var(--text-primary); }
.sidebar-cart { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.sidebar-cart h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.75rem; }
.sidebar-cart-items { max-height: 200px; overflow-y: auto; margin-bottom: 0.75rem; }
.sidebar-cart-item { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.sidebar-cart-item:last-child { border-bottom: none; }
.empty-msg { font-size: 0.82rem; color: var(--text-muted); text-align: center; padding: 1rem 0; }
.sidebar-cart-total { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.5rem 0; margin-bottom: 0.75rem; }

/* Menu Main */
.menu-main { padding: 2rem; }
.menu-search-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.search-wrap {
  flex: 1;
  position: relative;
}
.search-wrap i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-wrap input { padding-left: 2.75rem; }
.menu-info { display: flex; align-items: center; gap: 1rem; color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; }
.filter-toggle-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.82rem; display: none; }

/* Category Sections */
.menu-category-section { margin-bottom: 3rem; }
.category-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.category-header h2 { font-size: 1.6rem; }
.category-header p { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.25rem; }

/* Menu Items Grid */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.menu-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 1rem;
  padding: 1rem;
  transition: all var(--transition);
  align-items: flex-start;
}
.menu-item-card:hover { border-color: rgba(212,168,75,0.3); box-shadow: var(--shadow-sm); }
.menu-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2a2520, #1e1b17);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.menu-emoji { font-size: 2.2rem; }
.menu-item-badges {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.badge-sm {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 10px;
}
.menu-item-content { flex: 1; min-width: 0; }
.menu-item-content h3 { font-size: 0.95rem; margin-bottom: 0.3rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.item-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-allergens { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.item-allergens i { color: var(--gold); margin-right: 0.25rem; }
.menu-item-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.item-price { font-weight: 700; color: var(--gold); font-size: 1rem; }
.btn-add-cart-main {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--gold);
  color: var(--text-dark);
  border: none;
  border-radius: 50px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-add-cart-main:hover { background: var(--gold-light); }
.qty-adjuster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.2rem 0.5rem;
}
.qty-adjuster button {
  background: none;
  border: none;
  color: var(--gold);
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-adjuster span { font-size: 0.85rem; font-weight: 600; min-width: 16px; text-align: center; }

/* No Results */
.no-results { text-align: center; padding: 4rem 1rem; }
.no-results span { font-size: 3rem; display: block; margin-bottom: 1rem; }
.no-results p { color: var(--text-muted); margin-bottom: 1.5rem; }
.no-results button { background: var(--gold); color: var(--text-dark); border: none; padding: 0.6rem 1.5rem; border-radius: 50px; font-weight: 600; }

/* Sticky Cart Bar */
.sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gold);
  color: var(--text-dark);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.sticky-cart-info { display: flex; flex-direction: column; }
.sticky-cart-info span { font-size: 0.8rem; opacity: 0.8; }
.sticky-cart-info strong { font-size: 1.1rem; }
.sticky-cart-bar .btn-primary { background: var(--text-dark); color: var(--gold); }

/* =====================================================
   CART PAGE
   ===================================================== */
.cart-page { padding: 2rem 1.5rem; max-width: 1100px; }
.empty-cart { text-align: center; padding: 5rem 1rem; }
.empty-cart span { font-size: 4rem; display: block; margin-bottom: 1.5rem; }
.empty-cart h2 { margin-bottom: 0.75rem; }
.empty-cart p { color: var(--text-muted); margin-bottom: 2rem; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
.cart-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.cart-header-row h2 { font-size: 1.4rem; }
.cart-header-row h2 span { color: var(--text-muted); font-size: 1rem; }
.btn-clear-cart { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 0.4rem 0.9rem; border-radius: 8px; font-size: 0.82rem; transition: all var(--transition); }
.btn-clear-cart:hover { border-color: var(--red); color: var(--red); }

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: all var(--transition);
}
.cart-item-emoji { font-size: 2rem; width: 50px; text-align: center; }
.cart-item-details { flex: 1; }
.cart-item-details h4 { font-size: 0.95rem; font-family: 'Inter', sans-serif; margin-bottom: 0.2rem; }
.item-unit-price { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-controls { display: flex; align-items: center; gap: 0.75rem; }
.qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.qty-val { font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-subtotal { font-weight: 700; color: var(--gold); min-width: 60px; text-align: right; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cart-item-remove:hover { background: rgba(192,57,43,0.15); color: var(--red); }

/* Promo */
.promo-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.promo-section h4 { font-size: 0.9rem; margin-bottom: 0.75rem; font-family: 'Inter', sans-serif; }
.promo-input-row { display: flex; gap: 0.75rem; }
.promo-input-row input { flex: 1; }
.promo-input-row .btn { flex-shrink: 0; padding: 0.75rem 1.25rem; border-radius: 8px; }
.promo-msg { font-size: 0.82rem; margin-top: 0.5rem; }
.promo-msg.success { color: var(--green); }
.promo-msg.error { color: var(--red); }

/* Summary Panel */
.cart-summary-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.cart-summary-panel h3 { margin-bottom: 1.25rem; font-size: 1.2rem; }
.summary-rows { margin-bottom: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9rem; color: var(--text-muted); }
.summary-total { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.25rem; }
.free-delivery { color: var(--green); font-weight: 600; }
.discount-amount { color: var(--green); }
.free-delivery-nudge {
  background: rgba(212,168,75,0.08);
  border: 1px solid rgba(212,168,75,0.2);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.5rem 0;
}
.free-delivery-nudge i { color: var(--gold); margin-right: 0.35rem; }
.delivery-progress { height: 4px; background: var(--border); border-radius: 2px; margin-top: 0.5rem; overflow: hidden; }
.delivery-bar { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.3s; }
.min-order-notice {
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.82rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}
.btn-checkout { font-size: 1rem; padding: 1rem; border-radius: 10px; }
.security-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
.security-badges i { margin-right: 0.3rem; }

/* =====================================================
   CHECKOUT PAGE
   ===================================================== */
.checkout-page { padding: 2rem 1.5rem; max-width: 1100px; }
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.step span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.step.active { color: var(--gold); }
.step.active span { border-color: var(--gold); background: rgba(212,168,75,0.15); color: var(--gold); }
.step-line { width: 60px; height: 1px; background: var(--border); }
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
.checkout-form-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.form-section { margin-bottom: 2rem; }
.form-section h3 { font-size: 1rem; margin-bottom: 1.25rem; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--gold); display: flex; align-items: center; gap: 0.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }
.form-group small { font-size: 0.72rem; color: var(--text-muted); }
.form-errors { background: rgba(192,57,43,0.1); border: 1px solid rgba(192,57,43,0.3); border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; }
.form-errors p { font-size: 0.85rem; color: #e74c3c; }
.checkout-security-note { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }
.checkout-security-note i { color: var(--green); margin-right: 0.3rem; }
.btn-checkout .btn-total { margin-left: auto; background: rgba(0,0,0,0.2); padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.85rem; }

/* Checkout Summary */
.checkout-summary-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px; }
.checkout-summary-panel h3 { margin-bottom: 1.25rem; }
.checkout-items-list { margin-bottom: 1.25rem; max-height: 300px; overflow-y: auto; }
.checkout-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.checkout-item:last-child { border-bottom: none; }
.checkout-item-qty { color: var(--gold); font-weight: 700; min-width: 25px; }
.checkout-item-name { flex: 1; color: var(--text-muted); }
.checkout-item-price { font-weight: 600; }
.checkout-totals { border-top: 1px solid var(--border); padding-top: 0.75rem; margin-bottom: 1.25rem; }
.estimated-delivery { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.estimated-delivery i { color: var(--gold); }
.accepted-cards p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.card-icons { display: flex; gap: 0.75rem; font-size: 1.5rem; color: var(--text-muted); }

/* =====================================================
   ADMIN
   ===================================================== */
.admin-body { background: #111; }
.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.admin-login-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 3rem; width: 100%; max-width: 420px; text-align: center; }
.admin-login-box .logo-main { font-size: 2rem; color: var(--gold); display: block; margin-bottom: 0.5rem; }
.admin-login-box p { color: var(--text-muted); margin-bottom: 2rem; }
.admin-sidebar { width: 240px; background: var(--bg-secondary); border-right: 1px solid var(--border); min-height: 100vh; position: fixed; top: 0; left: 0; padding: 1.5rem; }
.admin-main { margin-left: 240px; padding: 2rem; }
.admin-nav { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.25rem; }
.admin-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; border-radius: 8px; color: var(--text-muted); font-size: 0.88rem; transition: all var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(212,168,75,0.12); color: var(--gold); }
.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.stat-card .stat-number { font-size: 2rem; color: var(--gold); }
.stat-card p { font-size: 0.8rem; color: var(--text-muted); }
.orders-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.orders-table th { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; }
.orders-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.orders-table tr:hover td { background: rgba(255,255,255,0.02); }
.status-badge { padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.status-paid { background: rgba(76,175,80,0.15); color: #4caf50; }
.status-pending { background: rgba(255,165,0,0.15); color: orange; }
.status-preparing { background: rgba(33,150,243,0.15); color: #2196f3; }
.status-delivered { background: rgba(76,175,80,0.15); color: #4caf50; }
.status-cancelled { background: rgba(192,57,43,0.15); color: #e74c3c; }
select.status-select { width: auto; padding: 0.25rem 0.5rem; font-size: 0.78rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 0.5rem; font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
.footer-section h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1.25rem; font-family: 'Inter', sans-serif; }
.footer-section ul li { margin-bottom: 0.6rem; }
.footer-section ul a { color: var(--text-muted); font-size: 0.88rem; }
.footer-section ul a:hover { color: var(--gold); }
.hours-list li { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); padding: 0.3rem 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.contact-list i { color: var(--gold); margin-top: 2px; width: 14px; }
.payment-icons { display: flex; gap: 0.75rem; font-size: 1.5rem; color: var(--text-muted); margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.powered-by { font-size: 0.75rem; }

/* =====================================================
   TOAST NOTIFICATION
   ===================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error { border-color: var(--red); color: #e74c3c; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .features-bar .container { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visuals { order: 2; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 106px; left: 0; right: 0; bottom: 0; background: var(--bg-secondary); flex-direction: column; align-items: center; justify-content: center; gap: 1rem; z-index: 999; transform: translateX(-100%); transition: transform var(--transition); }
  .nav-links.open { display: flex; transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }
  .btn-order-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; }
  .mobile-overlay.open { display: block; }

  .hero-title { font-size: 2.8rem; }
  .features-bar .container { grid-template-columns: 1fr 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-item:nth-last-child(-n+2) { border-bottom: none; }

  .menu-layout { grid-template-columns: 1fr; }
  .menu-sidebar { position: fixed; left: -320px; top: 0; height: 100vh; width: 300px; z-index: 900; transition: left var(--transition); }
  .menu-sidebar.open { left: 0; }
  .filter-toggle-btn { display: flex; align-items: center; gap: 0.4rem; }

  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checkout-summary-panel { position: static; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .about-visuals { grid-template-columns: 1fr 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cart-summary-panel { position: static; }

  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .features-bar .container { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-badges { flex-direction: column; align-items: center; }
  .cart-item { flex-wrap: wrap; }
  .dishes-grid { grid-template-columns: 1fr; }
  .menu-items-grid { grid-template-columns: 1fr; }
  .admin-stats-grid { grid-template-columns: 1fr; }
  .top-banner .separator { display: none; }
  .top-banner { flex-direction: column; gap: 0.25rem; padding: 0.5rem; }
}
