* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    
    
}

html, body {
  width: 100%;
  overflow-x: hidden; /* megakadályozza a vízszintes görgetést */
}

header {
    background: #8b0000;
    color: #fff;
    padding: 1rem 0;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center; /* középre igazítás */
    gap: 20px;
    padding: 0;
    margin: 0; /* <<< ne legyen fix margin */
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffcc00;
}

.hero {
     height: 100vh;
    background: url('img/restaruant2.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px; /* fejléc magasságának helye */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.menu-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    padding-bottom: 1rem;
}

.menu-card img {
    display: block;
    margin: 0 auto;
}

.menu-card h3 {
    margin: 1rem 0;
    color: #8b0000;
}

.menu-card p {
    padding: 0 1rem;
}

.menu-card a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #8b0000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.menu-card a:hover {
    background: #ffcc00;
    color: black;
}

footer {
    background: #8b0000;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background: #8b0000;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        display: none;
    }
    nav ul.show {
        display: flex;
    }
    nav ul li {
        margin: 1rem 0;
    }
}


/* Aloldalak */
.page { max-width: 1100px; margin: 80px auto; padding: 0 16px; }
.page .lead { margin: 8px 0 24px; font-size: 1.1rem; opacity: 0.9; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.menu-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.menu-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.menu-card h3 { margin: 10px 0 6px; }

/* Középre igazított fejléc */
header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
header nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
header nav ul li a {
  text-decoration: none;
  font-weight: 500;
}

/* Kapcsolat szekció stílus */
.contact-section { background: #fafafa; padding: 40px 20px; border-radius: 12px; max-width: 900px; margin: 40px auto; }
.contact-section h2 { text-align: center; margin-bottom: 20px; }
.contact-section p { text-align: center; margin-bottom: 30px; font-size: 1.05rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.contact-item { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); text-align: center; }
.contact-item h3 { margin-bottom: 8px; color: #b33; }
.contact-item a { color: inherit; text-decoration: none; }

.back-btn {
  background: #b33;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 20px;
}
.back-btn:hover {
  background: #922;
}

.hero-text {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(to right, #ffecd2, #fcb69f);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-text h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  color: #8b0000;
  margin-bottom: 15px;
}

.hero-text h1 span {
  color: #d2691e;
}

.hero-text p {
  font-size: 1.4rem;
  color: #333;
  font-style: italic;
}

/* Kosár modal stílus */
#cart-modal h2 { margin-top:0; }
#cart-modal .cart-item { margin:10px 0; }
#cart-modal button {
  margin-left:5px;
  background:#d62828;
  color:#fff;
  border:none;
  padding:4px 8px;
  border-radius:5px;
  cursor:pointer;
}
#cart-modal button:hover { background:#a71d2a; }


/* --- Base typography --- */
:root{
  --brand:#d62828;
  --brand-dark:#a71d2a;
  --bg:#fffaf7;
  --text:#222;
}
html,body{font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:var(--bg);}

/* --- Cart icon --- */
#cart-icon{
  position:fixed; top:18px; right:18px; font-size:22px; line-height:1;
  background:#fff; border-radius:999px; padding:10px 14px; box-shadow:0 8px 24px rgba(0,0,0,.12);
  cursor:pointer; z-index:1100; user-select:none;
}
#cart-icon #cart-count{ font-weight:700; margin-left:6px;}

/* --- Cart overlay & panel --- */
#cart-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:1098;
}
#cart-panel{
  position:fixed; top:0; right:0; height:100vh; width:min(420px, 92vw);
  background:#fff; box-shadow:-8px 0 30px rgba(0,0,0,.2); z-index:1099;
  display:flex; flex-direction:column; transform:translateX(0);
  border-top-left-radius:16px; border-bottom-left-radius:16px;
  padding:16px;
}
#cart-panel.hidden, #cart-overlay.hidden{ display:none; }
.cart-header{ display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #eee; padding-bottom:8px; margin-bottom:12px;}
#cart-close{ background:transparent; border:none; font-size:28px; cursor:pointer; line-height:1;}
#cart-items{ flex:1; overflow:auto; padding-right:6px; }
.cart-item{ display:grid; grid-template-columns:1fr auto auto; gap:10px; align-items:center; padding:10px 0; border-bottom:1px solid #f1f1f1;}
.cart-item-name{ font-weight:600;}
.cart-qty{ display:flex; gap:6px; align-items:center;}
.cart-qty button{ background:var(--brand); color:#fff; border:none; border-radius:8px; padding:4px 8px; cursor:pointer;}
.cart-qty button:hover{ background:var(--brand-dark);}
.cart-line{ font-weight:600; text-align:right;}

.cart-footer{ border-top:1px solid #eee; padding-top:12px;}
.cart-total{ display:flex; align-items:center; justify-content:space-between; font-size:18px; margin-bottom:12px;}
#checkout-btn{ background:var(--brand); color:#fff; border:none; padding:10px 14px; border-radius:10px; font-weight:600; cursor:pointer; width:100%;}
#checkout-btn:hover{ background:var(--brand-dark);}

/* Buttons used in menu cards */
.add-to-cart{
  background:var(--brand); color:#fff; border:none; padding:8px 12px; border-radius:10px; cursor:pointer; font-weight:600;
}
.add-to-cart:hover{ background:var(--brand-dark);}


/* === Cart link in nav === */
.cart-link{ margin-left:auto; display:inline-flex; align-items:center; gap:.35rem; text-decoration:none; font-weight:600; padding:.4rem .7rem; border-radius:999px; background:#fff; box-shadow:0 6px 18px rgba(0,0,0,.08);}
.cart-link #cart-count{ font-weight:700;}

/* === Add to cart button === */
.menu-card .add-to-cart{ margin-top:10px; padding:8px 12px; border:none; border-radius:10px; background:#111; color:#fff; cursor:pointer; font-weight:600; transition:transform .08s ease;}
.menu-card .add-to-cart:active{ transform:scale(.98);}

/* === Toast === */
#toast{ position:fixed; bottom:24px; right:24px; background:#111; color:#fff; padding:12px 14px; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.18); opacity:0; transform:translateY(10px); pointer-events:none; transition:opacity .25s, transform .25s; z-index:2000;}
#toast.show{ opacity:1; transform:translateY(0);}


/* Új heti menü stílus */
.week-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.day-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: left;
}

.day-card h2 {
  margin-top: 0;
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #333;
}

.menu-option {
  margin-bottom: 10px;
  background: grey;
    padding: 30px;
    margin: 20px;
    display: inline-block;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    width: 325px;
    margin-left: 200px;
}


.menu-option label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.menu-option select {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.weekly-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.week-row {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.day-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.accordion {
  background: #f1f1f1;
  cursor: pointer;
  padding: 14px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 16px;
  border-radius: 12px 12px 0 0;
}

.panel {
  padding: 0 14px;
  display: none;
  overflow: hidden;
  text-align: left;
}

.panel p {
  margin: 10px 0;
}

/* Szekció háttér és elrendezés */
.weekly-section {
  background: #f8f9fa;
  padding: 40px 20px;
  margin: 40px 0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.weekly-menu {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.week-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Doboz dizájn */
.day-box {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1;
  max-width: 300px;
  text-align: center;
  transition: transform 0.2s ease;
}

.day-box:hover {
  transform: translateY(-4px);
}

/* Accordion gomb */
.accordion {
  background: #007bff;
  color: #fff;
  cursor: pointer;
  padding: 14px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 16px;
  border-radius: 16px 16px 0 0;
  transition: background 0.3s ease;
}

.accordion:hover {
  background: #0056b3;
}

/* Panel tartalom */
.panel {
  padding: 10px 14px;
  display: none;
  overflow: hidden;
  text-align: left;
}

.panel p {
  margin: 10px 0;
}

.hatter {
 background-color: burlywood;
}

span {
  color: maroon;
}


/* === Responsive Google Map Embed === */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 arány mobilon */
  height: 0;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gépen nagyobb magasság */
@media (min-width: 768px) {
  .map-container {
    padding-bottom: 0;
    height: 450px; /* fixebb magasság desktopon */
  }
}
