/*
  Theme Name: Flora Feminae theme
  Theme URI: https://anthor.me
  Version: 1.0.0
  Template: divi5
  Author: Anthony Raynaud
  Author URI: https://anthor.me
  Description: Theme du site Flora Feminae
  Text Domain: flora-feminae-theme
  License: GNU General Public License v2 or later
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/**********************
 * Fixed menu effects *
 **********************/
/*header.et-l--header {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    width: 100%;*/
/*    z-index: 9999;*/
/*    -webkit-transform: translateY(0);*/
/*    -moz-transform: translateY(0);*/
/*    -ms-transform: translateY(0);*/
/*    -o-transform: translateY(0);*/
/*    transform: translateY(0);*/
/*    -webkit-transition: -webkit-transform 1s ease;*/
/*    -moz-transition: -moz-transform 1s ease;*/
/*    -ms-transition: -ms-transform 1s ease;*/
/*    -o-transition: -o-transform 1s ease;*/
/*    transition: transform 1s ease;*/
/*}*/
/*header.et-l--header.hide {*/
/*    -webkit-transform: translateY(-100%);*/
/*    -moz-transform: translateY(-100%);*/
/*    -ms-transform: translateY(-100%);*/
/*    -o-transform: translateY(-100%);*/
/*    transform: translateY(-100%);*/
/*    -webkit-transition: -webkit-transform 1s ease;*/
/*    -moz-transition: -moz-transform 1s ease;*/
/*    -ms-transition: -ms-transform 1s ease;*/
/*    -o-transition: -o-transform 1s ease;*/
/*    transition: transform 1s ease;*/
/*}*/
/*header.et-l--header.shadow {*/
/*    -webkit-box-shadow: 0 12px 18px -6px rgba(0,0,0,0.3);*/
/*    -moz-box-shadow: 0 12px 18px -6px rgba(0,0,0,0.3);*/
/*    box-shadow: 0 12px 18px -6px rgba(0,0,0,0.3);*/
/*}*/

/**********
 * Tweaks *
 **********/
/* Change Monarch Twitter icon to X icon */
/*.et_monarch .et_social_icon_twitter::before,*/
/*.et_monarch .et_social_icon_twitter::after {*/
/*    font-family: ETmodules;*/
/*    content: "\e094";*/
/*}*/


/*************
 * Main Menu *
 *************/
/* Changer le breakpoint du menu Divi à 767px */
/*@media (max-width: 980px) and (min-width: 768px) {*/
/*    #header-main-menu>.et_pb_menu_inner_container>.et_pb_menu__wrap>.et_pb_menu__menu {*/
/*        display: flex !important;*/
/*    }*/
/*    */
/*    #header-main-menu>.et_pb_menu_inner_container>.et_mobile_nav_menu,*/
/*    #header-main-menu>.et_pb_menu_inner_container .mobile_menu_bar {*/
/*        display: none !important;*/
/*    }*/
/*    */
/*    !* Remove logo for mobile in menu *!*/
/*    #header-main-menu>.et_pb_menu_inner_container>.et_pb_menu__logo-wrap {*/
/*        display: none !important;*/
/*    }*/
/*    */
/*    #header-main-menu>.et_pb_menu_inner_container #dipi-mobile-menu-social-icons-id,*/
/*    #header-main-menu>.et_pb_menu_inner_container #dipi-primary-menu-social-icons-id {*/
/*        display: none!important;*/
/*    }*/
/*}*/

/*!* Forcer le menu mobile uniquement en dessous de 768px *!*/
/*@media (max-width: 767px) {*/
/*    #header-main-menu>.et_pb_menu_inner_container>.et_pb_menu__wrap>.et_pb_menu__menu {*/
/*        display: none !important;*/
/*    }*/
/*    */
/*    #header-main-menu>.et_pb_menu_inner_container>.et_mobile_nav_menu {*/
/*        display: block !important;*/
/*    }*/
/*}*/

/*!* menu en flex *!*/
/*.et_pb_menu_inner_container {*/
/*    display: flex!important;*/
/*}*/
/*.et_pb_menu__logo-wrap {*/
/*    padding: 0.75rem !important;*/
/*}*/
/*!* Add gap between menu items *!*/
/*ul#menu-menu-principal,*/
/*.et_pb_menu__wrap {*/
/*    gap: 1rem;*/
/*}*/

/*@media (max-width: 767px) {*/
/*    .et_pb_menu__wrap {*/
/*        justify-content: end!important;*/
/*    }*/
/*}*/

/*!* Remove extra space in menu logo *!*/
/*.et_pb_menu__logo-wrap {*/
/*    margin-bottom: 0!important;*/
/*}*/

/*!* Change order of cart modules in checkout *!*/
/*.et_pb_menu__cart-button{*/
/*    order:3;*/
/*}*/

/*!***/
/* * Only for tablet and mobile*/
/* *!*/
/*@media only screen and (max-width: 767px) {*/
/*    !* Add gap between menu items *!*/
/*    .et_pb_menu__wrap {*/
/*        gap:1rem;*/
/*    }*/
/*}*/


/*************
 * Footer Menu *
 *************/
/*#menu-menu-footer {*/
/*    flex-direction: column!important;*/
/*}*/
/*!* Remove hamburger menu *!*/
/*#footer-main-menu .et_pb_menu__menu {*/
/*    display: flex !important;*/
/*}*/
/*#footer-main-menu .et_mobile_nav_menu {*/
/*    display: none !important;*/
/*}*/


/*****************
 * ? *
 *****************/
/* Define margins for image in posts */
/*.et_pb_post_content figure img{*/
/*    padding: 0!important;*/
/*    margin: 0.75rem!important;*/
/*}*/


/**********
 * Search *
 **********/
/* Fix search form width */
.et_pb_menu__search-container {
    justify-content: center!important;
}
.et_pb_menu__search {
    width: 80vw!important;
    max-width: 980px!important;
    margin: 0 auto!important;
    padding: 16px;
    height: 50px;
    border-radius: 0.75rem;
    background-color: #cec2ad!important;
}
.merchant-ajax-search-wrapper{
    background-color:#fffdf2!important;
    border-radius: 1rem!important;
    width: 100%!important;
    min-width: 300px!important;
    margin: 10px auto!important;
    padding:1rem!important;
    left: auto!important;
    right: auto!important;
}
.et_pb_menu .et_pb_menu__search-input {
    color: #424242 !important;
}
.et_pb_menu .et_pb_menu__search-input::placeholder {
    color: #fffdf2!important;
}
.merchant-ajax-search-item-price{
    display: none;
}
.et_pb_menu__close-search-button{
    display: none!important;
}




/* Fix white background bug */
/*main-content,*/
/*body{*/
/*    background-color: #fffdf2!important;*/
/*}*/

/************
 * Merchant *
 ************/
/* Remove extra space item divider in Merchant mini cart */
.merchant-side-cart-item:after {
    content:none!important;
}
/* Add border bottom to cart items */
.merchant-side-cart-item {
    border-bottom: #515151 solid 1px!important;
}
/*  Mini cart cart button style */
.merchant-side-cart-widget .woocommerce-mini-cart__buttons a.button:not(.checkout) {
    border-radius: 0.75rem!important;
    color: #fffdf2!important;
    background-color: #d9b755!important;
    margin-bottom: 0.75rem!important;
    padding: 0.75rem!important;
    transition: background-color 0.3s ease;
}
.merchant-side-cart-widget .woocommerce-mini-cart__buttons a.button:not(.checkout):hover {
    background-color: #e09900!important;
}

/* Merchant Checkout Multi-step */
/* Multi Step Checkout Tabs Content */
.woocommerce > .merchant-pro-multi-step-wrapper > .merchant-pro-multi-step-tabs-content > .woocommerce-info{
    border-radius: 0.75rem!important;
    background-color: #cec2ad!important;
    color: #fffdf2!important;
    padding: 1rem!important;
    margin-bottom: 1rem!important;
}
.woocommerce-billing-fields__field-wrapper{
    background-color: transparent!important;
}
span.woocommerce-input-wrapper>input{
    border-radius: 0.25rem!important;
    background-color: #cec2ad!important;
}

/* Change order of cart modules in checkout */
/* .et_pb_row .reverse-mobile{
  display: flex!important;
  flex-direction: column!important;
}
.reverse-mobile .et_pb_column:nth-child(1) {
  order: 2!important;
}
.reverse-mobile .et_pb_column:nth-child(2) {
  order: 1!important;
}*/


/**************
 * Divi Pixel *
 **************/

/* Post Navigation */
@media (max-width: 767px) {
    #dipi-post-navigation {
        margin-top: -6rem;
        z-index: 1;
    }
}
@media (min-width: 768px) and (max-width: 980px) {
    #dipi-post-navigation {
        margin-top: -4rem;
        z-index: 1;
    }
}
#dipi-post-navigation .dipi-post-row{
    border-top:none!important;
    padding: 0!important;
    margin: 0 auto!important;
}
@media (max-width: 767px) {
    #dipi-post-navigation .dipi-post-row{
        width: 100%;
        padding: 0 0.5rem!important;
    }
}











/* ========== Layout de base ========== */
/*.shop_table.shop_table_responsive.cart {*/
/*    width: 100% !important;*/
/*    border-collapse: collapse !important;*/
/*    table-layout: fixed !important; !* important : permet de contrôler les largeurs *!*/
/*    font-size: 15px !important;*/
/*}*/

/* ========== Largeurs des colonnes (fixes pour les colonnes "étroites") ========== */
.shop_table th.product-remove,
.shop_table td.product-remove {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    text-align: center !important;
}

.shop_table th.product-thumbnail,
.shop_table td.product-thumbnail {
    width: 72px !important;
    min-width: 56px !important;
    max-width: 96px !important;
    padding: 6px 8px !important;
}

.shop_table th.product-price,
.shop_table td.product-price {
    width: 110px !important;
    min-width: 80px !important;
    max-width: 140px !important;
    white-space: nowrap !important;
    text-align: right !important;
}

.shop_table th.product-quantity,
.shop_table td.product-quantity {
    width: 100px !important;
    min-width: 70px !important;
    max-width: 120px !important;
    text-align: center !important;
}

.shop_table th.product-subtotal,
.shop_table td.product-subtotal {
    width: 110px !important;
    min-width: 80px !important;
    max-width: 140px !important;
    text-align: right !important;
}

/* Laisser la colonne produit prendre le reste de l’espace */
.shop_table th.product-name,
.shop_table td.product-name {
    /*width: 1% !important; !* colonne flexible *!*/
    vertical-align: middle !important;
    padding-right: 0.75rem !important;
}

/* ========== Troncature et comportement du nom produit ========== */
.merchant-cart-item-name {
    display: block !important;
    overflow: hidden !important;
    /*white-space: nowrap !important;*/
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
    max-width: 100% !important;
}

.product-name a { display: inline-block !important; max-width: 100% !important; }

/* ========== Thumbnail ========== */
.product-thumbnail img,
.product-thumbnail picture {
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}

/* ========== Quantity (boutons +/- et input) ========== */
.quantity { display: flex !important; align-items: center !important; gap: 6px !important; justify-content: center !important; }
.quantity .input-text.qty { width: 56px !important; text-align: center !important; }

/* bouton remove : centrage */
.product-remove .remove { display:inline-block !important; line-height:1 !important; padding:0 6px !important; }

/* ========== Alignements généraux ========== */
.shop_table td, .shop_table th { vertical-align: middle !important; padding: 18px 10px !important; }

/* ========== Responsive : mobile compact / stacked ========== */
@media (max-width: 720px) {
    .shop_table { table-layout: auto !important; }
    .merchant-cart-item-name { white-space: normal !important; }
    
    .shop_table thead { display: none !important; }
    .shop_table tbody tr { display: block !important; margin-bottom: 14px !important; border-bottom: 1px solid rgba(0,0,0,0.06) !important; padding-bottom: 8px !important; }
    .shop_table tbody tr td { display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 6px 0 !important; }
    .shop_table tbody tr td.product-thumbnail { margin-right: 10px !important; }
    .shop_table tbody tr td.product-name { flex: 1 1 auto !important; order: 1 !important; padding-right: 12px !important; }
    .shop_table tbody tr td.product-price,
    .shop_table tbody tr td.product-quantity,
    .shop_table tbody tr td.product-subtotal { order: 2 !important; min-width: 0 !important; margin-left: 8px !important; white-space: nowrap !important; }
    .shop_table tbody tr td.product-remove { order: 3 !important; text-align: left !important; padding-top: 6px !important; }
}
