*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: #FDFBF7; color: #1A2B4C; }

:root {
  color-scheme: light;
  --bg-cream: #FDFBF7;
  --navy: #1A2B4C;
  --navy-light: #2A3C5C;
  --navy-dark: #0F1A30;
  --gold: #C5A059;
  --gold-light: #D4B26F;
  --gold-dark: #A6803F;
  --sage: #2C3E2B;
  --sage-light: #4A5E49;

  --white: #ffffff;
  --text-dark: #1A2B4C;
  --text-muted: #5A6E85;
  --border-light: rgba(197, 160, 89, 0.12);
  --border-focus: #C5A059;
  --shadow-sm: 0 2px 8px rgba(26, 43, 76, 0.04);
  --shadow-md: 0 10px 30px rgba(26, 43, 76, 0.06);
  --shadow-lg: 0 20px 40px rgba(26, 43, 76, 0.12);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;

  --sidebar-width: 280px;
}

body {
  color-scheme: light;
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-image:
    /* Padrão decorativo de folhas/trigo (watermark repetitivo) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M30 90 Q35 60 30 30 Q28 15 25 5' fill='none' stroke='%23C5A059' stroke-width='0.3' opacity='0.4'/%3E%3Cellipse cx='25' cy='65' rx='6' ry='2.2' fill='none' stroke='%23C5A059' stroke-width='0.2' opacity='0.4' transform='rotate(-25 25 65)'/%3E%3Cellipse cx='36' cy='55' rx='5.5' ry='2' fill='none' stroke='%23C5A059' stroke-width='0.2' opacity='0.4' transform='rotate(20 36 55)'/%3E%3Cellipse cx='27' cy='42' rx='5' ry='1.8' fill='none' stroke='%23C5A059' stroke-width='0.2' opacity='0.4' transform='rotate(-20 27 42)'/%3E%3Cellipse cx='34' cy='33' rx='4' ry='1.5' fill='none' stroke='%23C5A059' stroke-width='0.2' opacity='0.4' transform='rotate(25 34 33)'/%3E%3C/svg%3E"),
    /* Glow central sutil */
    radial-gradient(ellipse at 30% 20%, rgba(197, 160, 89, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(74, 62, 45, 0.04) 0%, transparent 50%),
    /* Manchas orgânicas — ingredientes saudáveis */
    radial-gradient(circle at 15% 40%, rgba(74, 62, 45, 0.03) 0%, transparent 3%),
    radial-gradient(circle at 75% 25%, rgba(197, 160, 89, 0.04) 0%, transparent 3.5%),
    radial-gradient(circle at 60% 70%, rgba(74, 62, 45, 0.025) 0%, transparent 2.5%),
    radial-gradient(circle at 90% 45%, rgba(197, 160, 89, 0.035) 0%, transparent 3%),
    radial-gradient(circle at 25% 85%, rgba(74, 62, 45, 0.02) 0%, transparent 2%),
    radial-gradient(circle at 45% 10%, rgba(197, 160, 89, 0.025) 0%, transparent 2.5%),
    radial-gradient(circle at 5% 60%, rgba(74, 62, 45, 0.03) 0%, transparent 2%),
    /* Textura papel artesanal */
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(197, 160, 89, 0.01) 3px, rgba(197, 160, 89, 0.01) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(197, 160, 89, 0.008) 3px, rgba(197, 160, 89, 0.008) 4px);
  color: var(--navy);
  line-height: 1.7;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-size: 240px 240px, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; image-rendering: auto; }

@keyframes curtainContentFade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
}

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

@keyframes slideDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@keyframes curtainHide {
  0% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

@keyframes sidebarSlideIn {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes cardReveal {
  0% { opacity: 0; transform: translateY(40px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatBtnReveal {
  0% { opacity: 0; transform: scale(0.5) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.curtain-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  overflow: hidden;
  animation: curtainHide 0.1s forwards;
  animation-delay: 1.6s;
}

.menu-curtain-top,
.menu-curtain-bottom {
  position: absolute;
  left: 0;
  width: 100vw;
  height: 50vh;
  background-color: #0A0F1D;
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(212, 178, 111, 0.04) 0%, transparent 60%);
}

.menu-curtain-top {
  top: 0;
  animation: slideUp 1s cubic-bezier(0.83, 0, 0.17, 1) forwards;
  animation-delay: 0.6s;
  border-bottom: 1px solid rgba(212, 178, 111, 0.06);
}

.menu-curtain-bottom {
  bottom: 0;
  animation: slideDown 1s cubic-bezier(0.83, 0, 0.17, 1) forwards;
  animation-delay: 0.6s;
  border-top: 1px solid rgba(212, 178, 111, 0.06);
}

.menu-curtain-bottom::after {
  content: '⋆';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.6;
  z-index: 2;
}

.curtain-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  text-align: center;
  width: 100%;
  max-width: 340px;
  animation: curtainContentFade 0.5s ease forwards;
  animation-delay: 0.4s;
  pointer-events: none;
}

.curtain-logo {
  max-width: 260px;
  height: auto;
  margin: 0 auto 32px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.curtain-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  width: 70%;
  margin: 0 auto 20px;
}

.curtain-subtitle {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
}



.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 30%, var(--navy) 70%, var(--navy-dark) 100%);
  color: var(--bg-cream);
  display: flex;
  flex-direction: column;
  padding: 24px 24px;
  z-index: 1000;
  border-right: 1px solid rgba(197, 160, 89, 0.08);
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.08);
  animation: sidebarSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.5s;
}

.sidebar-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
  padding: 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.1);
  position: relative;
}

.sidebar-top::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 1px;
  background: var(--gold);
}

.sidebar-logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.sidebar-logo img {
  width: 100%;
  max-width: 220px;
  height: auto;
  transition: transform 0.4s ease;
}

.sidebar-logo:hover img {
  transform: scale(1.03);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-label {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-left: 12px;
  margin-bottom: 16px;
  opacity: 0.7;
  font-weight: 400;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  color: rgba(253, 251, 247, 0.7);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  position: relative;
}

.menu-link:hover {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.08), transparent);
  color: var(--gold);
  border-color: rgba(197, 160, 89, 0.15);
  transform: translateX(6px);
}

.menu-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  min-width: 22px;
  opacity: 0.6;
}

.menu-link:hover .menu-num {
  opacity: 1;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(197, 160, 89, 0.08);
}

.btn-admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.5px;
}

.btn-admin-link:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
  transform: translateY(-2px);
}

.btn-darkmode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: rgba(197, 160, 89, 0.06);
  color: var(--gold);
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 10px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}
.btn-darkmode:hover {
  background: rgba(197, 160, 89, 0.12);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.btn-darkmode i {
  font-size: 1.1rem;
}

.btn-close-sidebar {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.15);
  color: var(--bg-cream);
  font-size: 1.1rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-close-sidebar:hover {
  background: rgba(197, 160, 89, 0.2);
  color: var(--gold);
}

.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  width: 100%;
  height: 70px;
  background: #1a202c;
  border-bottom: 1px solid rgba(197, 160, 89, 0.1);
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 998;
}

.mobile-menu-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.6rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

body.dark-mode .mobile-header {
  background: #1a202c;
}

body.dark-mode .mobile-menu-btn {
  color: #FFFFFF;
}

.mobile-menu-btn:hover {
  background: rgba(197, 160, 89, 0.1);
}

.mobile-logo img {
  height: 64px;
  width: auto;
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: 60px 56px;
  min-height: 100vh;
  position: relative;
}

.main-content::before {
  content: '';
  position: absolute;
  top: 40px;
  right: 40px;
  width: 140px;
  height: 140px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8 L53 38 L82 28 L58 48 L90 62 L56 56 L62 90 L50 68 L38 90 L44 56 L10 62 L42 48 L18 28 L47 38 Z' fill='none' stroke='%23C5A059' stroke-width='0.4'/%3E%3Ccircle cx='50' cy='50' r='6' fill='none' stroke='%23C5A059' stroke-width='0.3'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

.main-content::after {
  content: '';
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: 100px;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Cpath d='M30 75 Q25 50 30 25 Q35 15 30 5' fill='none' stroke='%23C5A059' stroke-width='0.35'/%3E%3Cellipse cx='22' cy='55' rx='5' ry='2' fill='none' stroke='%23C5A059' stroke-width='0.25' transform='rotate(-28 22 55)'/%3E%3Cellipse cx='38' cy='48' rx='4.5' ry='1.8' fill='none' stroke='%23C5A059' stroke-width='0.25' transform='rotate(22 38 48)'/%3E%3Cellipse cx='24' cy='35' rx='4' ry='1.5' fill='none' stroke='%23C5A059' stroke-width='0.25' transform='rotate(-18 24 35)'/%3E%3Cellipse cx='36' cy='28' rx='3.5' ry='1.3' fill='none' stroke='%23C5A059' stroke-width='0.25' transform='rotate(25 36 28)'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.chef-btn {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 900;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.75;
  transition: opacity 0.3s, transform 0.3s;
}
.chef-btn img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
}
.chef-btn:hover {
  opacity: 1;
  transform: scale(1.06);
}
.chef-label {
  font-family: var(--font-serif);
  font-size: 0.6rem;
  letter-spacing: 0.8px;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1;
}



.hero {
  text-align: center;
  padding: 40px 0 64px 0;
  max-width: 800px;
  margin: 0 auto;
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.6s;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
  font-weight: 400;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: 1px;
  line-height: 1.15;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px auto;
  line-height: 1.8;
  font-weight: 400;
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.ornament-line {
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-ornament i {
  color: var(--gold);
  font-size: 0.75rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 48px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.section:first-of-type {
  padding-top: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 36px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  letter-spacing: 0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 1px;
}

.section-hidden {
  display: none;
}

.section-appear {
  animation: sectionAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sectionAppear {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.menu-link.active {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.12), transparent);
  color: var(--gold);
  border-color: rgba(197, 160, 89, 0.2);
}

.menu-link.active .menu-num {
  opacity: 1;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.menu-card {
  background-color: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 43, 76, 0.04);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(26, 43, 76, 0.04);
  animation: cardReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
}

.menu-card.featured {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(197, 160, 89, 0.15);
}

.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.3);
}

.menu-card:nth-child(1) { animation-delay: 0.65s; }
.menu-card:nth-child(2) { animation-delay: 0.75s; }
.menu-card:nth-child(3) { animation-delay: 0.85s; }
.menu-card:nth-child(4) { animation-delay: 0.95s; }
.menu-card:nth-child(5) { animation-delay: 1.05s; }
.menu-card:nth-child(6) { animation-delay: 1.15s; }
.menu-card:nth-child(7) { animation-delay: 1.25s; }
.menu-card:nth-child(8) { animation-delay: 1.35s; }
.menu-card:nth-child(9) { animation-delay: 1.45s; }
.menu-card:nth-child(10) { animation-delay: 1.55s; }
.menu-card:nth-child(11) { animation-delay: 1.65s; }
.menu-card:nth-child(12) { animation-delay: 1.75s; }

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(26, 43, 76, 0.08);
  border-color: rgba(197, 160, 89, 0.12);
}

.dish-selected {
  transform: scale(1.04) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.4), 0 20px 50px rgba(26, 43, 76, 0.08) !important;
  position: relative;
  z-index: 2;
}

.dish-selected:hover {
  transform: scale(1.04) !important;
}

.dish-dimmed {
  opacity: 0.4;
  filter: blur(1px);
}

.dish-dimmed:hover {
  transform: none !important;
  box-shadow: none !important;
}

.menu-card-media {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--bg-cream), #f5f0e6);
}

.menu-card-media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, var(--white), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.menu-card:hover .menu-card-media::after {
  opacity: 1;
}

.menu-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-card:hover .menu-card-img {
  transform: scale(1.1);
}

.menu-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gold);
  background: linear-gradient(135deg, var(--bg-cream), #f5f0e6);
  opacity: 0.6;
}

.menu-card-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: 0.3px;
}

.menu-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  min-height: 48px;
}

.dish-info-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.dish-info-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sage-light);
  background: rgba(44, 62, 43, 0.06);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.dish-info-tag i {
  font-size: 0.65rem;
  color: var(--gold);
}

.menu-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  border-top: 1px solid rgba(26, 43, 76, 0.04);
  padding-top: 18px;
}

.menu-card-price {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.5px;
}

.btn-add-cart {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--bg-cream);
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.3px;
  font-family: var(--font-sans);
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

.btn-add-cart:active {
  transform: translateY(0);
}

.footer {
  text-align: center;
  padding: 48px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(26, 43, 76, 0.03);
  margin-top: 48px;
  letter-spacing: 0.3px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--bg-cream);
  width: 100%;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-edit {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
}

.btn-edit:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

.btn-delete {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: var(--white);
}

.btn-delete:hover {
  background: linear-gradient(135deg, #a93226, #c0392b);
}

.btn-cancel {
  background-color: var(--bg-cream);
  color: var(--navy);
  border: 1px solid rgba(26, 43, 76, 0.08);
}

.btn-cancel:hover {
  background-color: rgba(26, 43, 76, 0.03);
}

.cart-float-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E5DCCB;
  color: #121214;
  border: 1px solid rgba(197, 160, 89, 0.15);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(26, 43, 76, 0.08);
  z-index: 997;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatBtnReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.3s;
}

.cart-float-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 36px rgba(197, 160, 89, 0.35);
  border-color: var(--gold);
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  border: 2px solid var(--navy);
  min-width: 22px;
  text-align: center;
  line-height: 1.3;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 26, 48, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 100%;
  height: 100vh;
  background-color: var(--white);
  box-shadow: -10px 0 50px rgba(15, 26, 48, 0.12);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  padding: 28px 32px;
  border-bottom: 1px solid rgba(26, 43, 76, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--bg-cream), var(--white));
}

.cart-header h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy);
}

.btn-close-cart {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.btn-close-cart:hover {
  background-color: var(--bg-cream);
  color: var(--navy);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-empty-message {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(26, 43, 76, 0.06);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background-color: var(--bg-cream);
}

.cart-item-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bg-cream), #f5f0e6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.btn-qty {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(26, 43, 76, 0.08);
  background-color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
  color: var(--navy);
}

.btn-qty:hover {
  background-color: var(--bg-cream);
  border-color: var(--gold);
}

.qty-num {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
  color: var(--navy);
}

.cart-item-subtotal {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-dark);
  text-align: right;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: transform 0.2s;
}

.btn-remove-item:hover {
  transform: scale(1.15);
}

.checkout-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  margin: 16px 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(26, 43, 76, 0.08);
  border-radius: 10px;
  font-size: 0.92rem;
  background-color: var(--white);
  font-family: var(--font-sans);
  color: var(--navy);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.08);
}

.input-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1) !important;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.cart-summary {
  background: linear-gradient(135deg, var(--bg-cream), var(--white));
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(197, 160, 89, 0.08);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.total-row {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid rgba(197, 160, 89, 0.12);
  padding-top: 12px;
  margin-top: 6px;
}

.total-row span:last-child {
  color: var(--gold-dark);
}

.btn-checkout {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  width: 100%;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
}

.btn-checkout:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

.btn-checkout:active {
  transform: translateY(0);
}

.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.login-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.login-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  background: var(--white);
  border-radius: 24px;
  padding: 52px 48px 42px;
  width: 500px;
  max-width: 92vw;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  z-index: 2001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.login-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.login-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  font-size: 1.2rem;
  color: #888;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.login-modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--admin-red);
}

.login-modal-logo {
  margin-bottom: 24px;
}

.login-modal-logo img {
  width: 80%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
}

.login-modal h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--admin-red-dark);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.login-modal .form-group {
  text-align: left;
}

.login-modal .btn-primary {
  background: linear-gradient(135deg, var(--admin-red), var(--admin-red-light));
  margin-top: 8px;
}

.login-modal .btn-primary:hover {
  background: linear-gradient(135deg, var(--admin-accent), var(--admin-red));
}

.login-modal .login-error {
  text-align: left;
  margin-bottom: 8px;
}

:root {
  --admin-red: #8B0000;
  --admin-red-dark: #5C0000;
  --admin-red-light: #C0392B;
  --admin-accent: #E74C3C;
}

body.dark-mode {
  color-scheme: dark;
  --bg-cream: #0D1520;
  --navy: #E8E0D0;
  --navy-light: #D4CBB8;
  --navy-dark: #B8B0A0;
  --gold: #D4B26F;
  --gold-light: #E0C88A;
  --gold-dark: #C5A059;
  --sage: #7A9A7A;
  --sage-light: #8FB08F;
  --white: #162032;
  --text-dark: #E8E0D0;
  --text-muted: #8899AA;
  --border-light: rgba(212, 178, 111, 0.15);
  --border-focus: #D4B26F;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode {
  background-color: #0D1520;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M30 90 Q35 60 30 30 Q28 15 25 5' fill='none' stroke='%23D4B26F' stroke-width='0.3' opacity='0.25'/%3E%3Cellipse cx='25' cy='65' rx='6' ry='2.2' fill='none' stroke='%23D4B26F' stroke-width='0.2' opacity='0.25' transform='rotate(-25 25 65)'/%3E%3Cellipse cx='36' cy='55' rx='5.5' ry='2' fill='none' stroke='%23D4B26F' stroke-width='0.2' opacity='0.25' transform='rotate(20 36 55)'/%3E%3Cellipse cx='27' cy='42' rx='5' ry='1.8' fill='none' stroke='%23D4B26F' stroke-width='0.2' opacity='0.25' transform='rotate(-20 27 42)'/%3E%3Cellipse cx='34' cy='33' rx='4' ry='1.5' fill='none' stroke='%23D4B26F' stroke-width='0.2' opacity='0.25' transform='rotate(25 34 33)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, rgba(212, 178, 111, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(122, 154, 122, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 15% 40%, rgba(212, 178, 111, 0.035) 0%, transparent 3%),
    radial-gradient(circle at 75% 25%, rgba(212, 178, 111, 0.04) 0%, transparent 3.5%),
    radial-gradient(circle at 60% 70%, rgba(122, 154, 122, 0.03) 0%, transparent 2.5%),
    radial-gradient(circle at 90% 45%, rgba(212, 178, 111, 0.035) 0%, transparent 3%),
    radial-gradient(circle at 25% 85%, rgba(212, 178, 111, 0.025) 0%, transparent 2%),
    radial-gradient(circle at 45% 10%, rgba(212, 178, 111, 0.03) 0%, transparent 2.5%),
    radial-gradient(circle at 5% 60%, rgba(122, 154, 122, 0.035) 0%, transparent 2%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(212, 178, 111, 0.018) 3px, rgba(212, 178, 111, 0.018) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(212, 178, 111, 0.012) 3px, rgba(212, 178, 111, 0.012) 4px);
}

html:has(body.dark-mode) {
  background-color: #0D1520;
  color: #E8E0D0;
}

body.dark-mode .sidebar {
  background-image: linear-gradient(180deg, #0A0F18 0%, #0D1520 30%, #0D1520 70%, #0A0F18 100%);
  border-right-color: rgba(212, 178, 111, 0.08);
}

body.dark-mode .menu-card {
  background-color: var(--white);
  border-color: rgba(212, 178, 111, 0.08);
}
body.dark-mode .menu-card.featured {
  border-color: var(--gold);
  box-shadow: 0 4px 30px rgba(212, 178, 111, 0.2);
}
body.dark-mode .menu-card:hover {
  border-color: rgba(212, 178, 111, 0.2);
}
body.dark-mode .menu-card-media {
  background: linear-gradient(135deg, #1A2438, #162032);
}
body.dark-mode .menu-card-media::after {
  background: linear-gradient(to top, var(--white), transparent);
}
body.dark-mode .menu-card-placeholder {
  background: linear-gradient(135deg, #1A2438, #162032);
}
body.dark-mode .dish-selected {
  box-shadow: 0 0 30px rgba(212, 178, 111, 0.5), 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .dish-dimmed {
  opacity: 0.3;
}

body.dark-mode .cart-sidebar {
  background-color: var(--white);
}
body.dark-mode .cart-header {
  background: linear-gradient(135deg, #0D1520, #162032);
  border-bottom-color: rgba(212, 178, 111, 0.08);
}
body.dark-mode .cart-summary {
  background: linear-gradient(135deg, #0D1520, #162032);
  border-color: rgba(212, 178, 111, 0.1);
}
body.dark-mode .cart-item {
  border-bottom-color: rgba(212, 178, 111, 0.06);
}
body.dark-mode .btn-qty {
  background-color: #1A2438;
  border-color: rgba(212, 178, 111, 0.15);
  color: var(--navy);
}
body.dark-mode .btn-qty:hover {
  background-color: #243048;
  border-color: var(--gold);
}
body.dark-mode .btn-close-cart:hover {
  background-color: #1A2438;
}
body.dark-mode .cart-item-placeholder {
  background: linear-gradient(135deg, #1A2438, #162032);
}

body.dark-mode .login-modal {
  background: #162032;
}
body.dark-mode .login-modal-close {
  color: var(--text-muted);
}
body.dark-mode .login-modal-close:hover {
  background: rgba(255,255,255,0.06);
}
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background-color: #1A2438;
  border-color: rgba(212, 178, 111, 0.12);
  color: var(--navy);
}
body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 178, 111, 0.1);
}

body.dark-mode .input-error {
  border-color: #E74C3C !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

body.dark-mode .footer {
  color: var(--text-muted);
}

body.dark-mode .chef-label {
  color: var(--navy);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #faf5f5;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(192, 57, 43, 0.03) 0%, transparent 50%);
  padding: 24px;
}

.login-card {
  background: linear-gradient(135deg, #0A0F18, #1A2B4C);
  border-radius: 20px;
  padding: 52px 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(197, 160, 89, 0.15);
  text-align: center;
}

.login-card .logo-login {
  margin-bottom: 36px;
}

.login-card .logo-login img {
  height: 110px;
  margin: 0 auto;
}

.login-card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: #C5A059;
  margin-bottom: 28px;
  font-size: 1.7rem;
  letter-spacing: 0.5px;
}

.login-card .form-group label {
  color: #D4B26F;
}

.login-card .btn-primary {
  background: linear-gradient(135deg, var(--admin-red), var(--admin-red-light));
}

.login-card .btn-primary:hover {
  background: linear-gradient(135deg, var(--admin-accent), var(--admin-red));
}

.login-error {
  color: var(--admin-accent);
  font-size: 0.88rem;
  margin-top: 12px;
  display: none;
}

.login-error.show {
  display: block;
}

.dashboard-body {
  background-color: #faf5f5;
}

.dashboard-header {
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 32px;
}

.dashboard-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.dashboard-header .header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
}

.dashboard-header .header-logo img {
  height: 56px;
  width: auto;
}

.dashboard-header h1 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: #C5A059;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.dashboard-header h1:hover {
  color: #D4B26F;
  text-shadow: 0 0 8px rgba(197, 160, 89, 0.3);
}

.dashboard-header .user-area {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.btn-logout {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--white);
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.dashboard-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px;
}

.dashboard-content h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--admin-red-dark);
  margin-bottom: 28px;
  font-size: 1.8rem;
}

.dashboard-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.04);
  border: 1px solid rgba(139, 0, 0, 0.05);
}

.dashboard-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--admin-red-dark);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(139, 0, 0, 0.08);
}

.dashboard-card .btn-primary {
  background: linear-gradient(135deg, var(--admin-red), var(--admin-red-light));
}

.dashboard-card .btn-primary:hover {
  background: linear-gradient(135deg, var(--admin-accent), var(--admin-red));
}

.dish-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dish-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(139, 0, 0, 0.06);
  border-radius: 10px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.dish-item:hover {
  border-color: var(--admin-red-light);
  background-color: #fdf8f8;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.04);
}

.dish-item-info {
  flex: 1;
  min-width: 0;
}

.dish-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--admin-red-dark);
}

.dish-item-meta {
  font-size: 0.8rem;
  color: #7a7a7a;
  margin-top: 4px;
}

.dish-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 1002;
    animation: none;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .btn-close-sidebar {
    display: flex;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 26, 48, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-header {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding: 32px 24px;
  }

  .hero {
    padding: 16px 0 40px 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section {
    padding: 32px 0;
  }
}

@media (max-width: 576px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .cart-float-btn {
    bottom: 20px;
    right: 14px;
    width: 48px;
    height: 48px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 0.92rem;
  }

  .cart-sidebar {
    width: 100%;
  }

  .main-content {
    padding: 24px 16px;
  }

  .menu-card-media {
    height: 200px;
  }

  .menu-card-body {
    padding: 20px 20px 18px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .menu-card-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .btn-add-cart {
    justify-content: center;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item-subtotal {
    width: 100%;
    text-align: left;
    padding-top: 4px;
  }

  .dish-info-row {
    gap: 6px;
  }

  .dish-info-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
}

/* --- Tablet 768px --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .chef-btn {
    top: 12px;
    right: 12px;
  }
  .chef-btn img {
    width: 40px;
    height: 40px;
  }
  .chef-btn .chef-label {
    display: none;
  }
  .cart-float-btn {
    bottom: 20px;
    right: 16px;
    width: 56px;
    height: 56px;
  }
  .login-modal {
    padding: 36px 28px 32px;
    width: 92vw;
    border-radius: 18px;
  }
  .login-modal-logo img {
    max-width: 160px;
  }
  .menu-grid {
    gap: 20px;
  }
  .cart-sidebar {
    width: 100%;
  }
  .cart-body {
    padding: 20px;
  }
  .cart-header {
    padding: 20px;
  }
  .checkout-title {
    font-size: 1rem;
  }
  .main-content {
    padding: 20px 16px;
  }
  .section {
    padding: 28px 0;
  }
  .dish-list {
    gap: 12px;
  }
  .dish-item {
    flex-wrap: wrap;
    padding: 14px 16px;
  }
  .dish-item-actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid rgba(139, 0, 0, 0.06);
  }
  .dashboard-content {
    padding: 24px 16px;
  }
  .dashboard-card {
    padding: 24px 20px;
  }
  .dashboard-header {
    padding: 0 16px;
  }
  .dashboard-header .header-logo img {
    height: 44px;
  }
  .dashboard-header h1 {
    font-size: 1rem;
  }
  .main-content::before,
  .main-content::after {
    display: none;
  }

  .btn-darkmode i {
    font-size: 1.3rem;
  }
}

/* --- Dark Mode para Dashboard e Login Page --- */
body.dark-mode .dashboard-body {
  background-color: #0D1520;
}
body.dark-mode .dashboard-card {
  background-color: #162032;
  border-color: rgba(212, 178, 111, 0.08);
}
body.dark-mode .dashboard-card h3 {
  color: var(--gold);
}
body.dark-mode .dish-item {
  background-color: #162032;
  border-color: rgba(212, 178, 111, 0.06);
}
body.dark-mode .dish-item:hover {
  background-color: #1A2438;
  border-color: var(--gold);
}
body.dark-mode .dish-item-title {
  color: var(--navy);
}
body.dark-mode .dish-item-meta {
  color: var(--text-muted);
}
body.dark-mode .dashboard-content h2 {
  color: var(--gold);
}
body.dark-mode .login-page {
  background-color: #0D1520;
}
body.dark-mode .login-card {
  background: linear-gradient(135deg, #0A0F18, #0D1520);
  border-color: rgba(212, 178, 111, 0.15);
}

/* --- Admin Dashboard Layout --- */

.hidden { display: none !important; }

.admin-container {
  display: flex;
  min-height: calc(100vh - 80px);
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0A0F18 0%, #0D1520 40%, #0D1520 80%, #0A0F18 100%);
  border-right: 1px solid rgba(212, 178, 111, 0.08);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 4px auto 28px;
  overflow: hidden;
  flex-shrink: 0;
}

.admin-sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(253, 251, 247, 0.6);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.admin-nav-btn i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  color: var(--gold);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.admin-nav-btn:hover {
  background: rgba(212, 178, 111, 0.06);
  color: var(--bg-cream);
  border-color: rgba(212, 178, 111, 0.1);
  transform: translateX(4px);
}

.admin-nav-btn:hover i {
  opacity: 1;
}

.admin-nav-btn.active {
  background: linear-gradient(135deg, rgba(212, 178, 111, 0.12), transparent);
  color: var(--gold);
  border-color: rgba(212, 178, 111, 0.2);
}

.admin-nav-btn.active i {
  opacity: 1;
}

.admin-sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(212, 178, 111, 0.08);
}

.admin-back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(253, 251, 247, 0.5);
  font-size: 0.82rem;
  text-decoration: none;
  padding: 8px 4px;
  transition: color 0.3s;
}

.admin-back-link:hover {
  color: var(--gold);
}

.admin-content {
  flex: 1;
  padding: 40px 40px;
  background-color: #faf5f5;
  overflow-y: auto;
}

body.dark-mode .admin-content {
  background-color: #0D1520;
}

body.dark-mode .admin-sidebar-logo {}

.admin-section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--admin-red-dark);
  margin-bottom: 32px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.dark-mode .admin-section-title {
  color: var(--gold);
}

@media (max-width: 768px) {
  .admin-container {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(212, 178, 111, 0.08);
  }
  .admin-sidebar-logo { display: none; }
  .admin-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .admin-nav-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 12px;
    font-size: 0.8rem;
    justify-content: center;
  }
  .admin-nav-btn span { display: none; }
  .admin-sidebar-footer { display: none; }
  .admin-content {
    padding: 24px 16px;
  }
  .admin-section-title {
    font-size: 1.3rem;
    margin-bottom: 24px;
  }
}
