/* Mobile Bottom Bar - Conforme à la charte PrestaRaidet */

.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
   background: linear-gradient(135deg, #d6cec2 15%, #ffffff 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 8px 0;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.mobile-bottom-bar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.mobile-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #5a4a3a;
    font-size: 11px;
    padding: 6px 8px;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    max-width: 80px;
}

.mobile-bar-item:hover,
.mobile-bar-item:active {
    color: #2c1e10;
    transform: translateY(-3px);
}

.mobile-bar-item i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.mobile-bar-item:hover i {
    transform: scale(1.15);
}

.mobile-bar-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mobile-bar-cart {
    position: relative;
}

.mobile-bar-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: #2d9b8e;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .mobile-bottom-bar {
        display: block;
    }
    
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 576px) {
    .mobile-bar-item {
        padding: 4px 6px;
    }
    
    .mobile-bar-item i {
        font-size: 20px;
    }
    
    .mobile-bar-label {
        font-size: 9px;
    }
}

/* RTL Support pour l'arabe */
body.lang-rtl .mobile-bottom-bar {
   background: linear-gradient(135deg, #d6cec2 15%, #ffffff 100%);
	
}

html[dir="rtl"] .mobile-bottom-bar-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .mobile-bar-badge {
    right: auto;
    left: 8px;
}

/* Animation d'entrée */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-bottom-bar {
    animation: slideUp 0.4s ease-out;
}

/* Active state */
.mobile-bar-item.active {
    color: #2c3e50;
}

.mobile-bar-item.active i {
    transform: scale(1.1);
}

/* Compatibilité avec le thème Matrics */
.mobile-bottom-bar * {
    box-sizing: border-box;
}

/* Ne pas affecter le menu desktop */
@media (min-width: 992px) {
    .mobile-bottom-bar {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* Amélioration du contraste pour l'accessibilité */
@media (prefers-contrast: high) {
    .mobile-bottom-bar {
        background: #b89550;
        border-top: 3px solid #ffffff;
    }
    
    .mobile-bar-item {
        color: #ffffff;
    }
}

/* Mode sombre (si supporté par le thème) */
@media (prefers-color-scheme: dark) {
    .mobile-bottom-bar {
      background: linear-gradient(135deg, #d6cec2 15%, #ffffff 100%);
    }
}
