/*
Theme Name: NeoOcular Child
Theme URI: https://neoocular.qodeinteractive.com
Description: A child theme of NeoOcular
Author: Elated Themes
Author URI: https://qodeinteractive.com
Version: 1.0
Text Domain: neoocular
Template: neoocular
*/


/* ════════════════════════════════════════════════════
   CABECERA PERSONALIZADA DE PRODUCTO
════════════════════════════════════════════════════ */
.loyra-product-header {
    width: 100%;
    background: #f7f6f4;
    border-bottom: 1px solid #e8e8e8;
    padding: 24px 0;
}
.loyra-ph-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}
.loyra-ph-cats {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 8px;
}
.loyra-ph-cats a { color: #aaa; text-decoration: none; transition: color .2s; }
.loyra-ph-cats a:hover { color: #1a1a1a; }
.loyra-ph-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .loyra-ph-inner { padding: 0 20px; }
    .loyra-ph-title { font-size: 15px; }
}


/* ════════════════════════════════════════════════════
   DIAGRAMA DE MEDIDAS — imágenes PNG
   Compatible Chrome, Safari, Firefox
════════════════════════════════════════════════════ */

/* Contenedor flex de los tres bloques */
.loyra-medidas-gafas {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    gap: 24px;
    padding: 36px 0 44px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 32px;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Cada bloque (imagen + etiqueta + valor) */
.loyra-medida-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 0%;
    flex: 1 1 0%;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    min-width: 0;
}

/* Imagen PNG — escala correctamente en Safari */
.loyra-medida-img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;          /* Safari respeta height:auto con width explícito */
    margin-bottom: 12px;
    -webkit-user-select: none;
    user-select: none;
}

/* Etiqueta: "Ancho del cristal" */
.loyra-medida-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.3;
}

/* Valor: "63 mm" */
.loyra-medida-valor {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Responsive: columna en móvil */
@media (max-width: 640px) {
    .loyra-medidas-gafas {
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 28px;
    }
    .loyra-medida-img {
        max-width: 160px;
    }
}


/* ════════════════════════════════════════════════════
   FOOTER — ajustes móvil
════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .qodef-footer-top-area,
    footer .qodef-content-grid,
    #qodef-footer { background: #ffffff !important; }
    footer .widget-title, footer .widgettitle { color: #999 !important; border-bottom: 1px solid #f0f0f0 !important; }
    footer .widget_nav_menu ul li { border-bottom: 1px solid #f0f0f0 !important; }
    footer .widget_nav_menu ul li a, footer .widget_pages ul li a { color: #1a1a1a !important; }
    footer .widget_text p, footer .textwidget p { color: #888 !important; }
    .qodef-footer-bottom-area, footer .qodef-footer-bottom { background: #f9f8f6 !important; border-top: 1px solid #e8e8e8 !important; }
    .qodef-footer-bottom-area p, footer .qodef-footer-bottom p { color: #aaa !important; }
}



/* ════════════════════════════════════════════════════
   TARJETAS DE PRODUCTO — igualar cajas y eliminar fondo gris
   (NeoOcular / Qode theme)
════════════════════════════════════════════════════ */

/* La tarjeta como columna flex para igualar alturas */
ul.products li.product .qodef-woo-product-item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Contenedor de imagen: altura fija y centrada */
ul.products li.product .qodef-woo-product-image,
ul.products li.product .qodef-e-media-image,
ul.products li.product a.qodef-woo-product-image-link {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
}

/* La imagen: mismo tamaño en todas las tarjetas */
ul.products li.product .qodef-woo-product-image img,
ul.products li.product .qodef-e-media-image img,
ul.products li.product img {
    width: 100% !important;
    height: 260px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    display: block !important;
}

/* Info (título, categoría, precio) — sin fondo gris, altura expandible */
ul.products li.product .qodef-woo-product-info {
    flex-grow: 1 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Eliminar fondo en hover y en todos los estados */
ul.products li.product:hover .qodef-woo-product-item,
ul.products li.product:hover .qodef-woo-product-info,
ul.products li.product:focus-within .qodef-woo-product-info,
ul.products li.product .woocommerce-loop-product__title {
    background: transparent !important;
    background-color: transparent !important;
}





/* Fix fondo gris — clase real confirmada */
.qodef-woo-product-content {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

ul.products li.product:hover .qodef-woo-product-content {
    background: transparent !important;
    background-color: transparent !important;
}