/* ============================================================
       Velvet — RESTAURANT TEMPLATE
       Designed by Dave Digital Studio (DDS). Version 1.0
       ============================================================
       CUSTOMIZATION GUIDE:
       - Change --gold to your accent color
       - Change --cream / --bg-deep to your palette
       - Replace font families in :root to switch typography
       - Edit content in each section's HTML
       ============================================================ 
*/

/* ── THEME TOKENS ─────────────────────────────────────────── */

:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --cream: #f5edd6;
  --cream-soft: #faf5e9;
  --text-main: #1a1208;
  --text-mid: #5a4a2f;
  --text-soft: #9a8060;
  --bg-deep: #0e0a04;
  --bg-card: #1c1509;
  --bg-section: #120d06;
  --border: rgba(201, 168, 76, 0.18);
  --radius: 4px;
  --transition: 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  --white: #ffffff;

  /* FONT FAMILIES */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", sans-serif;

  --nav-text: #ffffff;
  --nav-backdrop: rgba(0, 0, 0, 0.2);
  --overlay-bg: rgba(14, 10, 4, 0.92);
}

/* Light theme overrides */
[data-theme="light"] {
  --cream: #1a1208;
  --cream-soft: #42321a;
  --text-main: #1a1208;
  --text-mid: #3d2f1c;
  --text-soft: #634f31; /* Darkened for better contrast */
  --bg-deep: #f9f4ea;
  --bg-card: #fdf8ee;
  --bg-section: #f3ebd5;
  --border: rgba(144, 115, 34, 0.22);
  --nav-text: #1a1208;
  --nav-backdrop: rgba(255, 255, 255, 0.35);
  --overlay-bg: rgba(255, 255, 255, 0.88);
}

[data-theme="light"] .section-label {
  color: #9e7b25;
}

[data-theme="light"] .btn-outline:not(#hero .btn-outline) {
  border-color: rgba(26, 18, 8, 0.45);
  color: var(--text-main);
}
[data-theme="light"] .btn-outline:not(#hero .btn-outline):hover {
  border-color: var(--gold);
  color: #9e7b25;
}

/* ── RESET ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
a,
button,
[onclick],
input,
select,
textarea,
label {
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* prevent horizontal scroll on all browsers */
}
body {
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  padding-top: 60px;
  overflow-x: hidden;
  max-width: 100vw;
}
::selection {
  background: rgba(201, 168, 76, 0.28);
  color: var(--cream);
}

/* ── CUSTOM SCROLLBAR ───────────────────────────────────────── */
/* WebKit: Chrome, Safari, Edge, Opera */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}
::-webkit-scrollbar-corner {
  background: var(--bg-deep);
}
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg-deep);
}
/* Light theme */
[data-theme="light"] ::-webkit-scrollbar-track,
[data-theme="light"] ::-webkit-scrollbar-corner {
  background: var(--bg-section);
}
[data-theme="light"] html {
  scrollbar-color: var(--gold) var(--bg-section);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}
ul {
  list-style: none;
}

/* Better keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── UTILITIES ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header-spaced {
  margin-bottom: 3.5rem;
}
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.4rem 0;
}
.divider.center {
  margin: 1.4rem auto;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.45s;
}

/* ── NAVBAR ────────────────────────────────────────────────── */
#navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition:
    background var(--transition),
    padding var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  background: rgba(14, 10, 4, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#navbar.scrolled {
  background: rgba(14, 10, 4, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(13px);
  padding: 1.2rem 0;
  border-color: rgba(201, 168, 76, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] #navbar {
  background: rgba(249, 244, 234, 0.6);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(10px);
}
[data-theme="light"] #navbar.scrolled {
  background: rgba(249, 244, 234, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0; /* allow flex children to shrink */
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #ffffff; /* Default: White for dark/image background */
}
[data-theme="light"] #navbar:not(.scrolled) .nav-logo {
  color: var(--text-main);
}
[data-theme="light"] #navbar:not(.scrolled) .theme-btn,
[data-theme="light"] #navbar:not(.scrolled) .nav-cart-btn,
[data-theme="light"] #navbar:not(.scrolled) .nav-auth-link {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(26, 18, 8, 0.15);
  text-shadow: none;
}
.nav-links a.active {
  color: var(--gold);
}
.nav-links a.active::after {
  transform: scaleX(1);
}
[data-theme="light"] #navbar:not(.scrolled) .nav-links a:not(.active) {
  color: var(--text-main);
}
[data-theme="light"] #navbar:not(.scrolled) .nav-links a.active {
  color: #9e7b25; /* Darker gold for visibility */
}
[data-theme="light"] #navbar:not(.scrolled) .nav-links a.active::after {
  background: #9e7b25;
  transform: scaleX(1);
}
[data-theme="light"] #navbar:not(.scrolled) .nav-links a:hover {
  color: #8c6a1e;
}
[data-theme="light"] #navbar:not(.scrolled) .nav-cta {
  color: var(--text-main);
  border-color: rgba(26, 18, 8, 0.45);
}
#navbar.scrolled .nav-logo {
  color: var(--cream);
}
.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff; /* Stay white at top */
  transition: color var(--transition);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}
#navbar.scrolled .nav-links a {
  color: var(--nav-text);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover {
  color: #d4af37;
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;

  border: 1px solid var(--gold);
  color: #ffffff; /* Stay white at top */
  transition:
    color var(--transition),
    background var(--transition);
}
#navbar.scrolled .nav-cta {
  color: var(--nav-text);
}
.nav-cta:hover {
  background: var(--gold);
  color: #0e0a04 !important;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0; /* never shrink and push hamburger off screen */
}

/* Theme toggle */
.theme-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* Stay white at top */
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition:
    color var(--transition),
    border-color var(--transition);
}
#navbar.scrolled .theme-btn {
  color: #ffffff;
}
.theme-btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  transform: scale(1.1);
}
.theme-btn svg {
  width: 16px;
  height: 16px;
}
.icon-moon {
  display: block;
}
.icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: none;
}
[data-theme="light"] .icon-sun {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 1px;
  background: #ffffff;
}
[data-theme="light"] #navbar:not(.scrolled) .hamburger span {
  background: var(--text-main);
}
.hamburger span {
  transition:
    transform var(--transition),
    opacity var(--transition);
}
#navbar.scrolled .hamburger span {
  background: var(--cream);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-deep);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 3.2rem;
  gap: 1.7rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  top: 100px;
  height: calc(100dvh - 100px);
  min-height: calc(100svh - 100px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: max(6rem, calc(2rem + env(safe-area-inset-bottom, 0px)));
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
body.menu-open {
  overflow: hidden !important;
  width: 100%;
}
body:not(.menu-open) {
  overflow-x: hidden;
  position: relative;
}
.mobile-nav.open ~ .theme-swatches,
body.menu-open .theme-swatches {
  display: none !important;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.4rem);
  font-weight: 300;
  color: var(--cream);
  transition: color var(--transition);
}
.mobile-nav a:hover {
  color: var(--gold);
}

@media (max-height: 760px) {
  .mobile-nav {
    padding-top: 2.4rem;
    gap: 1.15rem;
    padding-bottom: max(7rem, calc(3rem + env(safe-area-inset-bottom, 0px)));
  }

  .mobile-nav a {
    font-size: clamp(1.6rem, 6.5vw, 2rem);
    line-height: 1.2;
  }
}

/* ── HERO ──────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  margin-top: -40px;
  position: relative;
  display: flex;
  align-items: center; /* Centered for premium feel */
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(14, 10, 4, 0.95) 0%,
      rgba(14, 10, 4, 0.4) 50%,
      rgba(14, 10, 4, 0.2) 100%
    ),
    url("images/hero.jpg") center/cover no-repeat;
  transform: scale(1);
  transition: transform 8s ease;
}
#hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
}
.hero-badge::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.9;
  color: #ffffff;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1.2s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  display: inline-block;
  color: var(--gold);
}
.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: 3.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1.2s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.btn-primary {
  display: inline-block;
  padding: 1rem 2.2rem;
  background: var(--gold);
  color: #0e0a04;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background var(--transition),
    transform var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  padding: 1rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff; /* Light in hero */
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}
.hero-scroll span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
  from {
    opacity: 0;
  }
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ── ABOUT ─────────────────────────────────────────────────── */
#about {
  padding: 8rem 0;
  background: var(--bg-section);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}
.about-image-accent {
  position: absolute;
  top: -24px;
  left: -24px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--gold);
  opacity: 0.3;
  pointer-events: none;
}
.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
}
.badge-year {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}
.badge-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.about-text p {
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1.9;
  margin-bottom: 1.4rem;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.8rem;
  padding-top: 2.8rem;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.4rem;
}

/* ── MENU ──────────────────────────────────────────────────── */
#menu {
  padding: 8rem 0;
  background: var(--bg-deep);
}
.menu-header {
  text-align: center;
  margin-bottom: 4rem;
}

.menu-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 3.5rem;
  border: 1px solid var(--border);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.tab-btn {
  padding: 0.75rem 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-right: 1px solid var(--border);
  transition:
    background var(--transition),
    color var(--transition);
}
.tab-btn:last-child {
  border-right: none;
}
.tab-btn.active {
  background: var(--gold);
  color: var(--bg-deep);
}
.tab-btn:not(.active):hover {
  color: var(--cream);
  background: rgba(201, 168, 76, 0.08);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.menu-panel {
  display: none;
}
.menu-panel.active {
  display: contents;
}

.menu-card {
  background: var(--bg-card);
  padding: 2rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}
.menu-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}
.menu-card:hover {
  background: rgba(201, 168, 76, 0.04);
}
.menu-card:hover::before {
  transform: scaleY(1);
}

.menu-card-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
}
.menu-card-body {
  flex: 1;
}

.menu-card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.35rem;
}
.menu-card-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-card-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 400;
}
.menu-card-tag {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  color: var(--text-soft);
}

/* ── FEATURED DISHES ───────────────────────────────────────── */
#featured {
  padding: 8rem 0;
  background: var(--bg-section);
}
.featured-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.dish-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.dish-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#creme-brule-img {
  position: absolute;
  height: 100%;
  right: 3px;
  z-index: -10;
}

.dish-card:hover img {
  transform: scale(1.08);
}
.dish-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--overlay-bg) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background var(--transition);
}
.dish-card:hover .dish-card-overlay {
  background: linear-gradient(
    to top,
    rgba(14, 10, 4, 0.96) 0%,
    rgba(14, 10, 4, 0.2) 55%
  );
}
.dish-category {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffd45d;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.dish-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: #f5edd6;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.dish-desc {
  font-size: 0.82rem;
  color: rgba(245, 237, 214, 0.55);
  line-height: 1.6;
  transform: translateY(10px);
  opacity: 0;
  transition:
    opacity var(--transition),
    transform var(--transition);
}
.dish-card:hover .dish-desc {
  opacity: 1;
  transform: translateY(0);
}
.dish-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 0.8rem;
}

/* ── TESTIMONIALS ──────────────────────────────────────────── */
#testimonials {
  padding: 8rem 0;
  background: var(--bg-deep);
  text-align: center;
}
.testi-header {
  margin-bottom: 4rem;
}

.testi-track-wrap {
  overflow: hidden;
  position: relative;
}
.testi-track-wrap::before,
.testi-track-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.testi-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-deep), transparent);
}
.testi-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-deep), transparent);
}

.testi-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.testi-card {
  min-width: 380px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: left;
  flex-shrink: 0;
}
.testi-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.testi-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.testi-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cream);
}
.testi-role {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.testi-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}
.testi-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition);
}
.testi-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
}
.testi-btn svg {
  width: 18px;
  height: 18px;
}
/* Dot indicators */
.testi-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.testi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background var(--transition),
    transform var(--transition);
}
.testi-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* Testimonial card — width controlled by JS */
.testi-card {
  padding: 2.2rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: left;
  box-sizing: border-box;
}

/* 2 cards at medium screens */
@media (max-width: 1100px) {
  .testi-card {
    flex: 0 0 calc(50% - 0.75rem);
    width: calc(50% - 0.75rem);
  }
}

/* 1 full-width card on mobile */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
  .nav-auth-link,
  .nav-cart-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .testi-card {
    padding: 1.5rem;
  }
  .testi-quote {
    font-size: 1rem;
  }
  .nav-auth-link,
  .nav-cart-btn {
    display: none;
  }
}

/* ── GALLERY ───────────────────────────────────────────────── */
#gallery {
  padding: 8rem 0;
  background: var(--bg-section);
}
.gallery-header {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 2px;
}
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
}
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
  transform: scale(1.07);
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 4, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.gallery-item:hover .gallery-item-overlay {
  background: rgba(14, 10, 4, 0.45);
}
.gallery-zoom {
  width: 40px;
  height: 40px;
  border: 1px solid var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity var(--transition),
    transform var(--transition);
}
.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 1.2rem;
  transition: border-color var(--transition);
}
.lightbox-close:hover {
  border-color: var(--gold);
}

/* ── RESERVATION ───────────────────────────────────────────── */
#reservation {
  padding: 8rem 0;
  background: var(--bg-deep);
  position: relative;
}
#reservation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/reservation-bg.jpg") center/cover no-repeat;
  opacity: 0.07;
}
.reservation-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.reservation-inner .section-title {
  margin-bottom: 0.6rem;
}
.reservation-sub {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 1px;
}
.booking-form .full {
  grid-column: 1 / -1;
}
.form-field {
  background: var(--bg-card);
  padding: 0 1.4rem;
  position: relative;
}
.form-field label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 1rem;
  margin-bottom: 0.2rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding-bottom: 1rem;
  appearance: none;
}
.form-field select option {
  background: var(--bg-card);
  color: var(--cream);
}
.form-field textarea {
  resize: none;
  height: 80px;
  padding-top: 0.4rem;
}
.form-submit {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.form-submit:hover {
  background: var(--gold-light);
}

/* ── CONTACT ───────────────────────────────────────────────── */
#contact {
  padding: 8rem 0;
  background: var(--bg-section);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-detail {
  margin-bottom: 2.5rem;
}
.contact-detail-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.contact-detail-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.5;
}
.contact-hours {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-soft);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.06);
}
.hours-row span:last-child {
  color: var(--cream);
}

.map-wrap {
  height: 400px;
  overflow: hidden;
  border: 1px solid var(--border);
  filter: grayscale(1) contrast(1.1) brightness(0.7);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── FOOTER ────────────────────────────────────────────────── */
#footer {
  padding: 5rem 0 2.5rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1rem;
}
.footer-logo span {
  color: var(--gold);
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 230px;
}
.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition:
    border-color var(--transition),
    color var(--transition);
  font-size: 0.8rem;
}
.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-soft);
}
.footer-copy a {
  color: var(--gold);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.75rem;
  color: var(--text-soft);
  transition: color var(--transition);
}
.footer-legal a:hover {
  color: var(--cream);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
/* ── RESPONSIVE ────────────────────────────────────────────── */

/* ── TABLET LANDSCAPE (≤1200px) ─────────────────────────────── */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
  .contact-grid {
    gap: 2.5rem;
  }
  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* ── TABLET (≤1024px) ────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image-wrap img {
    height: 400px;
  }
  .about-image-accent {
    top: -14px;
    left: -14px;
  }
  .about-image-badge {
    bottom: -14px;
    right: -14px;
    width: 100px;
    height: 100px;
  }

  /* Featured */
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  /* Menu tabs — allow wrapping on tablet */
  .menu-tabs {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .tab-btn {
    flex: 1 1 auto;
    min-width: 100px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .tab-btn:last-child {
    border-bottom: none;
  }
  .about-grid {
    gap: 2.5rem;
  }
  #about {
    padding: 5rem 0;
  }
}

/* ── TABLET PORTRAIT / LARGE MOBILE (≤768px) ─────────────────── */
@media (max-width: 900px) {
  /* Sections — reduce vertical padding */
  #about,
  #menu,
  #featured,
  #testimonials,
  #gallery,
  #reservation,
  #contact {
    padding: 5rem 0;
  }
  #footer {
    padding: 4rem 0 2rem;
  }

  /* Container */
  .container {
    padding: 0 1.2rem;
  }

  /* Navbar */
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
  .nav-logo {
    font-size: 1.25rem;
    white-space: nowrap;
  }
  /* Hero */
  .hero-scroll {
    display: none;
  }
  .hero-content {
    padding: 0 1.2rem 7vh;
  }
  .hero-tagline {
    max-width: 100%;
  }

  /* About */
  .about-text p {
    font-size: 1.05rem;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .about-image-badge {
    width: 90px;
    height: 90px;
    bottom: -10px;
    right: -10px;
  }
  .badge-year {
    font-size: 1.8rem;
  }

  /* Menu tabs */
  .menu-tabs {
    flex-wrap: wrap;
    width: 100%;
    border: none;
    gap: 2px;
    background: var(--border);
  }
  .tab-btn {
    flex: 1 1 calc(50% - 2px);
    border-right: none;
    border-bottom: none;
    text-align: center;
    padding: 0.7rem 1rem;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }

  /* Featured */
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .dish-card {
    aspect-ratio: 1 / 1.15; /* Taller on mobile to avoid overlap */
  }
  .dish-card-overlay {
    padding: 1.25rem;
    background: linear-gradient(
      to top,
      rgba(14, 10, 4, 0.95) 0%,
      rgba(14, 10, 4, 0.5) 60%,
      transparent 100%
    ); /* More solid background on mobile */
  }
  .dish-desc {
    opacity: 1 !important;
    transform: translateY(0) !important;
    font-size: 0.78rem;
    margin-top: 0.5rem;
  }
  .dish-name {
    font-size: 1.4rem;
  }

  /* Testimonials */
  .testi-card {
    min-width: calc(100vw - 2.4rem);
  }
  .testi-track-wrap::before,
  .testi-track-wrap::after {
    width: 40px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }

  /* Reservation */
  .booking-form {
    grid-template-columns: 1fr;
  }
  .booking-form .full {
    grid-column: 1;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .map-wrap {
    height: 280px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .footer-legal {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Theme swatches — move to avoid overlap with back-to-top */
  .theme-swatches {
    right: 1rem;
    bottom: 5.5rem;
  }
  #back-top {
    right: 1rem;
    bottom: 1.2rem;
  }

  /* Section headers */
  .menu-header,
  .featured-header,
  .gallery-header,
  .testi-header {
    margin-bottom: 2.5rem;
  }
}

/* ── MOBILE (≤480px) ─────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Sections */
  #about,
  #menu,
  #featured,
  #testimonials,
  #gallery,
  #reservation,
  #contact {
    padding: 4rem 0;
  }

  /* Container */
  .container {
    padding: 0 1rem;
  }

  /* Hero */
  .hero-ctas {
    flex-direction: column;
  }
  .btn-primary,
  .btn-outline {
    text-align: center;
    width: 100%;
    padding: 0.9rem 1.4rem;
  }
  .hero-tagline br {
    display: none;
  }

  /* About */
  .about-image-wrap img {
    height: 300px;
  }
  .about-image-accent {
    display: none;
  }
  .about-image-badge {
    width: 80px;
    height: 80px;
    bottom: -8px;
    right: -8px;
  }
  .badge-year {
    font-size: 1.5rem;
  }
  .badge-label {
    font-size: 0.52rem;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .stat-number {
    font-size: 2rem;
  }

  /* Menu tabs — stack to 2x2 */
  .tab-btn {
    flex: 1 1 calc(50% - 2px);
    padding: 0.65rem 0.5rem;
    font-size: 0.62rem;
  }

  /* Menu card */
  .menu-card {
    flex-direction: column;
  }
  .menu-card-img {
    width: 100%;
    height: 180px;
  }

  /* Featured */
  .dish-card {
    aspect-ratio: 3/2;
  }
  .dish-name {
    font-size: 1.3rem;
  }

  /* Testimonials */
  .testi-card {
    min-width: calc(100vw - 2rem);
    padding: 1.8rem;
  }
  .testi-quote {
    font-size: 1rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
  .gallery-item:nth-child(1) {
    grid-column: 1 / -1;
    aspect-ratio: 4/3;
  }

  /* Reservation */
  .reservation-inner {
    padding: 0 0.5rem;
  }
  .reservation-sub {
    font-size: 0.88rem;
  }
  .form-field {
    padding: 0 1rem;
  }
  .form-submit {
    padding: 1rem;
    font-size: 0.68rem;
  }

  /* Contact */
  .contact-detail-value {
    font-size: 1rem;
  }
  .map-wrap {
    height: 240px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: 1;
  }
  .footer-tagline {
    max-width: 100%;
  }
  .footer-socials {
    gap: 0.6rem;
  }
  .footer-legal {
    gap: 0.8rem;
  }

  /* Nav logo smaller */
  .nav-logo {
    font-size: 1.15rem;
  }
  #navbar .container {
    padding: 0 0.85rem;
  }

  /* Section title clamp override */
  .section-title {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }
}

/* ── SMALL MOBILE (≤360px) ────────────────────────────────────── */
@media (max-width: 360px) {
  .container {
    padding: 0 0.85rem;
  }
  .hero-title {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
  .testi-card {
    min-width: calc(100vw - 1.7rem);
    padding: 1.4rem;
  }
  .menu-card-img {
    height: 150px;
  }
  .tab-btn {
    font-size: 0.58rem;
    padding: 0.6rem 0.4rem;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 0.88rem;
  }
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ── TOUCH DEVICE ENHANCEMENTS ──────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Always show dish desc on touch (no hover) */
  .dish-desc {
    opacity: 1;
    transform: translateY(0);
  }
  /* Show gallery zoom icon always on touch */
  .gallery-zoom {
    opacity: 0.7;
    transform: scale(1);
  }
  .gallery-item-overlay {
    background: rgba(14, 10, 4, 0.3);
  }
  /* Increase tap targets */
  .tab-btn {
    min-height: 44px;
  }
  .testi-btn {
    width: 52px;
    height: 52px;
  }
  .social-btn {
    width: 44px;
    height: 44px;
  }
  .swatch-btn {
    width: 26px;
    height: 26px;
  }
}
/* Scroll progress bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9999;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* Color theme swatches (bonus) */
.theme-swatches {
  position: fixed;
  right: 1.5rem;
  bottom: 5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.swatch-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition:
    border-color var(--transition),
    transform var(--transition);
  cursor: pointer;
}
.swatch-btn:hover,
.swatch-btn.active {
  border-color: var(--cream);
  transform: scale(1.2);
}
.swatch-btn[data-theme-color="gold"] {
  background: #c9a84c;
}
.swatch-btn[data-theme-color="rose"] {
  background: #c9694c;
}
.swatch-btn[data-theme-color="sage"] {
  background: #6fa07c;
}
.swatch-btn[data-theme-color="indigo"] {
  background: #5b73c9;
}

/* Back to top */
#back-top {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: var(--bg-card);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition),
    border-color var(--transition),
    color var(--transition);
}
#back-top.visible {
  opacity: 1;
  pointer-events: all;
}
#back-top:hover {
  border-color: var(--gold);
  color: var(--gold);
}
#back-top svg {
  width: 18px;
  height: 18px;
}
.brand-name {
  font-size: 15px;
  font-weight: 500;
}

/* ── ACTIVE NAV LINK ──────────────────────────────────────── */
.nav-links a.active {
  color: var(--gold) !important;
}
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── NAV CART & AUTH ──────────────────────────────────────── */
.nav-cart-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  transition: all var(--transition);
}
#navbar.scrolled .nav-cart-btn {
  color: #ffffff;
}
.nav-cart-btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  transform: scale(1.1);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-auth-link {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  transition: all var(--transition);
}
#navbar.scrolled .nav-auth-link {
  color: #ffffff;
}
.nav-auth-link:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  transform: scale(1.1);
}

/* ── PAGE HERO (subpages) ─────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.04);
}
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 10, 4, 0.95) 0%,
    rgba(14, 10, 4, 0.5) 50%,
    rgba(14, 10, 4, 0.3) 100%
  );
}
/* Remove white shadow/gradient in light mode to match home page */
[data-theme="light"] .page-hero-bg::after {
  background: linear-gradient(
    to top,
    rgba(14, 10, 4, 0.8) 0%,
    rgba(14, 10, 4, 0.3) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 11rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero .hero-title {
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  color: #ffffff;
  letter-spacing: -0.01em;
}
/* Remove redundant global-styled overrides from subpage section to avoid confusion */
[data-theme="light"] .page-hero .hero-title {
  color: #ffffff;
}
.page-hero .hero-eyebrow {
  opacity: 1;
  animation: none;
}
.page-hero .hero-tagline {
  opacity: 1;
  animation: none;
  max-width: 600px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ── CTA BANNER ───────────────────────────────────────────── */
.cta-banner {
  padding: 8rem 0;
  background: var(--bg-section);
  position: relative;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/reservation-bg.jpg") center/cover no-repeat;
  opacity: 0.06;
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.cta-desc {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ── ADD TO CART BUTTON ───────────────────────────────────── */
.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.add-to-cart-btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
}
.add-to-cart-btn svg {
  transition: transform var(--transition);
}
.add-to-cart-btn:hover svg {
  transform: rotate(90deg);
}

/* ── CART NOTIFICATION TOAST ──────────────────────────────── */
.cart-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 5000;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--cream);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.cart-notification svg {
  color: var(--gold);
  flex-shrink: 0;
}
.cart-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── ORDER CONFIRMATION OVERLAY ───────────────────────────── */
.order-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 2rem;
  will-change: opacity;
}
.order-overlay.show {
  opacity: 1;
}
.order-overlay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.order-overlay.show .order-overlay-card {
  transform: translateY(0);
}
.order-check {
  margin-bottom: 1.5rem;
}
.order-overlay-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1rem;
}
.order-overlay-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── AUTH PAGE ─────────────────────────────────────────────── */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  background: var(--bg-deep);
}
.auth-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 20% 50%,
      rgba(201, 168, 76, 0.04) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 80% at 80% 50%,
      rgba(201, 168, 76, 0.03) 0%,
      transparent 60%
    );
  pointer-events: none;
}
.auth-card {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3rem 2.5rem;
}
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.06em;
}
.auth-logo span {
  color: var(--gold);
}
.auth-subtitle {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-top: 0.6rem;
}
.auth-tabs {
  display: flex;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.auth-tab {
  flex: 1;
  padding: 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.auth-tab.active {
  background: var(--gold);
  color: var(--bg-deep);
}
.auth-tab:not(.active):hover {
  background: rgba(201, 168, 76, 0.08);
  color: var(--cream);
}
.auth-field {
  margin-bottom: 1.2rem;
}
.auth-field label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  padding: 0 1rem;
  background: var(--bg-deep);
  transition: border-color var(--transition);
}
.auth-input-wrap:focus-within {
  border-color: var(--gold);
}
.auth-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.85rem 0;
}
.auth-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-soft);
  cursor: pointer;
}
.auth-remember input[type="checkbox"] {
  accent-color: var(--gold);
}
.auth-forgot {
  color: var(--gold);
  font-size: 0.72rem;
  transition: color var(--transition);
}
.auth-forgot:hover {
  color: var(--gold-light);
}
.auth-submit {
  width: 100%;
}
.auth-error {
  color: #e74c3c;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.8rem;
  min-height: 1.2rem;
}
.auth-divider {
  text-align: center;
  margin: 1.8rem 0;
  position: relative;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 1rem;
  font-size: 0.72rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-social-btns {
  display: flex;
  gap: 1rem;
}
.auth-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.auth-social-btn:hover {
  border-color: var(--gold);
  color: var(--cream);
  background: rgba(201, 168, 76, 0.06);
}

/* ── CART PAGE ─────────────────────────────────────────────── */
.cart-section {
  padding: 10rem 0 6rem;
  background: var(--bg-deep);
  min-height: 80vh;
}
.cart-header {
  margin-bottom: 3rem;
}
.cart-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.8rem;
  background: var(--bg-card);
  gap: 1rem;
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.2rem;
}
.cart-item-price {
  font-size: 0.82rem;
  color: var(--text-soft);
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
}
.cart-qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.cart-qty-btn:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}
.cart-qty {
  width: 36px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--cream);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 36px;
}
.cart-item-total {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  min-width: 70px;
  text-align: right;
}
.cart-remove-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.cart-remove-btn:hover {
  color: #e74c3c;
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
}

.cart-summary-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  position: sticky;
  top: 6rem;
}
.cart-summary-inner h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 0.5rem 0;
}
.cart-summary-row.total {
  font-size: 1.1rem;
  color: var(--cream);
  font-weight: 500;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}
.cart-summary-row.total span:last-child {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
}
.cart-empty-icon {
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

/* ── ABOUT PAGE — VALUES ──────────────────────────────────── */
.philosophy-section {
  padding: 8rem 0;
  background: var(--bg-deep);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
}
.value-card:hover {
  background: rgba(201, 168, 76, 0.04);
  border-color: var(--gold);
}
.value-icon {
  margin-bottom: 1.5rem;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.value-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ── ABOUT PAGE — TEAM ────────────────────────────────────── */
.team-section {
  padding: 8rem 0;
  background: var(--bg-section);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.team-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
}
.team-card:hover {
  border-color: var(--gold);
}
.team-img-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}
.team-card:hover .team-img-wrap {
  border-color: var(--gold);
}
.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.team-role {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.team-bio {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ── ABOUT PAGE — TIMELINE ────────────────────────────────── */
.timeline-section {
  padding: 8rem 0;
  background: var(--bg-deep);
}
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 3rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 2rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -3rem;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-deep);
  z-index: 1;
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ── CONTACT PAGE — ICON ──────────────────────────────────── */
.contact-icon {
  margin-bottom: 0.6rem;
}
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

/* ── RESPONSIVE — NEW COMPONENTS ──────────────────────────── */

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cart-content {
    grid-template-columns: 1fr;
  }
  .cart-summary-inner {
    position: static;
  }
}

@media (max-width: 900px) {
  .nav-auth-link,
  .nav-cart-btn {
    display: none;
  }
  .page-hero {
    min-height: 40vh;
  }
  .page-hero-content {
    padding: 5rem 1.2rem 3rem;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 2rem 1.5rem;
  }
  .auth-social-btns {
    flex-direction: column;
  }
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
  }
  .cart-item-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.8rem;
  }
  .contact-form-wrap {
    padding: 1.5rem;
  }
  .timeline {
    padding-left: 2rem;
  }
  .timeline-item {
    padding-left: 1.5rem;
  }
  .timeline-item::before {
    left: -2rem;
  }
  .order-overlay-card {
    padding: 2rem 1.5rem;
  }
  .cta-banner {
    padding: 5rem 0;
  }
}

@media (max-width: 480px) {
  .page-hero .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }
  .cart-section {
    padding: 7rem 0 4rem;
  }
  .cart-qty-controls {
    transform: scale(0.9);
  }
  .auth-section {
    padding: 6rem 1rem 3rem;
  }
  .cart-notification {
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
    left: 1rem;
    right: 1rem;
    transform: translateX(0) translateY(20px);
    white-space: normal;
  }
  .cart-notification.show {
    transform: translateX(0) translateY(0);
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-bg {
    transition: none;
  }
}

/* ── CURSOR & PRELOADER ────────────────── */

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #0e0a04;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
}
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.preloader-content {
  text-align: center;
}
.preloader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #f5edd6;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: preloaderReveal 1s forwards;
}
.preloader-logo span {
  color: var(--gold);
}
.preloader-line {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
  animation: preloaderLine 1.5s 0.3s ease-in-out forwards;
}

@keyframes preloaderReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes preloaderLine {
  to {
    width: 120px;
  }
}


/* Responsiveness Tweaks */
@media (max-width: 480px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .about-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nav-logo {
    font-size: 1.3rem;
  }
  .theme-swatches {
    flex-direction: row;
    bottom: 1.5rem;
    left: 1.5rem; /* Move to bottom left corner */
    right: auto;
    transform: none;
    gap: 0.8rem;
    background: rgba(14, 10, 4, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.8rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    z-index: 1001;
  }
  #back-top {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

/* ============================================================
   PAYPAL CHECKOUT — Velvet Theme Styles
   ============================================================ */

/* ── PayPal Button Wrapper ─────────────────────────────────── */
.paypal-checkout-wrap {
  margin-top: 1.8rem;
}

/* ── "Secure Checkout" Divider ─────────────────────────────── */
.paypal-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.paypal-divider::before,
.paypal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.paypal-divider span {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}

/* ── PayPal Button Container ───────────────────────────────── */
#paypal-button-container {
  width: 100%;
  min-height: 48px;
  /* PayPal injects its own iframe here — no extra styling needed */
}

/* ── Shared Status Message Base ────────────────────────────── */
.paypal-status {
  margin-top: 1.2rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  background: var(--bg-section);
  display: none; /* shown via JS */
  align-items: flex-start;
  gap: 1rem;
  animation: paypalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes paypalFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Success ────────────────────────────────────────────────── */
.paypal-status--success {
  border-color: rgba(110, 194, 130, 0.35);
  background: rgba(110, 194, 130, 0.05);
  /* override display:none — JS sets display:block for this one */
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.8rem;
}

/* ── Cancel ─────────────────────────────────────────────────── */
.paypal-status--cancel {
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.04);
}

/* ── Error ──────────────────────────────────────────────────── */
.paypal-status--error {
  border-color: rgba(231, 76, 60, 0.35);
  background: rgba(231, 76, 60, 0.05);
}

/* ── Status Icon ────────────────────────────────────────────── */
.paypal-status-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.paypal-status-icon--success {
  background: rgba(110, 194, 130, 0.15);
  color: #6ec282;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
}
.paypal-status-icon--cancel {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
}
.paypal-status-icon--error {
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
}

/* ── Status Text ────────────────────────────────────────────── */
.paypal-status-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.paypal-status-body {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.paypal-status-body strong {
  color: var(--cream);
  font-weight: 500;
}
.paypal-status-ref {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-top: 0.5rem;
}
.paypal-status-ref strong {
  color: var(--gold);
}
.paypal-home-btn {
  margin-top: 1.6rem;
  display: inline-block;
}

/* ── Responsive Adjustments ─────────────────────────────────── */
@media (max-width: 600px) {
  .paypal-status {
    padding: 1.2rem 1rem;
  }
  .paypal-status--success {
    padding: 1.6rem 1rem;
  }
  .paypal-status-title {
    font-size: 1.3rem;
  }
  .paypal-status-body {
    font-size: 0.85rem;
  }
  #paypal-button-container {
    min-height: 44px;
  }
}

/* Light-theme overrides */
[data-theme="light"] .paypal-status {
  background: var(--bg-card);
}
[data-theme="light"] .paypal-status--success {
  border-color: rgba(60, 160, 90, 0.4);
  background: rgba(60, 160, 90, 0.06);
}
[data-theme="light"] .paypal-status--cancel {
  border-color: rgba(180, 140, 20, 0.4);
  background: rgba(180, 140, 20, 0.06);
}
[data-theme="light"] .paypal-status--error {
  border-color: rgba(200, 60, 40, 0.4);
  background: rgba(200, 60, 40, 0.06);
}

/* ============================================================
   WHATSAPP CHECKOUT — Velvet Theme Styles
   ============================================================ */

.whatsapp-checkout-wrap {
  margin-top: 1.4rem;
}

.whatsapp-divider {
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: none;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition),
    opacity var(--transition);
}

.btn-whatsapp:hover:not(:disabled):not(.is-disabled) {
  background: var(--gold-light);
  color: #1a1208;
  transform: translateY(-2px);
}

.btn-whatsapp:disabled,
.btn-whatsapp.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn-whatsapp--login {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cream);
}

.btn-whatsapp--login:hover:not(.is-disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

[data-theme="light"] .btn-whatsapp--login {
  color: var(--text);
}

@media (max-width: 600px) {
  .btn-whatsapp {
    padding: 0.75rem 1rem;
    font-size: 0.68rem;
  }
}

.whatsapp-checkout-error {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #e74c3c;
  line-height: 1.5;
}

/* Payment method modal */
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wa-modal[hidden] {
  display: none !important;
}

.wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  will-change: opacity;
}

.wa-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  animation: waModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

@keyframes waModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wa-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}

.wa-modal-close:hover {
  color: var(--cream);
}

.wa-modal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.35rem;
  padding-right: 1.5rem;
}

.wa-modal-sub {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}

.wa-payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wa-pay-option {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-section);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition);
}

.wa-pay-option:hover {
  border-color: var(--gold);
  color: var(--gold);
}

body.wa-modal-open {
  overflow: hidden;
}

[data-theme="light"] .wa-modal-dialog {
  background: var(--bg-card);
}

[data-theme="light"] .wa-pay-option {
  color: var(--text);
}

@media (max-width: 600px) {
  .wa-modal-dialog {
    padding: 1.5rem 1.15rem 1.15rem;
  }
  .wa-modal-title {
    font-size: 1.25rem;
  }
  .wa-pay-option {
    padding: 0.8rem 0.9rem;
    font-size: 0.68rem;
  }
}

/* ============================================================
   WHATSAPP v1.1 — Customer Details Form Styles
   ============================================================ */

/* Scrollable dialog for tall form content */
.wa-modal-dialog--form {
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.wa-modal-dialog--form::-webkit-scrollbar {
  width: 4px;
}
.wa-modal-dialog--form::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 2px;
}

/* ── Form Layout ────────────────────────────────────────────── */
.wa-customer-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.25rem;
}

.wa-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wa-form-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.wa-form-label .wa-required {
  color: var(--gold);
  margin-left: 2px;
}

.wa-form-input,
.wa-form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.wa-form-input::placeholder,
.wa-form-textarea::placeholder {
  color: var(--text-soft);
  opacity: 0.6;
}

.wa-form-input:focus,
.wa-form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.wa-form-input.wa-field-error,
.wa-form-textarea.wa-field-error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.wa-form-textarea {
  resize: vertical;
  min-height: 72px;
}

/* ── Order Type Radio Buttons ───────────────────────────────── */
.wa-order-type-group {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.wa-radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--bg-section);
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
  -webkit-user-select: none;
  user-select: none;
}

.wa-radio-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.07);
}

.wa-radio-option input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  cursor: pointer;
}

.wa-radio-option input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-radio-option input[type="radio"]:checked {
  border-color: var(--gold);
}

.wa-radio-option input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

.wa-radio-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

.wa-radio-option:has(input:checked) .wa-radio-label {
  color: var(--gold);
}

/* ── Animated Delivery Fields ───────────────────────────────── */
.wa-delivery-fields {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  opacity: 1;
}

.wa-delivery-fields.wa-fields-hidden {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

.wa-delivery-fields-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

/* ── Delivery Charge Notice ─────────────────────────────────── */
.wa-delivery-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  margin-top: 0.25rem;
}

.wa-delivery-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--gold);
  opacity: 0.85;
}

.wa-delivery-notice p {
  font-size: 0.76rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

/* ── Proceed Button ─────────────────────────────────────────── */
.wa-form-proceed-btn {
  width: 100%;
  padding: 0.88rem 1.2rem;
  border: none;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  margin-top: 0.25rem;
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.wa-form-proceed-btn:hover {
  background: var(--gold-light);
  color: #1a1208;
  transform: translateY(-2px);
}

.wa-form-proceed-btn:active {
  transform: translateY(0);
}

/* ── Field Error Message ────────────────────────────────────── */
.wa-field-error-msg {
  font-size: 0.7rem;
  color: #e74c3c;
  margin-top: 0.1rem;
  line-height: 1.4;
}

/* ── Light Theme Overrides ──────────────────────────────────── */
[data-theme="light"] .wa-form-input,
[data-theme="light"] .wa-form-textarea {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: rgba(26, 18, 8, 0.2);
}

[data-theme="light"] .wa-form-input:focus,
[data-theme="light"] .wa-form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

[data-theme="light"] .wa-form-input::placeholder,
[data-theme="light"] .wa-form-textarea::placeholder {
  color: var(--text-mid);
  opacity: 0.55;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Markdown Formatting inside Chatbot */
.velaire-message p {
  margin: 0 0 10px 0;
}
.velaire-message p:last-child {
  margin-bottom: 0;
}
.velaire-message ul, .velaire-message ol {
  margin: 8px 0;
  padding-left: 20px;
}
.velaire-message li {
  margin-bottom: 4px;
}
.velaire-message strong {
  color: var(--gold);
}

[data-theme="light"] .wa-radio-option {
  background: var(--bg-card);
  border-color: rgba(26, 18, 8, 0.2);
}

[data-theme="light"] .wa-radio-option:has(input:checked) {
  background: rgba(201, 168, 76, 0.08);
}

[data-theme="light"] .wa-radio-label {
  color: var(--text-main);
}

[data-theme="light"] .wa-delivery-notice {
  background: rgba(158, 123, 37, 0.06);
  border-color: rgba(158, 123, 37, 0.25);
}

[data-theme="light"] .wa-modal-dialog--form::-webkit-scrollbar-track {
  background: var(--bg-section);
}

/* ── Mobile Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  .wa-order-type-group {
    gap: 0.5rem;
  }

  .wa-radio-option {
    padding: 0.65rem 0.75rem;
  }

  .wa-radio-label {
    font-size: 0.72rem;
  }

  .wa-form-input,
  .wa-form-textarea {
    font-size: 0.82rem;
    padding: 0.65rem 0.8rem;
  }

  .wa-form-proceed-btn {
    padding: 0.8rem 1rem;
    font-size: 0.68rem;
  }

  .wa-delivery-notice p {
    font-size: 0.72rem;
  }

  .wa-modal-dialog--form {
    max-height: 96vh;
  }
}

/* ============================================================
   CHATBOT STYLES (VÉLAIRE)
   ============================================================ */
#velaire-chatbot-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  font-family: var(--font-body);
}

#velaire-toggle-btn {
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer !important;
  transition: transform 0.3s ease, background 0.3s ease;
}

#velaire-toggle-btn:hover {
  transform: scale(1.05);
  background: var(--gold-light);
}

#velaire-chat-window {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(0);
}

#velaire-chat-window.hidden {
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
}

#velaire-chat-header {
  background: var(--bg-deep);
  color: var(--gold);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.velaire-header-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

#velaire-close-btn {
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer !important;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#velaire-close-btn:hover {
  opacity: 1;
}

#velaire-chat-messages {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg-deep);
}

#velaire-chat-messages::-webkit-scrollbar {
  width: 4px;
}
#velaire-chat-messages::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
#velaire-chat-messages::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 2px;
}

.velaire-message {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 85%;
  word-wrap: break-word;
}

.bot-message {
  background: var(--bg-deep);
  color: var(--cream);
  align-self: flex-start;
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
}

.user-message {
  background: var(--gold);
  color: var(--bg-deep);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

#velaire-chat-input-area {
  display: flex;
  padding: 12px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

#velaire-chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 20px;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

#velaire-chat-input::placeholder {
  color: var(--text-soft);
}

#velaire-chat-input:focus {
  border-color: var(--gold);
}

#velaire-send-btn {
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  transition: background 0.2s;
}

#velaire-send-btn:hover {
  background: var(--gold-light);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
