/* =========================================================================
   Sidebar de categorías para el PRODUCTO INDIVIDUAL (mismo look que la tienda).
   El layout full-bleed [ categorías | ficha ] y el resto de la ficha viven en
   single-product.css. El botón "Categorías" abre el panel lateral en móvil.
   ========================================================================= */

.oz-shop-archive__body {
    flex: 1 1 auto;
    min-width: 0;
}

.oz-shop-cats-toggle {
    display: none;
}

.oz-shop-archive__cats {
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
    align-self: stretch;
    background: #15151a;
    color: #ffffff;
    box-sizing: border-box;
}

.oz-shop-cats__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 18px 20px;
    background: #e30613;
}

.oz-shop-cats__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.oz-shop-cats__close {
    display: none;
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    padding: 0 2px;
}

.oz-shop-cats__list {
    list-style: none;
    margin: 0;
    padding: 6px 0 28px;
}

.oz-shop-cats__item {
    margin: 0;
}

.oz-shop-cats__row {
    display: flex;
    align-items: stretch;
}

.oz-shop-cats__link {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    line-height: 1.3;
    color: #e8e8ea;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.oz-shop-cats__link:hover,
.oz-shop-cats__link:focus-visible {
    background: #e30613;
    color: #ffffff;
    outline: none;
}

.oz-shop-cats__item.is-current > .oz-shop-cats__row > .oz-shop-cats__link {
    color: #ffffff;
    font-weight: 700;
    background: rgba(227, 6, 19, 0.14);
    box-shadow: inset 4px 0 0 #e30613;
}

.oz-shop-cats__sub-toggle {
    flex: 0 0 auto;
    width: 46px;
    border: 0;
    background: transparent;
    color: #b9b9c0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.oz-shop-cats__sub-toggle::before {
    content: "";
    width: 12px;
    height: 12px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.2s ease;
}

.oz-shop-cats__sub-toggle:hover {
    color: #ffffff;
}

.oz-shop-cats__item--parent.is-open > .oz-shop-cats__row > .oz-shop-cats__sub-toggle::before {
    transform: rotate(180deg);
}

.oz-shop-cats__sublist {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.28);
}

.oz-shop-cats__item--parent.is-open > .oz-shop-cats__sublist {
    display: block;
}

.oz-shop-cats__sublink {
    display: block;
    padding: 10px 20px 10px 34px;
    font-size: 13px;
    line-height: 1.3;
    color: #c4c4cb;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.oz-shop-cats__sublink:hover,
.oz-shop-cats__sublink:focus-visible {
    background: rgba(227, 6, 19, 0.85);
    color: #ffffff;
    outline: none;
}

.oz-shop-cats__subitem.is-current .oz-shop-cats__sublink {
    color: #ffffff;
    font-weight: 700;
    box-shadow: inset 4px 0 0 #e30613;
}

.oz-shop-cats__overlay {
    display: none;
}

@media (max-width: 991px) {
    .oz-shop-cats-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 1rem clamp(1rem, 3vw, 2.5rem) 0;
        padding: 10px 16px;
        background: #e30613;
        color: #ffffff;
        border: 0;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
    }

    .oz-shop-cats-toggle__icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 5h18v2H3zM3 11h18v2H3zM3 17h18v2H3z'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 5h18v2H3zM3 11h18v2H3zM3 17h18v2H3z'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .oz-shop-archive__cats {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(82vw, 320px);
        max-width: 320px;
        z-index: 1001;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    }

    .oz-shop-archive__cats.is-open {
        transform: translateX(0);
    }

    .oz-shop-cats__close {
        display: inline-flex;
    }

    .oz-shop-cats__overlay.is-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.5);
    }
}
