/*
Theme Name: OceanWP Child
Theme URI: https://imaginewebsite.fr
Description: OceanWP WordPress theme example child theme.
Author: Imaginewebsite.fr
Author URI: https://imaginewebsite.fr
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

html {
    scroll-behavior: auto;
}

#site-header.custom-header {
    height: auto !important;
    min-height: 72px;
    overflow: visible;
}

/* Logo */
.elementor-widget-theme-site-logo img,
.elementor-widget-image img[src*="cropped-cropped-logo_toys_puissance-3"],
.elementor-16099 .elementor-element.elementor-element-bf89d2b img.wp-image-2431344,
.toysp3-local-header-logo img.custom-logo {
    display: block;
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
    aspect-ratio: 450 / 141;
    object-fit: contain;
}

@media (max-width: 767px) {
    .elementor-widget-theme-site-logo img,
    .elementor-widget-image img[src*="cropped-cropped-logo_toys_puissance-3"],
    .elementor-16099 .elementor-element.elementor-element-bf89d2b img.wp-image-2431344,
    .toysp3-local-header-logo img.custom-logo {
        width: 118px !important;
        max-width: 118px !important;
    }
}

/* Slider accueil */
.elementor-widget-image-carousel,
.elementor-image-carousel-wrapper,
.elementor-image-carousel,
.swiper-wrapper {
    aspect-ratio: 2560 / 822;
    min-height: min(32.2vw, 822px);
}

.elementor-widget-image-carousel img.swiper-slide-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 257;
    object-fit: cover;
}

/* Miniatures produits : stabilise sans casser le hover OceanWP */
.woocommerce ul.products li.product:not(.product-category) .product-inner li.image-wrap {
    min-height: 180px;
}

.woocommerce ul.products li.product .woo-entry-image,
.woocommerce ul.products li.product .woo-entry-image-swap {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.woocommerce ul.products li.product .woo-entry-image-main,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product .woo-entry-image img,
.woocommerce ul.products li.product .woo-entry-image-swap img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .woocommerce ul.products li.product:not(.product-category) .product-inner li.image-wrap {
        min-height: 140px;
    }

    .woocommerce ul.products li.product .woo-entry-image,
    .woocommerce ul.products li.product .woo-entry-image-swap,
    .woocommerce ul.products li.product .woo-entry-image-main,
    .woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
    .woocommerce ul.products li.product .woo-entry-image img,
    .woocommerce ul.products li.product .woo-entry-image-swap img {
        max-width: 150px;
    }
}

/* Bouton produit : ne change pas de couleur après clic */
.woocommerce ul.products li.product:not(.product-category) .image-wrap .button,
.woocommerce ul.products li.product:not(.product-category) .image-wrap .button:hover,
.woocommerce ul.products li.product:not(.product-category) .image-wrap .button:focus,
.woocommerce ul.products li.product:not(.product-category) .image-wrap .button:active,
.woocommerce ul.products li.product:not(.product-category) .image-wrap .button.added {
    background-color: #5A00C9 !important;
    color: #fff !important;
}

/* Quick view OceanWP plus large et propre */
#owp-qv-wrap .owp-qv-content-inner {
    width: calc(100vw - 40px) !important;
    max-width: 980px !important;
}

#owp-qv-wrap .owp-qv-content-wrap {
    display: flex;
    align-items: stretch;
}

#owp-qv-wrap .owp-qv-image,
#owp-qv-wrap .summary {
    width: 50% !important;
    float: none !important;
}

#owp-qv-wrap .owp-qv-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 850px) {
    #owp-qv-wrap .owp-qv-content-wrap {
        display: block;
    }

    #owp-qv-wrap .owp-qv-image,
    #owp-qv-wrap .summary {
        width: 100% !important;
    }
}

/* Panier coulissant : afficher produits et miniatures un peu plus grandes */
.elementor-menu-cart__products,
.elementor-menu-cart__product,
.owp-cart-sidebar .woocommerce-mini-cart,
#owp-cart-sidebar .woocommerce-mini-cart,
.oceanwp-off-canvas-sidebar .woocommerce-mini-cart {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.elementor-menu-cart__product-image img,
.owp-cart-sidebar .woocommerce-mini-cart img,
.owp-cart-sidebar .widget_shopping_cart_content img,
#owp-cart-sidebar .woocommerce-mini-cart img,
#owp-cart-sidebar .widget_shopping_cart_content img,
.oceanwp-off-canvas-sidebar .woocommerce-mini-cart img,
.oceanwp-off-canvas-sidebar .widget_shopping_cart_content img {
    width: 82px !important;
    max-width: 82px !important;
    height: 82px !important;
    max-height: 82px !important;
    object-fit: contain !important;
}

/* Cookie banner */
.cmplz-cookiebanner {
    position: fixed !important;
    right: 16px !important;
    bottom: 16px !important;
    left: auto !important;
    max-height: calc(100vh - 32px);
    overflow: auto;
    contain: layout paint;
}

/* Images header spécifiques */
.elementor-16099 .elementor-element.elementor-element-6967959 {
    z-index: 9999;
}

.elementor-16099 .elementor-element.elementor-element-6967959 > .elementor-widget-container {
    margin: 0;
    padding: 0 0 0 15px;
}

.elementor-16099 .elementor-element.elementor-element-6967959 img.wp-image-20568 {
    display: inline-block;
    width: 42%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 601 / 391;
}

.elementor-16099 .elementor-element.elementor-element-94edfa5 {
    text-align: end;
}

.elementor-16099 .elementor-element.elementor-element-94edfa5 > .elementor-widget-container {
    padding: 0 24px 0 0;
}

.elementor-16099 .elementor-element.elementor-element-94edfa5 img.wp-image-16109 {
    display: inline-block;
    width: 40%;
    max-width: 240px;
    height: auto;
    aspect-ratio: 4 / 3;
}

@media (max-width: 767px) {
    .elementor-16099 .elementor-element.elementor-element-6967959 img.wp-image-20568 {
        width: 84%;
        max-width: 220px;
    }

    .elementor-16099 .elementor-element.elementor-element-94edfa5 > .elementor-widget-container {
        padding: 0;
    }

    .elementor-16099 .elementor-element.elementor-element-94edfa5 img.wp-image-16109 {
        width: 46%;
        max-width: 140px;
    }
}

/* Fallback header local */
.toysp3-local-header-fallback {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 72px;
    padding: 8px 20px;
    background: #5a00c9;
    position: relative;
    z-index: 100;
}

.toysp3-local-header-logo {
    flex: 0 0 auto;
}

.toysp3-local-header-logo img {
    display: block;
    max-width: 180px;
    height: auto;
}

.toysp3-local-header-nav {
    flex: 1 1 auto;
}

.toysp3-local-main-menu,
.toysp3-local-main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toysp3-local-main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.toysp3-local-main-menu li {
    position: relative;
}

.toysp3-local-main-menu a {
    display: block;
    padding: 14px 11px;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.toysp3-local-main-menu a:hover {
    color: #5bdb1f;
}

.toysp3-local-main-menu ul {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 210px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
    z-index: 9999;
}

.toysp3-local-main-menu li:hover > ul,
.toysp3-local-main-menu li:focus-within > ul {
    display: block;
}

.toysp3-local-main-menu ul a {
    color: #333;
    padding: 10px 14px;
    text-transform: none;
    line-height: 1.25;
}

.toysp3-local-main-menu ul a:hover {
    color: #fff;
    background: #5a00c9;
}

.toysp3-local-main-menu ul ul {
    left: 100%;
    top: 0;
}

@media (max-width: 1080px) {
    .toysp3-local-header-fallback {
        display: none;
    }
}

/* Anciens styles conservés */
.product_meta {
    border-style: none !important;
}

.woocommerce div.product form.cart {
    border-style: none !important;
}

.oceanwp-sticky-header-holder {
    position: relative;
    height: 100% !important;
}

.nav-content,
.sidr-class-nav-content {
    display: none;
}

.sub-menu li {
    padding: 5px;
}

#tab-title-additional_information > a,
#tab-description h2 {
    display: none;
}

a.menu-link.active {
    color: #5bdb1f !important;
}

.ricerca {
    margin-bottom: 5px;
    padding-left: 15px;
}

#searchform > input {
    border-radius: 50px;
}

#mobile-menu-search > form > label > input[type=search]:nth-child(1) {
    background-color: #1FDB9F;
    color: #fff !important;
}

#shipping_method > li:nth-child(2) > label > span.bw-select-parcel,
#shipping_method > li:nth-child(1) > label > span.bw-select-parcel {
    background-color: #00ff00 !important;
    border: none;
    color: #000;
    padding: 1px 1px;
    text-align: center;
    text-decoration: none;
    display: block;
    margin: 5%;
    border-radius: 16px !important;
}

#bw-boxtal-logo > a > img,
#bw-map-canvas > div.mapboxgl-control-container > div.mapboxgl-ctrl-bottom-right > div {
    display: none;
}

#shipping_method > li:nth-child(1) > label > span.bw-parcel-client > span {
    color: #5A00C9 !important;
}

#content > article > div > div > form > table > thead > tr,
.woocommerce table.shop_table thead {
    background-color: #5A00C9;
    color: #fff !important;
}

.woocommerce table.shop_table thead th,
#content > article > div > div > form > table > thead > tr > th.product-name,
#content > article > div > div > form > table > thead > tr > th.product-price,
#content > article > div > div > form > table > thead > tr > th.product-quantity,
#content > article > div > div > form > table > thead > tr > th.product-subtotal {
    color: #fff !important;
}

#content > article > div > div > div.cart-collaterals > div > h2 {
    background-color: #5A00C9;
    color: #fff;
}

#top-bar-wrap,
#top-bar {
    max-width: 100% !important;
}

.opl-link {
    font-size: 16px;
    margin-left: 15px;
    color: #1fdb9f !important;
    text-align: center;
    padding: 5px;
}

.wpgb-button {
    background-color: #fff;
    border-radius: 0;
    border-style: none !important;
}

.wpgb-facet-12 {
    padding: 10%;
    width: auto;
}

@media only screen and (max-width: 480px) {
    .woocommerce ul.products li.product:not(.product-category) .woo-entry-buttons {
        display: none !important;
    }

    .woocommerce ul.products li.product:not(.product-category) .image-wrap .button {
        font-size: 7px !important;
        color: #fff;
    }

    a.added_to_cart.wc-forward {
        display: none;
    }
}

.pswp__caption__center {
    display: none;
}

.tinv-wishlist table td,
.tinv-wishlist table th {
    color: #fff;
}

#payment > div > div > div.woocommerce-terms-and-conditions {
    padding: 10px;
    border: 1px double #000;
}

.notice,
div.error,
div.updated {
    display: none !important;
}

#mailpoet_form_1 > form > div:nth-child(8) > label {
    color: #333 !important;
}

#mailpoet_form_1 > form > div:nth-child(8) > label a {
    color: #5A00C9 !important;
}

#mailpoet_form_3 .mailpoet_checkbox_label,
#mailpoet_form_3 .mailpoet_checkbox_label a {
    color: #fff !important;
}

.cc-revoke.cc-bottom {
    border-radius: 50px;
}

.owp-floating-bar button.button:hover {
    color: #000;
}

.mailpoet_validate_success {
    color: #fff;
}

a.added_to_cart.wc-forward {
    display: block;
    margin-left: 10px;
}

@media screen and (max-width: 1024px) {
    .owp-floating-bar button.button {
        height: 36px;
        padding: 0 30px;
        font-size: 12px !important;
    }

    i.eicon-chevron-left,
    i.eicon-chevron-right {
        display: none !important;
    }
}

.swiper-pagination-bullets {
    text-align: left;
    padding-left: 5px !important;
}

.swiper-pagination-bullet-active {
    left: 5px !important;
}

input,
textarea {
    border-color: #000 !important;
}

.btnboutique {
    background-color: #00ff00;
    border: none;
    color: #000;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    border-radius: 16px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
button#place_order.button,
.buttons input.next,
.buttons input.prev {
    background-color: #00FF00;
    color: #fff;
    font-weight: 900;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
button#place_order.button:hover,
.buttons input.next:hover,
.buttons input.prev:hover {
    background-color: #000 !important;
    color: #fff;
}

.virement-picture img,
.cb-picture img {
    max-width: 10% !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    border: solid 1px;
    margin-bottom: 15px;
}

.elementor-menu-cart__toggle .elementor-button {
    border: none !important;
}

.wpgb-button-label {
    border: none !important;
}

.burnsTest {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.burnsTest:hover img {
    transition-duration: 0.8s;
}

a.showlogin {
    font-size: 18px !important;
}

.wpgb-range-facet .wpgb-range-clear {
    color: #fff !important;
    background-color: #00FF00 !important;
    font-weight: 600 !important;
    border: #00FF00 !important;
}

.wishlist_products_counter_text {
    display: none !important;
}

a:focus {
    outline: 0 !important;
}

.wpgb-facet-19 {
    font-family: Roboto, Arial, sans-serif;
}

@media only screen and (max-width: 767px) {
    .woocommerce ul.products li.product li.title h2,
    .woocommerce ul.products li.product li.title a {
        font-size: 95% !important;
    }

    .woocommerce .has-product-nav span.onsale {
        margin: 0 !important;
        font-size: 9px !important;
        top: 0 !important;
        right: 0 !important;
        width: 60px !important;
        margin-left: 35% !important;
    }

    body .elementor-element.elementor-wc-products ul.products li.product .onsale {
        padding: 5px !important;
    }
}

.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-tabs {
    display: none;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
}

/* Miniature produit dans le récapitulatif checkout */
.woocommerce-checkout-review-order-table .toysp3-checkout-product-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-checkout-review-order-table .toysp3-checkout-product-thumb {
    width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
    flex: 0 0 38px;
}

.woocommerce-checkout-review-order-table .toysp3-checkout-product-name {
    display: inline-block;
    line-height: 1.25;
}

@media (max-width: 767px) {
    .woocommerce-checkout-review-order-table .toysp3-checkout-product-thumb {
        width: 34px !important;
        max-width: 34px !important;
        height: 34px !important;
        max-height: 34px !important;
        flex-basis: 34px;
    }
}