/*
 Theme Name:    Bicycle Shop Child
 Description:  Tema hijo para la tienda Cadiem Bikes
 Author:       Gemma Taracido
 Template:     bicycle-shop
 Version:      1.0.0
*/

/* ==========================================================================
   1. PRODUCTO SINGLE: TÍTULO DESTACADO CON RAYITA ROJA Y SCROLL INTERNO
   ========================================================================== */
.woocommerce div.product .summary .product_title {
    display: block !important;
    font-size: 2.6rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    color: #000000 !important;
    text-align: left !important;
    letter-spacing: -0.5px !important;
    margin-top: 0 !important;
    position: relative !important;
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
}

.woocommerce div.product .summary .product_title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 50px !important;
    height: 4px !important;
    background-color: #fe495c !important;
}

.woocommerce div.product p.price {
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    color: #c5a059 !important;
    margin-top: 10px !important;
    margin-bottom: 25px !important;
    text-align: left !important;
    display: block !important;
}

.post_head {
    display: none !important;
}

@media screen and (min-width: 992px) {
    .woocommerce div.product .summary {
        max-height: 550px !important; 
        overflow-y: auto !important;
        padding-right: 15px !important;
    }
    .woocommerce div.product .summary::-webkit-scrollbar {
        width: 5px;
    }
    .woocommerce div.product .summary::-webkit-scrollbar-thumb {
        background-color: #dddddd;
        border-radius: 4px;
    }
}

.woocommerce div.product form.cart .variations th, 
.woocommerce div.product form.cart .variations td {
    display: block !important;
    text-align: left !important;
    width: 100% !important;
    padding: 4px 0 !important;
}

.woocommerce div.product form.cart .variations label {
    margin-bottom: 6px !important;
    display: inline-block !important;
    font-weight: bold !important;
    font-size: 15px !important;
    color: #222222 !important;
}


/* ==========================================================================
   2. CABECERA FIJA SEGURA (ADIÓS AL HUECO BLANCO EN ESCRITORIO Y LATERALES)
   ========================================================================== */
.topmenu-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    box-sizing: border-box !important;
}

body {
    padding-top: 80px !important; 
}

body.admin-bar .topmenu-bar {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .topmenu-bar {
        top: 46px !important;
    }
    body {
        padding-top: 70px !important;
    }
}

/* ==========================================================================
   3. ADAPTACIÓN MÓVIL PERFECTA
   ========================================================================== */
@media screen and (max-width: 991px) {
    .topmenu-bar .center {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 10px 10px 15px !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .logo {
        margin: 0 !important;
        float: none !important;
        order: 1 !important;
    }
    .logo img {
        max-height: 40px !important;
        width: auto !important;
    }
    .logo .desc {
        display: none !important;
    }

    .header-extras {
        display: block !important; 
        float: none !important; 
        clear: none !important;
        text-align: right !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        flex-grow: 1 !important;
        margin: 0 18px 0 0 !important;
        order: 2 !important;
    }

    .header-extras li, 
    .header-extras div {
        display: inline-block !important;
        background: transparent !important;
        margin: 0 0 0 16px !important;
        list-style: none !important;
    }

    .header-extras li a, 
    .header-extras .header-search-toggle {
        font-size: 19px !important;
        color: #222222 !important;
        background: transparent !important;
    }

    .header-menu {
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        order: 3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    #simple-menu {
        display: inline-block !important;
        font-size: 22px !important;
        color: #222222 !important;
        margin: 0 !important;
        padding-right: 0 !important;
        padding-left: 10px !important;
    }
    .header-menu #topmenu {
        display: none !important;
    }

    .header-search-form {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999999 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .header-search-form[style*="display: block"],
    .header-search-form[style*="display:block"] {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* ==========================================================================
   4. BUSCADOR EN ESCRITORIO
   ========================================================================== */
.header-search-form {
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    padding: 15px !important;
}

.header-search-form .search-form {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

.header-search-form .search-field {
    background: #f5f5f5 !important;
    color: #222222 !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 6px !important;
    padding: 10px 15px !important;
    font-size: 15px !important;
    height: 44px !important;
    box-sizing: border-box !important;
}

.header-search-form .search-submit {
    background: #fe495c !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0 20px !important;
    font-weight: 700 !important;
    height: 44px !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}


/* ==========================================================================
   5. TARJETAS DE CATEGORÍAS Y PRODUCTOS
   ========================================================================== */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product-category {
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product-category a img {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce ul.products li.product-category:hover {
    border-color: #fe495c !important;
    box-shadow: 0 6px 18px rgba(254, 73, 92, 0.15) !important;
    transform: translateY(-3px) !important;
}


/* ==========================================================================
   6. FUENTE EXO 2 Y COLOR ORO PARA TÍTULOS POSTS-STYLE4 (A PRUEBA DE BALAS)
   ========================================================================== */
.posts4content h3,
.posts4content a h3,
.posts4content a h3 *,
.post_block_style4 h3,
.post_block_style4 h3 a {
    font-family: "Exo 2", sans-serif !important;
    color: #cebd3b !important;
    text-decoration: none !important;
}

.posts4content a:hover h3,
.post_block_style4 a:hover h3 {
    color: #e5d453 !important;
}


/* ==========================================================================
   7. REGLAS VARIAS
   ========================================================================== */
.vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design .vi-wpvs-option-wrap {
    padding: 0 !important;
    transition: none !important;
}

.woocommerce-loop-category__title .count {
    display: none !important;
}

.elementor-kit-40874 a {
    color: #555;
}

/* ==========================================================================
   FORZAR FUENTE EXO 2 EN TÍTULOS DE PRODUCTO (SINGLE PRODUCT)
   ========================================================================== */

.woocommerce div.product .summary .product_title,
h1.product_title.entry-title,
.product_title {
    font-family: "Exo 2", sans-serif !important;
}