body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  background: #f3f3f3;
  color: #222;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 12px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.navbar-title {
  flex: 1;
  text-align: center;
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.navbar-menu {
  position: relative;
  cursor: pointer;
}
.navbar-menu i {
  font-size: 2rem;
}
.menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  margin-top: 10px;
  min-width: 140px;
  padding: 8px 0;
}
.navbar-menu:hover .menu-dropdown {
  display: block;
}
.menu-dropdown a {
  display: block;
  padding: 8px 18px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}
.menu-dropdown a:hover {
  background: #f0f0f0;
}

/* Card principal */
.local-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(50,50,93,0.10);
  margin: 28px auto 20px auto;
  max-width: 680px;
  padding: 20px;
  gap: 22px;
}

.local-card-img {
  flex: 0 0 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f6;
  border-radius: 14px;
  overflow: hidden;
  min-width: 110px;
  min-height: 110px;
  max-height: 110px;
}
.local-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.local-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  align-items: flex-end;
  text-align: left;
}
.local-card-rrss {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* fuerza alineado a la izquierda */
  width: 100%;
}
.local-card-rrss a {
  color: #6366f1;
  font-size: 1.2rem;
  margin-right: 12px;
  transition: color 0.2s;
}
.local-card-rrss a:hover {
  color: #333;
}
.local-card-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: right;
}
.local-card-address {
  font-size: 1.02rem;
  color: #666;
  text-align: right;
}
.local-card-desc {
  font-size: 1rem;
  color: #444;
  text-align: right;
}

/* Categorías */
.categories-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(60,60,90,0.08);
  padding: 14px 24px;
  margin: 0 0 22px 0;
  flex-wrap: nowrap;                 /* Siempre horizontal, no wrap */
  overflow-x: auto;                  /* Scroll horizontal */
  -webkit-overflow-scrolling: touch; /* Suavidad en iOS */
}
.categories-card::-webkit-scrollbar {
  height: 6px;
}
.categories-card::-webkit-scrollbar-thumb {
  background: #e0e7ff;
  border-radius: 4px;
}
.category-btn {
  flex: 0 0 auto;        /* No crecen ni se encogen */
  background: #eceef7;
  color: #2e3a59;
  border: none;
  padding: 8px 22px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.01rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0;
}
.category-btn:hover, .category-btn:focus {
  background: #c7d2fe;
  outline: none;
}

.menu-category-title {
  margin: 32px 0 16px 0;
  font-size: 1.15rem;
  font-weight: bold;
  color: #6366f1;
  letter-spacing: 0.5px;
}

/* Cards de menú */
.menu-items {
  max-width: 680px;
  margin: 0 auto 32px auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.menu-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(60,60,90,0.09);
  padding: 16px 14px;
  gap: 20px;
}
.menu-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.menu-card-name {
  margin: 0 0 4px 0;
  font-size: 1.11rem;
  font-weight: bold;
}
.menu-card-desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 8px;
}
.menu-card-price {
  font-size: 1.07rem;
  font-weight: 700;
  color: #6366f1;
}
.menu-card-img {
  flex: 0 0 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f6;
  border-radius: 11px;
  overflow: hidden;
  width: 85px;
  height: 85px;
}
.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.local-card,
.categories-card,
.menu-items {
  margin: 0 0 10px 0;
}

.main-container {
  max-width: 800px;
  margin: 10px auto;
  padding: 0 10px;
  padding-bottom: 90px;
}

.local-card, .categories-card, .menu-items {
  max-width: 98vw;
  margin: 0 auto 20px auto;
}

html {
  scroll-behavior: smooth;
}

.cart-products{
  width: 90%;
  max-width: 680px;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 8px;
  position: relative;
}
.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 7px;
  margin-top: 2px;
}
.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-item-title {
  font-size: 1.08rem;
  font-weight: bold;
}
.cart-item-details {
  color: #6366f1;
  font-size: 0.99rem;
  margin-bottom: 2px;
}
.cart-item-opts small {
  display: block;
  font-size: 0.94rem;
  color: #444;
}
.crossed {
  text-decoration: line-through;
  color: #e53e3e;
}
.cart-remove-btn {
  background: none;
  border: none;
  color: #e53e3e;
  font-size: 1.2rem;
  cursor: pointer;
  align-self: flex-start;
  margin-left: 6px;
  margin-top: 4px;
  transition: color 0.15s;
}
.cart-remove-btn:hover { color: #b91c1c; }

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1.11rem;
  border-top: 1px solid #e4e6ef;
  margin-top: 12px;
  padding-top: 12px;
  max-width: 680px;
}

.toast-add-cart {
  display: flex;
  align-items: center;
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(30,30,80,0.15);
  font-size: 1.08rem;
  font-weight: bold;
  z-index: 3000;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, bottom 0.35s;
}

.toast-add-cart.show {
  opacity: 1;
  pointer-events: auto;
  bottom: 110px; /* Sube un poco cuando aparece */
}

.toast-add-cart i {
  color: #10b981;
  font-size: 1.35em;
}

.toast-remove-cart {
  display: flex;
  align-items: center;
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: #e53e3e;
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(30,30,80,0.12);
  font-size: 1.08rem;
  font-weight: bold;
  z-index: 3000;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, bottom 0.35s;
}

.toast-remove-cart.show {
  opacity: 1;
  pointer-events: auto;
  bottom: 110px;
}

.toast-remove-cart i {
  color: #fff;
  font-size: 1.35em;
}


/* Responsive */
@media (max-width: 800px) {
  .local-card, .categories-card, .menu-items {
    max-width: 98vw;
    margin: 0 auto 20px auto;
  }
}
@media (max-width: 600px) {
  .navbar-title { font-size: 1rem; }
}
