:root {
  color-scheme: light;
  font-family: 'Merriweather', serif;
  --bg: #fff7f1;
  --surface: #ffffff;
  --text: #2b1a19;
  --muted: #6b4d46;
  --primary: #ff6f00;
  --primary-dark: #e65a00;
  --accent: #c62828;
  --accent-dark: #8e1b1b;
  --border: rgba(198, 40, 40, 0.12);
  --shadow: 0 18px 60px rgba(198, 40, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7f1 0%, #ffe8d7 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 4vw, 2rem);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 800;
  color: var(--accent);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(198, 40, 40, 0.2);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1rem);
  padding: 0.4rem 0.6rem;
  display: inline-block;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-admin {
  display: inline-flex;
}

nav a.active,
nav a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(1rem, 3vw, 2rem);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

h1 {
  margin: 0 0 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.8rem, 6vw, 4rem);
  line-height: 1.02;
  color: var(--accent-dark);
}

.intro,
.hero-copy p,
.section-header p,
.message-preview,
.note,
.site-footer p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-actions.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 18px 35px rgba(255, 111, 0, 0.22);
}

.btn-secondary {
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  background: white;
}

.btn-danger {
  background: #d32f2f;
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #b71c1c;
}

.hero-image img {
  border-radius: 28px;
  max-height: 560px;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}

.highlights,
.grid-2,
.grid-3,
.menu-grid,
.photo-grid {
  display: grid;
  gap: 1.5rem;
}

.highlights {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlights article,
.menu-card,
.menu-item,
.values-card article,
.contact-details > div,
.photo-grid img,
.order-summary,
.form-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(1rem, 3vw, 1.75rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.highlights article {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.highlights article .icon {
  font-size: 2.5rem;
  margin-bottom: 0;
  align-self: flex-start;
}

.highlights article h2 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--accent-dark);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.highlights article p {
  color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.5;
  margin: 0;
}

.menu-card,
.menu-item {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-item-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: clamp(150px, 40vw, 200px);
  margin: -1rem -1rem 1rem -1rem;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  perspective: 1000px;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
  transform: translateZ(0);
}

.menu-item:hover .menu-item-image img {
  transform: scale(1.05) rotateX(2deg) rotateY(-2deg);
  filter: drop-shadow(0 15px 35px rgba(198, 40, 40, 0.2));
}

.menu-item button,
.menu-card button {
  border: none;
  width: fit-content;
  min-width: 130px;
  margin-top: 1rem;
}

.menu-item {
  position: relative;
}

.menu-item.unavailable {
  opacity: 0.62;
}

.menu-item.unavailable .add-to-order-btn {
  background: #9e9e9e;
  cursor: not-allowed;
}

.availability-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #c62828;
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section-header h2,
.story-block h2,
.values-card h2,
.contact-details h2,
.map-section h2,
.order-summary h2 {
  margin-top: 0;
}

.section-header {
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0.5rem 0 0;
}

.menu-preview,
.story-block,
.about-story,
.values-card,
.order-form-section,
.map-section {
  padding: clamp(1rem, 4vw, 2rem);
}

.admin-panel {
  margin: 0 2rem 2rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.admin-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  background: #fff9f4;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 700;
}

.admin-item input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

.auth-panel {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.admin-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.admin-form .btn {
  margin-top: 0.65rem;
}

.password-container {
  position: relative;
}

.password-container input {
  padding-right: 45px;
  width: 100%;
}

.toggle-password {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--muted);
  padding: 0 12px;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.toggle-password:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  .toggle-password {
    font-size: 1rem;
    padding: 0 10px;
  }
}

.admin-message {
  margin-top: 0.85rem;
  font-weight: 700;
}

.admin-message.error {
  color: #b71c1c;
}

.admin-message.success {
  color: #2e7d32;
}

.admin-password-box {
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
}

.admin-password-box h3 {
  margin: 0;
  font-family: 'Nunito', sans-serif;
}

.menu-grid,
.photo-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.menu-section {
  padding: 2rem;
}

.menu-section.warm-bg {
  background: rgba(255, 111, 0, 0.05);
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 3rem 2rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.18), rgba(198, 40, 40, 0.15));
  margin: 1rem 2rem;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.form-banner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(1rem, 3vw, 1.5rem);
  margin: 0 clamp(1rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem);
}

.order-form-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0 clamp(1rem, 3vw, 2rem) clamp(1.5rem, 3vw, 3rem);
}

.order-form-section form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
}

.message-preview {
  white-space: pre-wrap;
  background: #fff4eb;
  border-radius: 18px;
  padding: 1rem;
}

.note {
  font-size: 0.95rem;
  margin-top: 1rem;
}

.site-footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.story-block,
.about-story,
.order-form-section,
.contact-details,
.map-section {
  margin: 0 2rem 2rem;
}

.story-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-story ul {
  list-style: disc;
  margin: 1rem 0 0 1.5rem;
}

.photo-grid {
  grid-template-columns: 1fr 1fr;
}

.values-card .grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 1.5rem);
  margin: clamp(1rem, 3vw, 2rem);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social {
  background: #fff;
  display: inline-flex;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  color: var(--accent-dark);
}

.map-frame {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-frame iframe {
  width: 100%;
  min-height: 420px;
  border: none;
}

@media (max-width: 900px) {
  .hero,
  .story-block,
  .form-banner,
  .order-form-section,
  .contact-details,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-image img,
  .page-hero,
  .form-banner,
  .order-form-section,
  .story-block,
  .contact-details {
    margin: 0 1rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  nav {
    justify-content: center;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .menu-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .highlights {
    gap: clamp(0.75rem, 2vw, 1rem);
  }

  .highlights article {
    text-align: center;
    align-items: center;
  }

  .highlights article .icon {
    align-self: center;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero-image img {
    margin-top: 1rem;
    max-height: 250px;
    object-fit: cover;
  }

  .section-header {
    text-align: center;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
  }

  .menu-preview .hero-actions.center {
    margin-top: clamp(1rem, 3vw, 1.5rem);
  }
}

/* Cart System */
.floating-cart {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(255, 111, 0, 0.28);
  z-index: 20;
  font-size: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cart:hover {
  transform: scale(1.1);
  box-shadow: 0 16px 48px rgba(255, 111, 0, 0.35);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: flex-end;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-modal.open {
  display: flex;
  opacity: 1;
}

.cart-modal-content {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: white;
}

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

.close-btn {
  background: none;
  border: none;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.close-btn:hover {
  color: var(--accent);
}

.cart-items {
  flex: 1;
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow-y: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto auto;
  gap: clamp(0.5rem, 2vw, 1rem);
  align-items: center;
  padding: clamp(0.75rem, 2vw, 1rem);
  background: #f9f9f9;
  border-radius: 14px;
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.cart-item > div:first-child {
  display: flex;
  flex-direction: column;
}

.cart-item strong:first-of-type {
  margin-bottom: 0.25rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem;
}

.qty-btn {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent);
  font-weight: bold;
  font-size: clamp(0.9rem, 2vw, 1rem);
  border-radius: 8px;
}

.qty-btn:hover {
  background: #f0f0f0;
}

.cart-item-controls input {
  width: 40px;
  border: none;
  text-align: center;
  font-weight: 700;
  padding: 0;
}

.cart-item-controls input::-webkit-outer-spin-button,
.cart-item-controls input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.remove-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn:hover {
  color: var(--accent);
}

.cart-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: white;
  position: sticky;
  bottom: 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.cart-modal-footer label {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.cart-modal-footer input {
  margin-bottom: 1rem;
}

.cart-modal-footer .btn {
  width: 100%;
  margin-bottom: 0.75rem;
}

.add-to-order-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.add-to-order-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.cart-notification {
  position: fixed;
  bottom: 100px;
  left: 2rem;
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 18px;
  font-weight: 700;
  z-index: 25;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.cart-notification.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .floating-cart {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
    bottom: 1rem;
    left: 1rem;
  }

  .cart-modal-content {
    max-width: 100%;
    height: 90vh;
  }

  .cart-item {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .cart-notification {
    left: 0.75rem;
    right: 0.75rem;
  }

  .menu-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }

  h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
}

/* Variant Selector Modal */
.variant-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.variant-overlay.open {
  display: block;
  opacity: 1;
}

.variant-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 28px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  display: none;
  z-index: 50;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.variant-modal.open {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.variant-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

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

.variant-options {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.variant-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-option:hover {
  border-color: var(--primary);
  background: rgba(255, 111, 0, 0.05);
}

.variant-option input[type='radio'] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--primary);
  min-height: 44px;
  min-width: 44px;
  padding: 10px;
}

.variant-option span {
  flex: 1;
  font-weight: 600;
}

.variant-quantity {
  margin-bottom: 1.5rem;
}

.variant-quantity label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.qty-input-group {
  display: flex;
  gap: clamp(0.4rem, 1vw, 0.5rem);
  align-items: center;
  background: #f9f9f9;
  border-radius: 12px;
  padding: clamp(0.4rem, 1vw, 0.5rem);
}

.qty-input-group .qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: white;
  color: var(--primary);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.qty-input-group .qty-btn:hover {
  background: var(--primary);
  color: white;
}

.qty-input-group input {
  flex: 1;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem;
}

.qty-input-group input:focus {
  outline: none;
}

.variant-actions {
  display: grid;
  gap: 0.75rem;
}

.variant-actions .btn {
  width: 100%;
}

@media (max-width: 640px) {
  .variant-modal {
    max-width: 90%;
    padding: 1.5rem;
  }

  .variant-option {
    padding: 0.75rem;
  }
}

