/*
Theme Name:   Medibazar Child
Theme URI:    http://klbtheme.com/medibazar/
Description:  Medibazar Child Theme - Optimisé pour la vitesse
Author:       KlbTheme
Author URI:   http://themeforest.net/user/KlbTheme
Template:     medibazar
Version:      1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  medibazar-child
*/
/* ========================================
   FORCE L'AFFICHAGE IMMÉDIAT (Anti-FOIT)
   ======================================== */

/* On dit au navigateur que notre police système est "Cerebri Sans" 
   (ou le nom par défaut de Medibazar) pour éviter qu'il ne cherche 
   à télécharger la vraie Google Font */
@font-face {
    font-family: 'Cerebri Sans';
    src: local('Arial'), local('Helvetica'), local('sans-serif');
    font-display: swap; /* Affiche la police de secours immédiatement */
}

/* Pareil pour Poppins si utilisé */
@font-face {
    font-family: 'Poppins';
    src: local('Arial'), local('Helvetica'), local('sans-serif');
    font-display: swap;
}
/* ========================================
   1. POLICES SYSTÈME (remplace Google Fonts & Cerebri Sans)
   ======================================== */

/* Appliquer une police système universelle à tout le site */
body,
h1, h2, h3, h4, h5, h6,
.klb-post,
.klb-post h1, .klb-post h2, .klb-post h3, .klb-post h4, .klb-post h5, .klb-post h6,
button, input, select, textarea,
a, p, span, div,
.woocommerce *,
.product-details-wrapper *,
.klb-product *,
.header *,
.footer *,
.nav *,
.breadcrumb *,
.comment *,
.widget *,
.checkout *,
.cart *,
.dokan *,
.elementor *,
.wp-block-* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* ========================================
   2. CONTENU & TYPOGRAPHIE
   ======================================== */

.klb-post img,
.wp-caption img,
p > img {
    max-width: 100%;
    height: auto;
}

.klb-post h1,
.klb-post h2,
.klb-post h3,
.klb-post h4,
.klb-post h5,
.klb-post h6 {
    line-height: 140%;
    margin: 10px 0;
    text-rendering: optimizeLegibility;
    padding: 0;
}

.klb-post h1 { font-size: 38.5px; text-transform: inherit; }
.klb-post h2 { font-size: 31.5px; padding-bottom: initial; }
.klb-post h3 { font-size: 24.5px; text-transform: initial; font-weight: 500; }
.klb-post h4 { font-size: 17.5px; }
.klb-post h5 { font-size: 14px; }
.klb-post h6 { font-size: 11.9px; }

/* Alignements */
.klb-post h3, td, th {
    text-align: left;
}

/* Listes */
.klb-post ul,
.klb-post ul li {
    list-style-type: circle;
}

/* Tableaux */
table {
    max-width: 100%;
    background-color: transparent;
    width: 100%;
}
th { padding: 8px; }
td {
    padding: 4px;
    border: 1px solid #eaedff;
}

/* ========================================
   3. FORMULAIRES
   ======================================== */

input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"] {
    border: 1px solid #eaedff;
    background: #fff;
    border-radius: 0;
    height: 45px;
    padding: 0 0 0 10px;
    width: 100%;
}

textarea {
    border: 1px solid #eaedff;
    height: 170px;
    padding: 15px;
    width: 100%;
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* ========================================
   4. PAGINATION
   ======================================== */

.klb-pagination a,
.klb-pagination span {
    height: 40px;
    width: 40px;
    background: #e3e2e2;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 40px;
    margin: 0;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
}

.klb-pagination span.post-page-numbers.current,
.klb-pagination a:hover {
    background: #4e97fd;
    color: #fff;
}

/* ========================================
   5. BOUTONS WOOCOMMERCE
   ======================================== */

a.checkout-button,
button.button,
button.single_add_to_cart_button,
p.woocommerce-mini-cart__buttons.buttons a {
    backface-visibility: hidden;
    color: #fff;
    font-size: 14px;
    padding: 20px 40px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    display: inline-block;
    line-height: 1;
    position: relative;
    transform: translateZ(0);
    border-radius: 30px;
    background: #4e97fd;
    border: none;
    cursor: pointer;
}

a.checkout-button:hover,
button.button:hover,
p.woocommerce-mini-cart__buttons.buttons a:hover {
    background: #e4573d;
}

/* ========================================
   6. NETTOYAGE DES ÉLÉMENTS INUTILES
   ======================================== */

.ajax_quick_view .tinv-wraper,
.klb-product .tinvwl-loop-button-wrapper,
.klb-product span.tinvwl_add_to_wishlist-text,
.breadcrumb-menu li:last-child:before,
.deal-area .deal-count .time-count:first-child::before,
.fl-mini-cart-content dd.variation-Vendor,
.fl-mini-cart-content dt.variation-Vendor,
.klb-actions .coupon label,
.wc-tabs-wrapper #tab-description > h2,
.widget_klb_product_categories input[type=checkbox],
.widget_product_categories ul li:before,
.widget_product_status input[type=checkbox],
.woocommerce-pagination ul.page-numbers a.next.page-numbers:before,
.woocommerce-pagination ul.page-numbers a.prev.page-numbers:before,
a.dropdown-toggle.lnk-cart:after,
li#tab-title-more_seller_product,
td.diviader,
ul.klbgridlist li.klb-mobile-filter,
ul.wc_payment_methods input[type=radio],
ul.woocommerce-widget-layered-nav-list .type-button a:before,
ul.woocommerce-widget-layered-nav-list .type-color a:before {
    display: none !important;
}

/* ========================================
   7. RESPONSIVE (Mobile)
   ======================================== */

@media (max-width: 767px) {
    .hero-slider .slider-height {
        min-height: 450px;
    }
    .team-button {
        margin-top: 20px;
    }
}

/* ========================================
   FIN DU FICHIER
   ======================================== */