
    /* ####################################################
    JJ
    :: Template Name: Essence - Fashion Ecommerce Template
    :: Author: Colorlib
    :: Author URL: https://colorlib.com
    :: Description: Essence is smart & elegant fashion e-commerce Template. It's suitable for all e-commerce business platform.
    :: Version: 1.0.0
    :: Created: April 27, 2018
    :: Last Updated: May 2, 2018
    #################################################### */

    /* ---------------------------------------
    ##### - PLACE YOUR CUSTOM CSS HERE - #####
    --------------------------------------- */


/* Contenedor principal */
.product-controls {
    gap: 10px;
    margin-bottom: 20px;
}

/* Selector de cantidad compacto */
.quantity-select {
    display: flex;
    align-items: center;
    border: 1px solid #ebebeb;
    background-color: #f5f7f9;
    height: 45px;
    flex: 0 0 100px; /* Ancho fijo para que no baile */
}

.btn-qty {
    width: 30px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.qty-input {
    width: 40px !important;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-weight: 700;
    padding: 0;
}

/* Botón de Carrito */
.cart-icon-btn {
    flex: 1; /* Ocupa el resto del espacio */
    height: 45px !important;
    min-width: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    background-color: #0000ff; /* Azul como en tu imagen */
}

.cart-icon-btn i {
    font-size: 20px;
    color: #fff;
}

/* --- AJUSTE RESPONSIVO --- */

/* En tablets y móviles pequeños (ajusta el px según tu necesidad) */
@media only screen and (max-width: 991px) {
    .product-controls {
        flex-direction: column; /* Se ponen uno arriba del otro */
        align-items: stretch;   /* Ambos ocupan todo el ancho */
    }
    
    .quantity-select {
        flex: 1; /* El selector crece para llenar el ancho */
        justify-content: space-between;
    }
    
    .cart-icon-btn {
        width: 100%;
    }
}


/* Reduce el espacio superior de la sección principal de la tienda */
.shop_grid_area {
    padding-top: 20px !important; /* Ajusta este valor a tu gusto (ej. 10px o 0) */
}

/* Ajusta el margen superior del topbar (donde dice Total Products) */
.product-topbar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Opcional: Si el header tiene un margen inferior muy grande */
.header_area {
    margin-bottom: 0 !important;
}



/* 1. ELIMINAR ESPACIOS EXCESIVOS */
.shop_grid_area {
    padding-bottom: 20px !important; /* Reduce espacio al final de los productos */
}

.shop-pagination-area {
    margin-top: 10px !important;    /* Sube el paginador */
    padding-top: 15px;
    border-top: 1px solid #f2f2f2;  /* Línea divisoria sutil */
}

/* 2. ESTILO DEL PAGINADOR */
.pagination .page-item .page-link {
    width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0;
    text-align: center;
    color: #333;
    border: 1px solid #ebebeb;
    font-weight: 600;
    margin-right: 5px;
    transition: all 0.3s ease;
}

/* Estado Activo (La página donde estás) */
.pagination .page-item.active .page-link {
    background-color: #0000ff !important; /* El azul de tu botón */
    border-color: #0000ff !important;
    color: #fff !important;
}

/* Efecto al pasar el mouse */
.pagination .page-item .page-link:hover {
    background-color: #0000ff;
    border-color: #0000ff;
    color: #fff;
}

/* Flechas de siguiente/anterior */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0;
    font-size: 18px;
}

/* Centrado absoluto del paginador */
.shop-pagination-area {
    width: 100%;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;
    margin-top: 20px !important;
    padding-bottom: 30px;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    margin: 0 auto; /* Margen automático a los lados */
}


/* 1. El contenedor debe ocultar lo que sobresalga al crecer */
.product-img {
    overflow: hidden; /* Evita que la imagen tape el texto o bordes al crecer */
    position: relative;
}

/* 2. Estilo base de la imagen */
.product-img img {
    transition: transform 0.5s ease; /* Controla la suavidad del crecimiento */
    display: block;
    width: 100%;
    height: auto;
}

/* 3. Efecto al pasar el mouse (Hover) */
.product-img:hover img {
    transform: scale(1.1); /* Crece un 10%. Puedes usar 1.2 para un 20% */
}


/* Ajustes para el Modal QuickView */
.modal-content {
    border: none;
    border-radius: 0;
}

.quickview_pro_img img {
    width: 100%;
    height: auto;
}

.quickview_pro_des .title {
    font-size: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Sombra suave para el modal */
.modal-dialog {
    box-shadow: 0 10px 50px rgba(0,0,0,0.15);
}

/* Ajuste del botón de cerrar */
.close {
    font-size: 30px;
    color: #000;
    opacity: 0.5;
}

.close:hover {
    opacity: 1;
}

.more-info-link a {
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
}

.more-info-link a:hover {
    color: #0000ff !important; /* Cambia al azul de tu marca al pasar el mouse */
    transform: translateX(5px); /* Se mueve ligeramente a la derecha */
}

.more-info-link i {
    font-size: 14px;
    vertical-align: middle;
}


/* Estilo para el enlace de "Más información" en el Modal */
.view-details-link {
    font-size: 12px;
    color: #787878 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Efecto cuando el usuario pasa el mouse */
.view-details-link:hover {
    color: #0000ff !important; /* Cambia al azul que estamos usando */
    transform: translateX(5px); /* Pequeño desplazamiento a la derecha */
}

/* Ajuste del icono dentro del link */
.view-details-link i {
    font-size: 14px;
    vertical-align: middle;
}


/* Marca y Título */
.product-brand {
    font-size: 14px;
    text-transform: uppercase;
    color: #787878;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
}



/* Precios */
.product-price-detail {
    font-size: 26px;
    color: #0000ff; /* Tu azul de marca */
    font-weight: 700;
    margin-bottom: 25px;
}

.old-price-detail {
    text-decoration: line-through;
    color: #afafaf;
    font-size: 18px;
    margin-right: 10px;
    font-weight: 400;
}

/* Formulario y Controles */
.cart-form-detail {
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    padding: 30px 0;
    margin-top: 30px;
}

/* Ajuste específico para el botón favorito */
.product-favourite-detail a {
    font-size: 20px;
    color: #ccc;
    transition: color 0.3s;
}

.product-favourite-detail a:hover,
.product-favourite-detail a.active {
    color: #ff084e; /* Rojo para favoritos */
}

/* Beneficios */
.product-perks {
    border-top: none;
}

.perk-item {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.perk-item i {
    color: #0000ff;
    margin-right: 8px;
}

/* Reducir el tamaño del contenedor del carrusel */
.single_product_thumb {
    flex: 0 0 40%; /* Ajusta este porcentaje (40% o 45%) para reducir el tamaño general */
    max-width: 400px; /* Define un ancho máximo para que no se vea gigante en monitores grandes */
    margin: 0 auto;   /* Lo mantiene centrado si hay espacio sobra */
}

/* Asegurar que las imágenes dentro del Owl Carousel se adapten */
.product_thumbnail_slides img {
    width: auto !important; /* Evita que la imagen se estire al 100% del ancho si es pequeña */
    max-height: 500px;      /* Controla la altura máxima */
    margin: 0 auto;         /* Centra la imagen dentro del carrusel */
    object-fit: contain;    /* Mantiene la proporción sin recortar */
}

/* Fuerza la visibilidad si hay pocos elementos */
.product_thumbnail_slides {
    display: block !important;
    width: 100%;
}

/* Si Owl Carousel no se inicializa, las imágenes podrían quedar ocultas. 
   Esto asegura que la primera imagen siempre se vea. */
.product_thumbnail_slides img {
    display: block;
    width: 100%;
    max-width: 400px; /* El tamaño pequeño que querías */
    margin: 0 auto;
}

/* Contenedor principal de la imagen en detalle */
.single_product_thumb_simple {
    flex: 0 0 45%;    /* Ocupa el 45% del ancho de la sección */
    max-width: 45%;
    padding: 20px;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Centra verticalmente */
}

/* Caja que contiene la imagen */
.product-main-image {
    width: 100%;
    max-width: 400px; /* AQUÍ controlas qué tan pequeña quieres la imagen */
    background-color: #f9f9f9; /* Fondo sutil opcional */
    padding: 10px;
    border-radius: 4px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Ajuste para móviles */
@media only screen and (max-width: 991px) {
    .single_product_details_area {
        flex-direction: column; /* Apila imagen arriba y texto abajo */
    }
    .single_product_thumb_simple {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

/* 1. Nombre del Producto */
.product-title-detail {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
     margin-bottom: 0px !important; /* Quita el espacio de abajo */
    color: #000;
}

/* 2. Principio Activo (Pegado arriba) */
.product-active-ingredient {
    display: block;
    font-size: 14px;
    color: #787878;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0px; /* Asegura que esté pegado arriba */
    margin-bottom: 15px; /* Espacio antes del precio */
}

/* 3. Precio Principal (Bs.) */
.product-price-detail {
    font-size: 26px;
    color: #0000ff; /* Tu azul característico */
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: baseline; /* Alinea los textos por su base */
}

/* Referencia en Dólares (Más pequeña) */
.price-reference {
    font-size: 18px; /* Tamaño menor que el Bs. */
    margin-left: 10px;
    font-weight: 600;
    color: #0000ff; /* Mismo azul o puedes usar #787878 si prefieres que resalte menos */
}


/* Estilo para el link de volver */
.back-link {
    font-size: 13px;
    color: #787878;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.back-link i {
    font-size: 18px;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

/* Efecto hover: el icono se mueve a la izquierda y el texto cambia al azul de tu marca */
.back-link:hover {
    color: #0000ff !important;
}

.back-link:hover i {
    transform: translateX(-5px);
}


/* Estilos para la página 404 */
.error-page-area {
    min-height: 70vh; /* Ocupa la mayor parte de la pantalla vertical */
    padding: 100px 0;
}

.error-title {
    font-size: 120px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 10px;
}

.error-content h3 {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Botón secundario transparente */
.btn-outline {
    background-color: transparent !important;
    border: 2px solid #0000ff !important;
    color: #0000ff !important;
}

.btn-outline:hover {
    background-color: #0000ff !important;
    color: #fff !important;
}

/* Ajuste móvil */
@media only screen and (max-width: 575px) {
    .error-title {
        font-size: 80px;
    }
    .error-buttons {
        flex-direction: column;
        align-items: center;
    }
    .error-buttons .btn {
        margin: 5px 0;
        width: 100%;
    }
}

/* Estenedor principal de contacto */
.contact-area {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 600px; /* Altura fija para un look editorial */
    background-color: #ffffff;
}

/* El mapa ocupa exactamente la mitad izquierda */
.google-map {
    flex: 0 0 50%;
    height: 100%;
    background-color: #f2f4f8;
}

#googleMap {
    width: 100%;
    height: 100%;
}

/* La info ocupa la mitad derecha con buen padding */
.contact-info {
    flex: 0 0 50%;
    padding: 100px; /* Espacio amplio para que respire el texto */
    background-color: #ffffff;
}

.contact-address p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #787878;
    display: flex;
    align-items: center;
}

.contact-address p span {
    width: 100px;
    text-transform: uppercase;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 12px;
    letter-spacing: 1px;
}

.contact-address p i {
    color: #0000ff; /* Tu azul de marca */
}

/* Optimización para móviles */
@media only screen and (max-width: 991px) {
    .contact-area {
        flex-direction: column;
        height: auto;
    }
    .google-map, .contact-info {
        flex: 0 0 100%;
        width: 100%;
    }
    .google-map {
        height: 350px;
    }
    .contact-info {
        padding: 50px 30px;
    }
}

#googleMap iframe {
    filter: grayscale(20%) contrast(110%); /* Suaviza los colores del mapa */
    transition: filter 0.3s ease;
}

#googleMap iframe:hover {
    filter: grayscale(0%); /* Vuelve al color original al pasar el mouse */
}