/* --- CÓDIGO DE LIMPIEZA APP LISTOGO --- */

@media (max-width: 768px) {
    /* 1. Ocultar TODAS las cabeceras (Naranja, menú, logo) */
    header, 
    #masthead,
    .site-header,
    .main-header-bar,
    .ast-mobile-header-wrap,
    .top-header-bar {
        display: none !important;
    }

    /* 2. Ocultar TODO el pie de página (Negro) */
    footer,
    #colophon,
    .site-footer,
    .footer-adv,
    .hfe-footer-row {
        display: none !important;
    }

    /* 3. Ajuste para que la App empiece arriba del todo */
    body, #page, .site-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* --- CORRECCIÓN DE TARJETAS WCFM --- */

/* 1. EL CONTENEDOR PRINCIPAL (La Caja Mágica) */
#wcfmmp-store-lists .wcfm-store-list-item {
    border-radius: 20px !important; /* Curva fuerte */
    overflow: hidden !important;    /* ESTO ES LA CLAVE: Corta todo lo que se salga de la curva */
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
    border: 1px solid #f0f0f0 !important; /* Borde muy sutil */
    background: #fff !important;
    padding: 0 !important; /* Quita espacios blancos internos molestos */
}

/* 2. EL BANNER (La imagen de la hamburguesa) */
.store-wrapper .store-banner {
    border-radius: 0 !important; /* Ya no necesita curva porque el contenedor lo recorta */
    margin: 0 !important;
    width: 100% !important;
    min-height: 140px !important; /* Un poco más alto para que luzca */
}

/* 3. EL LOGO (Círculo) */
.store-wrapper .store-data-container .store-avatar {
    margin-top: -45px !important; /* Sube el logo para que muerda el banner */
    margin-left: 15px !important;
    position: relative;
    z-index: 10;
}

.store-wrapper .store-data-container .store-avatar img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #fff;
}

/* 4. INFORMACIÓN DE LA TIENDA (Texto) */
.store-wrapper .store-data {
    padding: 10px 15px !important; /* Espacio para respirar */
    text-align: left !important;
}

/* 5. ARREGLANDO LOS BOTONES DESORDENADOS (Footer) */
.wcfmmp-store-list-page .store-footer {
    display: flex !important;
    justify-content: space-between; /* Separa los botones a los extremos */
    align-items: center;
    padding: 15px !important;
    background-color: #ffffff;
    border-top: 1px solid #f5f5f5;
}

/* El botón de consulta (el rojo pequeño) */
.wcfm_catalog_inquiry {
    background: #fff !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    padding: 8px 15px !important;
    font-size: 12px !important;
    margin-right: 10px !important;
    display: flex;
    align-items: center;
    gap: 5px;
}
.wcfm_catalog_inquiry i { margin-right: 5px; } /* Icono separado del texto */

/* El botón VISITAR (Naranja) */
.wcfmmp-store-list-page .wcfmmp-visit-store {
    background-color: #FF4500 !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    box-shadow: 0 4px 10px rgba(255, 69, 0, 0.2);
    margin: 0 !important; /* Quita margenes raros */
    float: none !important; /* Evita que flote raro */
}