:root {
  --bg: #f6f0e8;
  --bg-elevated: rgba(255, 255, 255, 0.6);
  --surface: rgba(255, 255, 255, 0.72);
  --text: #191516;
  --muted: #6c5b58;
  --primary: #a9774e;
  --primary-strong: #7b4e2b;
  --accent: #f9d7b1;
  --border: rgba(64, 49, 42, 0.16);
  --shadow: 0 20px 55px rgba(23, 17, 16, 0.12);
  --max-width: 1200px;
}

body.dark {
  --bg: #08111f;
  --bg-elevated: rgba(13, 20, 37, 0.72);
  --surface: rgba(15, 24, 42, 0.72);
  --text: #fbe8d8;
  --muted: #c2b0a4;
  --primary: #f8c38a;
  --primary-strong: #f3a85d;
  --accent: #17243d;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(169, 119, 78, 0.2), transparent 45%),
    var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(246, 240, 232, 0.65);
  border-bottom: 1px solid var(--border);
}

body.dark .site-header {
  background: rgba(8, 17, 31, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
}

.brand-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
}

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

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  position: relative;
  font-size: 0.96rem;
  color: var(--muted);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

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

.icon-button,
.btn,
.filter-chip,
.gallery-item,
.modal-close,
.lightbox-close {
  border: none;
  cursor: pointer;
}

.icon-button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
}

.cart-badge-button {
  gap: 0.2rem;
}

.cart-counter,
.floating-cart-count {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--primary-strong);
  color: white;
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.6rem;
  height: 2px;
  margin: 0.28rem 0;
  background: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-slider {
  min-height: 78vh;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 10, 15, 0.7), rgba(28, 17, 15, 0.35));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 7rem 0;
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.hero-title,
.section-heading h2,
.about h2,
.special-card h3,
.newsletter-card h2 {
  margin: 0.3rem 0;
  font-family: "Cormorant Garamond", serif;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  max-width: 12ch;
}

.hero-subtitle {
  max-width: 36rem;
  color: #f9efe4;
  font-size: 1.06rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  color: var(--primary-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-buttons,
.menu-controls,
.newsletter-form,
.cart-actions-top {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn:hover,
.icon-button:hover,
.filter-chip:hover,
.gallery-item:hover,
.floating-cart:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.slider-dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 2;
}

.slider-dots span {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}

.slider-dots span.active {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.feature-grid,
.stats-grid,
.gallery-grid,
.instagram-grid,
.menu-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-card,
.glass-card,
.menu-item,
.stat-card,
.special-card,
.newsletter-card,
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.feature-card,
.stat-card,
.special-card,
.newsletter-card,
.testimonial {
  padding: 1.2rem;
}

.feature-card {
  transition: transform 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(169, 119, 78, 0.14);
  margin-bottom: 0.8rem;
}

.split-layout,
.checkout-layout,
.cart-layout,
.special-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.stat-card strong {
  display: block;
  font-size: 2.1rem;
  margin-bottom: 0.3rem;
}

.filters {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.filter-chip {
  padding: 0.7rem 1rem;
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.filter-chip.active {
  background: var(--primary);
  color: white;
}

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

.menu-item {
  overflow: hidden;
  padding: 0;
}

.menu-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.menu-body {
  padding: 1rem;
}

.tag-row,
.rating-row,
.menu-row,
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(169, 119, 78, 0.15);
  color: var(--primary-strong);
}

.badge.best-seller { background: rgba(245, 159, 48, 0.18); }

.menu-name {
  margin: 0.75rem 0 0.3rem;
  font-size: 1.15rem;
}

.menu-price {
  font-weight: 700;
  font-size: 1.2rem;
}

.meta-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.icon-inline {
  font-size: 0.8rem;
}

.availability {
  color: #1f9d66;
  font-weight: 700;
}

.wishlist-button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.card-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
}

.card-actions .btn {
  padding: 0.75rem 0.95rem;
}

.skeleton-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

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

.cart-items {
  display: grid;
  gap: 0.75rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.24);
}

.cart-row img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 0.8rem;
}

.qty-controls {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}

.qty-controls button {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
}

.summary-panel {
  padding: 1.25rem;
}

.summary-row {
  margin: 0.65rem 0;
}

.full-width {
  width: 100%;
}

.checkout-form {
  padding: 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.checkout-form label {
  display: grid;
  gap: 0.35rem;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.5);
  color: var(--text);
}

textarea {
  resize: vertical;
}

.checkout-order-summary {
  display: grid;
  gap: 0.6rem;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

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

.gallery-item,
.instagram-grid img {
  border-radius: 1.2rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: var(--surface);
}

.testimonials-slider {
  position: relative;
  min-height: 160px;
}

.testimonial {
  display: none;
}

.testimonial.active {
  display: block;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.map-frame iframe {
  width: 100%;
  border: 0;
  min-height: 340px;
  border-radius: 1.2rem;
}

.newsletter-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.newsletter-form input {
  min-width: 280px;
}

.floating-cart {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: var(--shadow);
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  display: grid;
  gap: 0.5rem;
  z-index: 60;
}

.toast {
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: rgba(15, 24, 42, 0.9);
  color: white;
  min-width: 220px;
  box-shadow: var(--shadow);
}

.modal,
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.75);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 70;
}

.modal.hidden,
.lightbox.hidden {
  display: none;
}

.modal-card {
  background: var(--surface);
  max-width: 650px;
  width: min(100%, 650px);
  border-radius: 1.1rem;
  padding: 1.25rem;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close,
.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  font-size: 1.55rem;
  background: transparent;
}

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 86vh;
  border-radius: 1rem;
}

.skeleton-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
  border-radius: 1rem;
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .feature-grid,
  .menu-grid,
  .gallery-grid,
  .instagram-grid,
  .split-layout,
  .checkout-layout,
  .cart-layout,
  .special-layout,
  .newsletter-card {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: block; }
  .nav-links-wrap {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 1rem;
    width: min(92vw, 320px);
    padding: 1rem;
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links-wrap.open { display: flex; }
  .nav-links { display: grid; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: 100%; }
}

@media (max-width: 560px) {
  .hero-content { padding: 5.5rem 0; }
  .hero-title { font-size: 2.8rem; }
  .cart-row { grid-template-columns: 1fr; }
  .cart-row img { width: 100%; height: 180px; }
}

/* =========================================================
   YOURBRAND AI ASSISTANT
   ========================================================= */

.ai-fab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: grid;
  place-items: center;

  color: #fff;
  font-size: 1.5rem;

  background:
    linear-gradient(135deg, var(--primary), var(--primary-strong));

  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.12);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ai-fab:hover {
  transform: translateY(-4px) scale(1.04);
}

.ai-fab span {
  animation: aiSparkle 2s ease-in-out infinite;
}

@keyframes aiSparkle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(12deg) scale(1.15);
  }
}


/* Chat Window */

.ai-chat {
  position: fixed;
  left: 1rem;
  bottom: 5.8rem;

  width: min(390px, calc(100vw - 2rem));
  height: min(620px, calc(100vh - 7rem));

  z-index: 99;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border-radius: 1.4rem;

  background: var(--surface);

  border: 1px solid var(--border);

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.25);

  backdrop-filter: blur(22px);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.ai-chat.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}


/* Header */

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1rem;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      var(--primary-strong),
      var(--primary)
    );
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ai-header-info strong {
  display: block;
  font-size: 0.95rem;
}

.ai-header-info small {
  display: block;
  margin-top: 2px;
  opacity: 0.8;
  font-size: 0.72rem;
}

.ai-avatar {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: rgba(255,255,255,0.18);

  border: 1px solid rgba(255,255,255,0.25);

  font-size: 1.2rem;
}

.ai-close {
  width: 34px;
  height: 34px;

  border: 0;
  border-radius: 50%;

  background: rgba(255,255,255,0.12);
  color: #fff;

  cursor: pointer;

  font-size: 1.5rem;

  transition: background 0.2s ease;
}

.ai-close:hover {
  background: rgba(255,255,255,0.22);
}


/* Messages */

.ai-messages {
  flex: 1;

  overflow-y: auto;

  padding: 1rem;

  display: flex;
  flex-direction: column;

  gap: 0.8rem;

  scroll-behavior: smooth;
}

.ai-message {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;

  max-width: 90%;
}

.ai-message.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.ai-message-avatar {
  flex: 0 0 30px;

  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    linear-gradient(135deg, var(--primary), var(--primary-strong));

  color: #fff;

  font-size: 0.75rem;
}

.ai-bubble {
  padding: 0.7rem 0.85rem;

  border-radius: 1rem;

  background: var(--bg-elevated);

  border: 1px solid var(--border);

  color: var(--text);

  font-size: 0.86rem;

  line-height: 1.65;
}

.ai-message.user .ai-bubble {
  background: var(--primary);
  color: #fff;

  border-color: transparent;
}


/* Suggestion buttons */

.ai-suggestions {
  display: flex;
  gap: 0.45rem;

  padding: 0 0.8rem 0.7rem;

  overflow-x: auto;

  scrollbar-width: none;
}

.ai-suggestions::-webkit-scrollbar {
  display: none;
}

.ai-suggestions button {
  flex: 0 0 auto;

  border: 1px solid var(--border);

  background: var(--bg-elevated);

  color: var(--text);

  border-radius: 999px;

  padding: 0.5rem 0.7rem;

  cursor: pointer;

  font-size: 0.72rem;

  transition: 0.2s ease;
}

.ai-suggestions button:hover {
  background: var(--primary);
  color: #fff;
}


/* Input */

.ai-input-area {
  display: flex;
  gap: 0.5rem;

  padding: 0.75rem;

  border-top: 1px solid var(--border);

  background: var(--bg-elevated);
}

.ai-input-area input {
  flex: 1;

  min-width: 0;

  padding: 0.75rem 0.9rem;

  border-radius: 999px;

  outline: none;

  background: var(--surface);

  border: 1px solid var(--border);

  color: var(--text);
}

.ai-input-area input:focus {
  border-color: var(--primary);
}

.ai-input-area button {
  width: 43px;
  height: 43px;

  flex: 0 0 43px;

  border: 0;

  border-radius: 50%;

  background:
    linear-gradient(135deg, var(--primary), var(--primary-strong));

  color: #fff;

  cursor: pointer;

  font-size: 1rem;
}


/* Typing */

.ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;

  padding: 0.75rem 0.9rem;
}

.ai-typing span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--muted);

  animation: aiTyping 1.2s infinite;
}

.ai-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes aiTyping {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}


/* Mobile */

@media (max-width: 560px) {

  .ai-fab {
    left: 0.8rem;
    bottom: 0.8rem;
    width: 54px;
    height: 54px;
  }

  .ai-chat {
    left: 0.6rem;
    bottom: 4.8rem;

    width: calc(100vw - 1.2rem);

    height: min(650px, calc(100vh - 6rem));

    border-radius: 1.2rem;
  }

  .ai-message {
    max-width: 94%;
  }
}