/*
Theme Name: LR Native Theme
Theme URI: https://lrelectricidadintegral.com.ar/
Description: Tema nativo, accesible y optimizado para el catálogo de LR Electricidad Integral.
Author: MatiasMinoni
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lr-native-theme
*/

/* --- ESTILOS GLOBALES DE LA PALETA DE COLORES --- */
:root {
    --primary-purple: #2a154b; /* Violeta LR */
    --accent-blue: #0d6efd;   /* Azul LR */
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* --- ESTILOS GLOBALES PARA EL CONTROL DE WOOCOMMERCE --- */

/* Mantener la salida de WooCommerce usable incluso si el drawer AJAX no carga. */
.added_to_cart {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: .5rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Forzar que los productos de WooCommerce se alineen con Flexbox de forma elegante y que los botones de compra no usen flotados */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    float: none !important;
    display: inline-block !important;
}

/* Forzar ocultamiento correcto de textos de lector de pantalla (screen-reader-text) */
.screen-reader-text,
.woocommerce-cart .screen-reader-text,
.woocommerce-checkout .screen-reader-text,
.woocommerce-account .screen-reader-text {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

.screen-reader-text:focus {
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: .75rem 1rem !important;
    position: fixed !important;
    top: .75rem !important;
    left: .75rem !important;
    z-index: 100000 !important;
    overflow: visible !important;
    background: #fff !important;
    color: #2a154b !important;
    border: 2px solid #2a154b !important;
    border-radius: .5rem !important;
}

/* --- UTILIDADES NATIVAS --- */
.lr-product-title-clamp {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 38px !important;
}
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* --- ESTILOS DE UNICIDAD DE COLORES NATIVOS --- */
.text-primary-purple {
    color: #2a154b !important;
}
.bg-primary-purple {
    background-color: #2a154b !important;
}
.hover\:text-purple-900:hover {
    color: #3d1b66 !important;
}
