
/* ==========================================================
STAR MUGGER MARKET
CSS GLOBAL NETTOYÉ
========================================================== */


/* ==========================================================
1. FORMULAIRE VENDEUR DOKAN
========================================================== */

.dokan-dashboard .dokan-form-group {
   margin-bottom: 12px !important;
}

.dokan-dashboard textarea,
.dokan-dashboard [contenteditable="true"] {
   min-height: 110px !important;
}


/* ==========================================================
2. CATÉGORIES — LISIBILITÉ
========================================================== */

.dokan-dashboard .select2-selection,
.dokan-dashboard .select2-selection__rendered,
.dokan-dashboard .select2-selection__placeholder {
   background: #ffffff !important;
   color: #222222 !important;
}

.dokan-dashboard .select2-dropdown {
   background: #ffffff !important;
   z-index: 999999 !important;
}

.dokan-dashboard .select2-results,
.dokan-dashboard .select2-results__options {
   max-height: 380px !important;
   overflow-y: auto !important;
}

.dokan-dashboard .select2-results__option,
.dokan-dashboard .select2-results__option * {
   background: #ffffff !important;
   color: #222222 !important;
}


/* ==========================================================
3. MASQUER PRODUCT TYPE
========================================================== */

.dokan-dashboard #product_type,
.dokan-dashboard .dokan-product-type-container,
.dokan-dashboard .product-type-container {
   display: none !important;
}


/* ==========================================================
4. BOUTONS DOKAN — TOUJOURS VISIBLES
========================================================== */

.dokan-dashboard button,
.dokan-dashboard .dokan-btn,
.dokan-dashboard .button,
.dokan-dashboard a.dokan-btn,
.dokan-dashboard input[type="submit"],
.dokan-dashboard input[type="button"] {
   opacity: 1 !important;
   visibility: visible !important;
}


/* ==========================================================
5. UPLOAD PHOTO PRINCIPALE
========================================================== */

.dokan-dashboard .dokan-feat-image-upload .dokan-btn,
.dokan-dashboard .dokan-feat-image-upload a,
.dokan-dashboard .dokan-feat-image-upload button,
.dokan-dashboard .dokan-feat-image-btn {
   opacity: 1 !important;
   visibility: visible !important;
   font-size: 14px !important;
   font-weight: 600 !important;
   text-indent: 0 !important;
   min-height: 42px !important;
   padding: 0 20px !important;
   display: inline-flex !important;
   align-items: center !important;
   justify-content: center !important;
   border-radius: 6px !important;
}


/* ==========================================================
6. LISTE DES PRODUITS
========================================================== */

.dokan-dashboard .dokan-product-listing-area table,
.dokan-dashboard .dokan-product-listing-area tbody,
.dokan-dashboard .dokan-product-listing-area tr,
.dokan-dashboard .dokan-product-listing-area td {
   background: #ffffff !important;
}

.dokan-dashboard .dokan-product-listing-area th,
.dokan-dashboard .dokan-product-listing-area td {
   color: #222222 !important;
}


/* ==========================================================
7. CHAMPS DOKAN — VISIBILITÉ
========================================================== */

.dokan-dashboard input,
.dokan-dashboard textarea,
.dokan-dashboard select {
   opacity: 1 !important;
   visibility: visible !important;
}


/* ==========================================================
8. MASQUER COMPLÉTION PROFIL VENDEUR
========================================================== */

.dokan-profile-completeness {
   display: none !important;
}


/* ==========================================================
9. RECHERCHE BOUTIQUE
========================================================== */

.smm-shop-search {
   display: flex !important;
   align-items: center !important;
   gap: 10px !important;
   width: fit-content !important;
   margin: 10px 40px 25px auto !important;
}

.smm-shop-search-input {
   width: 300px !important;
   height: 50px !important;
   box-sizing: border-box !important;
   vertical-align: middle !important;
}

.smm-shop-search-button {
   height: 50px !important;
   margin: 0 !important;
   padding: 0 22px !important;
   border: none !important;
   border-radius: 10px !important;
   background: #ffffff !important;
   color: #222222 !important;
   font-size: 16px !important;
   line-height: 1 !important;
   font-weight: 600 !important;
   display: inline-flex !important;
   align-items: center !important;
   justify-content: center !important;
}


/* ==========================================================
10. LOGO GLOBAL
========================================================== */

.wp-block-site-logo img,
.custom-logo {
   width: 200px !important;
   max-width: 200px !important;
   height: auto !important;
}


/* ==========================================================
11. PAGES VENDEUR DOKAN
========================================================== */

/* Masquer navigation générale sur dashboard vendeur */
body.dokan-dashboard header nav,
body.dokan-dashboard header .wp-block-navigation,
body.dokan-dashboard header .main-navigation,
body.dokan-dashboard header .site-navigation {
   display: none !important;
}

/* Masquer panier sur dashboard vendeur */
body.dokan-dashboard .wc-block-mini-cart,
body.dokan-dashboard .wc-block-mini-cart__button,
body.dokan-dashboard .wp-block-woocommerce-mini-cart,
body.dokan-dashboard .site-header-cart,
body.dokan-dashboard .cart-contents {
   display: none !important;
}


/* ==========================================================
12. BOUTIQUE VENDEUR
========================================================== */

.dokan-single-store .profile-info-img {
   display: none !important;
}

.dokan-single-store .profile-info-box,
.dokan-single-store .profile-frame {
   height: auto !important;
   min-height: 0 !important;
}

.dokan-single-store .dokan-share-btn {
   display: none !important;
}


/* Masquer Default sorting */
.dokan-single-store form.woocommerce-ordering,
.dokan-single-store .woocommerce-ordering,
.dokan-single-store .dokan-store-products-ordeby,
.dokan-single-store .orderby {
   display: none !important;
}


/* Enlever fonds/cadres inutiles */
.dokan-single-store .profile-info-box,
.dokan-single-store .profile-layout-layout2,
.dokan-single-store .profile-frame,
.dokan-single-store .profile-info-summary-wrapper,
.dokan-single-store .profile-info-head,
.dokan-single-store .dokan-profile-frame-wrapper {
   background: transparent !important;
   box-shadow: none !important;
   border: none !important;
}


/* ==========================================================
13. PROFIL VENDEUR
========================================================== */

.dokan-single-store .profile-info-summary-wrapper.dokan-clearfix {
   background: transparent !important;
   margin-top: 0 !important;
   padding-top: 10px !important;
}

.dokan-single-store .profile-img.profile-img-circle {
   position: relative !important;
   top: 38px !important;
   margin-bottom: 20px !important;
   z-index: 20 !important;
   background-size: 190px 190px !important;
   background-repeat: no-repeat !important;
   background-position: center center !important;
   overflow: visible !important;
}

.dokan-single-store .profile-img.profile-img-circle img {
   width: 190px !important;
   height: 190px !important;
   max-width: none !important;
   object-fit: contain !important;
}

.dokan-single-store .profile-frame,
.dokan-single-store .dokan-profile-frame-wrapper,
.dokan-single-store .profile-info-box {
   overflow: visible !important;
}

.dokan-single-store .profile-info-summary-wrapper,
.dokan-single-store .profile-info-head {
   text-align: center !important;
}

.dokan-single-store .profile-info-summery {
   margin-top: -20px !important;
}

.dokan-single-store h1.store-name {
   position: relative !important;
   top: 35px !important;
}

.dokan-single-store .profile-info-summery-wrapper.dokan-clearfix,
.dokan-single-store .profile-frame {
   border: 0 !important;
   outline: 0 !important;
   box-shadow: none !important;
}

.dokan-single-store .profile-info-summery-wrapper {
   position: relative !important;
   top: 70px !important;
   margin-bottom: 70px !important;
}


/* Supprimer lignes Dokan inutiles */
.dokan-single-store hr {
   border: 0 !important;
   height: 0 !important;
   margin: 0 !important;
}

.dokan-single-store .dokan-modules-button,
.dokan-single-store .dokan-list-inline {
   border-top: 0 !important;
   border-bottom: 0 !important;
}


/* ==========================================================
14. PAGE MON COMPTE
========================================================== */

.woocommerce-account .site-header .main-navigation,
.woocommerce-account header .main-navigation,
.woocommerce-account .primary-navigation,
body.woocommerce-account .wp-block-navigation {
   display: none !important;
}

body.woocommerce-account .site-header-cart,
body.woocommerce-account .wc-block-mini-cart,
body.woocommerce-account .wp-block-woocommerce-mini-cart,
body.woocommerce-account .cart-contents {
   display: none !important;
}


/* ==========================================================
15. MENU VENDEUR DOKAN
========================================================== */

.dokan-dashboard-menu li:has(a[href*="withdraw"]),
.dokan-dashboard-menu li:has(a[href*="purchases"]),
.dokan-dashboard-menu li:has(a[href*="dashboard"]),
.dokan-dashboard-menu li:has(a[href*="reviews"]),
.dokan-dashboard-menu li:has(a[href*="shop"]),
.dokan-dashboard-menu li:has(a[href*="orders"]) {
   display: none !important;
}


/* ==========================================================
16. BOUTON RETOUR PERSONNALISÉ
========================================================== */

.smm-top-back:link,
.smm-top-back:visited,
.smm-top-back:hover,
.smm-top-back:focus,
.smm-top-back * {
   color: #000000 !important;
   opacity: 1 !important;
   visibility: visible !important;
   -webkit-text-fill-color: #000000 !important;
}


/* ==========================================================
17. ACCUEIL
========================================================== */

.home .wp-block-buttons {
   transform: translateY(170px) !important;
}

.home .wp-block-buttons .wp-block-button__link {
   border: 2px solid #000000 !important;
}


/* ==========================================================
18. NAVIGATION MOBILE
========================================================== */

@media (max-width: 782px) {

   .wp-block-navigation__responsive-container.is-menu-open {
       background: #00754a !important;
   }

   .wp-block-navigation__responsive-container.is-menu-open a,
   .wp-block-navigation__responsive-container.is-menu-open
   .wp-block-navigation-item__label {
       color: #ffffff !important;
   }

   header .wp-block-navigation-item,
   header .wp-block-navigation-item a,
   header .wp-block-navigation-item__label,
   .wp-block-navigation .wp-block-navigation-item,
   .wp-block-navigation .wp-block-navigation-item a {
       white-space: nowrap !important;
       flex-shrink: 0 !important;
   }

   .wp-block-navigation__container,
   .wp-block-navigation .wp-block-navigation__container {
       flex-wrap: nowrap !important;
       align-items: center !important;
       gap: 12px !important;
   }
}

/* ==========================================================
19. MASQUER VISIBILITY DANS LE FORMULAIRE PRODUIT
========================================================== */

.dokan-dashboard .dokan-product-edit-form .dokan-form-group:first-child {
   display: none !important;
}