/* ================================================================
   MBOLO — Store Page v4.0 — Full Control
   On écrase TOUT le CSS WCFM natif
================================================================ */

/* ═══ 0. RESET COMPLET page store ═══════════════════════════ */
#wcfmmp-store,
#wcfmmp-store * { box-sizing: border-box; }

/* Annuler le layout flottant WCFM */
#wcfmmp-store .lft,
#wcfmmp-store .rgt  { float: none !important; }
#wcfmmp-store .spacer { display: none !important; }

/* Fond page */
#wcfmmp-store { background: #F3F4F6 !important; box-shadow: none !important; }
.wcfmmp-store-page-wrap { padding: 0 !important; max-width: 100% !important; }

/* ═══ 1. BANNIÈRE ════════════════════════════════════════════ */
.wcfm_banner_area { position: relative; overflow: hidden; }
.wcfm_banner_area_desktop { display: block; }
#wcfmmp-store .banner_img {
    background-size: cover !important;
    background-position: center !important;
    height: 260px !important;
    max-height: 260px !important;
}
#wcfmmp-store .banner_img img { display: none !important; }
#wcfmmp-store .banner_text  { display: none !important; }
#wcfmmp-store .banner_area  { margin: 0 !important; position: static !important; }

/* ═══ 2. HERO — Fond blanc sous bannière ════════════════════ */
#wcfm_store_header {
    background: #fff !important;
    min-height: auto !important;
    display: block !important;
    padding: 0 !important;
    border-bottom: 1px solid #E5E7EB !important;
}

/* Annuler tous les positionnements absolus WCFM */
#wcfmmp-store .header_wrapper,
#wcfmmp-store .header_area,
#wcfmmp-store .header_left,
#wcfmmp-store .header_right,
#wcfmmp-store .logo_area,
#wcfmmp-store .logo_area_after,
#wcfmmp-store .address,
#wcfmmp-store .bd_icon_area,
#wcfmmp-store .social_area {
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    min-height: auto !important;
    transform: none !important;
}

/* ── Notre hero interne ── */
.msv-hero-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 1024px) { .msv-hero-wrap { grid-template-columns: 1fr; } }
@media (max-width: 640px)  { .msv-hero-wrap { padding: 1rem; gap: 1rem; } }

/* Logo */
.msv-logo-block {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.msv-logo-img-wrap {
    width: 100px; height: 100px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #E5E7EB;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
    margin-top: -50px;       /* chevauchement bannière */
    flex-shrink: 0;
    position: relative; z-index: 5;
}
.msv-logo-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* Infos */
.msv-info { flex: 1; min-width: 0; }
.msv-name-line {
    display: flex; align-items: center;
    gap: .6rem; flex-wrap: wrap;
    margin-bottom: .45rem;
}
.msv-store-name {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}
.msv-verified {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .7rem; font-weight: 700;
    background: #ECFDF5; color: #059669;
    border: 1px solid #6EE7B7;
    padding: 2px 9px; border-radius: 20px;
}
.msv-chips {
    display: flex; flex-wrap: wrap;
    gap: .35rem .75rem; margin-bottom: .6rem;
}
.msv-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .78rem; color: #6B7280;
}
.msv-chip svg { flex-shrink: 0; }
.msv-rating-line {
    display: flex; align-items: center; gap: .4rem;
    margin-bottom: .7rem;
}
.msv-stars { display: flex; gap: 2px; }
.msv-rating-val { font-size: .9rem; font-weight: 700; color: #F59E0B; }
.msv-rating-cnt { font-size: .78rem; color: #9CA3AF; }

/* Boutons CTA inline */
.msv-cta-line {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-bottom: .6rem;
}

/* ─ Override bouton enquiry WCFM natif ─ */
.msv-cta-line a.wcfm_catalog_enquiry,
.msv-cta-line .store_enquiry_btn,
#wcfmmp-store .bd_icon_box .wcfm_store_enquiry,
#wcfmmp-store .bd_icon_box .follow,
#wcfmmp-store .bd_icon_box a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: .55rem 1.1rem !important;
    border-radius: 8px !important;
    font-size: .85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    height: auto !important;
    line-height: 1 !important;
    min-width: auto !important;
    width: auto !important;
    background: #1E6B3C !important;
    color: #fff !important;
    transition: all .2s !important;
}
.msv-cta-line a.wcfm_catalog_enquiry:hover,
.msv-cta-line .store_enquiry_btn:hover { background: #155230 !important; }

/* bouton follow */
#wcfmmp-store .bd_icon_box .follow {
    background: #fff !important;
    color: #1E6B3C !important;
    border: 2px solid #1E6B3C !important;
}
#wcfmmp-store .bd_icon_box .follow:hover { background: #F0FDF4 !important; }
#wcfmmp-store .bd_icon_box .follow span,
#wcfmmp-store .bd_icon_box .follow i,
#wcfmmp-store .bd_icon_box .wcfm_store_enquiry span,
#wcfmmp-store .bd_icon_box .wcfm_store_enquiry i {
    color: inherit !important;
    font-size: .85rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Réseaux sociaux */
.msv-social {
    display: flex; gap: .4rem;
}
.msv-soc-btn {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1.5px solid #E5E7EB;
    display: flex; align-items: center; justify-content: center;
    color: #6B7280; text-decoration: none; transition: all .2s;
}
.msv-soc-btn:hover { border-color: #1E6B3C; color: #1E6B3C; background: #F0FDF4; }

/* ─ Social natif WCFM ─ */
#wcfmmp-store .social_area ul {
    display: flex !important; gap: .4rem !important;
    padding: 0 !important; text-align: left !important;
    position: static !important; transform: none !important;
    width: auto !important;
}
#wcfmmp-store .social_area ul li {
    width: 32px !important; height: 32px !important;
    border-radius: 8px !important; background: #F9FAFB !important;
    border: 1.5px solid #E5E7EB !important;
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; margin: 0 !important; padding: 0 !important;
}
#wcfmmp-store .social_area ul li a i {
    position: static !important; transform: none !important;
    color: #6B7280 !important; font-size: 13px !important;
}
#wcfmmp-store .social_area ul li:hover { background: #F0FDF4 !important; border-color: #1E6B3C !important; }
#wcfmmp-store .social_area ul li:hover a i { color: #1E6B3C !important; }

/* ═══ 3. CARTE CONTACT (droite) ═════════════════════════════ */
.msv-contact-card {
    background: #fff;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex; flex-direction: column;
    align-items: center; gap: .65rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.msv-contact-card__avatar {
    width: 60px; height: 60px;
    border-radius: 10px; overflow: hidden;
    border: 2px solid #E5E7EB;
}
.msv-contact-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msv-contact-card__name { font-size: .9rem; font-weight: 700; color: #111; text-align: center; }
.msv-contact-card__online {
    display: flex; align-items: center; gap: 5px;
    font-size: .75rem; color: #22C55E;
}
.msv-contact-card__online::before {
    content: ""; width: 8px; height: 8px;
    background: #22C55E; border-radius: 50%;
    display: inline-block;
}
.msv-contact-card__hr { width: 100%; height: 1px; background: #F0F0F0; }
.msv-cc-btn {
    width: 100%; padding: .65rem;
    border-radius: 8px; font-size: .85rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 7px;
    text-decoration: none; border: none; transition: all .2s;
}
.msv-cc-btn--primary { background: #1E6B3C; color: #fff; box-shadow: 0 2px 8px rgba(30,107,60,.2); }
.msv-cc-btn--primary:hover { background: #155230; }
.msv-cc-btn--outline { background: #fff; color: #1E6B3C; border: 2px solid #1E6B3C; }
.msv-cc-btn--outline:hover { background: #F0FDF4; }
.msv-contact-card__phone {
    font-size: .78rem; color: #9CA3AF;
    display: flex; align-items: center; gap: 5px;
}

/* ═══ 4. BARRE PERFORMANCE ══════════════════════════════════ */
.msv-perf {
    background: #fff;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}
.msv-perf__inner {
    max-width: 1200px; margin: 0 auto;
    padding: .75rem 1.5rem;
    display: flex; flex-wrap: wrap; gap: 0;
    align-items: center; justify-content: space-around;
}
.msv-perf-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; padding: .5rem .75rem; min-width: 90px;
}
.msv-perf-val {
    font-size: 1.1rem; font-weight: 800; color: #111827;
    display: flex; align-items: center; gap: 4px;
}
.msv-perf-lbl { font-size: .7rem; color: #9CA3AF; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.msv-perf-div { width: 1px; height: 36px; background: #E5E7EB; flex-shrink: 0; }

/* ═══ 5. CAPACITÉS ═══════════════════════════════════════════ */
.msv-caps {
    background: #FAFAFA;
    border-bottom: 1px solid #E5E7EB;
    padding: .85rem 0;
}
.msv-caps__inner {
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.msv-caps__title {
    font-size: .7rem; font-weight: 700; color: #9CA3AF;
    text-transform: uppercase; letter-spacing: .07em;
    margin: 0 0 .6rem;
}
.msv-caps__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}
@media (max-width: 900px) { .msv-caps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .msv-caps__grid { grid-template-columns: 1fr; } }

.msv-cap {
    display: flex; align-items: center; gap: .75rem;
    background: #fff; border: 1.5px solid #E5E7EB;
    border-radius: 10px; padding: .75rem .9rem;
    transition: box-shadow .2s;
}
.msv-cap:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); border-color: #D1FAE5; }
.msv-cap__icon {
    width: 38px; height: 38px; border-radius: 8px;
    background: #F0FDF4; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.msv-cap__title { font-size: .82rem; font-weight: 700; color: #111827; }
.msv-cap__sub   { font-size: .72rem; color: #9CA3AF; margin-top: 1px; }
.msv-cap__badge {
    margin-left: auto; flex-shrink: 0;
}
.msv-cap__badge--ok { color: #22C55E; }
.msv-cap__link {
    margin-left: auto; font-size: .72rem; font-weight: 600; color: #1E6B3C;
    text-decoration: none; border: 1px solid #1E6B3C;
    border-radius: 5px; padding: 2px 7px; flex-shrink: 0; white-space: nowrap;
}
.msv-cap__link:hover { background: #F0FDF4; }

/* ═══ 6. NAV ONGLETS ════════════════════════════════════════ */
.msv-nav {
    background: #fff;
    border-bottom: 2px solid #E5E7EB;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.msv-nav__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 1.5rem;
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem;
}
.msv-nav__tabs {
    list-style: none !important; margin: 0 !important; padding: 0 !important;
    display: flex !important; gap: 0; overflow-x: auto;
    border-bottom: none !important; float: none !important;
    width: auto !important; background: transparent !important;
    margin-bottom: 0 !important;
}
.msv-nav__tabs li {
    padding: 0 !important; float: none !important;
    border: none !important; margin: 0 !important;
    border-radius: 0 !important; flex-shrink: 0;
    position: static !important;
}
.msv-nav__tabs li::after { display: none !important; }
.msv-nav__tabs li a {
    display: flex !important; align-items: center !important; gap: 5px !important;
    padding: .85rem 1rem !important;
    color: #6B7280 !important; font-size: .85rem !important; font-weight: 600 !important;
    text-decoration: none !important; text-transform: none !important;
    letter-spacing: 0 !important;
    border-bottom: 2.5px solid transparent !important;
    margin-bottom: -2px !important;
    transition: color .2s, border-color .2s !important;
    white-space: nowrap !important;
}
.msv-nav__tabs li a:hover { color: #111 !important; border-color: #D1D5DB !important; }
.msv-nav__tabs li.active a { color: #1E6B3C !important; border-color: #1E6B3C !important; }

/* Recherche */
.msv-search-form { flex-shrink: 0; }
.msv-search-wrap {
    display: flex; align-items: center;
    border: 1.5px solid #E5E7EB; border-radius: 8px;
    overflow: hidden; background: #F9FAFB;
    transition: border-color .2s;
}
.msv-search-wrap:focus-within { border-color: #1E6B3C; background: #fff; }
.msv-search-ico { margin: 0 .5rem; color: #9CA3AF; flex-shrink: 0; }
.msv-search-input {
    border: none !important; background: transparent !important;
    outline: none !important; font-size: .82rem !important;
    color: #374151 !important; width: 170px !important;
    padding: .5rem 0 !important; height: auto !important;
    margin: 0 !important; box-shadow: none !important;
}
.msv-search-btn {
    background: #1E6B3C !important; color: #fff !important;
    border: none !important; padding: .5rem .85rem !important;
    font-size: .78rem !important; font-weight: 600 !important;
    cursor: pointer !important; transition: background .2s !important;
    white-space: nowrap !important; border-radius: 0 !important;
}
.msv-search-btn:hover { background: #155230 !important; }

/* ═══ 7. BODY — Layout 2 colonnes ══════════════════════════ */
#wcfmmp-store .body_area {
    max-width: 1200px !important;
    margin: 1.25rem auto !important;
    padding: 0 1.5rem !important;
    display: flex !important;
    gap: 1.25rem !important;
    align-items: flex-start !important;
    float: none !important; width: auto !important;
}

/* Sidebar */
#wcfmmp-store .left_sidebar {
    width: 230px !important; flex-shrink: 0 !important;
    background: #fff !important; border-radius: 12px !important;
    padding: 1.1rem !important;
    border: 1px solid #E5E7EB !important;
    position: sticky !important; top: 56px !important;
    float: none !important;
}
#wcfmmp-store .left_sidebar .widget { border: none !important; margin-bottom: 1.2rem !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; }
#wcfmmp-store .left_sidebar .widget:last-child { margin-bottom: 0 !important; }
#wcfmmp-store .left_sidebar .widget-title,
#wcfmmp-store .left_sidebar .sidebar_heading h4,
#wcfmmp-store .left_sidebar h3,
#wcfmmp-store .left_sidebar h4 {
    font-size: .7rem !important; font-weight: 700 !important;
    color: #9CA3AF !important; text-transform: uppercase !important;
    letter-spacing: .07em !important; margin: 0 0 .6rem !important;
    padding-bottom: .4rem !important; border-bottom: 1px solid #F0F0F0 !important;
    line-height: 1.3 !important;
}
#wcfmmp-store .left_sidebar input[type="search"],
#wcfmmp-store .left_sidebar input[type="text"],
#wcfmmp-store .left_sidebar .woocommerce-product-search input {
    width: 100% !important; padding: .5rem .8rem !important;
    border: 1.5px solid #E5E7EB !important; border-radius: 8px !important;
    font-size: .84rem !important; background: #F9FAFB !important;
    height: auto !important; margin: 0 !important;
    box-shadow: none !important; outline: none !important;
    color: #374151 !important;
    transition: border-color .2s !important;
}
#wcfmmp-store .left_sidebar input:focus { border-color: #1E6B3C !important; background: #fff !important; }
#wcfmmp-store .left_sidebar ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
#wcfmmp-store .left_sidebar li { padding: 0 !important; margin-bottom: .15rem !important; }
#wcfmmp-store .left_sidebar li a {
    font-size: .83rem !important; color: #374151 !important;
    text-decoration: none !important; display: flex !important;
    align-items: center !important; justify-content: space-between !important;
    padding: .3rem .45rem !important; border-radius: 6px !important;
    background: url() !important;
    transition: background .15s !important;
}
#wcfmmp-store .left_sidebar li a:hover { background: #F0FDF4 !important; color: #1E6B3C !important; }
#wcfmmp-store .left_sidebar li.current-cat > a { color: #1E6B3C !important; font-weight: 700 !important; background: #F0FDF4 !important; }
#wcfmmp-store .categories_list ul li { background: none !important; margin: 0 !important; }
#wcfmmp-store .ui-slider-handle { background: #1E6B3C !important; border-color: #1E6B3C !important; }
#wcfmmp-store .ui-slider-range { background: #D1FAE5 !important; }

/* Zone contenu droite */
#wcfmmp-store .right_side {
    flex: 1 !important; min-width: 0 !important;
    width: auto !important; padding: 0 !important; float: none !important;
}
#wcfmmp-store .right_side_full { width: 100% !important; }

/* ═══ 8. ONGLETS tab_area ══════════════════════════════════ */
#wcfmmp-store .tab_area { background: transparent !important; }

/* Masquer l'ANCIEN tab_links natif WCFM (on utilise msv-nav__tabs) */
#wcfmmp-store .tab_area .tab_links { display: none !important; }

/* ═══ 9. GRILLE PRODUITS ════════════════════════════════════ */
#wcfmmp-store ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
    gap: 1rem !important;
    list-style: none !important; margin: 0 !important; padding: 0 !important;
}
#wcfmmp-store ul.products li { padding: 0 !important; margin: 0 !important; }
@media (max-width: 640px) {
    #wcfmmp-store ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem !important; }
}

/* Tri + résultats */
#wcfmmp-store .woocommerce-ordering {
    display: flex !important; align-items: center !important;
    gap: .6rem !important; margin-bottom: 1rem !important;
}
#wcfmmp-store .woocommerce-result-count { font-size: .82rem !important; color: #9CA3AF !important; margin: 0 !important; }
#wcfmmp-store select.orderby {
    padding: .5rem 2rem .5rem .85rem !important;
    border: 1.5px solid #E5E7EB !important; border-radius: 8px !important;
    font-size: .82rem !important; color: #374151 !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231E6B3C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center !important;
    -webkit-appearance: none !important; appearance: none !important; cursor: pointer !important;
}

/* Onglets contenus */
.wcfmmp_store_about, .policies_area, .wcfmmp_store_policies,
.reviews_area, .wcfmmp_store_reviews, .wcfm_store_description {
    background: #fff !important; border-radius: 12px !important;
    padding: 1.5rem !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: none !important;
    margin: 0 0 1rem !important;
    width: 100% !important; display: block !important;
}
.reviews_heading, .wcfm_policies_heading {
    font-size: .95rem !important; font-weight: 700 !important; color: #111 !important;
    border-bottom: 1px solid #F0F0F0 !important;
    padding-bottom: .75rem !important; margin-bottom: 1rem !important;
    text-transform: none !important;
}
.wcfmmp_store_about p, .wcfmmp_store_policies p,
.policies_area p, .reviews_area p {
    font-size: .9rem !important; color: #374151 !important; line-height: 1.7 !important;
    padding-bottom: .5rem !important;
}

/* Avis */
#wcfmmp-store .star-rating, .logo_area_after .wcfmmp-store-rating span::before { color: #F59E0B !important; }
.add_review button { background: #1E6B3C !important; border-radius: 8px !important; padding: .6rem 1.25rem !important; }
.add_review button:hover { background: #155230 !important; }

/* ═══ 10. PAGINATION ════════════════════════════════════════ */
#wcfmmp-store .woocommerce-pagination ul,
#wcfmmp-store .paginations ul {
    display: flex !important; justify-content: center !important;
    list-style: none !important; gap: .35rem !important;
    padding: 1.25rem 0 0 !important; margin: 0 auto !important; width: auto !important;
}
#wcfmmp-store .woocommerce-pagination li,
#wcfmmp-store .paginations ul li { padding: 0 !important; float: none !important; }
#wcfmmp-store .woocommerce-pagination li a,
#wcfmmp-store .woocommerce-pagination li span,
#wcfmmp-store .paginations ul li a,
#wcfmmp-store .paginations ul li span {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 36px !important; height: 36px !important; border-radius: 8px !important;
    font-size: .82rem !important; font-weight: 600 !important; text-decoration: none !important;
    border: 1.5px solid #E5E7EB !important; color: #374151 !important;
    background: #fff !important; line-height: 1 !important;
    transition: all .2s !important;
}
#wcfmmp-store .woocommerce-pagination li a:hover,
#wcfmmp-store .paginations ul li a:hover { border-color: #1E6B3C !important; color: #1E6B3C !important; }
#wcfmmp-store .woocommerce-pagination .current,
#wcfmmp-store .paginations ul li span.current,
#wcfmmp-store .paginations ul li a.active {
    background: #1E6B3C !important; color: #fff !important; border-color: #1E6B3C !important;
}

/* ═══ 11. RESPONSIVE ════════════════════════════════════════ */
@media (max-width: 900px) {
    #wcfmmp-store .body_area { flex-direction: column !important; }
    #wcfmmp-store .left_sidebar { width: 100% !important; position: static !important; }
    .msv-search-form { display: none; }
}
@media (max-width: 640px) {
    .msv-logo-img-wrap { width: 76px; height: 76px; margin-top: -38px; }
    .msv-store-name { font-size: 1.15rem !important; }
    .msv-perf-div { display: none; }
    .msv-perf-item { padding: .4rem .5rem; }
    .msv-perf-val { font-size: .95rem; }
    .msv-hero-wrap { padding: .75rem 1rem; }
    #wcfmmp-store .body_area { padding: 0 1rem !important; margin: 1rem auto !important; }
}
