/*
 Theme Name:   Blocksy Child
 Theme URI:    https://creativethemes.com/blocksy/
 Description:  Tema hijo para el prototipo de ESAB México
 Author:       LienzoHost
 Author URI:   https://lienzohost.com
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/

/* 1. Sobrescribir variables de paleta nativa de Blocksy */
:root {
    --theme-palette-color-1: #FFC72C; /* Amarillo ESAB principal */
    --theme-palette-color-2: #E5B220; /* Amarillo ESAB hover */
    --theme-palette-color-3: #111111; /* Negro oscuro / títulos */
    --theme-palette-color-4: #222222; /* Gris oscuro para fondos secundarios */
    --theme-palette-color-5: #ffffff; /* Blanco */
    --theme-palette-color-6: #111111; /* Enlaces / Acentos en Negro para Header Amarillo */
    --theme-palette-color-7: #666666; /* Gris de texto secundario */
    --theme-palette-color-8: #f8f9fa; /* Fondo general del sitio */
}

/* 2. Estilos globales y tipografías */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #222222;
    background-color: #f8f9fa;
}

/* 3. Diseño de la Cabecera (Header) */
header, 
.ct-header-grid,
[data-row="middle"] {
    background-color: #FFC72C !important; /* Fondo amarillo ESAB */
}

.ct-header-navigation, 
.ct-header-navigation a, 
.ct-header-navigation .ct-menu-link {
    color: #111111 !important; /* Texto negro para contraste */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
}

.ct-header-navigation a:hover, 
.ct-header-navigation .ct-menu-link:hover {
    color: #ffffff !important; /* Texto blanco en hover sobre fondo amarillo */
}

/* Marca del sitio / Logo */
.site-title a {
    color: #111111 !important; /* Nombre del sitio en negro */
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ajustes para botones de búsqueda y otros en cabecera */
.ct-header-search a, 
.ct-header-search svg {
    fill: #111111 !important;
    color: #111111 !important;
}

/* 4. Botones Industriales (Esquinas Cuadradas y Colores ESAB) */
.wp-block-button__link,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    border-radius: 0px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: 2px solid #FFC72C !important;
    background-color: #FFC72C !important;
    color: #000000 !important;
    padding: 12px 25px !important;
    transition: all 0.3s ease !important;
}

.wp-block-button__link:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: #111111 !important;
    color: #FFC72C !important;
    border-color: #111111 !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #FFC72C !important;
    color: #000000 !important;
    border-color: #FFC72C !important;
}

/* 5. Tarjetas de Categoría en Home */
.esab-category-card {
    border: 2px solid #111111;
    background: #ffffff;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.esab-category-card:hover {
    border-color: #FFC72C;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.esab-category-card h3 {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 15px !important;
}

.esab-category-card a {
    color: #111111;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 2px solid #FFC72C;
    transition: all 0.2s ease;
}

.esab-category-card a:hover {
    color: #FFC72C;
    border-bottom-color: #111111;
}

/* 6. Estilos de WooCommerce (Catálogo e Individual) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    border-color: #FFC72C !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin: 15px 0 10px 0 !important;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    color: #111111 !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
}

/* Botón Añadir al Carrito en Bucle */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    margin-top: 15px !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    padding: 10px 15px !important;
}

/* Ficha Técnica de Producto Individual (ACF) */
.esab-technical-fields {
    background: #ffffff;
    border: 2px solid #111111;
    padding: 30px;
    margin-top: 40px;
}

.esab-technical-fields h3 {
    font-weight: 800;
    text-transform: uppercase;
    border-left: 5px solid #FFC72C;
    padding-left: 15px;
    margin-bottom: 20px;
}

.technical-field-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.technical-field-row:last-child {
    border-bottom: none;
}

.technical-field-label {
    font-weight: 700;
    color: #666666;
}

.technical-field-value {
    font-weight: 600;
    color: #111111;
}

/* Pie de Página (Footer) */
footer {
    background-color: #111111 !important;
    color: #ffffff !important;
}

footer a {
    color: #a0aec0 !important;
}

footer a:hover {
    color: #FFC72C !important;
}
