@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #e74c3c;
  --primary-color-rgb: 231, 76, 60;
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-gradient: linear-gradient(135deg, var(--primary-color), #ff6b6b);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --border-radius: 16px;
  --shadow-glow: 0 0 30px rgba(var(--primary-color-rgb), 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Base utility for container */
.mt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.mt-grid {
  display: grid;
  gap: 2rem;
}
.mt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mt-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons */
.mt-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}
.mt-btn-primary {
  background: var(--accent-gradient);
  color: white;
}
.mt-btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.mt-btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}
.mt-btn-full {
  width: 100%;
}
.mt-btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}
.mt-btn-outline:hover {
  background: var(--glass-bg);
}

/* Nav */
.mt-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}
.mt-header.scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.mt-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.mt-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}
.mt-brand img {
  height: 40px;
  border-radius: 8px;
}
.mt-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.mt-nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}
.mt-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}
.mt-nav-links a:hover::after, .mt-nav-links a.mt-active::after {
  width: 100%;
}
.mt-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.mt-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
}
.mt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3), var(--bg-primary));
}
.mt-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: slideUp 1s ease-out;
}
.mt-hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mt-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Sections */
.mt-section {
  padding: 5rem 0;
}
.mt-section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

/* Categories */
.mt-category-tabs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.mt-category-tabs::-webkit-scrollbar {
  display: none;
}
.mt-tab-btn {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.mt-tab-btn:hover {
  background: var(--glass-bg);
}
.mt-tab-btn.mt-active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.mt-category-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}
.mt-category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-color-rgb), 0.3);
}
.mt-cat-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}
.mt-cat-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--glass-bg);
}

/* Products */
.mt-products-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.mt-product-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.mt-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: rgba(var(--primary-color-rgb), 0.3);
}
.mt-product-image {
  overflow: hidden;
}
.mt-product-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: var(--transition);
}
.mt-product-card:hover .mt-product-image img {
  transform: scale(1.05);
}
.mt-product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.mt-product-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.mt-product-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.mt-product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.mt-add-to-cart, .mt-order-now-btn {
  width: 100%;
}

/* Meal Popup */
.mt-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.mt-popup-overlay.active, .mt-popup-overlay:not(.mt-hidden) {
  display: flex;
  animation: fadeIn 0.3s ease;
}
.mt-popup-content {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease;
}
.mt-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}
.mt-popup-close:hover {
  background: var(--primary-color);
}
.mt-popup-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.mt-popup-body {
  padding: 1.5rem;
}
.mt-popup-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.mt-popup-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.mt-addons-section {
  margin-bottom: 1.5rem;
}
.mt-addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.mt-addon-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.mt-addon-checkbox {
  accent-color: var(--primary-color);
  width: 18px;
  height: 18px;
}
.mt-popup-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.mt-quantity-selector {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 0.25rem;
}
.mt-qty-btn {
  background: transparent;
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.2rem;
}
.mt-quantity-selector input {
  background: transparent;
  border: none;
  color: white;
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-family: inherit;
}
.mt-popup-total {
  font-weight: 700;
  font-size: 1.2rem;
}

/* Side Cart */
.mt-side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-card);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--glass-border);
}
.mt-side-panel.open, .mt-side-panel:not(.mt-hidden) {
  transform: translateX(0);
}
.mt-side-panel-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mt-panel-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
.mt-side-panel-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.mt-cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: 12px;
}
.mt-cart-item img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}
.mt-cart-item-info {
  flex-grow: 1;
}
.mt-cart-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.mt-cart-item-price {
  color: var(--primary-color);
  font-weight: 700;
}
.mt-cart-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}
.mt-cart-remove-btn:hover {
  color: #ff4757;
}
.mt-side-panel-footer {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
}
.mt-cart-summary {
  margin-bottom: 1rem;
}
.mt-cart-total-line {
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

/* Floating Cart */
.mt-floating-cart-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  z-index: 1500;
  animation: pulse 2s infinite;
  border: none;
}
.mt-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: white;
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toasts */
.mt-toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mt-toast {
  background: var(--bg-card);
  color: white;
  padding: 1rem 2rem;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mt-toast.success {
  border-left: 4px solid #2ed573;
}
.mt-toast.error {
  border-left: 4px solid #ff4757;
}

/* Footer */
.mt-footer {
  background: #050505;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}
.mt-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.mt-footer-info h3 {
  margin-bottom: 1rem;
}
.mt-footer-links h4 {
  margin-bottom: 1rem;
}
.mt-footer-links a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.mt-footer-links a:hover {
  color: white;
}
.mt-footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
}

/* Page Titles */
.mt-page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  margin-top: 4rem;
}
.mt-page-subtitle {
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.2rem;
}
.mt-text-center {
  text-align: center;
}

/* Branches */
.mt-branch-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.mt-branch-info {
  padding: 1.5rem;
}
.mt-branch-name {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.mt-branch-detail {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Utilities */
.mt-hidden {
  display: none !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(var(--primary-color-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0); }
}

@media (max-width: 768px) {
  .mt-nav-links { display: none; }
  .mt-mobile-menu-btn { display: block; }
  .mt-hero-title { font-size: 2.5rem; }
  .mt-section { padding: 3rem 0; }
  .mt-grid-3, .mt-grid-4, .mt-products-grid { grid-template-columns: 1fr; }
}
