/* Estilos para header móvil */

/* Ocultar header de escritorio en móvil */
@media (max-width: 768px) {
    .desktop-header {
        display: none !important;
    }
}

/* Asegurar header móvil solo visible en móvil */
@media (min-width: 769px) {
    .mobile-header {
        display: none !important;
    }
}

/* Estilos del header móvil */
.mobile-header {
    width: 100%;
    background-color: #000;
    position: relative;
    z-index: 1000;
}

/* Barra superior del header */
.mobile-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    height: 60px;
}

/* Logo */
.mobile-logo {
    max-width: 130px;
}

.mobile-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Botón de menú */
.mobile-menu-toggle {
    padding: 5px;
    cursor: pointer;
}

.mobile-menu-toggle img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Icono en blanco */
}

/* Overlay negro */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Contenedor del menú desplegable */
.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -80%; /* Inicialmente fuera de la pantalla */
    width: 80%;
    height: 100%;
    background-color: #fff;
    z-index: 999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-container.active {
    right: 0;
}

/* Cabecera del menú */
.mobile-menu-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-close {
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

/* Categorías */
.mobile-categories {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.mobile-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-category-item {
    position: relative;
}

.mobile-category-item a {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-dropdown-toggle {
    width: 20px;
    text-align: center;
}

/* Subcategorías */
.mobile-subcategories {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f9f9f9;
}

.mobile-category-item.active .mobile-subcategories {
    display: block;
}

.mobile-subcategories li a {
    padding-left: 30px;
    font-size: 14px;
}

/* Iconos de usuario y carrito */
.mobile-user-actions {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-account-link, 
.mobile-cart-link {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
}

.mobile-account-link img, 
.mobile-cart-link img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
}

.mobile-cart-count {
    background-color: #f00;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 10px;
}

/* Iconos de redes sociales */
.mobile-social-icons {
    padding: 15px;
}

.mobile-social-icons a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
}

.social-icon {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}