/* Estilos generales del modal */
.modal-detalle {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Contenedor del contenido del modal */
.content-detalle {
    display: flex;
    background: white;
    padding: 5px 0 5px 5px;
    border-radius: 10px;
    width: 70%;
    height: 100%; /* Establece una altura para el modal */
    position: relative;
    overflow: hidden;
    justify-content: space-between;
}

/* Botón de cerrar */
.cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

/* Carrusel de imágenes */
.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 50%; /* 48% del espacio para la imagen */
    height: 100%; /* Ocupa toda la altura disponible */
}

.carousel-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* Ajustar el ancho del carrusel */
}

.slide {
    min-width: 100%; /* Cada imagen ocupa el 100% del contenedor */
    height: auto;
    object-fit: contain;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    padding: 10px;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

#prevImg {
    left: 10px;
}

#nextImg {
    right: 10px;
}

/* Información del producto */
.modal-informacion {
	padding: 0px 20px 0px 20px;
	margin-right: 5px;
    flex: 1;
    width: 50%; /* Ajusta el ancho máximo */
    height: 100%; /* Asegura que ocupe el 100% de la altura */
    overflow-y: auto;
    display: flex; /* Flex para alinear elementos */
    flex-direction: column; /* Organiza los elementos de arriba hacia abajo */
	justify-content:space-around;
}

.modal-informacion h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.modal-informacion p {
    font-size: 16px;
    color: #555;
}

.modal-informacion p strong {
    color: #000;
}

/* Estilo del botón "Agregar al carrito" */
@media (max-width: 1025px) {

/* Estilos generales del modal */
/* Estilos generales del modal */
.modal-detalle {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: flex-start;
    z-index: 20;
    overflow-y: auto; /* Permitir desplazamiento vertical si es necesario */
}

/* Contenedor del contenido del modal */
.content-detalle {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 0px;
    border-radius: 10px;
    width: 100%;
    height: 100%; /* Ajuste del tamaño vertical dinámico */
    position: relative;
    justify-content: space-between;
    overflow-y: auto;
}

/* Botón de cerrar */
.cerrar {
   position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: white;
    color: black;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 25;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Carrusel de imágenes */
.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100vw;
    height:67vh ; /* Ajuste automático */
}

.carousel-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 18px;
    padding: 8px;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

#prevImg {
    left: 10px;
}

#nextImg {
    right: 10px;
}

/* Información del producto */
.modal-informacion {
    padding: 0px 10px 0px 10px  ;
    width: 100vw;
    height: 20%;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinear elementos en la parte superior */ /* Espacio controlado entre elementos */
	
}

.modal-informacion h2 {
    font-size: 20px;
    color: #333;
}

.modal-informacion p {
    font-size: 14px;
    color: #555;
}

.modal-informacion p strong {
    color: #000;
}

/* Botón "Agregar al carrito" */
.btn-agregar {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: white;
    background: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}
}

    /* Estilo del carrito */
    .modal-cart {
        display: none;
        position:fixed;
        top:130px;
        right: 0px;
		width: auto;
		height: auto;
		z-index: 1000;
    }

    /* Contenedor del modal */
.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 650px; /* Que ocupe todo el modal */
    max-width: none;
    text-align: center;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4); /* Sombra en el borde izquierdo */
    position: relative;
	height: auto;
    max-height: 100vh; /* Que ocupe toda la pantalla */
    display: flex;
    flex-direction: column;
}

    /* Botón de cerrar */
    .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        color: #555;
        transition: 0.3s;
    }

    .close-btn:hover {
        color: red;
    }

    /* Estilos para la lista de productos */
    #cart-items ul {
        list-style: none;
        padding: 0;
        max-height: 350px;
        overflow-y: auto;
        margin-top: 10px;
    }

    #cart-items li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    #cart-items img {
        width: 50px;
        height: 50px;
        border-radius: 5px;
        margin-right: 10px;
    }

    /* Estilos para el input y botón */
    #buyer-name {
        width: 100%;
        padding: 10px;
        margin: 15px 0;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 16px;
    }

    .modal-content button {
        background: #28a745;
        color: white;
        border: none;
        padding: 10px;
        font-size: 16px;
        border-radius: 5px;
        cursor: pointer;
        width: 100%;
        transition: 0.3s;
    }

    .modal-content button:hover {
        background: #218838;
    }

    /* Animación de entrada */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
@media (max-width: 1025px) {
	.modal-cart{
		top: 0px;
		width: 100%;
		height: 100%;
	}
	.modal-content {
		width: 100%;
		height: 100%;
	}
	#cart-items ul {
		max-height: 300px;
	}


}