:root {
  --primary: #f59e0b;         /* Golden Amber (Salgado douradinho) */
  --primary-dark: #d97706;
  --accent: #ea580c;          /* Warm Orange */
  --text-main: #451a03;        /* Deep Brown (Warm & Premium) */
  --text-muted: #78716c;
  --bg-body: #fff7ed;         /* Light Warm Cream */
  --bg-card: #ffffff;
  --bg-gray: #fdf2f8;
  --border-light: #f3f4f6;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(69, 26, 3, 0.1);
  --font-main: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* App Container */
.main-app {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  min-height: 100vh;
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* For Desktop - add spacing and rounded corners */
@media (min-width: 500px) {
  body {
    padding: 2rem 0;
  }
  .main-app {
    border-radius: 40px;
    min-height: 90vh;
  }
}

/* Header / Profile Section */
.profile-header {
  position: relative;
  text-align: center;
  padding-bottom: 1.5rem;
}

.profile-banner {
  width: 100%;
  height: 180px;
  background: var(--primary);
  position: relative;
}

.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-wrap {
  position: absolute;
  top: 160px; /* Same as banner height */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  overflow: hidden;
  border: 1px solid #eee;
}

.profile-info {
  margin-top: 45px; /* Space for the avatar */
  padding: 0 1.5rem;
}

.profile-info h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.profile-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.status-tag {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Custom Dropdown for Categories */
.category-selector-wrap {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.category-dropdown {
  flex-grow: 1;
  padding: 0.8rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Highlights Section (Horizontal Scroll) */
.highlights-section {
  padding: 0 0 2rem 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.highlights-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-right: 1.5rem;
  scrollbar-width: none;
}

.highlights-scroll::-webkit-scrollbar {
  display: none;
}

.highlight-card {
  min-width: 150px;
  max-width: 150px;
  background: white;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.highlight-img {
  width: 100%;
  height: 120px;
  background: #f9fafb;
  object-fit: cover;
}

.highlight-content {
  padding: 0.75rem;
}

.highlight-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.highlight-price {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.95rem;
}

/* Product List Section */
.menu-section {
  padding: 0 1.5rem 6rem;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.product-img-wrap {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f9fafb;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  flex-grow: 1;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.product-price {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.product-action {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.product-action:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Cart Drawer - Modernized */
.cart-drawer {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 30px 30px 0 0;
  z-index: 1002;
  transition: bottom 0.4s ease;
  padding: 2rem 1.5rem;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

body.cart-open .cart-drawer {
  bottom: 0;
}

/* Sticky Bottom Bar */
.sticky-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: var(--text-main);
  border-radius: 100px;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1001;
  display: none;
}

/* Product Options Modal */
.sauce-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.sauce-option.selected {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.sauce-option-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.7rem;
  color: transparent;
}

.sauce-option.selected .sauce-option-check {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Utilities */
.search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-gray);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Animations */
.animate-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Loading Screen - Minimalist */
.loading-screen {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-card);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Success Modal */
.success-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.success-modal {
  background: white;
  padding: 2.5rem;
  border-radius: 30px;
  text-align: center;
  max-width: 350px;
  width: 90%;
}


/* Product Options Modal & Overlays */
#product-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  justify-content: center;
  align-items: flex-end;
}

.product-options-card {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 30px 30px 0 0;
  padding: 2rem 1.5rem;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
}


.sauce-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.sauce-option.selected {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.sauce-option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: transparent;
}

.sauce-option.selected .sauce-option-check {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Premium Hover Effects */
.product-item {
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.product-item:active {
  transform: scale(0.98);
  background: #f9fafb;
}

.highlight-card {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.highlight-card:active {
  transform: scale(0.95);
}

/* Modal Polish */
.product-options-card {
  box-shadow: 0 -15px 50px rgba(0,0,0,0.15);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

#btn-confirm-product {
  transition: transform 0.2s ease, filter 0.2s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

#btn-confirm-product:active {
  transform: scale(0.95);
}

/* Sticky Bar Pill */
.sticky-bar {
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  background: rgba(17, 24, 39, 0.95);
}

/* Combo Options Buttons */
.combo-opt-btn {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: white;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
  text-align: center;
}

.combo-opt-btn.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Sub-headers and Badges */
.menu-sub-header {
  padding: 1.5rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
  border-top: 1px solid var(--border-light);
  margin-top: 1rem;
}

.qty-badge {
  background: var(--bg-gray);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Stock Styles */
.out-of-stock {
  opacity: 0.6;
  filter: grayscale(0.8);
  pointer-events: none;
}

.stock-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
