/* SERET Mega Menu - Categorías contraídas */

.seret-products-menu { position: static !important; }

.seret-products-menu > a {
    position: relative;
    z-index: 1002;
}

.seret-products-toggle,
.seret-category-toggle,
.seret-subcategory-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-left: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
    position: relative;
    z-index: 10003;
}

.seret-products-toggle span,
.seret-category-toggle span,
.seret-subcategory-toggle span {
    display: block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}

.seret-products-menu.seret-mega-open .seret-products-toggle span,
.seret-category-toggle[aria-expanded="true"] span,
.seret-subcategory-toggle[aria-expanded="true"] span {
    transform: rotate(225deg) translate(-1px, -1px);
}

.seret-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.10);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.seret-products-menu:hover > .seret-mega-menu,
.seret-products-menu:focus-within > .seret-mega-menu,
.seret-products-menu.seret-mega-open > .seret-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.seret-mega-menu-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 32px 20px;
}

.seret-mega-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 30px;
}

.seret-mega-column { min-width: 0; }

.seret-mega-category-row,
.seret-subcategory-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.seret-mega-title {
    display: block;
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-decoration: none !important;
}

.seret-category-children { display: none; margin-top: 8px; }
.seret-category-children.seret-is-open { display: block; }

.seret-mega-subcategories,
.seret-mega-grandchildren {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.seret-mega-subcategories > li { margin: 0; padding: 0; }

.seret-mega-subcategories a,
.seret-mega-grandchildren a {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none !important;
}

.seret-mega-subcategories a:hover,
.seret-mega-grandchildren a:hover { opacity: .65; }

.seret-mega-grandchildren {
    display: none;
    margin: 2px 0 5px 10px !important;
    padding-left: 10px !important;
    border-left: 1px solid rgba(0,0,0,.10);
}

.seret-mega-grandchildren.seret-is-open { display: block; }

.seret-mega-grandchildren a {
    font-size: 13px;
    padding: 3px 0;
}

.seret-mega-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,.08);
    text-align: right;
}

.seret-mega-footer a {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.seret-mega-footer span { margin-left: 5px; font-size: 16px; }

@media (max-width: 1100px) and (min-width: 769px) {
    .seret-mega-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .seret-mega-menu-inner { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 768px) {
    .seret-products-menu { position: relative !important; }

    .seret-products-toggle {
        width: 32px;
        height: 32px;
    }

    .seret-mega-menu {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border-top: 1px solid rgba(0,0,0,.08);
        border-bottom: 0;
    }

    .seret-products-menu.seret-mega-open > .seret-mega-menu {
        display: block;
    }

    .seret-products-menu:hover > .seret-mega-menu,
    .seret-products-menu:focus-within > .seret-mega-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .seret-mega-menu-inner { padding: 14px 15px 15px; }
    .seret-mega-columns { display: block; }

    .seret-mega-column {
        padding: 8px 0;
        border-bottom: 1px solid rgba(0,0,0,.07);
    }

    .seret-mega-column:last-child { border-bottom: 0; }
    .seret-mega-title { font-size: 14px; }
    .seret-category-children { margin-top: 5px; }

    .seret-mega-subcategories a {
        padding: 5px 0;
        font-size: 14px;
    }

    .seret-mega-footer {
        margin-top: 10px;
        padding-top: 10px;
        text-align: left;
    }
}
