
/* ============================================
   AYNE V15.4 - EXPLORADOR PREMIUM
   VERSION HOSTINGER
   ============================================ */

/* Ocultar definitivamente las categorías antiguas */
body #chipFilters,
body #chipFilters.ayne-chips-expanded,
body #chipFilters.ayne-chips-collapsed {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Ocultar controles del sistema anterior */
body .ayne-category-toggle,
body .ayne-v124-legacy-toggle {
    display: none !important;
}

/* Conservar el botón premium */
body .ayne-v124-launch {
    display: block !important;
}

/* Ocultar únicamente el select original sustituido */
.ayne-nav-original-hidden {
    display: none !important;
}

.ayne-v124-legacy-toggle {
    display: none !important;
}

/* ============================================
   BOTON DEL EXPLORADOR
   ============================================ */

.ayne-v124-launch {
    width: 100%;
    min-height: 45px;
    border-radius: 11px;
    background: linear-gradient(110deg,#242017,#151410);
    border: 1px solid #9d7b42;
    color: #ebd4a6;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    padding: 12px 15px;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ayne-v124-launch:hover,
.ayne-v124-launch:focus-visible {
    background: #302719;
    outline: 2px solid #bc995a;
    outline-offset: 2px;
}

/* ============================================
   VENTANA PREMIUM
   ============================================ */

body.ayne-v124-open {
    overflow: hidden;
}

.ayne-v124-overlay[hidden] {
    display: none !important;
}

.ayne-v124-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.83);
    backdrop-filter: blur(10px);
    padding: 18px;
}

.ayne-v124-panel {
    width: min(850px,100%);
    max-height: 88dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(150deg,#1c1a15,#100f0d 70%);
    border: 1px solid #8d6b38;
    border-radius: 22px;
    box-shadow: 0 30px 100px #000b;
    color: #f1e8d8;
}

/* ============================================
   ENCABEZADO
   ============================================ */

.ayne-v124-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 30px 15px;
}

.ayne-v124-eyebrow {
    display: block;
    color: #cba562;
    font-size: 10px;
    letter-spacing: .22em;
    font-weight: 700;
    margin-bottom: 9px;
}

.ayne-v124-header h2 {
    font: 400 clamp(25px,4vw,34px)/1.15 Georgia,serif;
    color: #f4ecdc;
    margin: 0 0 8px;
}

.ayne-v124-header p {
    font-size: 13px;
    color: #aea391;
    margin: 0;
}

.ayne-v124-close {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    background: #29251e;
    border: 1px solid #625036;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   BUSCADOR DE CATEGORIAS
   ============================================ */

.ayne-v124-search {
    margin: 0 30px 17px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #242119;
    border: 1px solid #76603c;
    border-radius: 12px;
}

.ayne-v124-search span {
    font-size: 25px;
    color: #d7b171;
}

.ayne-v124-search input {
    width: 100%;
    min-width: 0;
    height: 49px;
    border: 0;
    background: transparent;
    color: white;
    outline: none;
    font-size: 15px;
}

/* ============================================
   CONTENIDO Y SCROLL
   ============================================ */

.ayne-v124-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 30px 24px;
    scrollbar-color: #92764b #181510;
}

/* ============================================
   ACCESOS RAPIDOS
   ============================================ */

.ayne-v124-quick {
    margin: 0 0 14px;
}

.ayne-v124-quick h3 {
    margin: 0 0 10px;
    color: #c6a066;
    font-size: 11px;
    letter-spacing: .16em;
}

.ayne-v124-quickitems {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ayne-v124-quickitems .ayne-v124-item {
    width: auto;
    min-width: 150px;
}

/* ============================================
   FAMILIAS DE PRODUCTOS
   ============================================ */

.ayne-v124-family {
    border-top: 1px solid #423829;
}

.ayne-v124-family summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 19px 5px;
    cursor: pointer;
}

.ayne-v124-family summary::-webkit-details-marker {
    display: none;
}

.ayne-v124-familyname {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #e9d5ad;
}

.ayne-v124-meta {
    font-size: 11px;
    color: #9e9280;
    white-space: nowrap;
}

.ayne-v124-arrow {
    display: inline-block;
    color: #cbaa70;
    transition: transform .2s;
    font-size: 21px;
}

.ayne-v124-family[open] .ayne-v124-arrow {
    transform: rotate(180deg);
}

/* ============================================
   BOTONES DE SUBCATEGORIAS
   ============================================ */

.ayne-v124-items {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 9px;
    padding: 0 3px 19px;
}

.ayne-v124-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 9px;
    text-align: left;
    background: #24211c;
    border: 1px solid #494033;
    border-radius: 10px;
    padding: 13px;
    min-height: 48px;
    color: #f0e6d6;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s,border-color .2s;
}

.ayne-v124-item small {
    font-size: 10px;
    white-space: nowrap;
    color: #bda276;
}

.ayne-v124-item:hover,
.ayne-v124-item:focus-visible {
    background: #40331f;
    border-color: #d0aa69;
    outline: none;
}

.ayne-v124-item.active {
    background: #d1ac68;
    color: #19140d;
    border-color: #d1ac68;
}

.ayne-v124-item.active small {
    color: #30230f;
}

/* ============================================
   SIN RESULTADOS
   ============================================ */

.ayne-v124-empty {
    padding: 35px;
    text-align: center;
    color: #aaa;
}

/* ============================================
   PIE DE LA VENTANA
   ============================================ */

.ayne-v124-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    border-top: 1px solid #423829;
    font-size: 10px;
    letter-spacing: .12em;
    color: #a99570;
}

/* ============================================
   RESPONSIVE - CELULARES
   ============================================ */

@media (max-width:700px) {
    .ayne-v124-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .ayne-v124-panel {
        max-height: 93dvh;
        width: 100%;
        border-radius: 22px 22px 0 0;
    }

    .ayne-v124-header {
        padding: 22px 17px 14px;
    }

    .ayne-v124-search {
        margin: 0 17px 15px;
    }

    .ayne-v124-content {
        padding: 0 17px 20px;
    }

    .ayne-v124-items {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .ayne-v124-meta {
        font-size: 10px;
    }

    .ayne-v124-familyname {
        font-size: 14px;
    }

    .ayne-v124-footer {
        padding: 14px 17px;
    }
}

@media (max-width:360px) {
    .ayne-v124-items {
        grid-template-columns: 1fr;
    }

    .ayne-v124-meta {
        max-width: 110px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion:reduce) {
    .ayne-v124-item,
    .ayne-v124-arrow {
        transition: none;
    }
}

/* FIN AYNE V15.4 */
