* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

:root {
  --primary-color: #ff6b35;
  --secondary-color: #f7931e;
  --dark-color: #1a1a1a;
  --light-color: #f5f5f5;
  --text-color: #333;
  --success-color: #27ae60;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --touch-target: 44px;
  --mobile-padding: 1rem;
  --tablet-padding: 1.5rem;
  --desktop-padding: 2rem;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f9f9f9;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.toast-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  font-weight: 600;
  font-size: 1rem;
  animation: slideDown 0.4s ease-out;
  max-width: 90%;
  text-align: center;
  word-wrap: break-word;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 0.75rem var(--mobile-padding);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-brand h1 {
  font-size: 1.25rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  display: block;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 0;
  align-items: center;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  z-index: 999;
  padding: 0.5rem 0;
  box-shadow: var(--box-shadow);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.nav-menu.active {
  display: flex;
}

.nav-menu li {
  width: 100%;
  text-align: center;
}

.nav-link {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  padding: 1rem var(--mobile-padding);
  border-radius: 0;
  transition: all 0.3s ease;
  width: 100%;
  font-weight: 500;
}

.nav-link:active {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-emoji {
  font-size: 8rem;
  display: block;
  margin-bottom: 1rem;
}

.hero-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-features {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.feature {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
}

.home-content {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
  flex: 1;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:active {
  transform: scale(0.98);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  color: #666;
  font-size: 0.9rem;
}

.menu-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  flex: 1;
  width: 100%;
}

.menu-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.category-filter {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  overflow-x: auto;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.category-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--primary-color);
  background-color: white;
  color: var(--primary-color);
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 44px;
  font-size: 0.9rem;
}

.category-btn:active {
  transform: scale(0.95);
}

.category-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.menu-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.menu-card:active {
  transform: scale(0.98);
}

.menu-image {
  font-size: 4rem;
  height: 150px;
  background: linear-gradient(135deg, var(--light-color) 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-card h3 {
  padding: 1rem 1rem 0.5rem;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.menu-card .description {
  padding: 0 1rem;
  color: #666;
  font-size: 0.85rem;
  flex-grow: 1;
}

.menu-footer {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--light-color);
}

.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.add-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: 44px;
  font-size: 0.9rem;
}

.add-btn:active {
  transform: scale(0.95);
}

.cart-section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  flex: 1;
  width: 100%;
}

.cart-section h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
}

.empty-cart {
  text-align: center;
  font-size: 1.1rem;
  color: #999;
  padding: 2rem;
}

.cart-items {
  background: white;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 1rem;
}

.cart-item:last-child {
  border-bottom: none;
}

.item-info {
  flex: 1;
  min-width: 200px;
}

.item-info h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.item-total {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.item-total span {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.quantity-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.qty-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-display {
  min-width: 30px;
  text-align: center;
  font-weight: bold;
}

.remove-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}

.remove-btn:active {
  transform: scale(0.95);
}

.cart-summary {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--box-shadow);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.summary-row span:last-child {
  font-weight: bold;
  color: var(--primary-color);
}

.total-row {
  border-top: 2px solid var(--primary-color);
  padding-top: 0.8rem;
  font-size: 1.3rem;
  margin-top: 1rem;
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: var(--touch-target);
}

.checkout-btn:active {
  transform: scale(0.98);
}

.checkout-form {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  display: none;
}

.checkout-form.show {
  display: block;
}

.checkout-form h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  min-height: 44px;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(255, 107, 53, 0.2);
}

.checkout-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-direction: column;
}

.place-order-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: var(--touch-target);
  font-size: 1rem;
}

.place-order-btn:active {
  transform: scale(0.98);
}

.cancel-btn {
  flex: 1;
  background-color: #95a5a6;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: var(--touch-target);
  font-size: 1rem;
}

.cancel-btn:active {
  transform: scale(0.98);
}

.maps-section {
  padding: var(--mobile-padding);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.maps-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
}

.maps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.maps-info {
  order: 2;
  width: 100%;
  box-sizing: border-box;
}

.maps-embed {
  order: 1;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.address-card {
  background: white;
  padding: 1.25rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 100%;
  box-sizing: border-box;
}

.address-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  word-wrap: break-word;
}

.address {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  word-break: break-word;
}

.hours,
.phone {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  word-break: break-word;
}

.maps-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.directions-btn,
.maps-btn {
  width: 100%;
  min-height: var(--touch-target);
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.directions-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.maps-btn {
  background-color: #4CAF50;
  color: white;
}

.directions-btn:active,
.maps-btn:active {
  transform: scale(0.98);
}

.directions-btn:hover,
.maps-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-placeholder {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 280px;
  width: 100%;
  box-sizing: border-box;
}

.map-icon {
  font-size: 3.5rem;
}

.map-placeholder p {
  font-size: 0.95rem;
  margin: 0;
  word-wrap: break-word;
  max-width: 100%;
}

.small-text {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.delivery-info {
  background: #f0f0f0;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  width: 100%;
  box-sizing: border-box;
}

.delivery-info h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  text-align: center;
  color: var(--primary-color);
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

.delivery-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.delivery-card:active {
  transform: scale(0.98);
}

.delivery-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.delivery-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.delivery-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.whatsapp-contact {
  padding: var(--mobile-padding);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.whatsapp-card {
  background: linear-gradient(135deg, #25d366 0%, #20ba5f 100%);
  color: white;
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.whatsapp-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.whatsapp-card p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.whatsapp-number {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.whatsapp-btn {
  background-color: white;
  color: #25d366;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: var(--touch-target);
}

.whatsapp-btn:active {
  transform: scale(0.95);
}

.footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #2c2c2c 100%);
  color: white;
  padding: 3rem 1rem 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-content h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-content ul {
  list-style: none;
}

.footer-content li {
  margin-bottom: 0.5rem;
}

.footer-content a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-content a:active {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #ccc;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-bottom a:active {
  opacity: 0.7;
}

@media (min-width: 768px) {
  :root {
    --mobile-padding: 1.5rem;
  }

  .menu-toggle {
    display: none;
  }

  .navbar {
    padding: 1rem var(--tablet-padding);
  }

  .nav-menu {
    display: flex !important;
    position: static;
    background: none;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    top: auto;
    max-height: none;
  }

  .nav-menu li {
    width: auto;
    text-align: center;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    width: auto;
    font-size: 0.95rem;
  }

  .hero-emoji {
    font-size: 10rem;
  }

  .hero-header h1 {
    font-size: 2.5rem;
  }

  .menu-section h2,
  .maps-section h2,
  .cart-section h2 {
    font-size: 2rem;
  }

  .maps-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .maps-embed {
    order: 0;
  }

  .maps-info {
    order: 0;
  }

  .delivery-options {
    grid-template-columns: repeat(3, 1fr);
  }

  .checkout-actions {
    flex-direction: row;
  }

  .place-order-btn,
  .cancel-btn {
    width: auto;
    flex: 1;
  }
}

@media (min-width: 1200px) {
  :root {
    --mobile-padding: 2rem;
  }

  .navbar {
    padding: 1.5rem var(--desktop-padding);
  }

  .nav-brand h1 {
    font-size: 2rem;
  }

  .hero-header {
    min-height: 400px;
    padding: 3rem;
  }

  .hero-header h1 {
    font-size: 3rem;
  }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .features {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-features {
    gap: 2rem;
  }

  .feature {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

input,
textarea {
  font-family: inherit;
}

@media (max-width: 360px) {
  :root {
    --mobile-padding: 0.75rem;
  }

  .hero-emoji {
    font-size: 5rem;
  }

  .hero-header h1 {
    font-size: 1.5rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
