:root {
  --color-text: #333;
  --color-muted: #6c757d;
  --color-green-dark: #2c5530;
  --color-green: #28a745;
  --color-green-hover: #218838;
  --color-red: #dc3545;
  --color-red-hover: #c82333;
  --color-border: #dee2e6;
  --color-soft: #f8f9fa;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.1);
  --radius-card: 15px;
  --radius-input: 4px;
  --max-content: 800px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #fff;
  color: var(--color-text);
}

a { color: inherit; }

/* === Header === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  border-bottom: 1px solid #ddd;
  gap: 20px;
}

.left-header,
.right-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.center-header {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.center-header img {
  height: 60px;
  margin-right: 10px;
}

.right-header a {
  text-decoration: none;
}

/* Language switcher */
.lang-btn {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 20px;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.lang-btn.active {
  background-color: rgba(40, 167, 69, 0.2);
  border-color: var(--color-green);
}

/* === Nav === */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  padding-bottom: 5px;
}

nav a.active {
  border-bottom: 2px solid #000;
}

/* === Hero === */
.hero-image {
  width: 100%;
  height: 400px;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
}

/* === Generic content === */
.content {
  padding: 40px;
  text-align: center;
}

.content h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.content h2 {
  font-size: 28px;
  font-weight: normal;
  color: goldenrod;
}

.page-title {
  text-align: center;
  color: var(--color-green-dark);
  margin: 30px 0;
  font-size: 32px;
  font-weight: bold;
}

.page-wrap {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 20px;
  line-height: 1.6;
}

/* Card-style sections used throughout the site */
.card {
  padding: 30px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
}

.card-soft {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.card-green {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

.card-white {
  background: #fff;
}

.card h2 {
  color: var(--color-green-dark);
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
}

.card p {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #495057;
}

.card .lead {
  font-size: 18px;
  color: var(--color-green-dark);
  font-weight: 600;
}

/* === Forms / buttons === */
button {
  background: var(--color-green);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

button:hover { background: var(--color-green-hover); }

button:disabled {
  background: var(--color-muted);
  cursor: not-allowed;
}

.btn-danger {
  background: var(--color-red);
}

.btn-danger:hover { background: var(--color-red-hover); }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
textarea,
select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: var(--radius-input);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* === Admin link & modal === */
.admin-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-muted);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 12px;
  opacity: 0.6;
  transition: opacity 0.3s;
  z-index: 1000;
}

.admin-link:hover { opacity: 1; }

.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.admin-modal.active { display: flex; }

.admin-content {
  background: white;
  padding: 30px;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-content h3 {
  margin-top: 0;
  color: var(--color-green-dark);
  border-bottom: 2px solid var(--color-green);
  padding-bottom: 10px;
}

.admin-content h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--color-green-dark);
}

.admin-content label {
  display: block;
  margin-bottom: 8px;
  margin-top: 12px;
  font-weight: 500;
}

.admin-content input,
.admin-content textarea,
.admin-content select {
  width: 100%;
  margin-bottom: 8px;
}

.admin-content button { width: 100%; margin-top: 10px; }

.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-message {
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

.admin-message.info { color: #007bff; }
.admin-message.success { color: var(--color-green); }
.admin-message.error { color: var(--color-red); }

.admin-divider {
  margin: 20px 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

/* === Reservation form layout === */
.reservation-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.form-section {
  flex: 1;
  background: white;
  padding: 25px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.form-section h3 {
  margin-top: 0;
  color: var(--color-green-dark);
  border-bottom: 2px solid var(--color-green);
  padding-bottom: 10px;
  font-size: 24px;
}

.category-filter select { width: 200px; }
.category-filter { margin-bottom: 20px; }

.item {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background-color: var(--color-soft);
}

.item label { font-weight: 500; color: #495057; margin-right: 8px; }
.item input[type="number"] { width: 80px; padding: 8px; }

.unit-label {
  margin-left: 5px;
  font-style: italic;
  color: var(--color-muted);
}

.description {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-muted);
  font-style: italic;
  padding-left: 5px;
  border-left: 2px solid var(--color-green);
}

.estimate-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-muted);
  font-style: italic;
}

.selected-item {
  margin-bottom: 12px;
  padding: 15px;
  border: 1px solid #d4edda;
  border-radius: 8px;
  background-color: #f3f8ff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-item-content { flex: 1; min-width: 0; }

.remove-btn {
  background: var(--color-red);
  padding: 6px 12px;
  font-size: 12px;
  margin-left: 10px;
}

.empty-message {
  color: var(--color-muted);
  font-style: italic;
  text-align: center;
  padding: 30px;
  background: var(--color-soft);
  border-radius: 8px;
  border: 1px dashed var(--color-border);
}

.total-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid var(--color-border);
}

.note-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
  border-radius: 8px;
  margin-top: 12px;
  border: 1px solid var(--color-border);
}

.note-section textarea { width: 100%; min-height: 110px; }

.email-section {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  padding: 25px;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid #c3e6c3;
}

.email-section .row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.email-section .field {
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
}

.email-section .field input { width: 100%; max-width: 100%; }
.email-section label { display: block; margin-bottom: 6px; }

@media (min-width: 769px) {
  .reservation-container { align-items: flex-start; }
  .form-section { display: flex; flex-direction: column; }
  .order-summary {
    position: sticky;
    top: 20px;
    min-height: 90vh;
    max-height: 90vh;
    overflow: auto;
  }
  .reservation-container .form-section:first-child { max-height: 90vh; }
  .reservation-container .form-section:first-child #productContainer {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .right-header { display: none !important; }
  .reservation-container { flex-direction: column; gap: 20px; }
  .form-section { padding: 20px; }
  header { padding: 10px 20px; flex-wrap: wrap; }
  .center-header { font-size: 18px; flex: 1; }
  .center-header img { height: 40px; }
  .content { padding: 20px; }
  .content h1 { font-size: 32px; }
}
