/* MisterSmoke Mobile Menu v3.1.0 */
:root {
    --ms-bg: #f9fafb;
    --ms-surface: #ffffff;
    --ms-border: #e5e7eb;
    --ms-accent: #2fd07f;
    --ms-text: #111827;
    --ms-text-muted: #6b7280;
    --ms-radius: 16px;
    --ms-radius-sm: 12px;
}

#main-menu {
    display: none !important;
}

body.ms-mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

#ms-mobile-menu {
    --ms-mobile-level: 0;
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    visibility: hidden;
    font-family: 'DM Sans', sans-serif;
    color: var(--ms-text);
}

#ms-mobile-menu.is-open {
    visibility: visible;
}

#ms-mobile-menu *,
#ms-mobile-menu *::before,
#ms-mobile-menu *::after {
    box-sizing: border-box;
}

#ms-mobile-menu.is-open {
    pointer-events: auto;
}

#ms-mobile-menu * {
    text-transform: none;
}

#ms-mobile-menu button {
    margin-bottom: 0 !important;
}

.ms-mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.42);
    opacity: 0;
    transition: opacity 0.25s ease;
}

#ms-mobile-menu.is-open .ms-mobile-menu__overlay {
    opacity: 1;
}

.ms-mobile-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(85vw, 360px);
    height: 100%;
    padding-top: env(safe-area-inset-top, 0);
    background: var(--ms-bg);
    color: var(--ms-text);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#ms-mobile-menu.is-open .ms-mobile-menu__panel {
    transform: translateX(0);
    box-shadow: 18px 0 42px rgba(17, 24, 39, 0.14);
}

.ms-mobile-menu__header {
    min-height: 64px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ms-border);
    background: var(--ms-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ms-mobile-menu__icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-sm);
    background: var(--ms-surface);
    color: var(--ms-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ms-mobile-menu__icon-btn:active {
    border-color: var(--ms-accent);
    background: rgba(47, 208, 127, 0.08);
    color: var(--ms-accent);
}

.ms-mobile-menu__back.is-hidden {
    display: none;
}

.ms-mobile-menu__brand {
    flex: 1;
    max-width: 80px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-mobile-menu__brand.is-hidden {
    display: none;
}

/* Language switcher */
.ms-mobile-menu__lang {
    flex-shrink: 0;
    width: 40px;
    min-width: 40px;
}

.ms-mobile-menu__lang.is-hidden {
    display: none;
}

.ms-mobile-menu__lang .country-selector {
    margin: 0 !important;
}

.ms-mobile-menu__lang .wgcurrent,
.ms-mobile-menu__lang .country-selector a {
    display: flex !important;
    align-items: center;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.ms-mobile-menu__lang .country-selector img,
.ms-mobile-menu__lang .weglot-flags img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.ms-mobile-menu__logo {
    max-height: 30px;
    width: auto;
}

.ms-mobile-menu__brand-text {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--ms-text);
}

.ms-mobile-menu__title {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ms-text);
}

.ms-mobile-menu__title.is-hidden {
    display: none;
}

.ms-mobile-menu__views {
    flex: 1;
    min-height: 0;
    width: 300%;
    display: flex;
    transform: translateX(calc(var(--ms-mobile-level) * -33.333333%));
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.ms-mobile-menu__level {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0));
    background: var(--ms-bg);
}

.ms-mobile-menu__section {
    margin-bottom: 20px;
}

.ms-mobile-menu__section:last-child {
    margin-bottom: 0;
}

.ms-mobile-menu__quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ms-mobile-menu__quick-link {
    width: 100%;
    min-height: 70px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-sm);
    background: var(--ms-surface);
    color: var(--ms-text) !important;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px !important;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
}

.ms-mobile-menu__quick-link:active {
    border-color: var(--ms-accent);
    background: rgba(47, 208, 127, 0.05);
}

.ms-mobile-menu__quick-link-icon {
    font-size: 22px;
    line-height: 1;
}

.ms-mobile-menu__quick-link-text {
    display: block;
}

.ms-mobile-menu__sale {
    width: 100%;
    min-height: 56px;
    padding: 14px 16px !important;
    border: 1px solid #fadbd3;
    border-radius: var(--ms-radius-sm);
    background: #fff5f2;
    color: #e5341e !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

a.ms-mobile-menu__sale,
a.ms-mobile-menu__sale:hover,
a.ms-mobile-menu__sale:visited {
    color: #e5341e !important;
    text-decoration: none !important;
}

.ms-mobile-menu__sale:active {
    border-color: #f4c4b8;
    background: #fef2f0;
}

.ms-mobile-menu__sale-icon {
    flex-shrink: 0;
    color: #e5341e;
    font-size: 1.4rem;
    line-height: 1;
}

.ms-mobile-menu__sale-text {
    flex: 1;
    min-width: 0;
    color: #e5341e;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.ms-mobile-menu__sale-chevron {
    flex-shrink: 0;
    margin-left: auto;
    color: #e5341e;
    font-size: 1.5rem;
    line-height: 1;
}

.ms-mobile-menu__section-label {
    margin: 0 0 10px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ms-accent);
    text-transform: uppercase !important;
}

.ms-mobile-menu__rows {
    background: var(--ms-surface);
    border-radius: var(--ms-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.ms-mobile-menu__row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid var(--ms-border);
    background: transparent;
    color: var(--ms-text) !important;
    text-decoration: none !important;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    font-family: inherit;
    -webkit-appearance: none;
    transition: background-color 0.18s ease;
}

.ms-mobile-menu__row:last-child {
    border-bottom: none;
}

.ms-mobile-menu__row:active {
    background: rgba(47, 208, 127, 0.08);
}

a.ms-mobile-menu__row,
a.ms-mobile-menu__row:hover,
a.ms-mobile-menu__row:visited {
    color: var(--ms-text) !important;
    text-decoration: none !important;
}

.ms-mobile-menu__row--universe {
    font-size: 1rem;
    font-weight: 500;
}

.ms-mobile-menu__row--universe .ms-mobile-menu__row-text strong {
    font-weight: 700;
}

.ms-mobile-menu__row--child {
    justify-content: space-between;
}

.ms-mobile-menu__row-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    color: inherit;
    text-decoration: none;
}

.ms-mobile-menu__row-icon,
.ms-mobile-menu__universe-icon {
    width: 32px;
    flex-shrink: 0;
    text-align: center;
    font-size: 24px;
    line-height: 1;
    color: var(--ms-text);
}

.ms-mobile-menu__thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef2f7;
}

.ms-mobile-menu__row-text {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    text-transform: none !important;
}

.ms-mobile-menu__chevron {
    flex-shrink: 0;
    margin-left: auto;
    color: var(--ms-text-muted);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ms-mobile-menu__row:active .ms-mobile-menu__chevron {
    transform: translateX(4px);
    color: var(--ms-accent);
}

.ms-mobile-menu__row-action {
    display: none;
}

.ms-mobile-menu__see-all {
    display: block;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: var(--ms-radius-sm);
    background: var(--ms-surface);
    color: var(--ms-accent) !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ms-mobile-menu__badge {
    margin-left: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff4d9;
    color: #b36a00;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ms-mobile-menu__empty {
    margin: 8px 0;
    padding: 14px 16px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    background: var(--ms-surface);
    color: var(--ms-text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

@media (min-width: 850px) {
    #ms-mobile-menu {
        display: none !important;
    }
}

#ms-mobile-menu-newsletter {
    flex-shrink: 0;
    margin: 0;
    padding: 16px;
    padding-bottom: 0;
    border-radius: var(--ms-radius);
    background: #f0fdf4;
}

#ms-mobile-menu-newsletter .ff-el-group {
    margin-bottom: 10px !important;
}

#ms-mobile-menu-newsletter .ff-t-cell,
#ms-mobile-menu-newsletter .ff-el-input--content,
#ms-mobile-menu-newsletter input:not([type='submit']):not([type='checkbox']):not([type='radio']),
#ms-mobile-menu-newsletter textarea,
#ms-mobile-menu-newsletter select {
    width: 100%;
}

#ms-mobile-menu-newsletter input:not([type='submit']):not([type='checkbox']):not([type='radio']),
#ms-mobile-menu-newsletter textarea,
#ms-mobile-menu-newsletter select {
    border: 1px solid var(--ms-border) !important;
    border-radius: var(--ms-radius-sm) !important;
    background: var(--ms-surface) !important;
    color: var(--ms-text) !important;
    box-shadow: none !important;
}

#ms-mobile-menu-newsletter .ff-btn-submit {
    width: 100%;
    background: var(--ms-accent) !important;
    border-color: var(--ms-accent) !important;
    border-radius: var(--ms-radius-sm) !important;
    color: #062b18 !important;
    font-weight: 700 !important;
}
