/* ============================================================
   Starter Mega Menu – Mobile Menu Widget
   ============================================================ */

.smm-mobile-menu-widget {
    width: 100%;
    position: relative;
}

/* ── Hamburger Toggle ──────────────────────────────────────── */

.smm-hamburger-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 100000;
}

.smm-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.smm-hamburger i {
    font-size: 22px;
}

.smm-hamburger svg {
    width: 22px;
    height: 22px;
}

/* Icon swap: show bars by default, hide X */
.smm-hamburger__open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.smm-hamburger__close {
    display: none;
    align-items: center;
    justify-content: center;
}

/* When active: hide bars, show X */
.smm-mobile-menu-widget.smm-is-active .smm-hamburger__open {
    display: none;
}

.smm-mobile-menu-widget.smm-is-active .smm-hamburger__close {
    display: inline-flex;
}

/* ── Overlay ───────────────────────────────────────────────── */

.smm-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.smm-mobile-menu-widget.smm-is-active .smm-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── Panel / Drawer ────────────────────────────────────────── */

.smm-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    background-color: #fff;
    z-index: 99999;
    overflow-y: auto;
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s ease;
}

.smm-panel--left {
    left: 0;
    transform: translateX(-100%);
}

.smm-panel--right {
    right: 0;
    transform: translateX(100%);
}

.smm-mobile-menu-widget.smm-is-active .smm-panel {
    transform: translateX(0);
    visibility: visible;
}

.smm-panel-inner {
    padding: 20px 25px;
}

/* ── Panel Header / Close Button ───────────────────────────── */

.smm-panel-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.smm-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.smm-close-btn i {
    font-size: 20px;
}

.smm-close-btn svg {
    width: 20px;
    height: 20px;
}

/* ── Navigation Menu ───────────────────────────────────────── */

.smm-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.smm-nav-menu > ul > li {
    border-bottom: 1px solid #e0e0e0;
    border-bottom-style: solid;
}

.smm-nav-menu a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #000;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.smm-nav-menu a:hover {
    color: #555;
}

/* Submenu */
.smm-nav-menu .sub-menu {
    padding-left: 15px;
    display: none;
}

.smm-nav-menu .sub-menu.is-open {
    display: block;
}

.smm-nav-menu .sub-menu a {
    font-size: 13px;
    padding: 8px 0;
    text-transform: none;
}

/* Parent item toggle indicator */
.smm-nav-menu .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.smm-nav-menu .menu-item-has-children > a::after {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.smm-nav-menu .menu-item-has-children.is-open > a::after {
    content: '\2212';
}

/* Editor placeholder */
.smm-no-menu-notice {
    padding: 20px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* ── Buttons ───────────────────────────────────────────────── */

.smm-buttons-wrapper {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.smm-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    cursor: pointer;
    border-style: solid;
    line-height: 1.4;
}

.smm-button + .smm-button {
    margin-top: 8px;
}

/* Outline variant */
.smm-button--outline {
    background-color: transparent;
    color: #000;
    border: 2px solid #000;
}

.smm-button--outline:hover {
    background-color: #000;
    color: #fff;
}

/* Filled variant */
.smm-button--filled {
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
}

.smm-button--filled:hover {
    background-color: #fff;
    color: #000;
}

/* ── Locale Selector ───────────────────────────────────────── */

.smm-locale-selector {
    padding: 20px 0 15px;
}

.smm-locale-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #000;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.smm-locale-link:hover {
    color: #555;
}

.smm-locale-arrow {
    display: inline-flex;
    align-items: center;
}

.smm-locale-arrow i {
    font-size: 12px;
}

.smm-locale-arrow svg {
    width: 12px;
    height: 12px;
}

/* ── Social Icons ──────────────────────────────────────────── */

.smm-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px 0 20px;
}

.smm-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px;
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.smm-social-icon:hover {
    color: #555;
}

.smm-social-icon i {
    font-size: 18px;
}

.smm-social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ── Body lock when panel is open ──────────────────────────── */

body.smm-panel-open {
    overflow: hidden;
}
