 /*
Theme Name: Shoptimizer Child Theme
Template: shoptimizer
Version: 1.1

https://pasnormalstudios.com/eu/collections/mechanism
https://thepedla.com/
https://bike-ocasion.com/content/39-compramos-tu-bicicleta
https://tuvalum.com/  ( good)
*/


h1,
h2,h3,figcaption {
    font-family: "Space Mono", sans-serif!important;
}

h1,
h2,h3 {
    text-transform: none !important;
    word-spacing: -8px;
    letter-spacing: -1px;
    font-weight: 300!important;
}

figcaption strong{
   font-weight: 300!important;
    padding-bottom: 5px
}
figcaption em{
     font-family: "Manrope", sans-serif;
    font-size: 1rem!important
}

p,
ul,
li,table,td,tr,a {
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
}


/* Header row*/
.site-header .custom-logo-link img {
    height: 95px!important;
}
body:not(.header-4) .site-header, .header-4-container {
    background-color: #000000!important;
}
.header-widget-region .widget p {
    color: black !important;
}


@media (min-width: 993px) {
    /* Adjust the header height and padding for desktop */
    .col-full.main-header {
        padding-top: 10px!important;
        padding-bottom: 10px!important;
    }
    .col-full-nav {
        background-color: #000000!important;
        border-top: 1px solid #787676;
    }
    .secondary-navigation .menu-item {
        padding: 0 5px;
        border-left: 1px solid #787676!important;
    }
    /* Full width dropdown menu  position items left*/
    .main-navigation ul li.full-width > .sub-menu-wrapper > .container > ul.sub-menu {
        justify-content: left!important;
    }

    #latest-items-column {
        overflow: hidden;
    }
    .shoptimizer-cart{
        margin-top: 15px  
    }
    del .woocommerce-Price-amount.amount{
        font-weight: 800;
        color: rgb(148,148,148)
    }
    ins .woocommerce-Price-amount.amount{
        font-weight: 800;
        color: black
    }
    .product-details-wrapper .product-label {
        top: -6px!important;
    }
}

.button{
    border:1px solid black;
    border-radius: 999px;
    padding:5px 10px;
    font-size: 0.8rem
}
.button:hover{
    background-color: #F7E800!important;
    color: black 
}
button.single_add_to_cart_button.button.alt {
    margin-left: 0;
    width: 100%;
    border-radius: 9999px;
    background: black!important;
    color:white!important;
} 

button.single_add_to_cart_button.button.alt:hover {
    background: #F7E800!important;
    color:black!important;
} 

.product form.cart .quantity:has(input[type=hidden]) + button.single_add_to_cart_button {
    margin-left: 0;
    width: 100%;
    border-radius: 9999px;
}

@media (min-width: 993px) {
    .product .summary {
        width: 36%;
        padding-top: 3px;
    }
}
.product_title.entry-title{
    margin-top:10px
}

.content-area .summary .onsale {
    border: 1px solid black;
    color: black!important;
    background: #F7E800!important;
    border: 1px solid black;
    border-radius: 999px;
    margin-top: 10px;
    font-size: 0.875rem;
    line-height: 1.3;
    font-weight: 400;
    padding: 0.125rem 0.9625rem;
}

.product-brand a{
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600
}

.col-full.topbar-wrapper {
    display: none!important;
}
.secondary-navigation .menu a, .ri.menu-item:before, .fa.menu-item:before {
    color: #ffffff!important;
}
.secondary-navigation .icon-wrapper svg {
    stroke: #ffffff!important;
}

@media (max-width: 992px) {
    .site-header .custom-logo-link img {
        height: 55px!important;
    }
    .col-full.main-header {
        padding-top: 5px!important;
        padding-bottom: 5px!important;
    }
    .m-search-bh .site-search, .m-search-toggled .site-search, .site-branding button.menu-toggle, .site-branding button.menu-toggle:hover {
        background-color: #000000!important;
    }
    .menu-toggle .bar, .shoptimizer-cart a.cart-contents:hover .count {
        background-color: #fff !important;
    } 
    .menu-toggle .bar-text, .menu-toggle:hover .bar-text, .shoptimizer-cart a.cart-contents .count {
        color: #111;
    } 
    .menu-toggle .bar-text, .menu-toggle:hover .bar-text, .shoptimizer-cart a.cart-contents .count {
        color: #fff !important;
    }  
}


.header-widget-region {
    background-color: #F7E800!important;
    font-size: 14px;
}
/* Hide the "Shop" column text in the menu */
.create-menu-column > a > span {
    display: none!important;
}

/* Create new title styles to fall in line with Bike Overall Look and feel*/
.title-with-bullet-outline {    
    padding: 12px 28px;
    border-radius: 9999px;
    border: 1px solid black;
    display: inline-block!important;
    width: fit-content!important;
}

/*Create new button styles to fall in line with Bike Overall Look and feel*/
.pill-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 9999px!important; /* Makes it pill-shaped */
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .pill-button-black {
        background: #000;
        color: #fff;
    }
        .pill-button-black:hover {
            background: #333;
            color: #fff;
        }

    .pill-button-white {
        background: #fff;
        color: #000;
    }
        .pill-button-white:hover {
            background: red!important;
            color: #000;
        }

    .pill-button-outline {
        border:1px solid #000;
    }
        .pill-button-outline:hover {
            background: #000;
            color: #fff;
            transform: translateY(-2px);
        }


    .pill-button:active {
        transform: translateY(0);
    }



.wp-caption  a img:hover{
    opacity: 0.7
}

/*Hero image*/
#imitate-hero.image-feature {
    position: relative;
    overflow: hidden;
    height: 80vh;
}
#imitate-hero.image-feature figure,
#imitate-hero.image-feature .wp-caption {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
}
#imitate-hero.image-feature a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
#imitate-hero.image-feature a:before {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.13);
    content: "";
    transition: none!important;
    z-index: 1;
}
#imitate-hero.image-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#imitate-hero.image-feature figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 80px;
    color: #fff;
    text-align: left;
    z-index: 2;
    pointer-events: none;
}
#imitate-hero.image-feature figcaption strong {
    font-size: 68px;
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 20px;
}
#imitate-hero.image-feature figcaption em {
    font-size: 22px;
    font-style: normal;
    margin-bottom: 30px;
    opacity: 0.95;
}
#imitate-hero.image-feature figcaption span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;

    background: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
}
#imitate-hero.image-feature:hover a:before {
    background-color: rgba(0, 0, 0, 0.58);
}
#imitate-hero.image-feature:hover figcaption span {
    transform: translateY(-2px);
    background: red !important;
}
#imitate-hero.image-feature img {
    transform: none !important;
    transition: none !important;
}
#imitate-hero.image-feature:hover img {
    transform: none !important;
}


/*Product category page image intro*/
.image-feature.image-feature-small {
    position: relative;
    overflow: hidden;
    height: 100%;
}
.image-feature.image-feature-small figure,
.image-feature.image-feature-small .wp-caption {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
}
.image-feature.image-feature-small a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.image-feature.image-feature-small a:before {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.13);
    content: "";
    transition: none!important;
    z-index: 1;
}
.image-feature.image-feature-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.image-feature.image-feature-small figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 80px;
    color: #fff;
    text-align: left;
    z-index: 2;
    pointer-events: none;
}
.image-feature.image-feature-small figcaption strong {
    font-size: 30px;
    line-height: 1.05;
    font-weight: 700;
}
.image-feature.image-feature-small figcaption em {
    font-size: 18px;
    font-style: normal;
    margin-bottom: 10px;
    opacity: 0.95;
}
.image-feature.image-feature-small figcaption span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 9999px!important;
    background: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
}
.image-feature.image-feature-small:hover a:before {
    background-color: rgba(0, 0, 0, 0.58);
}
.image-feature.image-feature-small:hover figcaption span {
    transform: translateY(-2px);
}
.image-feature.image-feature-small img {
    transform: none !important;
    transition: none !important;
}
.image-feature.image-feature-small:hover img {
    transform: none !important;
}


@media (min-width: 993px) {

}

/** * Shop button and link styling for uniformity across the site  */
.button, input[type=submit], ul.products li.product .button, .commercekit-wishlist-table button, .woocommerce #respond input#submit.alt, .product .cart .single_add_to_cart_button, .widget_shopping_cart a.button.checkout, .main-navigation ul.menu li.menu-item-has-children.full-width > .sub-menu-wrapper li a.added_to_cart, .site div.wpforms-container-full .wpforms-form button[type=submit], ul.products li.product .added_to_cart, ul.wc-block-grid__products .wp-block-button__link, .woocommerce-cart p.return-to-shop a, .elementor-row .feature a, .image-feature figcaption span, .wp-element-button.wc-block-cart__submit-button, .wp-element-button.wc-block-components-button.wc-block-components-checkout-place-order-button {
    background-color: transparent!important;
}
.button, .button:hover, .message-inner a.button, .wc-proceed-to-checkout a.button, .wc-proceed-to-checkout .checkout-button.button:hover, .commercekit-wishlist-table button, input[type=submit], ul.products li.product .button, ul.products li.product .added_to_cart, ul.wc-block-grid__products .wp-block-button__link, ul.wc-block-grid__products .wp-block-button__link:hover, .site .widget_shopping_cart a.button.checkout, .woocommerce #respond input#submit.alt, .main-navigation ul.menu ul li a.button, .main-navigation ul.menu ul li a.button:hover, body .main-navigation ul.menu li.menu-item-has-children.full-width > .sub-menu-wrapper li a.button:hover, .main-navigation ul.menu li.menu-item-has-children.full-width > .sub-menu-wrapper li:hover a.added_to_cart, .site div.wpforms-container-full .wpforms-form button[type=submit], .product .cart .single_add_to_cart_button, .woocommerce-cart p.return-to-shop a, .elementor-row .feature p a, .image-feature figcaption span, .wp-element-button.wc-block-cart__submit-button, .wp-element-button.wc-block-components-button.wc-block-components-checkout-place-order-button {
    color: #000000!important;
}
ul.products li.product .added_to_cart, ul.products li.product .button {
    width: inherit!important;
}



/*Specs for single products*/
.bike-specifications {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.bike-specifications h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
}

.spec-item {
    padding: 5px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

.spec-item p {
    margin: 0;
    line-height: 1.6;
    font-size: 13px;
}
.spec-item p strong {
    margin: 0;
    font-size: 18px;
}

/*Product description for single products*/
.product-description {
    margin-top: 30px;
}

.product-description h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-description-content {
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-description-content p {
    margin-bottom: 10px;
    padding:0;
}




/* Make the category header a hero banner */
.woocommerce-products-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* adjust as needed */
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

/* Use the category image as a background */
.woocommerce-products-header img.cg-cat-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}


/* Darken the category hero image */
.woocommerce-products-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45); /* adjust darkness */
    z-index: 1;
}

/* Ensure text sits above the dark overlay */
.woocommerce-products-header .term-description,
.woocommerce-products-header .wpc-custom-selected-terms {
    position: relative;
    z-index: 2;
    color: #fff !important;
}

/* Make the title text larger and cleaner */
.woocommerce-products-header .term-description p {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: #fff !important;
}


.woocommerce-card__header .product__categories {
    display: none;
}

/* =========================================================
   WPML LANGUAGE MENU WITH FLAGS
   ========================================================= */

/* Main language menu items */
.wpml-ls-item > a {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}


/* Base flag styling */
.wpml-ls-item > a::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 14px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 2px;
    flex-shrink: 0;
}

/* =========================================================
   FLAGS
   Using WPML built-in flags
   ========================================================= */

/* English */
.wpml-ls-item-en > a::before {
    background-image: url('/wp-content/plugins/sitepress-multilingual-cms/res/flags/en.png');
    margin-right: 5px;
}

/* Spanish */
.wpml-ls-item-es > a::before {
    background-image: url('/wp-content/plugins/sitepress-multilingual-cms/res/flags/es.png');
    margin-right: 5px;
}

/* German */
.wpml-ls-item-de > a::before {
    background-image: url('/wp-content/plugins/sitepress-multilingual-cms/res/flags/de.png');
    margin-right: 5px;
}

/* Dutch */
.wpml-ls-item-nl > a::before {
    background-image: url('/wp-content/plugins/sitepress-multilingual-cms/res/flags/nl.png');
    margin-right: 5px;
}

/* French */
.wpml-ls-item-fr > a::before {
    background-image: url('/wp-content/plugins/sitepress-multilingual-cms/res/flags/fr.png');
    margin-right: 5px;
}

/* =========================================================
   CURRENT LANGUAGE STYLING
   ========================================================= */

.wpml-ls-current-language > a {
    font-weight: 600;
}

/* =========================================================
   SUBMENU LANGUAGE ITEMS
   ========================================================= */

.sub-menu .wpml-ls-item > a {
    padding: 8px 12px;
}

/* =========================================================
   OPTIONAL: SMALL MOBILE TWEAKS
   ========================================================= */

@media (max-width: 768px) {

    .wpml-ls-item > a::before {
        width: 18px;
        height: 12px;
    }

}



.woocommerce ul.products li.product-category img {
    object-fit: cover;
    aspect-ratio: 1 / 1;
}


/* ** Shopping cart widget checkout button styling for uniformity across the site ** */
.widget_shopping_cart a.button.checkout {
    border-color: #000000;
}




#our-brands .elementor-container{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
}

/* Desktop */
#our-brands .elementor-column{
    width:14.28%;
}

/* Images */
#our-brands img{
    width:100%;
    max-width:180px;
    height:auto;
    display:block;
    margin:0 auto;
}

/* Tablet */
@media(max-width:768px){

    #our-brands .elementor-column{
        width:50%!important;
        margin-bottom:20px;
    }

    #our-brands img{
        max-width:140px;
    }
}

/* Small mobile */
@media(max-width:480px){

    #our-brands img{
        max-width:110px;
    }
}



.hide-on-mobile{
    display:block;
}

@media(max-width:768px){
    .hide-on-mobile{
        display:none!important;
    }
}




/* Bike Repair row */
#bike-repair{
    display:flex;
    align-items:center;
    gap:40px;
    background-color: #F7E800!important;
}

/* Text responsiveness */
#bike-repair h2{
    font-size:clamp(1.8rem, 5vw, 3rem)!important;
    line-height:1.2;
    color: black!important;
}

#bike-repair p{
    font-size:clamp(0.95rem, 2vw, 1rem)!important;
    line-height:1.8rem!important;
    color: black!important;
}

/* Image responsiveness */
#bike-repair img{
    width:100%;
    height:auto;
    display:block;
}

/* Stack on tablets/mobile */
@media(max-width:768px){

    #bike-repair{
        flex-direction:column;
        gap:20px;
    }

    #bike-repair h2{
        text-align:center;
    }

    #bike-repair p{
        text-align:center;
    }
}

/* Hide right column on smaller screen heights */
@media(max-height:948px){

    #bike-repair .elementor-element-29c8f4c{
        display:none!important;
    }

    #bike-repair{
        justify-content:center;
    }
}
@media(max-height:948px){

    /* Hide image column */
    #bike-repair .elementor-element-29c8f4c{
        display:none!important;
    }

    /* Expand text column */
    #bike-repair .elementor-element-5093734{
        width:100%!important;
        max-width:100%!important;
        flex:0 0 100%!important;
        padding:60px;
        background:#F7E800; /* change to your color */
    }

    /* Ensure parent stretches */
    #bike-repair{
        width:100%;
    }
}



/* Always show product buttons */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative !important;
    bottom: auto !important;
}

/* Remove hover-only animations */
.woocommerce ul.products li.product:hover .button,
.woocommerce ul.products li.product:hover a.button {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

#broken-column .product .button {
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
}