/* ===== Base off-canvas sidebar — paste this first ===== */
#shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    background: #fff;
    z-index: 100000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
#shop-sidebar.open {
    transform: translateX(0);
}

#shop-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
#shop-sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.shop-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 400;
    font-size: 35px;
    font-family: "Protest Strike";
    color: #000;
}
.shop-sidebar-header button {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
}
.shop-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar-accordion {
    padding: 0;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 16px 20px;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
}

.accordion-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 10px;
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.accordion-item.open .accordion-panel {
    max-height: 2000px; /* large enough to fit content */
}

/* menu list rendered by the shortcode, inside a panel */
.accordion-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.accordion-panel > * > ul > li,
.accordion-panel ul li {
    border-bottom: 1px solid #e1e1e1;
    position: relative;
}
.accordion-panel ul li a {
    display: block;
    padding: 12px 20px 12px 32px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.accordion-panel ul ul {
    display: none;
    background: #f2f2f2;
}
.accordion-panel ul li.menu-item-has-children.sub-open > ul {
    display: block;
}
.accordion-panel ul li.menu-item-has-children > a {
    padding-right: 40px;
}

/* nested +/- toggle for deeper submenus rendered by the shortcode itself */
.sub-toggle {
    position: absolute;
    right: 14px;
    top: 8px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 16px;
    color: #777;
    cursor: pointer;
}

button.accordion-toggle:hover {
    border-radius: unset;
    background: unset;
    color: black;
}
