body {
    font-family: 'Roboto', sans-serif;
    padding-top: 150px;
}

header {
    background-color: #fff;
}

button{
		width: 100%;
}

.header_logo {
    top: 25px;
    z-index: 1030;
    height: 85px;
}


.buscador_mobile{
    display:none;
}
.logo {
    height: 80%;
}

.carousel-item {
    height: 600px;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #000;
    border-radius: 50%;
}

.position-relative .badge {
    top: 0.5rem;

}

.search-group {
    width: 100%;
}

.search-input {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-outline-secondary {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: none;
    color: #aaa;
}

a.text-decoration-none:hover {
    text-decoration: none;
}

a.no-underline {
    text-decoration: none;
}

a.no-underline:hover {
    text-decoration: none;
}

.bg-secondary .text-white {
    font-size: 0.8rem;
}

.navbar-nav .nav-link {
    color: #fff;
    padding: 0.5rem 1.5rem;
    line-height: 40px;
    font-weight: 400;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.navbar-nav .nav-link.active {
    background-color: #ff5722;
    border-radius: 5px;
}

nav .navbar-nav {
    align-items: center;
    height: 100%;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    max-height: 400px; /* Ajusta esta altura según sea necesario */
    overflow-y: auto;
}

/* Estiliza el scrollbar para navegadores Webkit (Chrome, Safari) */
.dropdown-menu::-webkit-scrollbar {
    width: 12px; /* Ancho del scrollbar */
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color de fondo del track */
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #1C4E95; /* Color del thumb */
    border-radius: 10px; /* Radio del borde para hacer el thumb redondeado */
    border: 3px solid #f1f1f1; /* Espacio alrededor del thumb */
}

/* Estiliza el scrollbar para Firefox */
.dropdown-menu {
    scrollbar-width: thin; /* Ancho del scrollbar */
    scrollbar-color: #1C4E95 #f1f1f1; /* Color del thumb y del track */
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #1C4E95;
    }
    .navbar-nav .nav-link {
        color: #fff;
    }
}

/* Styles for Limited Time Offers Section */
.limited-time-offers {
    margin-top: 2rem;
}

.limited-time-offers .limited-time-row {
    border: 3px solid #092c8d;
    padding: 20px;
    border-radius: 30px;
}

.limited-time-offers .product-item {
    margin-bottom: 2rem;
}

.limited-time-offers .card {
    height: 100%;
}

.limited-time-offers .card-img-top {
    height: 150px;
    object-fit: contain;
}

.limited-time-offers .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.limited-time-offers .price {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.limited-time-offers .new-price {
    color: #ff5722;
    font-weight: bold;
    font-size: 1.5rem;
}

.limited-time-offers .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
}

.limited-time-offers .quantity-input {
    text-align: center;
    border-color: black;
}

.btn-group .btn {
    padding: 0.375rem 0.75rem;
}

/* Custom styles for titles */
.limited-time-offers .card-title {
    font-size: 0.78rem;
    color: #007bff;
    font-weight: bold;
}

.limited-time-offers .card-text {
    font-size: 0.92rem;
    font-weight: bold;
    color: #333;
}

/* Custom styles for button */
.limited-time-offers .btn-primary {
    background-color: #1C4E95;
    border-color: #1C4E95;
    color: #fff;
}

.limited-time-offers .btn-primary:hover {
    background-color: #163f7a;
    border-color: #163f7a;
}

/* Styles for Offers Section */
.offers-section {
    margin-top: 2rem;
}

.offer-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    margin-bottom: 20px;
}

.offer-img {
    width: 100%;
    height: auto;
}

.offer-body {
    padding: 15px;
}

.offer-title {
    font-size: 1.2rem;
    color: #1C4E95;
    font-weight: bold;
}

.featured-categories {
    background-color: #1C4E95;
    padding: 2rem 0;
}

.featured-categories .text-center {
    margin-bottom: 1.5rem;
}

/* Categorías destacadas */

.featured-categories {
    background-color: #1C4E95;
    padding: 2rem 0;
}

.featured-categories h2 {
    margin-bottom: 2rem;
}

#categoryContainer {
    display: flex;
    scroll-behavior: smooth;
    width: calc(150px * 6 + 6 * 0.5rem * 2);
    justify-content: center;
}

.category-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    margin: 0 0.5rem;
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-card img {
    width: 100%;
    height: auto;
    max-height: 100px;
    margin-bottom: 1rem;
}

.category-card h5 {
    color: #1C4E95;
    font-size: 1rem;
    text-align: center;
    margin: 0;
    font-weight: 500;
}

.info-bar {
    background-color: #1C4E95;
}

.info-item {
    font-size: 1.2rem;
    font-weight: 500;
}

.info-item i {
    color: #fff;
}

.map-section {
    background-color: #1C4E95;
    padding: 0;
    margin: 0;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.footer {
    background-color: #1C4E95;
    color: #fff;
}

.footer-logo {
    width: 150px;
}

.footer h5 {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer ul {
    padding: 0;
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    background-color: #ff5722;
}

.footer-logo-small {
    width: 50px;
    margin-left: 1rem;
}

@media (max-width: 991.98px) {
    .seccion_categoria{
        display: none;
    }
    .bg-secondary.text-white.py-1.fixed-top {
        font-size: 0.7rem;
    }

    .header_logo {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 1rem 0.5rem;
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header .logo {
        margin-bottom: 1rem;
        height: auto;
    }

    header .d-flex.align-items-center.w-75.position-relative {
        width: 100%;
    }

    .input-group.rounded-pill.search-group {
        width: 100%;
    }

    .navbar {
        height: auto;
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem;
        margin: 0;
    }

    .limited-time-offers .product-item {
        flex: 0 0 100%;
        margin-bottom: 1rem;
    }

    .offers-section .offer-card {
        flex: 0 0 100%;
        margin-bottom: 1rem;
    }

    .info-bar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-bar .info-item {
        margin-bottom: 1rem;
    }

    .map-section iframe {
        height: 300px;
    }

    .footer .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer .col-md-4 {
        margin-bottom: 1rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Modal carrito de compras */
.modal-dialog.modal-dialog-slideout {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    width: 500px; /* Ancho fijo del modal */
    max-width: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.modal.fade .modal-dialog.modal-dialog-slideout {
    transform: translateX(100%);
}

.modal.fade.show .modal-dialog.modal-dialog-slideout {
    transform: translateX(0);
}

.modal-content {
    height: 100%;
    border-radius: 0;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0;
}

.cart-item-prices {
    font-size: 0.875rem;
    color: #999;
}

.cart-item-new-price {
    font-size: 1rem;
    font-weight: bold;
    color: #ff5722;
}

.cart-item-old-price {
    font-size: 0.875rem;
    color: #999;
}

.cart-item-quantity .btn {
    padding: 0.25rem 0.5rem;
    width: 20px;
    height: 20px;
    font-size: 0.875rem;
    line-height: 1;
}

.cart-item-quantity .quantity-input {
    height: 20px;
    width: 40px;
}

.cart-item-quantity .quantity-btn {
    background-color: #f8f9fa;
    border-color: #ccc;
    color: #333;
}

.subtotal, .total {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
}

.btn-outline-secondary {
    border-color: #ccc;
    color: #333;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
}

.btn-danger .fa-trash {
    font-size: 0.875rem;
}

#search-form-mobile {
    position: fixed;
    top: 0; /* Ajusta esta posición según sea necesario */
    left: 0;
    right: 0;
    z-index: 1049; /* Asegura que el formulario esté por encima de otros elementos */
    background-color: #fff; /* Fondo blanco para que sea legible */

}

@media (max-width: 576px) {
    body{
        padding-top: 150px;
    }
    header .d-flex.align-items-center.w-75.position-relative {
        flex-direction: column;
        align-items: stretch;
    }
	.limited-time-offers .limited-time-row {
		border: none;
	}
	
	.navbar-toggler {
        width: 60px;
        height: 35px;
        position: absolute;
        right: 10px;
        top: 4px;
        z-index: 1050; /* Asegura que esté siempre por encima del contenido desplegado */
    }

    .buscador_mobile{
        display:block;       
    }

    #search-input-mobile {
        width: 95%;
        max-width: 400px; /* Ajusta el ancho máximo según sea necesario */
        margin: 0 auto; /* Centra el input horizontalmente */
        padding: 10px; /* Añade espacio en los laterales */
        box-sizing: border-box; /* Incluye el padding en el ancho total */
        border-color: #1C4E95;
        border-right: 1px solid !important;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        height: 25px;
    }
    
    
    .navbar-toggler-icon {
        width: 30px;
        height: 30px;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 45px; /* Ajusta este valor según sea necesario para que el menú desplegable no se superponga al botón */
        width: 100%;
        z-index: 1040; /* Asegura que esté por debajo del botón */
    }
    
	.carousel-item {
        height: auto; /* Permite que la altura se ajuste automáticamente */
    }


    .carousel-item img {
        height: auto;
        object-fit: contain; /* Ajusta la imagen dentro del contenedor */
    }

    .barra_superior {
        display: none;
    }

    .header_logo {
        top: 0;
    }

    .buscador_input {
        display: none;
    }

    header .d-flex.align-items-center.w-75.position-relative {
        justify-content: space-between;
        width: 100%;
    }

    header .container {
        flex-direction: row;
        align-items: center;
    }

    .limited-time-offers .card-body {
        align-items: center;
        text-align: center;
    }

    .limited-time-offers .price {
        justify-content: center;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .limited-time-offers .product-item {
        flex: 0 0 50%;
    }

    .offers-section .offer-card {
        flex: 0 0 100%;
    }

    .featured-categories .category-card {
        margin-bottom: 1rem;
    }

    .info-bar .container {
        flex-direction: column;
    }

    .footer .container {
        flex-direction: column;
    }

    .footer-bottom .container {
        flex-direction: column;
    }
	
	.modal-dialog.modal-dialog-slideout {
		width: 350px; /* Ancho fijo del modal */
	}
  

    .destacados_productos{
        border-top: 1px solid #ccc;
        padding-top: 30px;
    }

    /* Estilos específicos para el input móvil */
    #search-input-mobile .autocomplete-item {
        font-size: 11px;
    }

    #search-input-mobile .autocomplete-thumbnail {
        max-width: 40px;
    }

    #search-input-mobile .autocomplete-value,
    #search-input-mobile .autocomplete-price {
        font-size: 11px;
    }

    .thumbnail-wrapper{
        width: 150px;
        flex-direction:row-reverse !important;
    }

    .thumbnail_details{
        margin-right: 5px;
    }
	
}

.btn-whatsapp {
	position: fixed;
	z-index: 999;
	bottom: 20px;
	right: 20px;
}

.btn-whatsapp:before,
.btn-whatsapp:after {
	content: "";
	position: absolute;
	top: 2px;
	left: 4px;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background-color: #00e676;
	opacity: 0;
	animation: onda 1.7s infinite;
}

/* Boton flotante Whatsapp.  */
.btn-whatsapp:before {
	animation-delay: 1s;
}

.btn-whatsapp:after {
	animation-delay: 1.3s;
}

.btn-whatsapp img {
	position: relative;
	z-index: 2;
}

@keyframes onda {
	0% {
		transform: scale(1);
	}

	15%{
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: scale(2.5);
	}
}






