/* Offcanvas Menu Styles */
.olla-offcanvas-menu-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Hamburger Toggle */
.olla-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 99;
}

.olla-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    transition: all 0.3s ease;
}

/* Overlay */
.olla-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.olla-offcanvas-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Offcanvas Panel */
.olla-offcanvas-panel {
    position: fixed;
    top: 0;
    left: -350px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    z-index: 999999;
    transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    overflow-y: auto;
    padding: 0 0 40px;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.olla-offcanvas-panel.is-open {
    left: 0;
    /* slide in from left */
}

/* Close Button (flex child inside .olla-panel-header) */
.olla-offcanvas-close {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.olla-offcanvas-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.olla-offcanvas-close svg {
    width: 14px;
    height: 14px;
}

/* Panel Header: logo left, close right */
.olla-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 64px;
}

.olla-panel-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    border: none;
    text-align: left;
    flex: 1;
    /* stretch to fill available header space */
    min-width: 0;
    /* allow flex shrink if needed */
}

.olla-panel-logo a {
    display: inline-block;
    border: none !important;
    padding: 0 !important;
    text-decoration: none !important;
    /* remove underline */
}

.olla-panel-logo img {
    max-width: 100%;
    width: 120px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

.olla-offcanvas-panel-9a045de .olla-panel-logo {
    text-align: left !important;
    padding: 0px !important;
    border-bottom: 0 !important;
}

.olla-logo-tagline {
    margin: 5px 0 0;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
}

.olla-offcanvas-nav {
    margin: 0;
    padding: 0 25px;
    /* horizontal breathing room */
    list-style: none;
}

.olla-offcanvas-nav li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.olla-offcanvas-nav li::before {
    display: none !important;
    content: none !important;
}

.olla-offcanvas-nav a {
    display: block;
    padding: 16px 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.olla-offcanvas-nav a:hover {
    padding-left: 10px;
}

.olla-offcanvas-nav .menu-item-has-children {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.olla-offcanvas-nav .menu-item-has-children>a {
    flex-grow: 1;
    border-bottom: none;
    /* Let the wrapper handle border if needed */
}

.olla-submenu-toggle {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    /* Divider */
}

.olla-submenu-toggle svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.olla-submenu-toggle.is-open {
    transform: rotate(180deg);
}

.olla-offcanvas-nav .sub-menu {
    /* flex break so sub-menu fills full width below the row */
    flex-basis: 100%;
    width: 100%;
    order: 10;
    display: none;
    /* JS will slideToggle this */
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-left: 15px;
    margin-top: 5px;
    list-style: none;
    padding-top: 5px;
}

.olla-offcanvas-nav .sub-menu li {
    display: block !important;
    list-style: none !important;
}

.olla-offcanvas-nav .sub-menu li::before {
    content: none !important;
    display: none !important;
}

.olla-offcanvas-nav .sub-menu a {
    display: block !important;
    color: inherit !important;
    /* Inherit panel text color */
    font-size: 13px;
    padding: 11px 0 11px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-transform: capitalize;
    letter-spacing: 1px;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease, padding-left 0.2s ease;
}

.olla-offcanvas-nav .sub-menu a:hover {
    opacity: 1;
    padding-left: 20px;
}

.olla-offcanvas-nav .sub-menu li:last-child a {
    border-bottom: none;
}

/* Responsive constraints */
@media (max-width: 480px) {
    .olla-offcanvas-panel {
        width: 100vw;
        max-width: 100vw;
        left: -100vw;
    }
}