body { background-color: #f8f9fa; }
.header img { max-width: 150px; height: auto; }
.product-card { cursor: pointer; transition: transform 0.2s; }
.product-card:hover { transform: translateY(-5px); }
.product-card img { height: 120px; object-fit: cover; }
.nav-pills .nav-link { font-weight: bold; text-align: center; }
.cart-section, .instructions-section, .form-section { background-color: white; border-radius: 8px; padding: 1rem; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px dashed #ddd; }
.total-box { font-size: 1.5rem; font-weight: bold; }
@media (max-width: 768px) {
	.product-card img { height: 80px; }
	.nav-pills .nav-link { font-size: 0.9rem; padding: 0.5rem; }
}
.branch-card {
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.branch-card:hover {
	border-color: #007bff;
	box-shadow: 0 0 10px rgba(0, 123, 255, 0.25);
}
.branch-card.selected {
	border-color: #28a745;
	box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}
.branch-card h5 {
	color: #d9534f;
	font-weight: bold;
}

.header {
	background-color: #000000;
	padding: 10px;
	overflow: hidden;
}

.header img {
	max-width: 180px;
	height: auto;
	float: left;
	margin-right: 20px;
	padding: 10px;
	border-radius: 5px;
	background-color: #fff;
	box-shadow: 
		0px 5px 15px rgba(0, 0, 0, 0.3),
		0px 10px 20px rgba(0, 0, 0, 0.2),
		0px 0px 0px 3px rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
	transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
	background-color: #000000;
}

.header img:hover {
	transform: translateY(-5px);
	box-shadow: 
		0px 8px 20px rgba(0, 0, 0, 0.4),
		0px 15px 30px rgba(0, 0, 0, 0.3),
		0px 0px 0px 5px rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
	.header img {
		max-width: 120px;
		box-shadow: 
			0px 3px 10px rgba(0, 0, 0, 0.2),
			0px 5px 10px rgba(0, 0, 0, 0.1);
		transform: translateY(-1px);
		float: none;
		margin: 0 auto;
	}
}

@media (max-width: 480px) {
	.header img {
		max-width: 100px;
		padding: 5px;
		box-shadow: none;
		transform: none;
	}
}

.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

#initial-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1050;
}

#initial-modal-content {
	background: white;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.5);
	max-width: 900px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}

.branch-card {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease-in, transform 0.5s ease-in;
}
.branch-card.fade-in {
	opacity: 1;
	transform: translateY(0);
}

#main-content {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
#main-content.show-content {
	opacity: 1;
	transform: translateY(0);
}

/* Nuevos estilos para las tarjetas de opciones */
.option-card-container {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}
.option-card {
	cursor: pointer;
	width: 150px;
	text-align: center;
	border: 2px solid transparent;
	border-radius: 8px;
	transition: all 0.2s ease-in-out;
}
.option-card img {
	width: 100%;
	height: 100px;
	object-fit: cover;
	border-radius: 6px;
}
.option-card h6 {
	margin-top: 0.5rem;
	font-size: 0.9rem;
}
.option-card:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.option-card.selected {
	border-color: #28a745;
	box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

#pills-tab .nav-item {
	flex-grow: 1;
	margin: 0;
	border-right: 1px solid rgba(0,0,0,0.1);
}

#pills-tab .nav-item:last-child {
	border-right: none;
}

/* ESTILOS DEL MODAL DE HORA MEJORADO */
.modal-body.time-modal-body {
	background-color: #f0f4f8;
	border-radius: 8px;
	padding: 2rem;
}
.time-picker-container {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
}
.time-picker-container .form-select {
	font-size: 1.25rem;
	padding: 0.75rem;
	border-radius: 8px;
	border-color: #ced4da;
	transition: all 0.2s ease-in-out;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.time-picker-container .form-select:focus {
	border-color: #86b7fe;
	box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}
.time-picker-container .time-separator {
	font-size: 1.5rem;
	font-weight: bold;
	color: #495057;
}
.time-icon {
	color: #d9534f;
	font-size: 2rem;
	margin-bottom: 1rem;
}

/* Nuevos estilos para el modal de confirmación */
.swal2-container .swal2-modal {
	padding: 0;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* ESTILOS AGREGADOS: VENTANA DE CONFIRMACIÓN MÁS ANCHA Y BONITA */
.swal2-modal-wide {
	max-width: 100% !important; /* Modificado */
	width: 100% !important; /* Modificado */
	margin: 0 !important; /* Agregado */
}
.confirmation-container {
	background: linear-gradient(135deg, #f0f4f8, #e9ecef);
	padding: 25px;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	color: #343a40;
	position: relative;
}
.confirmation-header {
	text-align: center;
	margin-bottom: 20px;
	border-bottom: 3px solid #d9534f;
	padding-bottom: 15px;
}
.confirmation-header h4 {
	font-weight: bold;
	color: #d9534f;
}
.confirmation-section {
	background-color: #ffffff;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.confirmation-section h5 {
	font-weight: bold;
	color: #495057;
	margin-bottom: 15px;
	border-bottom: 2px solid #e9ecef;
	padding-bottom: 5px;
}
.item-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.item-list li {
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 5px;
	padding: 10px 15px;
	margin-bottom: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.item-total {
	background-color: #d9534f;
	color: white;
	padding: 15px;
	border-radius: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: bold;
	font-size: 1.25rem;
	box-shadow: 0 4px 10px rgba(217,83,79,0.25);
}
.customer-details {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
}
@media (min-width: 576px) {
	.customer-details {
		grid-template-columns: 1fr 1fr;
	}
}
.detail-item {
	background-color: #f8f9fa;
	padding: 10px 15px;
	border-left: 4px solid #007bff;
	border-radius: 5px;
	box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
.detail-item strong {
	color: #495057;
}
.check-message {
	text-align: center;
	font-size: 1.1rem;
	font-weight: bold;
	color: #28a745;
	margin-top: 20px;
}

/* ANIMACIÓN AGREGADA AL CARRITO */
@keyframes bump {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}
.cart-bump {
	animation: bump 0.4s ease-in-out;
}

/* Estilos para el efecto de la palomita -------------------*/
.checkmark-animation {
	display: inline-block;
	width: 0;
	height: 0;
	border-radius: 50%;
	background-color: transparent;
	transition: all 0.5s ease-in-out;
	transform: scale(0);
	opacity: 0;
	font-size: 0;
	margin-left: 5px;
}

.checkmark-animation.active {
	width: 25px;
	height: 25px;
	background-color: #28a745; 
	transform: scale(1);
	opacity: 1;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	position: relative;
	top: -2px; 
}


.checkmark-animation.active:before {
	content: '\2713'; 
	font-size: 1em;
	color: white;
}

/* Nuevo CSS para la animación de confirmación del carrito */
.cart-confirmation-message {
	position: absolute; /* Ahora se posiciona dentro de .cart-section */
	top: 0;
	left: 0;
	right: 0;
	height: 100%;
	background-color: rgba(0, 128, 0, 0.9); /* Fondo verde semitransparente */
	color: white;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	opacity: 0;
	pointer-events: none; /* Para que no bloquee el clic en el carrito */
	transition: opacity 0.5s ease-in-out;
	border-radius: 8px; /* Para que coincida con el borde del carrito */
	z-index: 10; /* Asegura que esté por encima de otros elementos */
}

.cart-confirmation-message.show {
	opacity: 1;
}

.cart-confirmation-message .checkmark {
	font-size: 2em; /* Tamaño más grande para la palomita */
	animation: bounceIn 0.5s ease-out; /* Animación de rebote para la palomita */
}

/* Keyframes para la animación de rebote */
@keyframes bounceIn {
	0% {
		transform: scale(0);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

.cart-section 
{
	position: relative; /* ¡Añade esta línea! */
	/* ... (resto de tus estilos para .cart-section) ... */
}

.btn-header {
	 display: flex;
	align-items: right;
	margin-left: auto; /* Mueve los botones a la derecha */
}

.navbar {
	z-index: 1050; /* Un valor alto para asegurar que se superponga */
}

/* Opcional: Para el contenido colapsable */
.navbar-collapse.show {
	position: absolute;
	top: 100%; /* Para que se posicione justo debajo de la barra de navegación */
	left: 0;
	width: 100%;
}

#pills-promociones-tab {
    color: white !important;
	transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out !important;
    transform: scale(1); /* Tamaño original */
	display: inline-block; /* Importante para transformaciones */
}

/* Evitar que cambie de color al pasar el mouse (hover) o al perder el foco */
#pills-promociones-tab:hover {
    color: #E8E6E6 !important;
	/*transform: scale(1,1) !important;  Vuelve al tamaño normal al hacer clic */
	transform: scale(1.1) !important; /* Vuelve al tamaño normal al hacer clic */
}

#pills-promociones-tab:active {
    transform: scale(0.95) !important; /* Se hunde un poquito al picarle, da mejor sensación */
}

/* 1. OCULTO POR DEFECTO */
#cart-floating-button {
    display: none !important; /* Totalmente fuera del DOM al inicio */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e63946;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(100px); /* Preparado abajo para subir */
}

/* 2. ACTIVADO (Al elegir sucursal) */
#cart-floating-button.active-session {
    display: flex !important; /* Ya se puede renderizar, pero sigue opacidad 0 */
}

/* 3. VISIBLE (Cuando hay productos) */
#cart-floating-button.visible 
{
	display: flex !important; /* Esto asegura que se muestre solo cuando tiene la clase */
    opacity: 1;
    transform: translateY(0); /* Sube a su posición */
}

.cart-icon-wrapper {
    position: relative;
    font-size: 1.2rem;
}

#cart-count-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0.7rem;
}

/* Efecto de la palomita */
.check-overlay {
    position: absolute;
    top: 0;
    left: 0;
    color: #2ecc71;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
}

.cart-bump .check-overlay {
    opacity: 1;
    transform: scale(1.4);
}

.cart-bump {
    transform: scale(1.1);
}

@media (min-width: 769px) {
    #cart-floating-button { display: none !important; }
}

/* Cuando el modal de confirmación está abierto, ocultamos el carrito flotante */
body.modal-open #cart-floating-button {
    display: none !important;
}

/* Por si acaso tu botón tiene otro ID o clase, asegúrate de que coincida */

body.modal-open #cart-floating-button, 
body.modal-open .cart-floating-button,
body.modal-open [id*="cart-floating"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0) !important;
}

.cart-hidden-forced {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Contenedor principal */
.product-img-container {
    width: 100%;
    position: relative;
    padding-top: 100%; /* Crea un cuadrado perfecto 1:1 */
    background-color: #fff;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

/* La imagen ahora se ajusta de forma inteligente */
.img-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Llenará el cuadrado */
    transition: transform 0.3s ease;
}

/* Si quieres que se vea COMPLETA sin cortar nada pero GRANDE, 
   cambia 'cover' por 'contain' arriba, pero añade esto: */
.img-menu {
    object-fit: contain; 
    padding: 5px; /* Un pequeño respiro */
    transform: scale(1.1); /* La agrandamos un poco para eliminar bordes vacíos */
}

/* Estilos de texto para que se vea como Menú Digital */
.product-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2rem;
}

.product-price {
    color: #e63946; /* Un rojo llamativo para el precio */
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

/* Ajuste para que en celular se vean 2 por fila y no se vean minúsculas */
@media (max-width: 576px) {
    .product-card {
        margin-bottom: 10px;
    }
}

/* Contenedor de la imagen */
.img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* Esto crea un cuadrado perfecto siempre */
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* REDONDEZ DE LAS ESQUINAS SUPERIORES */
    border-radius: 15px 15px 0 0; 
    padding: 8px; /* Espacio para que la imagen no pegue al borde */
}

/* La imagen mágica */
.main-img {
    width: 100% !important;
    height: 100% !important;
    /* object-fit: contain;  <-- Si quieres que NUNCA se corte nada usa este */
    /* object-fit: cover;    <-- Si quieres que LLENE todo el cuadro usa este */
    object-fit: contain; 
    padding: 2px; /* Mínimo espacio para que no toque los bordes */
	/* ESTO HACE QUE LA IMAGEN TAMBIÉN SEA OVALADA */
    border-radius: 12px; 
    transition: transform 0.3s ease;
}

/* Títulos y precios estilo menú profesional */
.card-title-menu {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    /* Limitar a 2 líneas para que no se desalineen las cards */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.2rem; 
}

.card-price-menu {
    font-size: 1rem;
    font-weight: 800;
    color: #e63946; /* Rojo Wok */
    margin: 0;
}

/* Ajuste para móviles: 2 columnas */
@media (max-width: 576px) {
    .product-card {
        margin-bottom: 10px;
    }
}

/* Opcional: Redondear toda la card para que combine */
.product-card {
    border-radius: 15px !important;
    overflow: hidden;
    border: none;
    background: #fff;
}

/* Título del Producto: Más grande y elegante */
.product-name-elegant {
    font-size: 1.1rem; /* Aumentamos el tamaño */
    font-weight: 700;  /* Más negrita */
    color: #2d3436;    /* Un gris muy oscuro, casi negro, más elegante */
    margin-bottom: 8px;
    line-height: 1.3;
    /* Para que no se vea amontonado */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem; 
    letter-spacing: -0.02em; /* Un toque de diseño moderno */
}

/* Precio: Con un estilo tipo "Etiqueta" */
.price-tag-elegant {
    font-size: 1.25rem; /* El precio debe leerse súper bien */
    font-weight: 800;
    color: #e63946;    /* El rojo distintivo de Wok Express */
    background-color: rgba(230, 57, 70, 0.05); /* Un fondo sutil para resaltar */
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px; /* Estilo ovalado para el precio también */
}

/* Ajuste general de la card para celulares */
@media (max-width: 576px) {
    .product-name-elegant {
        font-size: 0.95rem; /* Un poquito menos en móvil para que no rompa */
        height: 2.5rem;
    }
    .price-tag-elegant {
        font-size: 1.1rem;
    }
    .card-body {
        padding: 10px !important;
    }
}