:root {
  --primary-color: #E32929;
  /* Red typical of delivery apps like Anota Ai or iFood */
  --secondary-color: #B51F1F;
  --accent-color: #f7f7f7;
  --text-dark: #3e3e3e;
  --text-muted: #717171;
  --text-light: #ffffff;
  --bg-color: #F8F9FA;
  --card-bg: #FFFFFF;
  --border-color: #EAEAEA;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 80px;
  /* Space for the bottom bar */
}

/* Abstract Background Shapes - Removed for clean look */
.background-shapes {
  display: none;
}

.shape-3 {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #118AB2 0%, transparent 70%);
  top: 30%;
  left: 40%;
  animation-duration: 25s;
  opacity: 0.4;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 30px) scale(1.05);
  }
}

/* Header - Anota Ai Style */
.hero {
  background: var(--card-bg);
  position: relative;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-cover {
  height: 160px;
  background: url('https://i.imgur.com/BfU5MeB.jpeg') center/cover;
  position: relative;
}

.hero-content {
  padding: 0 1.5rem 1.5rem;
  position: relative;
}

.hero-header-top {
  margin-top: -40px;
  margin-bottom: 1rem;
}

.brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--card-bg);
  background: #FFF;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.store-status {
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.store-status.closed {
  background: #FFEBEE;
  color: #C62828;
}

.store-info-badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-badge {
  font-size: 0.85rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.info-badge i {
  color: var(--text-muted);
}

.welcome-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* Navigation */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-bg);
  margin-bottom: 1rem;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav ul {
  list-style: none;
  display: flex;
  padding: 0 1rem;
  gap: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}


/* Menu Container */
.menu-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 1rem 1.5rem;
}

@media (max-width: 768px) {
  .menu-container {
    padding: 0 1rem;
    background: transparent;
  }
}

.menu-section {
  margin-bottom: 2rem;
  scroll-margin-top: 6rem;
  padding-top: 1rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Product Card - List item format like Anota Ai */
.product-card {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  /* Para permitir os controles abaixo do texto no mobile */
  align-items: flex-start;
  text-align: left;
  opacity: 0;
  animation: fadeInUp 0.5s forwards;
  position: relative;
}

.product-card:last-child {
  border-bottom: none;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
  }
}

/* Container de texto para ficar à esquerda e empurrar logo pra direita */
.product-card>div:nth-child(2) {
  flex: 1;
  padding-right: 1rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-image,
.product-icon {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  order: 3;
  /* Força a imagem a ir para a direita */
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The following rules were removed as they are not part of the Anota Ai style */
/*
.product-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.8);
}

.product-card:hover::before {
  left: 150%;
}

.product-card:hover .product-icon {
  transform: rotate(15deg) scale(1.15);
  box-shadow: 0 15px 30px rgba(214, 40, 40, 0.2);
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.product-card:hover .product-image {
  transform: translateY(-10px) scale(1.08);
  box-shadow: 0 15px 35px rgba(214, 40, 40, 0.2);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}
*/

.product-badge {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(251, 111, 146, 0.3);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  margin-top: 4rem;
  color: #555;
  font-weight: 600;
}

/* Remove fully the old mobile block since Anota Ai design is naturally mobile-first */
@media (max-width: 768px) {

  /* Minimal overrides if needed since the layout above is already flat */
  .hero-cover {
    height: 120px;
  }

  .brand-logo {
    width: 65px;
    height: 65px;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .store-info-badges {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .brand-subtitle {
    flex-wrap: wrap;
  }
}

/* Carrinho e Ações do Item */
.product-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  order: 4;
  /* Fica abaixo no mobile/list */
}

.amount-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #fff;
}

.amount-btn {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.amount-disp {
  font-weight: 500;
  width: 25px;
  text-align: center;
  font-size: 0.95rem;
}

.type-select {
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-dark);
  font-size: 0.85rem;
  flex: 1;
}

.add-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}


/* Float Action Button do Carrinho */
.cart-fab {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(214, 40, 40, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulseCart 2s infinite;
}

@keyframes pulseCart {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(214, 40, 40, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(214, 40, 40, 0);
  }
}

.cart-fab:hover {
  transform: scale(1.1) translateY(-5px);
  animation: none;
  box-shadow: 0 15px 35px rgba(214, 40, 40, 0.5);
}

#cart-fab-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary-color);
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Barra Fixa de Carrinho (Bottom Bar) */
.cart-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  z-index: 999;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  animation: slideUpCart 0.3s ease-out;
}

@keyframes slideUpCart {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.cart-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

#cart-count {
  background: white;
  color: var(--primary-color);
  padding: 0.1rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Modal do Carrinho */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.cart-modal.active {
  display: flex;
}

.cart-content {
  background: var(--bg-color);
  width: 90%;
  max-width: 450px;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalPopup 0.3s ease-out forwards;
}

@keyframes modalPopup {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.cart-header h2 {
  color: var(--secondary-color);
  font-family: 'Pacifico', cursive;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

.cart-items {
  max-height: 50vh;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid #eee;
}

.cart-item-name {
  color: var(--text-dark);
}

.cart-item-name b {
  color: var(--secondary-color);
}

.remove-btn {
  background: #ff4d4d;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
}

.empty-cart-msg {
  text-align: center;
  color: #888;
  padding: 2rem 0;
}

/* Checkout Form Styles */
.checkout-options {
  margin-top: 1rem;
  border-top: 2px dashed #eee;
  padding-top: 1rem;
}

.checkout-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-group label {
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.radio-group {
  display: flex;
  gap: 1rem;
}

.radio-group label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.input-field {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  font-family: inherit;
  width: 100%;
}

.input-field:focus {
  border-color: var(--secondary-color);
}

.delivery-notice {
  font-size: 0.85rem;
  color: #555;
  background: #f9f9f9;
  padding: 0.5rem;
  border-radius: 6px;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--secondary-color);
}

.cart-total-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--accent-color);
  margin-bottom: 1rem;
}

#cart-total-price {
  color: var(--secondary-color);
  font-weight: 800;
  font-size: 1.4rem;
}

.whatsapp-btn {
  width: 100%;
  background: #25D366;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.whatsapp-btn:hover {
  background: #1ebc5a;
}

/* Modal de Perfil da Loja */
.profile-content {
  max-width: 500px;
  width: 100%;
  height: 90vh;
  margin-top: auto;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  animation: slideUpProfile 0.3s ease-out forwards;
}

@keyframes slideUpProfile {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.profile-section {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.profile-section:last-child {
  border-bottom: none;
}

.profile-section h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.profile-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.profile-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.profile-row h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.hours-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  width: 100%;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #eee;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}