:root {
  /* ================= THEME VARIABLES (LIGHT DEFAULT) ================= */

  /* Colors */
  --bg-body: #fdfbf7;
  --bg-gradient: linear-gradient(135deg, #fdfbf7 0%, #f7f2e4 100%);
  --bg-header-overlay: linear-gradient(to bottom, rgba(253, 251, 247, 0.8), var(--bg-body));

  --card-bg: #ffffff;
  --card-border: rgba(202, 162, 77, 0.2);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --card-hover-bg: #fffbf0;

  --text-main: #2d2d2d;
  --text-muted: #666666;

  /* Accents */
  --gold: #caa24d;
  --gold-glow: rgba(202, 162, 77, 0.3);
  --success: #25D366;

  /* Fonts */
  --font-main: 'Montserrat', sans-serif;
  --font-display: 'Playfair Display', serif;
}

/* DARK THEME OVERRIDES */
[data-theme="dark"] {
  --bg-body: #0f1016;
  --bg-gradient: linear-gradient(135deg, #141420 0%, #0b0b10 100%);
  --bg-header-overlay: linear-gradient(to bottom, rgba(15, 16, 22, 0.6), var(--bg-body));

  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --card-hover-bg: rgba(255, 255, 255, 0.08);

  --text-main: #f2f2f2;
  --text-muted: #b9b9c9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.5s ease, color 0.5s ease;
}

/* ================= HEADER ================= */
/* ================= HEADER ================= */
header {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  background:
    var(--bg-header-overlay),
    url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero {
  background: var(--card-bg);
  padding: 3.5rem;
  border-radius: 2rem;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  max-width: 900px;
  box-shadow: var(--card-shadow);
  animation: fadeIn Up 1s ease-out;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 1rem;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text-main);
}

/* ... */
.menu-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.menu-item:hover {
  background: var(--card-hover-bg);
  transform: translateY(-10px);
  border-color: var(--gold);
}

/* ... */
.contact-card {
  text-align: center;
  background: var(--card-bg);
  border-radius: 2rem;
  border: 1px solid var(--card-border);
  padding: 4rem 2rem;
  backdrop-filter: blur(10px);
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
}

/* ... */
.cart-content {
  background: var(--bg-body);
  /* ... other styles preserved via partial implementation in browser but hard here ... */
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 400px;
  border: 1px solid var(--gold);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: var(--text-main);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
  border: 1px solid var(--card-border);
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2px;
  width: fit-content;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 5px;
  margin-right: 5px;
}

.hero .highlight {
  color: var(--gold);
  background: none;
  -webkit-text-fill-color: var(--gold);
  font-style: italic;
}

.hero p {
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 3rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #e6c36a, var(--gold));
  color: #0b0b10;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px var(--gold-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--gold-glow);
}

/* ================= SECTIONS ================= */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
  color: var(--text-main);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ================= CATEGORIES ================= */
.category-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  margin: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
}

.category-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}


/* ================= SEARCH & FILTER ================= */
.sticky-search {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--bg-header-overlay);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
}

.search-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

#search-input {
  width: 90%;
  max-width: 600px;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--gold);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  outline: none;
  transition: all 0.3s;
}

#search-input:focus {
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.category-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  width: 100%;
  padding: 0 1rem;
  justify-content: flex-start;
  /* Changed for mobile scrolling */
}

/* Hide scrollbar for clean look */
.category-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* ================= MENU GRID ================= */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.menu-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-10px);
  border-color: rgba(202, 162, 77, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.item-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-item:hover .item-img {
  transform: scale(1.05);
}

.item-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.menu-item h3 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--text-main);
}

.menu-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.price-tag {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.3rem;
}

.item-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qty-control {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2px;
  width: fit-content;
}

.qty-control button {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
}

.qty-control button:hover {
  color: var(--gold);
}

.qty-control input {
  width: 40px;
  background: transparent;
  border: none;
  color: var(--text-main);
  text-align: center;
  font-weight: bold;
  -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Cart Specific Qty Control */
.cart-qty-control {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  margin-right: 5px;
}

.cart-qty-control button {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-weight: bold;
}

.cart-qty-control button:hover {
  color: var(--gold);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--card-bg);
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

@media (hover: hover) {
  .theme-toggle:hover {
    transform: rotate(30deg) scale(1.1);
    background: var(--gold);
    color: #fff;
  }
}

.theme-toggle:active {
  transform: scale(0.9);
  background: var(--gold);
  color: #fff;
}

/* ================= MOBILE COMPACT VIEW ================= */
@media (max-width: 768px) {

  /* Hero Adjustments */
  header {
    padding: 1rem;
    min-height: 60vh;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  /* Compact Menu Items */
  .menu-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .menu-item {
    flex-direction: row;
    height: 120px;
    /* Fixed compact height */
    align-items: stretch;
  }

  .menu-item .item-img {
    width: 120px;
    height: 100%;
    border-radius: 0;
  }

  .item-content {
    padding: 0.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    /* Prevent text overflow */
  }

  .item-content h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .item-content p {
    font-size: 0.8rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.2rem;
  }

  .item-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    gap: 5px;
  }

  .price-tag {
    font-size: 1.1rem;
  }

  /* Compact Qty Control */
  .qty-control {
    transform: scale(0.9);
    /* Slightly smaller */
  }

  .qty-control button {
    width: 25px;
    height: 25px;
  }

  .qty-control input {
    width: 30px;
  }

  .btn-add {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
border-radius: 2rem;
border: 1px solid var(--card-border);
padding: 4rem 2rem;
backdrop-filter: blur(10px);
max-width: 800px;
margin: 0 auto;
}

.contact-info p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.btn-whatsapp {
  margin-top: 2rem;
  padding: 1rem 3rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

/* ================= FLOAT BUTTON ================= */
.whatsapp-float {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  margin-top: 4rem;
}

footer span {
  color: var(--gold);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  header {
    min-height: 70vh;
    padding: 1rem;
  }

  .hero {
    padding: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .category-title {
    font-size: 1.8rem;
    margin-top: 4rem;
  }
}

/* ================= CART SYSTEM ================= */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 0.3s ease-in-out;
}

/* Floating Cart Button */
.cart-btn-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #caa24d;
  color: #000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(202, 162, 77, 0.4);
  cursor: pointer;
  z-index: 1000;
  border: none;
  transition: transform 0.3s;
}

.cart-btn-float:hover {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 0.8rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

/* Modal */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.cart-content {
  background: #1a1b26;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 400px;
  border: 1px solid #caa24d;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
}

.btn-remove-item {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #ff6b6b;
}

.cart-total {
  font-size: 1.2rem;
  text-align: right;
  margin-bottom: 1rem;
  color: #caa24d;
  font-weight: bold;
}

.btn-checkout {
  background: #25D366;
  color: white;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn-checkout:hover {
  background: #1ebe5d;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #caa24d;
  animation: fadeIn 0.3s;
  z-index: 3000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add Button in Menu */
.btn-add {
  background: rgba(202, 162, 77, 0.1);
  color: #caa24d;
  border: 1px solid #caa24d;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-add:hover {
  background: #caa24d;
  color: #000;
  transform: scale(1.05);
}