

.menu-page {
  padding-top: 100px;
}

.menu-hero {
  text-align: center;
  padding: 50px 20px 20px;
}

.menu-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}


.menu-content {
  padding: 40px 20px;
}


.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}


.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 15px;
}

.category-card {
  background: linear-gradient(180deg, rgba(44, 18, 18, 0.95) 0%, rgba(201, 125, 10, 0.95) 100%);
  border: 2px solid;
  border-radius: 999px; /* pill look */
  padding: 10px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 600;
  color: var(--dark-color, #222);
}

.category-card h4 {
    color: white;
  margin: 0;
  font-size: 0.95rem;
  text-transform: capitalize;
}

/* Active state: use brand palette prominently */
.category-card.active {
  background: linear-gradient(90deg, var(--primary-color, #c72a2a) 0%, var(--accent-color, #ff8a00) 100%);
  color: white;
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px) scale(1.02);
}

/* Hover subtle effect */
.category-card:hover {
  transform: translateY(-2px);
}


.order-summary-sidebar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  max-width: calc(100% - 40px);
  z-index: 999;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.order-summary-sidebar.closed {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}

.cart-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 1001;
  cursor: pointer;
}

.cart-toggle .cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--warning-color, #ffb400);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Responsive: en pantallas pequeñas, el sidebar se comporta como drawer hacia arriba */
@media (max-width: 820px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .order-summary-sidebar {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    left: 12px;
    max-width: none;
  }

  .order-box {
    max-height: 60vh;
    overflow-y: auto;
  }

  /* Para pantallas pequeñas mostrar comentarios en columna */
  .comentarios-grid {
    flex-direction: column;
    gap: 16px;
    padding: 0 10px;
  }

  .comentario-form-box,
  .lista-comentarios {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.menu-item {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
}

.item-image-container {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
}

.menu-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item .popular-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--warning-color);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
}

.item-info {
  padding: 15px;
  text-align: center;
}

.item-info h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.item-info .item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.order-summary-sidebar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 300px;
  z-index: 999;
}

.order-box {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.order-box h4 {
  font-size: 1.3rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.order-items {
  max-height: 200px;
  overflow-y: auto;
}

.order-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.order-item .item-name {
  font-size: 1rem;
}

.order-item .item-price {
  color: var(--primary-color);
  font-weight: 700;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.2rem;
  padding-top: 15px;
  border-top: 2px solid #eee;
  margin-top: 15px;
}

.remove-item-btn {
  background: none;
  border: none;
  color: var(--warning-color);
  cursor: pointer;
  font-size: 1rem;
  margin-left: 10px;
  transition: color 0.2s ease;
}

.remove-item-btn:hover {
  color: var(--dark-color);
}

.comentarios-section {
    background-color: #f8f8f8; /* Un fondo ligeramente diferente para destacar */
    padding: 40px 20px;
    border-top: 1px solid #eee;
}

.comentarios-container {
  max-width: 1100px; /* Limita el ancho para mejor lectura (aumentado para columnas) */
    margin: 0 auto;
}

.comentarios-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Contenedor que alinea el formulario (izquierda) y la lista (derecha) */
.comentarios-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
}

.comentario-form-box {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 0; /* removido para que la altura la controle el grid */
  flex: 0 0 420px; /* ancho fijo preferido, pero flexible */
  max-width: 45%;
}

.lista-comentarios {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1 1 0; /* ocupa el espacio restante a la derecha */
  max-width: 55%;
}

/* --- Formulario de Comentarios --- */
.comentario-form-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.nuevo-comentario-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 16px;
    box-sizing: border-box;
}

.btn-enviar-comentario {
    background-color: #FF5733; /* Color de acento de tu marca */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-enviar-comentario:hover {
    background-color: #e04426;
}

/* --- Lista de Comentarios Existentes --- */
.lista-comentarios {
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* Limitar la vista a ~4 comentarios y permitir scroll interno */
  max-height: 420px; /* aproximado para 4 items (ajustable) */
  overflow-y: auto;
  padding-right: 8px; /* espacio para la barra de scroll */
}

.comentario-item {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #FF5733; /* Barra de acento para cada comentario */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.comentario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.comentario-autor {
    font-weight: bold;
    color: #333;
}

.comentario-fecha {
    color: #999;
}

.comentario-texto {
    margin: 0;
    line-height: 1.5;
    color: #555;
}

.usuario {
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
    margin-right: 10px;
}

.nombreUsuario {
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
    margin-right: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    height: 110px;
}




