@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ink: #1a1a1a;
  --muted: #6f6f6f;
  --paper: #f8f6fa;
  --card: #ffffff;
  --accent: #4B0082;
  --accent-dark: #350060;
  --accent-light: #caa8e0;
  --line: #e3d9ec;
  --shadow: 0 12px 35px rgba(75,0,130,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.hero {
  min-height: 590px;
  color: var(--accent);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.93)),
    url("https://images.unsplash.com/photo-1603133872878-684f208fb84b?auto=format&fit=crop&w=1800&q=85")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.55), rgba(255,255,255,.92) 70%);
}
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 2;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  grid-column: 2;
  background: rgba(255, 255, 255, .85);
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(75, 0, 130, .15);
  backdrop-filter: blur(4px);
}
.brand img { height: 150px; width: auto; display: block; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 3;
  justify-self: end;
}

.cart-btn {
  position: relative;
  background: rgba(75, 0, 130, 0.06);
  color: var(--accent);
  border: 1px solid rgba(75, 0, 130, 0.35);
  border-radius: 999px;
  padding: 11px 17px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
  grid-column: 1;
  justify-self: start;
}
.cart-btn:hover {
  background: rgba(75, 0, 130, 0.12);
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  display: none;
}
.nav-order {
  color: var(--accent);
  border: 1px solid rgba(75, 0, 130, 0.35);
  border-radius: 999px;
  padding: 11px 17px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-order:hover {
  background: rgba(75, 0, 130, 0.06);
}
.hero-content { position: relative; z-index: 2; padding: 145px 0 90px; max-width: 720px; margin: 0 auto; text-align: center; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.hero .eyebrow { color: var(--accent); }
h1, h2 { font-family: "Playfair Display", serif; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; margin: 0 0 20px; color: var(--accent); }
h1 .line-black { color: #000000; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 12px; line-height: 1.05; }
.hero-text { max-width: 560px; margin: 0 auto; font-size: 1.1rem; line-height: 1.7; color: var(--accent); }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { border: 1px solid var(--accent); color: var(--accent); }
.btn-secondary:hover { background: rgba(75, 0, 130, 0.06); }
.btn-light { background: white; color: var(--ink); }

.intro { padding: 82px 0 36px; text-align: center; max-width: 760px; }
.intro p:last-child { color: var(--muted); line-height: 1.7; }

.menu-section { padding: 20px 0 90px; }
.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 24px;
  scrollbar-width: thin;
}
.category {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 17px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}
.category.active { background: var(--accent); color: white; border-color: var(--accent); }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.menu-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.menu-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.menu-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.menu-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.description { color: var(--muted); font-size: .93rem; line-height: 1.55; min-height: 44px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.price { font-weight: 800; font-size: 1.08rem; }
.add-btn {
  border: 0; background: var(--accent); color: white; border-radius: 999px;
  padding: 10px 14px; cursor: pointer; font-weight: 700;
}
.add-btn:hover { background: var(--accent-dark); }

.order-banner { background: linear-gradient(100deg, var(--accent-dark), var(--accent)); color: white; padding: 56px 0; }
.order-banner p { color: rgba(255,255,255,.82); line-height: 1.6; max-width: 600px; }
.order-banner .eyebrow { color: #f6dcee; }
.order-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.order-banner .btn-light:hover { background: #f6dcee; }

.footer { background: #150610; color: white; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 35px; }
.footer p { color: #c9a6bd; line-height: 1.6; margin: 8px 0; }
.footer strong { color: var(--accent-light); }
.footer .brand { display: block; }
.footer .brand img { height: 80px; width: auto; display: block; }
.footer-logo-wrap {
  display: inline-flex;
  background: white;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.copyright { border-top: 1px solid #331226; padding-top: 18px; text-align: center; color: #8a6a80; font-size: .85rem; }

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #27ae60;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 1000;
  animation: slideIn 0.3s ease;
  display: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

.modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
}

.cart-item-info h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.cart-item-price {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

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

.qty-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s;
}

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

.qty {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.remove-btn {
  background: white;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.remove-btn:hover {
  background: #e74c3c;
  color: white;
}

.empty-cart {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
  font-size: 1rem;
}

.modal-footer {
  border-top: 1px solid var(--line);
  padding: 20px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--paper);
  border-radius: 8px;
}

.total-amount {
  color: var(--accent);
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
}

@media (max-width: 850px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 480px; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 24px, 1120px); }
  .nav {
    position: absolute;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 10px;
    column-gap: 8px;
    padding-top: 14px;
  }
  .brand { order: -1; flex-basis: 100%; display: flex; justify-content: center; }
  .cart-btn, .nav-order {
    font-size: .78rem;
    padding: 8px 12px;
  }
  .hero-content { padding: 165px 20px 60px; }
  .brand img { height: 52px; }
  h1 { font-size: 2.6rem; }
  .menu-grid { grid-template-columns: 1fr; }
  .order-banner-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .cart-item-controls {
    width: 100%;
    margin-top: 12px;
    justify-content: space-between;
  }
  .modal-actions {
    flex-direction: column;
  }
}
