/* Casmara mobile menu: deliberately isolated from Divi's menu selectors. */
.casmara-mobile-menu,
.casmara-mobile-menu * { box-sizing: border-box; }

.casmara-mobile-menu { display: none; }

@media (max-width: 980px) {
    body.casmara-mobile-menu-open { overflow: hidden; }

    #et_mobile_nav_menu .mobile_menu_bar,
    #et_mobile_nav_menu .select_page,
    #main-header #mobile_menu { display: none !important; }

    .casmara-mobile-menu__trigger { display: inline-flex; position: relative; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; background: transparent; color: #746661; cursor: pointer; }
    .casmara-mobile-menu__trigger span,
    .casmara-mobile-menu__trigger span::before,
    .casmara-mobile-menu__trigger span::after { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
    .casmara-mobile-menu__trigger span { position: relative; }
    .casmara-mobile-menu__trigger span::before,
    .casmara-mobile-menu__trigger span::after { content: ''; position: absolute; left: 0; }
    .casmara-mobile-menu__trigger span::before { top: -7px; }
    .casmara-mobile-menu__trigger span::after { top: 7px; }
    .casmara-mobile-menu__trigger[aria-expanded='true'] span { background: transparent; }
    .casmara-mobile-menu__trigger[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
    .casmara-mobile-menu__trigger[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

    .casmara-mobile-menu { position: fixed; inset: 0; z-index: 100000; display: block; visibility: hidden; pointer-events: none; }
    .casmara-mobile-menu.is-open { visibility: visible; pointer-events: auto; }
    .casmara-mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.18); opacity: 0; transition: opacity .28s ease; }
    .casmara-mobile-menu.is-open .casmara-mobile-menu__backdrop { opacity: 1; }
    .casmara-mobile-menu__panel { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: #f0edec; transform: translateX(100%); transition: transform .34s cubic-bezier(.22,.61,.36,1); -webkit-overflow-scrolling: touch; }
    .casmara-mobile-menu.is-open .casmara-mobile-menu__panel { transform: translateX(0); }
    .casmara-mobile-menu__header { display: flex; align-items: center; justify-content: flex-end; min-height: 56px; padding: 8px 24px; border-bottom: 1px solid rgba(116,102,97,.22); }
    .casmara-mobile-menu__close { position: relative; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(116,102,97,.4); border-radius: 50%; background: transparent; color: #746661; cursor: pointer; }
    .casmara-mobile-menu__close span::before,
    .casmara-mobile-menu__close span::after { content: ''; position: absolute; top: 19px; left: 10px; width: 18px; height: 1px; background: currentColor; }
    .casmara-mobile-menu__close span::before { transform: rotate(45deg); }
    .casmara-mobile-menu__close span::after { transform: rotate(-45deg); }
    .casmara-mobile-menu__nav { padding: 16px 24px 32px; }
    .casmara-mobile-menu__list { margin: 0; padding: 0; list-style: none; }
    .casmara-mobile-menu__item { border-bottom: 1px solid rgba(116,102,97,.18); }
    .casmara-mobile-menu__row { display: flex; align-items: stretch; min-height: 54px; }
    .casmara-mobile-menu__link { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 15px 0; color: #000; font-size: 16px; line-height: 1.3; text-decoration: none; }
    .casmara-mobile-menu__item--depth-0 > .casmara-mobile-menu__row > .casmara-mobile-menu__link { color: #746661; font-weight: 500; }
    .casmara-mobile-menu__toggle { position: relative; flex: 0 0 48px; margin: 6px 0; padding: 0; border: 0; background: transparent; color: #746661; cursor: pointer; }
    .casmara-mobile-menu__toggle span::before,
    .casmara-mobile-menu__toggle span::after { content: ''; position: absolute; top: 50%; left: 16px; width: 14px; height: 1px; background: currentColor; transition: transform .2s ease; }
    .casmara-mobile-menu__toggle span::after { transform: rotate(90deg); }
    .casmara-mobile-menu__toggle[aria-expanded='true'] span::after { transform: rotate(0); }
    .casmara-mobile-menu__submenu { margin: 0 0 8px 12px; padding: 4px 0 4px 12px; background: transparent; border-left: 0; }
    .casmara-mobile-menu__submenu[hidden] { display: none; }
    .casmara-mobile-menu__list--level-2 .casmara-mobile-menu__link { font-size: 14px; }
    .casmara-mobile-menu__icon { display: inline-flex; flex: 0 0 28px; align-items: center; justify-content: center; width: 28px; height: 28px; color: #746661; }
    .casmara-mobile-menu__icon svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
    .casmara-mobile-menu__utility-link > svg { display: block; flex: 0 0 28px; width: 28px; height: 28px; fill: #746661 !important; stroke: none !important; }
    .casmara-mobile-menu__social-icon { display: inline-block; flex: 0 0 32px; width: 32px; height: 32px; margin-right: 0; border-radius: 7px; background-color: #f0edec; background-repeat: no-repeat; background-position: center; background-size: 20px 20px; }
    .casmara-mobile-menu__source-id-254980 .casmara-mobile-menu__social-icon { background-image: url('https://casmara.su/wp-content/uploads//2026/09/menu_tg_64x64_bwn.png'); }
    .casmara-mobile-menu__source-id-254981 .casmara-mobile-menu__social-icon { background-image: url('https://casmara.su/wp-content/uploads//2026/09/menu_wa_64x64_bwn.png'); }
    .casmara-mobile-menu__source-id-254985 .casmara-mobile-menu__social-icon { background-image: url('https://casmara.su/wp-content/uploads//2026/09/menu_mx_64x64_bwn.png'); }
    .casmara-mobile-menu__source-id-254982 .casmara-mobile-menu__social-icon { background-image: url('https://casmara.su/wp-content/uploads//2026/09/menu_tl_64x64_bwn.png'); }
    .casmara-mobile-menu__source-id-254983 .casmara-mobile-menu__social-icon { background-image: url('https://casmara.su/wp-content/uploads//2026/09/menu_mp_64x64_bwn.png'); }
    .casmara-mobile-menu__utility { margin-top: 26px; padding: 12px 0; border-top: 0; border-bottom: 1px solid rgba(116,102,97,.22); }
    .casmara-mobile-menu__utility-link { display: flex; align-items: center; gap: 12px; min-height: 52px; color: #746661; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
    .casmara-mobile-menu__utility-main { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
    .casmara-mobile-menu__utility-main small { color: rgba(116,102,97,.75); font-size: 11px; font-weight: 400; letter-spacing: 0; line-height: 1.3; text-transform: none; }
    .casmara-mobile-menu__cart-icon { position: relative; display: inline-flex; flex: 0 0 28px; align-items: center; justify-content: center; width: 28px; height: 28px; color: #746661; }
    .casmara-mobile-menu__cart-icon::before { content: '\e07a'; font-family: ETmodules !important; font-size: 23px; font-weight: 400; line-height: 1; }
    .casmara-mobile-menu__socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 22px 0 8px; }
    .casmara-mobile-menu__social-link { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #746661; font-size: 11px; line-height: 1.2; text-decoration: none; }
}

@media (min-width: 981px) {
    .casmara-mobile-menu,
    .casmara-mobile-menu__trigger { display: none !important; }
}
