/*!
Theme Name: Codaza Child
Theme URI:
Author: Codaza
Author URI: https://codaza.fr/
Description: Codaza child theme.
Template: kava
Version: 1.0.1
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kava-child
*/

/* CSS pour que la pleine largeur des pages soient prise en compte */
html,body{overflow-x:hidden;}

#jet-theme-core-document .site-content__wrap.container{max-width: inherit;padding:0;}
 
/* =========
   Sélecteur de langue (WPML)
========= */
.wpml-elementor-ls .wpml-ls-select-wrapper {
  position: relative;
  display: inline-block;
}

.wpml-elementor-ls .wpml-ls-select,
.wcml-dropdown{
    width: auto !important;
    border: 0 !important;
    font-weight: bold !important;
    color: #7161db;
    cursor: pointer !important;
}

.wcml-dropdown li{
    border: 0 !important;
}

.wcml-dropdown li:hover, .wcml-dropdown li:focus {
    background-color: transparent !important;
}

/************************** EDITION DU STYLE WOOCOMMERCE  ***************************/
 
.woocommerce-ResetPassword{
    width: 100% !important;  
} 
 
/* Place la navigation à gauche et le contenu à droite */
body.woocommerce-account .woocommerce,
body.woocommerce-checkout .wp-block-woocommerce-checkout{
    display: flex !important; 
    gap: 40px !important;            /* marge horizontale */ 
    max-width: 1200px !important;    /* marge latérale globale */
    margin: 0 auto !important;       /* centre le bloc */
    margin-bottom: 20px !important;
} 

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart{
    display: flex !important;       /* marge horizontale */ 
    max-width: 1200px !important;    /* marge latérale globale */
    margin: 0 auto !important;       /* centre le bloc */
}
 
body.woocommerce-cart .yay-currency-single-page-switcher,
body.woocommerce-checkout .yay-currency-single-page-switcher{
    display: flex !important;       /* marge horizontale */ 
    justify-content: center !important; 
    max-width: 1200px !important;    /* marge latérale globale */
    margin: 0 auto !important;       /* centre le bloc */
}
 
body.single-product  .product{        /* marge horizontale */ 
    max-width: 1200px !important;    /* marge latérale globale */
    margin: 0 auto !important;       /* centre le bloc */
}

body.single-product .product_meta{
    display: none !important; 
}

body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked{
    display: flex !important;
} 

.wc-block-checkout__payment-method .wc-block-components-radio-control__option, .wc-block-checkout__payment-method .wc-block-components-radio-control__option:first-child, .wc-block-checkout__payment-method .wc-block-components-radio-control__option:last-child{
    width: 100% !important;
} 

.wc-block-checkout__payment-method .wc-block-components-radio-control__label>span{
    margin-left: 50px !important;
}
 
@media  screen and (max-width:767px) {
    body.woocommerce-checkout .wp-block-woocommerce-checkout{
        gap: 0px !important;            /* marge horizontale */ 
    } 

    body.single-product  .product,
    body.woocommerce-checkout .wp-block-woocommerce-checkout,
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart, 
    .woocommerce-account article{        /* marge horizontale */ 
        padding:0 20px;    /* centre le bloc */
    } 

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart .wc-block-cart-items__row{
        display: flex;
        flex-direction: column;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart .wc-block-cart-items__row .wc-block-cart-item__wrap{
        display: flex;
    }


    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart .wc-block-cart-items__row .wc-block-cart-item__total-price-and-sale-badge-wrapper{
        align-items: center;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart .wc-block-cart-items__row .wc-block-cart-item__wrap{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart .wc-block-cart-items__row .wc-block-cart-item__wrap *{
        align-self: center;
    }
} 

.woocommerce-MyAccount-navigation {
    min-width: 220px !important;     /* largeur menu */ 
}

/* Le contenu prend tout l'espace restant */
.woocommerce-MyAccount-content {
    flex: 1 !important;
}


.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li a:hover, .woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li.is-active a {
    color: #ffffff;
    background-color: #7161DB !important;
    border-color: #7161DB !important;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content mark{
    color: #7161DB !important;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.woocommerce-orders-table tr td.woocommerce-orders-table__cell-order-actions .button{
    color: white !important;
}
 

.elementor-widget-wp-widget-woocommerce_product_search button, .widget_product_search button, .added_to_cart.wc-forward, .woocommerce .button, .elementor-widget-wp-widget-woocommerce_widget_cart .button, .elementor-widget-wp-widget-woocommerce_product_search .button{
    border: 1px solid #7161DB !important;
    background-color: #7161DB !important;
}

.elementor-widget-wp-widget-woocommerce_product_search button:hover, .widget_product_search button:hover, .added_to_cart.wc-forward:hover, .button:hover {
    color: #7161DB !important;
    background-color: white !important;
}

.woocommerce-MyAccount-downloads-file{
    color: white !important;
}

.shop_table{
    width: 100% !important;
}

.password-input{
    display: flex !important;
}

.password-input .show-password-input{
    margin-left: 10px !important;
    padding: 12px !important;
}

.password-input .show-password-input.display-password{
    background-color: white !important;
    color: #7161DB !important;
}

.password-input .show-password-input::before {
    font-family: "dashicons";
    content: "\f177";          /* icône œil (visibility) */
    font-size: 18px;           /* ajustez selon votre design */
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;           /* le curseur main renforce l’interactivité */
}

/* Icônes FontAwesome dans Mon compte -------------------------- */
.woocommerce-MyAccount-navigation-link--purchase-certificates a::before {
font-family: "dashicons" !important;
  content: "\f481" !important;   /* icône médaille */            /* fa-file-invoice */
  font-weight: 900;
  margin-right: 6px;
}

.woocommerce-MyAccount-navigation-link--payment-methods a::before {
  font-family: 'Font Awesome 6 Free';
  content: '\f09d';              /* fa-credit-card */
  font-weight: 900;
  margin-right: 6px;
}



.widget_shopping_cart .woocommerce-mini-cart__buttons .wc-forward:not(.checkout){
    color: white !important;
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .wc-forward:not(.checkout):hover{
    color: #7161DB !important;
}
/* Empile navigation + contenu en colonne sur mobile */
@media (max-width: 768px) {
    body.woocommerce-account .woocommerce {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content {
        width: 100% !important;
    }
}



/* === Products Loop (1 item par ligne) === */
/* cible ton widget via .byop-loop (déjà présent sur ton HTML) */
.byop-loop ul.products {
  display: flex !important;          /* remplace grid/inline-block */
  flex-direction: column;            /* empile les items */
  gap: 24px;                         /* espace vertical entre items */
  margin: 0;
  padding: 0;
  grid-template-columns: none !important; /* annule éventuelle grille */
}

/* normalise chaque item */
.byop-loop ul.products > li.product,
.byop-loop ul.products > li.jet-woo-builder-product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: both !important;
  list-style: none;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  flex-wrap: nowrap !important;
}

/* optionnel: look "carte" propre (borders, padding) */
.byop-loop ul.products > li.product .elementor.elementor-306,
.byop-loop ul.products > li.jet-woo-builder-product .elementor.elementor-306 {
  background: #fff;
}

/* empêche les colonnes utilitaires de reprendre la main */
.byop-loop ul.products.columns-xs-1,
.byop-loop ul.products.columns-sm-2,
.byop-loop ul.products.columns-md-2,
.byop-loop ul.products.columns-lg-4,
.byop-loop ul.products.columns-xl-4 {
  column-count: initial !important;
}


/* Rendre tout le bloc Item cliquable */
.jet-woo-builder-product {
  position: relative;
}

.lien-product {
  position: absolute !important;
  inset: 0;             /* top:0 right:0 bottom:0 left:0 */
  z-index: 5;
  text-indent: -9999px; /* masque le texte */
  overflow: hidden;
}

/* PAGE CONTACT */
.wp-block-group.is-layout-flex > :is(*, div){
    width: 100%;  
}

/* FONT PERSO */
.font-minion,
.font-minion *{ 
    font-family: 'Minion Pro', Georgia, serif !important;
}

.woocommerce-button{
    padding: 5px 15px !important;
    margin-right: 10px !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    color: white !important;
}

.woocommerce-MyAccount-downloads-file{
    padding: 5px 15px !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
}
  