:root {
  --bg-page: #fbf5ef;
  --bg-card: #f5ebe0;
  --bg-card-hover: #eddcd0;
  --text-main: #2b1a17;
  --text-muted: #6e5e5b;
  --brand-burgundy: #a13258;
  --brand-burgundy-hover: #882547;
  --card-border: #eeded3;
  --input-bg: #ffffff;
  --input-border: #ddcfc7;
  --banner-dark: #241614;
  --banner-text: #ffffff;
  --shadow-sm: 0 2px 8px rgba(43, 26, 23, 0.05);
  --shadow-md: 0 6px 20px rgba(43, 26, 23, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  --bg-page: #191211;
  --bg-card: #261c1a;
  --bg-card-hover: #322522;
  --text-main: #fbf5ef;
  --text-muted: #c4b5b1;
  --brand-burgundy: #bd426d;
  --brand-burgundy-hover: #d65b86;
  --card-border: #3d2f2b;
  --input-bg: #1f1614;
  --input-border: #4d3d38;
  --banner-dark: #120b0a;
  --banner-text: #fbf5ef;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* Typography Headings */
h1, h2, h3, h4, .section-title, .brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--text-main);
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-page);
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.85rem;
}

.brand-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--brand-burgundy);
  background: #fff;
  flex-shrink: 0;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--brand-burgundy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  padding: 3px 6px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  gap: 4px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
}

.lang-btn.active, .lang-btn:hover {
  opacity: 1;
  transform: scale(1.08);
}

.flag-icon {
  border-radius: 2px;
  display: block;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  transform: scale(1.05);
}

[data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }

/* Hero Section */
.hero-section {
  padding: 3.5rem 1.5rem;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--brand-burgundy);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-burgundy-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--input-border);
}

[data-theme="dark"] .btn-outline {
  background: var(--bg-card);
}

.btn-outline:hover {
  border-color: var(--brand-burgundy);
  color: var(--brand-burgundy);
  transform: translateY(-2px);
}

/* 4-Image Grid in Hero */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.grid-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.grid-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grid-cell:hover img {
  transform: scale(1.05);
}

/* Menu & Order Section */
.menu-section {
  padding: 2.5rem 1.5rem 4rem;
}

.menu-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}

.catalog-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16/11;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.product-ingredients {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.card-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

[data-theme="dark"] .option-row {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255,255,255,0.05);
}

.option-label {
  font-size: 0.85rem;
  font-weight: 500;
}

.option-price {
  font-weight: 700;
  font-size: 0.95rem;
  margin-left: auto;
  margin-right: 0.75rem;
}

.btn-add {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--input-border);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

[data-theme="dark"] .btn-add {
  background: var(--bg-card-hover);
}

.btn-add:hover {
  background: var(--brand-burgundy);
  color: #fff;
  border-color: var(--brand-burgundy);
}

.custom-inquiry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.inquiry-price {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-inquiry {
  background: transparent;
  color: var(--brand-burgundy);
  border: 1.5px solid var(--brand-burgundy);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-inquiry:hover {
  background: var(--brand-burgundy);
  color: #fff;
}

/* Order Form Sticky Aside */
.order-card {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.order-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.order-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.cart-box {
  background: #ffffff;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .cart-box {
  background: rgba(0,0,0,0.25);
}

.cart-items-empty {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.4rem 0 0.8rem;
}

.cart-item-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--card-border);
}

.cart-item-line button {
  background: none;
  border: none;
  color: #c92a2a;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--card-border);
  font-weight: 700;
}

.total-label {
  font-size: 0.9rem;
}

.total-amount {
  font-size: 1.05rem;
  color: var(--brand-burgundy);
}

/* Form inputs */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  border-color: var(--brand-burgundy);
}

.input-helper {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.3rem;
}

.btn-submit {
  width: 100%;
  background: var(--brand-burgundy);
  color: #fff;
  padding: 0.85rem;
  border-radius: 30px;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--brand-burgundy-hover);
}

.form-footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* Info Pillars */
.info-section {
  padding: 2.5rem 1.5rem 4rem;
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-card);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.info-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.info-card-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Story Dark Banner */
.story-banner {
  background-color: var(--banner-dark);
  color: var(--banner-text);
  padding: 3.5rem 1.5rem;
  margin-bottom: 2rem;
}

.story-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.story-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #bca598;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-title {
  color: #ffffff;
  font-size: 1.85rem;
  margin-bottom: 0.65rem;
}

.story-text {
  color: #d8c8c5;
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 800px;
}

/* Footer */
.footer {
  padding: 1.5rem 1.5rem 2.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-main);
  background: var(--bg-card);
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  transition: all 0.2s;
}

.insta-btn:hover {
  border-color: var(--brand-burgundy);
  color: var(--brand-burgundy);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .menu-layout {
    grid-template-columns: 1fr;
  }
  .info-container {
    grid-template-columns: 1fr;
  }
  .story-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
