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

:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #666;
  --primary: #e53b22;
  --primary-dark: #c62828;
  --accent: #ff6b35;
  --green: #2e7d32;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 70px;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.header {
  background: var(--card);
  padding: 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.header-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.header-info h1 {
  font-size: 18px;
  font-weight: 700;
}
.header-info p {
  font-size: 13px;
  color: var(--text-secondary);
}
.header-meta {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.header-meta strong { color: var(--text); }
.header-location {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  align-items: center;
}
.header-rating {
  color: var(--text);
  font-weight: 600;
}
.header-status {
  color: var(--green);
  font-weight: 700;
}

/* CATEGORY NAV */
.category-nav {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 95px;
  z-index: 99;
}
.category-nav::-webkit-scrollbar { display: none; }
.category {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.2s;
  white-space: nowrap;
}
.category:hover, .category.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* PROMO BANNER */
.promo-banner {
  background: linear-gradient(135deg, #ff6b35, #e53b22);
  color: #fff;
  padding: 14px 16px;
  font-size: 14px;
  text-align: center;
}

/* MENU CONTAINER */
.menu-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* MENU SECTIONS */
.menu-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.menu-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* MENU GRID */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* MENU ITEM */
.menu-item {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s;
}
.menu-item:hover { transform: translateY(-2px); }
.menu-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.menu-item-info {
  padding: 12px;
}
.menu-item-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.menu-item-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.menu-item-desc {
  color: var(--accent) !important;
  font-weight: 500;
}
.menu-item-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.old-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}
.current-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
}
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}
.add-to-cart {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.add-to-cart:hover { background: var(--primary-dark); }
.add-to-cart.added {
  background: var(--green);
}

/* COMBOS */
.combos-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.combo-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.2s;
}
.combo-card:hover { transform: translateY(-2px); }
.combo-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.combo-info {
  padding: 12px;
}
.combo-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.combo-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.combo-desc {
  color: var(--accent) !important;
  font-weight: 500;
}
.combo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}
.combo-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* PIZZAS */
.pizzas-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.pizza-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.pizza-card:hover { transform: translateY(-2px); }
.pizza-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.pizza-card h3 {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px 4px;
}
.pizza-card p {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  padding: 0 12px 12px;
}

/* BEBIDAS */
.bebidas-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.bebida {
  text-align: center;
}
.bebida img {
  height: 120px;
}
.bebida .menu-item-info h3 {
  font-size: 13px;
}
.bebida .current-price {
  font-size: 15px;
}

/* REVIEWS */
.reviews-section {
  padding: 24px 0;
}
.reviews-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.reviews-section h2 small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}
.reviews-total {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-content h3 {
  font-size: 14px;
  font-weight: 600;
}
.review-date {
  font-size: 12px;
  color: var(--text-secondary);
}
.review-product {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  margin: 4px 0;
}
.review-content > p {
  font-size: 14px;
  line-height: 1.5;
}
.review-photo {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  margin-top: 8px;
}

/* CART SIDEBAR */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: var(--card);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.cart-sidebar.active {
  right: 0;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-header h2 {
  font-size: 18px;
  font-weight: 700;
}
.cart-clear {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.cart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-info h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.cart-item-info span {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-actions button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-actions span {
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.cart-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
.cart-checkout {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-checkout:hover { background: var(--primary-dark); }

/* CART FLOAT */
.cart-float {
  position: fixed;
  bottom: 80px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(229,59,34,0.4);
  z-index: 150;
  cursor: pointer;
  transition: transform 0.2s;
}
.cart-float:hover { transform: scale(1.05); }
.cart-float-icon { font-size: 18px; }
.cart-float-count {
  background: #fff;
  color: var(--primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.cart-float.hidden { display: none; }

/* BOTTOM NAV */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 100;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 16px;
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item span { font-size: 20px; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .menu-grid { grid-template-columns: 1fr; }
  .combos-grid { grid-template-columns: 1fr; }
  .pizzas-grid { grid-template-columns: repeat(2, 1fr); }
  .bebidas-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-sidebar { width: 100%; max-width: 100%; }
}