@media (min-width: 768px) {
  .tabs {
    transform: translateX(-30vw);
    margin-right: -30vw;
    margin-top: 5vw;
  }
}


/* Ajustement pour que le contenu ne passe pas "sous" le header au chargement */
body {
    padding-top: 0; /* À ajuster si ton thème décale tout */
}

#search_widget form {
    padding-top: 5px;
}

#header .menu {
    text-align: center;
    width: auto;
    margin: 0 auto;
}

#header .menu ul li {
    display: inline-block;
    float: none !important;
}

#header .menu ul li a {
    display: block;
    min-width: 130px;      
    padding: 15px 10px;   
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    transition: color 0.2s ease;
}

#header .menu ul li a:hover {
    color: #24b9d7 !important;
    text-decoration: none;
}

.header-top .container {
    position: relative;
}

.language-selector {
    border: 1px solid #24b9d7 !important;
    padding: 2px 8px !important;
    border-radius: 4px;
    background: #fff;
}

.language-selector .dropdown-menu {
    min-width: 50px !important; 
    width: 50px !important;
    border: 1px solid #24b9d7 !important;
}

.language-selector .dropdown-item {
    text-align: center !important;
    padding: 5px 0 !important;
}

.language-selector .dropdown-item:hover {
    background-color: #24b9d7 !important;
    color: #fff !important;
}

#_desktop_language_selector, .language-selector-wrapper {
    margin-left: 5px !important;
}

/* --- DESIGN DU PRELOADER --- */
#mm-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff; 
    z-index: 9999999; 
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease-out;
}

.mm-loader-box {
    text-align: center;
}

.mm-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #24b9d7; 
    border-radius: 50%;
    animation: mm-spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

#mm-preloader p {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes mm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#mm-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #24b9d7;
    color: white;
    border-radius: 50%;
    display: none; 
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#mm-back-to-top:hover {
    transform: translateY(-5px);
    background: #24b9d7;
}

/* Affichage Prix page produit */
#product .product-prices .current-price .price,
#product .product-prices .product-price {
    display: block !important;
    color: #24b9d7 !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    margin-bottom: 10px !important;
    text-shadow: none !important;
}

.product-description .price, 
.product-miniature .price {
    font-size: 1.2rem !important; 
    font-weight: 700 !important;
    color: #24b9d7 !important;
    display: block !important;
}

/* TOP BAR PROMO  */
.meca-promo-bar {
    background: linear-gradient(90deg, #167a8f 0%, #24b9d7 50%, #167a8f 100%);
    background-size: 200% auto;
    animation: meca-gradient 5s ease infinite;
    color: #ffffff;
    overflow: hidden;
    height: 45px;
    display: flex;
    align-items: center; 
    border-bottom: 2px solid rgba(0,0,0,0.1);
    position: relative;
}

.meca-promo-bar::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: meca-shine 8s infinite;
}

.meca-promo-wrapper {
    display: flex;
    width: 3200px; 
    animation: meca-scroll 25s linear infinite;
}

.meca-promo-item {
    width: 400px;
    height: 45px; 
    flex-shrink: 0;
    display: flex;
    align-items: center; 
    justify-content: center; 
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.meca-promo-item i {
    font-size: 20px;
    margin-right: 10px;
    display: inline-block;
    line-height: 1; 
}

.meca-promo-item:nth-child(odd) i { color: #ffffff; }
.meca-promo-item:nth-child(even) i { color: #ffeb3b; }

.meca-promo-item strong {
    color: #000;
    background: #ffeb3b;
    padding: 4px 12px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 900;
    display: inline-flex; 
    align-items: center;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.4);
    animation: meca-pulse 1.5s infinite;
    height: 24px; 
}

@keyframes meca-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1600px); }
}

@keyframes meca-shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

@keyframes meca-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes meca-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* BOUTON AJOUTER AU PANIER  */
.add-to-cart {
    background-color: #24b9d7 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 4px !important; 
    transition: all 0.2s ease-in-out !important;
    position: relative;
    overflow: hidden;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(36, 185, 215, 0.2) !important; 
}

.add-to-cart i {
    font-size: 20px !important;
    margin-right: 12px;
}

.add-to-cart:hover {
    background-color: #1a89a0 !important;
    box-shadow: 0 4px 15px rgba(36, 185, 215, 0.3) !important;
    transform: translateY(-1px);
}

.add-to-cart::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 30%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btn-shine 5s infinite;
}

@keyframes btn-shine {
    0% { left: -100%; }
    15% { left: 120%; }
    100% { left: 120%; }
}

@media (max-width: 767px) {
    .add-to-cart { width: 100% !important; }
}

