/* --- Estilos base anteriores (Wrapper, Modal, etc) se mantienen --- */
.cqv-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.cqv-modal.active { opacity: 1; visibility: visible; }
.cqv-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.cqv-wrapper { position: relative; background: #fff; width: 900px; max-width: 90%; max-height: 90vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); overflow-y: auto; z-index: 2; padding: 40px; }
.cqv-loader { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #fff; display: flex; justify-content: center; align-items: center; z-index: 3; }
.cqv-modal.loaded .cqv-loader { display: none; }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #1D54AC; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.cqv-close { position: absolute; top: 10px; right: 15px; font-size: 30px; border: none; background: none; cursor: pointer; z-index: 4; color: #333; }
.cqv-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.cqv-col-image, .cqv-col-data { flex: 1; min-width: 300px; }

/* --- NUEVOS ESTILOS PARA GALERÍA Y EFECTOS --- */

/* Contenedor relativo para posicionar flechas y botón */
.cqv-gallery-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Cuadrado perfecto */
    overflow: hidden; /* Para ocultar el botón azul cuando baja */
    /* Si quieres el borde gris de la tarjeta original de tu foto: */
    /* border: 1px solid #eee; */
}

/* Contenedor de la imagen circular */
.cqv-image-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; /* Espacio para que no toque los bordes */
}   

/* La imagen en sí (Redonda) */
.cqv-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
     /* Círculo */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Sombra suave como la foto */
    transition: transform 0.3s ease;
}

/* Flechas de Navegación */
.cqv-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent!important;
    border: none!important;
    font-size: 30px;
    color: #FE8800!important;
    cursor: pointer;
    z-index: 10;
    padding: 0 10px;
    transition: color 0.3s;
    opacity: 0; /* Ocultas por defecto */
}
.cqv-nav:hover { color: #1A3E78!important; }
.cqv-prev { left: 0; }
.cqv-next { right: 0; }

/* Botón Ver Detalles (Azul oscuro) */
.cqv-view-details-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1A3E78; /* Azul oscuro */
    color: #fff !important;
    text-align: center;
    padding: 12px 0;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 20;
    /* Animación */
    transform: translateY(100%); /* Empieza escondido abajo */
    transition: transform 0.3s ease-in-out;
}

/* --- HOVER EFFECTS (La Magia) --- */

/* Al pasar el mouse por el contenedor general */
.cqv-gallery-wrapper:hover .cqv-nav {
    opacity: 1; /* Aparecen flechas */
}
.cqv-gallery-wrapper:hover .cqv-view-details-btn {
    transform: translateY(0); /* Sube el botón azul */
}

/* --- RESTO DE ESTILOS (Datos, botones compra, etc) --- */
.cqv-title { font-size: 26px; margin-bottom: 5px; color: #222; font-weight: bold; margin-top: 0;}
.cqv-price { font-size: 24px; color: #1A3E78; font-weight: 700; margin-bottom: 15px; }
.cqv-stock { margin-bottom: 20px; font-size: 14px; }
.in-stock { color: #FE8800; background: #eafaf3; padding: 5px 10px; border-radius: 4px; font-weight: bold; }
.out-of-stock { color: #5E5E5E; background: #f9e2e2; padding: 5px 10px; border-radius: 4px; }

.cqv-actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.cqv-buy-now {
    background-color: #1A3E78 !important; color: #fff !important;
    width: 100%; padding: 15px; text-transform: uppercase; font-weight: bold;
    border: none; border-radius: 4px; cursor: pointer; margin-top: 5px;
    transition: background 0.3s;
}
.cqv-buy-now:hover { background-color: #1D54AC !important; }

/* Estilos Woo form */
.cqv-actions form.cart { margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cqv-actions button.single_add_to_cart_button {
    background-color: #FE8800 !important; /* Verde */
    color: #fff !important;
    flex-grow: 1; border-radius: 4px; text-transform: uppercase; font-weight: bold;
}
.cqv-actions .quantity { margin-right: 0; }
.cqv-meta { margin-top: 20px; font-size: 13px; color: #666; border-top: 1px solid #eee; padding-top: 15px; line-height: 1.6; }

/* Estilos para la sección de compartir actualizada */
.cqv-share {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre iconos */
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%; /* Círculos */
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Colores oficiales al pasar el mouse */
.share-icon.facebook:hover { background: #1877F2; color: #fff; }
.share-icon.whatsapp:hover { background: #25D366; color: #fff; }
