/* HERCOM - Panel móvil de categorías estilo SHEIN */
/* Este archivo todavía no está conectado al sitio. */

@media (max-width: 768px) {
    .lc-shein-overlay {
        position: fixed;
        inset: 0;
        z-index: 999998;
        background: rgba(0, 0, 0, .48);
    }

    .lc-shein-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(88vw, 390px);
        z-index: 999999;
        background: #fff;
        box-shadow: 4px 0 24px rgba(0, 0, 0, .15);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .lc-shein-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
        padding: 12px 18px;
        border-bottom: 1px solid #e8e8e8;
    }

    .lc-shein-title {
        color: #1a3c8c;
        font-size: 17px;
        font-weight: 700;
    }

    .lc-shein-close,
    .lc-shein-back {
        border: 0;
        background: transparent;
        color: #1a3c8c;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
    }

    .lc-shein-content {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 16px;
    }

    .lc-shein-category-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .lc-shein-category {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 9px;
        text-align: center;
        color: #333;
        font-size: 12px;
        cursor: pointer;
    }

    .lc-shein-category-image {
        width: 82px;
        height: 82px;
        max-width: 100%;
        border-radius: 50%;
        object-fit: contain;
        background: #f5f7fa;
        border: 1px solid #e8edf5;
        padding: 8px;
    }

    .lc-shein-category-name {
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
}

/* HERCOM - Ajustes de tarjetas y fotografías */
@media (max-width: 768px) {
    .lc-shein-category {
        appearance: none;
        border: 0;
        background: transparent;
        padding: 0;
        width: 100%;
        font-family: inherit;
    }

    .lc-shein-category-image {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .lc-shein-placeholder {
        color: #1a3c8c;
        font-size: 30px;
        font-weight: 400;
    }

    .lc-shein-category-name {
        display: block;
        width: 100%;
        font-weight: 500;
        color: #333;
    }

    .lc-shein-category:focus-visible {
        outline: 2px solid #1a3c8c;
        outline-offset: 4px;
        border-radius: 8px;
    }

    .lc-shein-back {
        font-size: 30px;
        line-height: 1;
    }

    .lc-shein-close {
        font-size: 24px;
        line-height: 1;
    }
}


/* HERCOM SHEIN: enlace para ver todos los productos */
@media (max-width: 768px) {
    .lc-shein-view-all {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 22px;
        padding: 14px 16px;
        border: 1px solid #dce7f8;
        border-radius: 10px;
        background: #f3f7fd;
        color: #1a3c8c;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.4;
        text-decoration: none;
    }

    .lc-shein-view-all::after {
        content: '›';
        flex-shrink: 0;
        font-size: 24px;
        line-height: 1;
    }

    .lc-shein-view-all:hover,
    .lc-shein-view-all:focus-visible {
        background: #e8f0fc;
        color: #1a3c8c;
        text-decoration: none;
    }

    .lc-shein-view-all:focus-visible {
        outline: 2px solid #1a3c8c;
        outline-offset: 3px;
    }
}


/* HERCOM SHEIN: manejo visual de errores AJAX */
@media (max-width: 768px) {
    .lc-shein-error {
        margin: 28px 0 18px;
        color: #555;
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
    }

    .lc-shein-retry {
        display: block;
        width: 100%;
        min-height: 46px;
        padding: 12px 18px;
        border: 1px solid #1a3c8c;
        border-radius: 8px;
        background: #1a3c8c;
        color: #fff;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
    }

    .lc-shein-retry:hover,
    .lc-shein-retry:focus-visible {
        background: #12306f;
        border-color: #12306f;
        color: #fff;
    }

    .lc-shein-retry:focus-visible {
        outline: 2px solid #1a3c8c;
        outline-offset: 3px;
    }
}


/* HERCOM SHEIN: evitar superposición de Elementor */
@media (max-width: 768px) {
    body.lc-shein-menu-open #e-n-menu-content-1272 {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.lc-shein-menu-open .lc-shein-overlay {
        z-index: 2147483645 !important;
    }

    body.lc-shein-menu-open .lc-shein-drawer {
        z-index: 2147483646 !important;
    }
}
