* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

body {
  background: #fff;
  color: #222;
}

/* NAV */
/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 45px;
}

.tagline {
  font-size: 12px;
  color: #666;
}

.nav-links a {
  margin: 0 12px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

.nav-links a:hover {
  color: #d32f2f;
}

.nav-right .cart {
  background: #d32f2f;
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}


.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 3000;
}

.whatsapp-float img {
  width: 34px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* HERO */
.hero {
  background: url('https://superycarne.com.mx/images/bistec%20res.jpeg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content {
  background: rgba(0,0,0,0.6);
  padding: 40px;
  border-radius: 10px;
}

.btn-primary {
  background: #e63946;
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
}

/* SECTIONS */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.gray {
  background: #f5f5f5;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  background: #fff;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.card button {
  margin-top: 10px;
  background: #e63946;
  color: #fff;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
}

/* CATEGORIES */
.categories {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.category {
  width: 140px;
  text-align: center;
}

.category img {
  width: 100%;
  border-radius: 10px;
}

/* FOOTER */
.footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 25px;
}

/*CART*/
.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 4000;
}

.cart-content {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: 15px;
  padding: 20px;

  /* 🔥 CLAVE PARA EL SCROLL */
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
#cartItems {
  flex: 1;                 /* Ocupa el espacio disponible */
  overflow-y: auto;        /* Scroll vertical */
  margin-bottom: 15px;
  padding-right: 6px;      /* Espacio para scrollbar */
}
#cartItems::-webkit-scrollbar {
  width: 6px;
}

#cartItems::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

#cartItems::-webkit-scrollbar-track {
  background: transparent;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}


.cart-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-footer button {
  background: #25D366;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  font-weight: bold;
}

.cart-modal {
  display: none;
}

.cart-modal.active {
  display: flex;
}



/* CART HEADER */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cart-header h3 {
  margin: 0;
}

.close-cart {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* CART ITEMS */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  gap: 10px;
}

.cart-item-name {
  flex: 1;
  font-weight: 500;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty button {
  background: #e63946;
  color: #fff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

.cart-remove {
  background: none !important;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.4;
  transition: 0.2s ease;
  padding: 0;
}

.cart-remove:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* COMBO DETAIL */
.combo-detail {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.combo-card {
  max-width: 420px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.combo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.combo-info {
  padding: 20px;
}

.combo-info h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.combo-description {
  color: #666;
  font-size: .95rem;
  margin-bottom: 16px;
}

.combo-products {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.combo-products li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.combo-products img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.combo-products strong {
  display: block;
  font-size: .95rem;
}

.combo-products span {
  font-size: .85rem;
  color: #777;
}

.combo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.combo-price {
  font-size: 1.1rem;
}

.btn-primary {
  background: #25d366;
  border: none;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: .95rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1ebe5d;
}


.search-container {
  margin: 20px 0;
  text-align: center;
}

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  border-radius: 30px;
  border: 1px solid #ddd;
  font-size: 16px;
  outline: none;
  transition: 0.3s ease;
}

.search-input:focus {
  border-color: #e60000;
  box-shadow: 0 0 5px rgba(230,0,0,0.3);
}




/* COMBO DETAIL — SAME STYLE AS INDEX */

.combo-detail {
  display: block;
}

.combo-card {
  max-width: 700px;
  margin: auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.combo-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.combo-info {
  padding: 24px;
}

.combo-info h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.combo-description {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

/* PRODUCTOS */
.combo-products li {
  padding: 12px 0;
}

.combo-products img {
  width: 52px;
  height: 52px;
}

.combo-products strong {
  font-size: 1rem;
}

.combo-products span {
  font-size: .95rem;
}

/* FOOTER */
.combo-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.combo-price {
  font-size: 1.3rem;
}

.combo-footer .btn-primary {
  width: auto;
  padding: 14px 24px;
  font-size: 1rem;
}

/* Contenedor para centrarlo con la tarjeta */
.back-container {
  max-width: 700px;
  margin: 0 auto 15px auto;
  width: 100%;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #666;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.btn-back span {
  margin-right: 8px;
  font-size: 1.2rem;
}

.btn-back:hover {
  color: #e63946; /* Color rojo como tu logo */
}



.backcategory-container {
  max-width: 700px;
  margin: 0 auto 15px auto;
  width: 100%;
}

.btn-category {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #666;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.btn-category span {
  margin-right: 8px;
  font-size: 1.2rem;
}

.btn-category:hover {
  color: #e63946; /* Color rojo como tu logo */
}


/*Vista de productos*/
/* Contenedor principal flexible */
.product-wrapper {
  display: flex;
  flex-direction: column; /* Por defecto en móvil uno abajo de otro */
  gap: 20px;
  padding: 10px;
}

/* Imágenes: Evita que se corten */
.product-images {
  width: 100%;
}

.main-image {
  width: 100%;
  aspect-ratio: 1 / 1; /* Mantiene la imagen cuadrada */
  object-fit: cover;
  border-radius: 15px;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto; /* Permite scroll si hay muchas miniaturas */
}

.thumbs img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #ddd;
}

/* Botones: Lado a lado y legibles */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-primary, .btn-whatsapp {
  flex: 1; /* Ambos botones miden lo mismo */
  padding: 15px;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
}







/*Mensaje Toast*/
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: #fff;
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.address-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 5000;
}

.address-modal.active {
  display: flex;
}

.address-content {
  background: #fff;
  width: 90%;
  max-width: 420px;
  border-radius: 15px;
  padding: 20px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.address-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.btn-primary.outline {
  background: #fff;
  color: #25d366;
  border: 2px solid #25d366;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  margin-top: 15px;
}
.selected-address {
  background: #f8f8f8;
  border: 1px dashed #25d366;
  border-radius: 12px;
  padding: 12px;
  margin-top: 15px;
  font-size: 0.95rem;
}

.selected-address h4 {
  margin-bottom: 6px;
  font-size: 1rem;
  color: #333;
}

.selected-address p {
  color: #555;
  word-break: break-word;
}

.summary-box {
  background: #f7f7f7;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.summary-box h4 {
  margin-bottom: 6px;
}

select {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
}

.link-btn {
  background: none;
  border: none;
  color: #25d366;
  cursor: pointer;
  margin-top: 6px;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.back-btn {
  background: #f1f1f1;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.back-btn:hover {
  background: #e0e0e0;
}


.payment-footer {
  margin-top: 20px;
}

.btn-confirm {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
}

.btn-confirm:hover {
  background: #1ebe5d;
}




.receipt-box {
  background: #f9fafb;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  border: 1px dashed #ddd;
}

.receipt-box h4 {
  margin-bottom: 12px;
  text-align: center;
}

.receipt-section {
  margin-bottom: 10px;
}

#receiptItems {
  font-size: 0.95rem;
  margin-top: 8px;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.95rem;
}

.receipt-line.total {
  font-size: 1.1rem;
  font-weight: bold;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  margin-top: 12px;
}

.receipt-extra {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #444;
}

.receipt-extra p {
  margin: 4px 0;
}


.payment-section {
  margin-bottom: 18px;
}

.payment-group {
  margin-bottom: 12px;
}

.payment-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.payment-group select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}

.summary-line.total {
  font-weight: bold;
  font-size: 16px;
  border-top: 1px solid #eee;
  padding-top: 6px;
}







/* Ajuste para pantallas grandes (PC) */
@media (min-width: 768px) {
  .product-wrapper {
    flex-direction: row; /* Imagen a la izquierda, info a la derecha */
    align-items: flex-start;
  }
  .product-images, .product-info {
    width: 50%;
  }
}




/* REEMPLAZA TU SECCIÓN FINAL CON ESTA */
@media (max-width: 768px) {
  .section {
    padding: 20px 10px; /* Menos espacio a los lados para aprovechar pantalla */
  }

  .combo-card {
    max-width: 100%;
    border-radius: 0; /* Quitar bordes redondeados en móvil se ve más moderno (full-width) */
    border: none;
  }

  .combo-image {
    height: 250px; /* Imagen más alta para que luzca la carne */
  }

  .combo-info h1 {
    font-size: 1.8rem; /* Título grande y fácil de leer */
  }

  .combo-products img {
    width: 65px; /* Miniaturas más grandes para que se distingan los productos */
    height: 65px;
  }

  .combo-products strong {
    font-size: 1.1rem; /* Nombre del producto más grande */
  }

  .combo-footer {
    flex-direction: column; 
    gap: 15px;
    align-items: flex-start; /* Alinear precio a la izquierda */
  }

  .combo-footer .btn-primary {
    width: 100%; /* El botón debe ocupar TODO el ancho para que sea fácil de tocar */
    padding: 18px; /* Botón más "gordo" para el pulgar */
    font-size: 1.2rem;
    text-align: center;
  }
  
  .back-container {
    padding-left: 10px; /* Alineado con el margen del celular */
  }
  
  .btn-back {
    background: #f8f8f8;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
  }
  
  .backcategory-container {
    padding-left: 10px; /* Alineado con el margen del celular */
  }
  
  .btn-category {
    background: #f8f8f8;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
  }
}

