/* ITALIAN LUXURY — warm, elegant restaurant menu */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --wine: #4b171b;
  --wine-dark: #321014;
  --cream: #f5efe3;
  --paper: #fffaf1;
  --ink: #28231d;
  --muted: #82796d;
  --terracotta: #a84f36;
  --gold: #b18a50;
  --line: rgba(75, 23, 27, 0.15);
}

html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  padding-bottom: 105px;
}

.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 6%; background: var(--wine-dark); color: var(--paper);
  border-bottom: 1px solid rgba(217, 187, 133, 0.3);
}
.logo {
  font-family: "Playfair Display", Georgia, serif; font-size: 26px;
  font-weight: 600; letter-spacing: 2px; color: var(--paper); text-transform: uppercase;
}
.logo span { color: #d7b77d; }
.table-number {
  padding: 9px 14px; border: 1px solid rgba(215, 183, 125, 0.55);
  border-radius: 2px; color: #ead8b8; font-size: 12px;
  letter-spacing: 0.8px; font-weight: 600;
}

.welcome {
  position: relative; overflow: hidden; margin: 26px 6% 38px; padding: 48px 30px;
  color: var(--paper); border: 1px solid rgba(177, 138, 80, 0.55);
  background: linear-gradient(105deg, rgba(50, 16, 20, 0.96), rgba(75, 23, 27, 0.87)), var(--wine);
  box-shadow: 0 14px 32px rgba(50, 16, 20, 0.13);
}
.welcome::after {
  content: "✦"; position: absolute; right: 28px; bottom: -40px;
  color: rgba(215, 183, 125, 0.13); font-family: Georgia, serif;
  font-size: 190px; line-height: 1; pointer-events: none;
}
.subtitle {
  position: relative; z-index: 1; color: #dfc18e; font-size: 10px;
  font-weight: 700; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 17px;
}
.welcome h1 {
  position: relative; z-index: 1; font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 7vw, 50px); font-weight: 500; line-height: 1.12; margin-bottom: 17px;
}
.welcome p:last-child {
  position: relative; z-index: 1; color: #e4d8c8;
  line-height: 1.8; font-size: 14px; max-width: 560px;
}

.menu-section { margin: 40px 6%; }
.menu-section h2 {
  font-family: "Playfair Display", Georgia, serif; color: var(--wine);
  font-size: 31px; font-weight: 500; margin-bottom: 7px;
}
.menu-section h2::after {
  content: ""; display: block; width: 48px; height: 2px;
  margin-top: 12px; background: var(--gold);
}
.categories {
  display: flex; gap: 10px; overflow-x: auto; padding: 20px 0;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.category {
  border: 1px solid rgba(75, 23, 27, 0.22); padding: 11px 18px;
  border-radius: 2px; background: transparent; color: var(--wine);
  font-family: "DM Sans", Arial, sans-serif; font-size: 12px;
  font-weight: 600; letter-spacing: 0.4px; cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.category:hover { border-color: var(--terracotta); color: var(--terracotta); }
.category.active { background: var(--wine); border-color: var(--wine); color: var(--paper); }

.products {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.product {
  min-width: 0; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 7px 20px rgba(54, 37, 24, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
.product:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(54, 37, 24, 0.12); }
.product img {
  display: block; width: 100%; aspect-ratio: 4 / 3; height: auto;
  object-fit: cover; object-position: center; background: #e7ddcc;
}
.product-info { padding: 15px; }
.product h3 {
  color: var(--wine); font-family: "Playfair Display", Georgia, serif;
  font-size: 18px; font-weight: 600; margin-bottom: 7px;
}
.product p { color: var(--muted); font-size: 12px; min-height: 34px; line-height: 1.55; }
.product-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; gap: 7px;
}
.price { color: var(--wine); font-weight: 700; font-size: 14px; }
.add-button {
  min-width: 38px; min-height: 36px; background: var(--wine); color: var(--paper);
  border: 1px solid var(--wine); border-radius: 2px; padding: 7px 12px;
  cursor: pointer; font-size: 18px; transition: background 0.2s ease, color 0.2s ease;
}
.add-button:hover { background: var(--terracotta); border-color: var(--terracotta); }

.cart-button {
  position: fixed; bottom: 15px; left: 5%; width: 90%; z-index: 5;
  background: var(--wine); color: var(--paper); border: 1px solid #8f5d4a;
  border-radius: 3px; padding: 17px; font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px; letter-spacing: 0.4px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; box-shadow: 0 8px 25px rgba(50, 16, 20, 0.25);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.cart-button:hover { filter: brightness(1.12); transform: translateY(-2px); }

.modal {
  display: none; position: fixed; inset: 0; background: rgba(31, 13, 12, 0.72);
  backdrop-filter: blur(5px); z-index: 10; align-items: center;
  justify-content: center; padding: 15px;
}
.modal-content {
  background: var(--paper); color: var(--ink); border: 1px solid rgba(177, 138, 80, 0.55);
  padding: 25px; width: 100%; max-width: 420px; border-radius: 3px;
  max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(31, 13, 12, 0.3);
}
.close { float: right; border: none; background: none; color: var(--wine); font-size: 25px; cursor: pointer; }
.modal-content h2 {
  font-family: "Playfair Display", Georgia, serif; color: var(--wine);
  font-weight: 500; margin-bottom: 25px;
}
.cart-item {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.quantity { display: flex; align-items: center; gap: 8px; }
.quantity button {
  border: 1px solid var(--line); background: #f1e8d9; color: var(--wine);
  padding: 5px 10px; border-radius: 2px; cursor: pointer;
}
.total {
  display: flex; justify-content: space-between; margin: 25px 0;
  color: var(--wine); font-size: 18px;
}
.checkout-button {
  width: 100%; padding: 16px; background: var(--wine); color: var(--paper);
  border: 1px solid var(--wine); border-radius: 2px; font-size: 13px;
  letter-spacing: 0.7px; font-weight: 700; cursor: pointer; transition: background 0.2s ease;
}
.checkout-button:hover { background: var(--terracotta); border-color: var(--terracotta); }

@media (max-width: 600px) {
  .welcome { padding: 36px 22px; }
  .products { gap: 12px; }
  .product-info { padding: 12px; }
  .product h3 { font-size: 16px; }
}
@media (max-width: 360px) {
  .products { grid-template-columns: 1fr; }
  .welcome { padding: 32px 21px; }
}
