/* ============================================================
   WP Pro Sidebar Menu — frontend-style.css  v1.1.0
   ============================================================ */

/* Reset */
* { box-sizing: border-box; }

/* Body com plugin ativo */
body.wpsm-active {
    padding-top: 50px !important;
    padding-bottom: var(--wpsm-footer-height, 0px);
    margin: 0;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    transition: padding-left 0.3s, padding-bottom 0.3s;
}

body.wpsm-active.sidebar-collapsed { padding-left: 0; }
body.wpsm-active.sidebar-hidden    { padding-left: 0; }

/* ============================================================
   BARRA SUPERIOR
   ============================================================ */
.wpsm-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: var(--wpsm-primary-color, #823e9f);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.wpsm-top-bar-left,
.wpsm-top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nome-site-a {
    color: white !important;
    font-weight: 300 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    cursor: pointer;
}

/* Botão hambúrguer */
.sidebar-toggler {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex !important;
    font-size: 15px;
    border-radius: 5px;
    transition: all .3s;
}

.sidebar-toggler:hover { background: rgba(255,255,255,.2); }

#wpsm-btn-toggle-text {
    color: white;
    cursor: pointer;
    font-size: 13px;
}

/* ============================================================
   NOME DO USUÁRIO — truncamento com ellipsis
   ============================================================ */
.wpsm-user-name {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-controls { display: none !important; }

.wpsm-sidebar {
    position: fixed;
    left: 0;
    top: 50px;
    bottom: 0;
    width: 260px;
    background-color: var(--wpsm-sidebar-bg, #0c1e35);
    color: var(--wpsm-text-color, #7d84ab);
    overflow-x: hidden;
    overflow-y: auto;
    transition: all .3s;
    z-index: 999;
}

.wpsm-sidebar.hidden    { transform: translateX(-100%); }
.wpsm-sidebar.collapsed { width: 80px; }

.wpsm-sidebar::-webkit-scrollbar,
.sidebar-content::-webkit-scrollbar               { width: 6px; background-color: rgba(0,0,0,.2); }
.wpsm-sidebar::-webkit-scrollbar-thumb,
.sidebar-content::-webkit-scrollbar-thumb         { border-radius: 4px; background-color: rgba(255,255,255,.1); }
.wpsm-sidebar:hover::-webkit-scrollbar-thumb,
.sidebar-content:hover::-webkit-scrollbar-thumb   { background-color: rgba(255,255,255,.2); }

.sidebar-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    position: relative;
}

.pro-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-sidebar-logo > div {
    width: 40px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: var(--wpsm-primary-color, #823e9f);
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.pro-sidebar-logo h5 {
    margin: 0;
    font-size: 18px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-content {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
    min-height: 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.05);
    text-align: center;
}

.footer-box {
    font-size: 12px;
    opacity: .6;
}

/* Controles da sidebar */
.sidebar-controls {
    display: flex;
    gap: 10px;
    position: absolute;
    right: 22px;
    top: 80px;
    transform: translateY(-50%);
}

.sidebar-collapser,
#wpsm-btn-hide {
    background-color: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: white;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all .3s;
}

.sidebar-collapser:hover,
#wpsm-btn-hide:hover { background-color: rgba(255,255,255,.2); }

.sidebar-collapser i                        { transition: transform .3s; }
.wpsm-sidebar.collapsed .sidebar-collapser i { transform: rotate(180deg); }

.wpsm-sidebar.collapsed .menu-icon { margin-right: 0; }

/* ============================================================
   MENU
   ============================================================ */
.menu ul { list-style: none; padding: 0; margin: 0; }

.menu-header {
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .4;
}

.menu-item { position: relative; }

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--wpsm-text-color, #7d84ab);
    text-decoration: none;
    transition: all .3s;
    position: relative;
    cursor: pointer;
    box-shadow: rgba(0,0,0,.05) 0 0 0 1px;
}

.menu-item a:hover,
.menu-item.active > a {
    color: var(--wpsm-hover-color, #dee2ec);
    background-color: rgba(255,255,255,.02);
}

.menu-item.active > a { background-color: rgba(255,255,255,.05); }

.menu-item.active > a::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background-color: var(--wpsm-primary-color, #823e9f);
}

.menu-icon {
    width: 35px; min-width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 10px;
    font-size: 20px;
    border-radius: 8px;
    background-color: rgba(255,255,255,.02);
}

.menu-title {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-suffix { margin-left: auto; }

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 7px !important;
    font-size: .6rem !important;
    font-weight: 600;
    border-radius: 10px;
    color: white;
    text-transform: uppercase;
}

.badge.primary  { background-color: #209d16 !important; }
.badge.secondary { background-color: #28a745; }
.badge.danger   { background-color: #dc3545; }

/* Submenus normais */
.sub-menu > a::after {
    content: '';
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    width: 6px; height: 6px;
    transform: rotate(-45deg);
    transition: transform .3s;
}

.sub-menu.open > a::after { transform: rotate(45deg); }

.sub-menu-list {
    display: none;
    overflow: hidden;
    background-color: rgba(0,0,0,.1);
}

.sub-menu.open > .sub-menu-list { display: block; }

.sub-menu-list .menu-item a           { padding-left: 50px; font-size: 13px; }
.sub-menu-list .sub-menu-list .menu-item a { padding-left: 70px; }

/* Submenus flutuantes (collapsed) */
.sub-menu-floating {
    background-color: var(--wpsm-sidebar-bg, #0c1e35);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,.3);
    min-width: 200px;
    padding: 10px 0;
    animation: fadeInRight .3s;
    position: fixed !important;
    z-index: 10000 !important;
}

.sub-menu-floating ul { padding-inline-start: 10px; padding-inline-end: 10px; }

@keyframes fadeInRight {
    from { opacity:0; transform: translateX(-10px); }
    to   { opacity:1; transform: translateX(0); }
}

.sub-menu-floating .menu-item a {
    padding: 10px 20px;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--wpsm-text-color, #7d84ab);
    text-decoration: none;
}

.sub-menu-floating .menu-item a:hover {
    background-color: rgba(255,255,255,.05);
    color: var(--wpsm-hover-color, #dee2ec);
}

.sub-menu-floating .menu-icon { width: 20px; height: 20px; min-width: 20px; font-size: 16px; }

.wpsm-sidebar.collapsed .menu-item.sub-menu > a::after {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 5px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
}

.wpsm-sidebar.collapsed .menu-item.sub-menu.show-floating > a {
    background-color: rgba(255,255,255,.05);
}

.wpsm-sidebar .menu-item,
.wpsm-sidebar .menu-item.active > a { color: #01ff75 !important; }

/* ============================================================
   NOTIFICAÇÕES
   ============================================================ */
.wpsm-notification-wrapper,
.wpsm-user-menu-wrapper { position: relative; }

.wpsm-notification-trigger,
.wpsm-user-trigger {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all .3s;
}

.wpsm-notification-trigger:hover,
.wpsm-user-trigger:hover { background: rgba(255,255,255,.2); }

.wpsm-notification-badge {
    position: absolute;
    top: -5px; right: -5px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    background-color: #00ff0d !important;
    color: black;
    border-radius: 9px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpsm-notification-dropdown,
.wpsm-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.wpsm-user-dropdown { width: 200px; }

.wpsm-notification-dropdown.active,
.wpsm-user-dropdown.active {
    display: block;
    animation: slideDown .3s ease;
}

@keyframes slideDown {
    from { opacity:0; transform: translateY(-10px); }
    to   { opacity:1; transform: translateY(0); }
}

.wpsm-notification-header {
    padding: 5px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #3e9f63 0%, #3a8f50 100%);
    color: white;
}

.wpsm-notification-header h3 { margin: 0; font-size: 16px; }

.wpsm-notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
}

.wpsm-notification-close:hover { opacity: .8; }

.wpsm-notification-list {
    max-height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
}

.wpsm-notification-item {
    background: white;
    margin: 8px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    display: flex;
    gap: 12px;
    box-shadow: rgba(0,0,0,.12) 0 1px 3px, rgba(0,0,0,.24) 0 1px 2px;
}

.wpsm-notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.wpsm-notification-item.unread {
    background: linear-gradient(to right, #f0f4ff 0%, white 100%);
    border-left: 3px solid var(--wpsm-primary-color, #823e9f);
}

.wpsm-notification-dismiss {
    position: absolute;
    top: 8px; right: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #999;
    transition: all .2s;
    z-index: 2;
}

.wpsm-notification-dismiss:hover {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

.wpsm-notification-content { flex: 1; padding-right: 20px; }

.wpsm-notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
    /* ── quebra de texto longo ── */
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wpsm-notification-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 5px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* CTA da notificação */
.wpsm-notification-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 14px;
    background: var(--wpsm-primary-color, #823e9f);
    color: white !important;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}

.wpsm-notification-cta:hover { opacity: .85; }

.wpsm-notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.wpsm-notification-time { color: #999; font-size: 11px; }

.wpsm-notification-expand { display: none !important; }

.wpsm-notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.wpsm-notification-item:hover .wpsm-notification-title {
    color: var(--wpsm-primary-color, #823e9f);
}

/* Dropdown do Usuário */
.wpsm-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background .2s;
}

.wpsm-user-dropdown-item:hover { background-color: #f0f0f0; }
.wpsm-user-dropdown-item i { font-size: 18px; color: var(--wpsm-primary-color, #823e9f); }

/* Botão de Login */
.wpsm-login-btn {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all .3s;
}

.wpsm-login-btn:hover { background: rgba(255,255,255,.2); color: white; }

/* ============================================================
   MODAL DE NOTIFICAÇÃO
   ============================================================ */
.wpsm-modal {
    position: fixed;
    top: 50px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    padding-top: 40px;
    overflow-y: auto;
}

.wpsm-modal.active { display: flex; animation: fadeIn .3s; }

@keyframes fadeIn {
    from { opacity:0; }
    to   { opacity:1; }
}

.wpsm-modal-content {
    background: white;
    border-radius: 12px;
    width: 98%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalSlide .3s;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity:0; }
    to   { transform: translateY(0); opacity:1; }
}

.wpsm-modal-header {
    padding: 5px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4eb538 0%, #25714b 100%);
    border-radius: 5px 5px 0 0;
}

.wpsm-modal-header h2 { margin: 0; font-size: 20px; color: white; }

.wpsm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
}

.wpsm-modal-close:hover { opacity: .8; }

.wpsm-modal-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    color: #333;
    line-height: 1.6;
    box-shadow: rgba(0,0,0,.12) 0 1px 3px, rgba(0,0,0,.24) 0 1px 2px;
    word-break: break-word;
}

.wpsm-modal-footer {
    padding: 5px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.wpsm-btn {
    padding: 10px 32px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all .3s;
}

.wpsm-btn-primary { background: var(--wpsm-primary-color, #823e9f); color: white; }
.wpsm-btn-primary:hover { opacity: .9; transform: translateY(-1px); }

/* ============================================================
   OVERLAY
   ============================================================ */
.wpsm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.3);
    display: none;
    z-index: 998;
}

.wpsm-overlay.active { display: block; }

/* ============================================================
   BUSCA DESKTOP (na top bar)
   ============================================================ */
.wpsm-search-wrapper { position: relative; }

.wpsm-search-desktop {
    display: flex;
    align-items: center;
}

.wpsm-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 25px;
    overflow: hidden;
    transition: all .3s;
    max-height: 35px;
}

.wpsm-search-input-wrapper:focus-within {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.3);
}

.wpsm-search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    width: 180px;
    outline: none;
    transition: width .3s;
}

.wpsm-search-input::placeholder { color: rgba(255,255,255,.6); }
.wpsm-search-input:focus         { width: 220px; }

.wpsm-search-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.8);
    padding: 8px 12px;
    cursor: pointer;
    transition: color .2s;
}

.wpsm-search-btn:hover { color: white; }

/* Dropdown de resultados */
.wpsm-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
    display: none;
    z-index: 1002;
    overflow: hidden;
}

.wpsm-search-dropdown.active {
    display: block;
    animation: wpsm-slideDown .3s ease;
}

@keyframes wpsm-slideDown {
    from { opacity:0; transform: translateY(-10px); }
    to   { opacity:1; transform: translateY(0); }
}

.wpsm-search-results-list { max-height: 400px; overflow-y: auto; }

.wpsm-search-result-item {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background .2s;
    position: relative;
}

.wpsm-search-result-item:hover        { background: #f8f9fa; }
.wpsm-search-result-item:last-child   { border-bottom: none; }

.wpsm-search-result-type {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(130,62,159,.1);
    color: var(--wpsm-primary-color, #823e9f);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.wpsm-search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.wpsm-search-result-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 5px;
}

.wpsm-search-result-action {
    font-size: 12px;
    color: var(--wpsm-primary-color, #823e9f);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity .2s;
}

.wpsm-search-result-item:hover .wpsm-search-result-action { opacity: 1; }

.wpsm-search-footer {
    padding: 12px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.wpsm-search-full-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--wpsm-primary-color, #823e9f);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
}

.wpsm-search-full-btn:hover {
    background: var(--wpsm-sidebar-bg, #0c1e35);
    color: white;
    transform: translateY(-1px);
}

.wpsm-search-loading,
.wpsm-search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #999;
}

.wpsm-search-loading i   { font-size: 24px; display: block; margin-bottom: 10px; }
.wpsm-search-no-results i { font-size: 32px; display: block; margin-bottom: 10px; opacity: .5; }

@keyframes ri-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.ri-spin { animation: ri-spin 1s linear infinite; }

/* ============================================================
   BOTÃO DE BUSCA MOBILE (na top bar, ≤ 768px)
   ============================================================ */
.wpsm-mobile-search-btn {
    display: none;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.wpsm-mobile-search-btn:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   MODAL DE BUSCA MOBILE
   ============================================================ */
.wpsm-mobile-search-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.7);
    z-index: 10001;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
    animation: fadeIn .2s ease;
}

.wpsm-mobile-search-modal.active { display: flex; }

.wpsm-mobile-search-modal-inner {
    background: white;
    border-radius: 0 0 16px 16px;
    width: 100%;
    max-width: 100%;
    position: absolute;
    top: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
    animation: slideDown .25s ease;
}

.wpsm-mobile-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--wpsm-primary-color, #823e9f);
}

.wpsm-mobile-search-field-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.15);
    border-radius: 25px;
    padding: 6px 14px;
    gap: 10px;
}

.wpsm-mobile-search-field-wrap i { color: rgba(255,255,255,.8); font-size: 18px; }

.wpsm-mobile-search-field {
    flex: 1;
    border: none;
    background: transparent;
    color: white;
    font-size: 15px;
    outline: none;
}

.wpsm-mobile-search-field::placeholder { color: rgba(255,255,255,.6); }

.wpsm-mobile-search-close {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    border-radius: 50%;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    flex-shrink: 0;
    transition: background .2s;
}

.wpsm-mobile-search-close:hover { background: rgba(255,255,255,.2); }

.wpsm-mobile-search-results {
    max-height: 60vh;
    overflow-y: auto;
}

.wpsm-mobile-search-footer {
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

/* ============================================================
   RODAPÉ DO PLUGIN
   ============================================================ */
.wpsm-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--wpsm-footer-height, 48px);
    background-color: var(--wpsm-primary-color, #823e9f);
    color: white;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
}

.wpsm-footer-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 15px;
}

.wpsm-footer-left  { flex-shrink: 0; }
.wpsm-footer-right { flex-shrink: 0; }
.wpsm-footer-center { flex: 1; display: flex; justify-content: center; }

.wpsm-footer-text {
    font-size: 12px;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
}

/* Busca no footer */
.wpsm-footer-search { position: relative; }

.wpsm-footer-search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    overflow: hidden;
    max-height: 32px;
}

.wpsm-footer-search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 6px 14px;
    font-size: 13px;
    width: 220px;
    outline: none;
    transition: width .3s;
}

.wpsm-footer-search-input::placeholder { color: rgba(255,255,255,.55); }
.wpsm-footer-search-input:focus         { width: 280px; }

.wpsm-footer-search-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.8);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: color .2s;
}

.wpsm-footer-search-btn:hover { color: white; }

.wpsm-footer-search-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    max-width: 95vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 -6px 30px rgba(0,0,0,.2);
    display: none;
    z-index: 1003;
    overflow: hidden;
}

.wpsm-footer-search-dropdown.active { display: block; }

/* Botão voltar ao topo */
.wpsm-back-to-top {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    transition: all .2s;
}

.wpsm-back-to-top:hover {
    background: rgba(255,255,255,.25);
    transform: translateY(-1px);
}

/* ============================================================
   ANIMAÇÕES GERAIS
   ============================================================ */
.wpsm-sidebar,
body.wpsm-active,
.menu-item a,
.wpsm-notification-item,
.wpsm-btn { transition: all .3s ease; }

/* ============================================================
   Z-INDEX HIERARCHY
   ============================================================ */
.wpsm-top-bar                                   { z-index: 1000; }
.wpsm-footer                                    { z-index: 1000; }
.wpsm-sidebar                                   { z-index: 999;  }
.wpsm-overlay                                   { z-index: 998;  }
.wpsm-notification-dropdown,
.wpsm-user-dropdown,
.sub-menu-floating                              { z-index: 1001; }
.wpsm-search-dropdown,
.wpsm-footer-search-dropdown                   { z-index: 1002; }
.wpsm-modal                                     { z-index: 9999; }
.wpsm-mobile-search-modal                       { z-index: 10001;}

/* Sem transição no load inicial */
.wpsm-sidebar.no-transition { transition: none !important; }

/* ============================================================
   ADMIN BAR
   ============================================================ */
body.wpsm-active #wpadminbar { display: none; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {

    body.wpsm-active { padding-left: 0; }
    body.wpsm-active.sidebar-collapsed,
    body.wpsm-active.sidebar-hidden    { padding-left: 0; }

    .wpsm-sidebar { transform: translateX(-100%); width: 260px; }
    .wpsm-sidebar.toggled { transform: translateX(0) !important; width: 260px; }
    .wpsm-sidebar.toggled .menu-item  { display: block !important; }
    .wpsm-sidebar.toggled .menu-title,
    .wpsm-sidebar.toggled .menu-icon,
    .wpsm-sidebar.toggled .menu-header { display: flex !important; }
    .wpsm-sidebar.toggled.collapsed           { width: 260px; }
    .wpsm-sidebar.toggled.collapsed .menu-title { display: block !important; }

    .sidebar-toggler  { display: flex !important; }
    .sidebar-controls { display: none !important; }

    /* Mostrar botão de busca mobile */
    .wpsm-mobile-search-btn { display: flex; }

    /* Ocultar busca desktop */
    .wpsm-search-desktop { display: none !important; }

    /* Submenus */
    .wpsm-sidebar.toggled .sub-menu-list { display: none !important; }
    .wpsm-sidebar.toggled .menu-item.open > .sub-menu-list { display: block !important; }
    .wpsm-sidebar.toggled.collapsed { width: 260px; }
    .wpsm-sidebar.toggled.collapsed .menu-title,
    .wpsm-sidebar.toggled.collapsed .menu-header,
    .wpsm-sidebar.toggled.collapsed .menu-suffix,
    .wpsm-sidebar.toggled.collapsed .sidebar-controls { display: initial; }

    .wpsm-notification-item { flex-direction: column; }
    .wpsm-notification-dismiss { top: 5px; right: 5px; }
    .wpsm-notification-content { padding-right: 25px; }

    #wpsm-btn-hide { display: none !important; }

    /* Footer: oculta busca no rodapé, exibe somente back-to-top e texto */
    .wpsm-footer-center { display: none; }

    /* Modal de busca mobile */
    .wpsm-mobile-search-modal { padding-top: 0; }
}

@media (max-width: 480px) {
    .wpsm-user-name { display: none; }

    .wpsm-notification-dropdown {
        position: fixed;
        top: 60px; left: 0; right: 0;
        width: 98%;
        border-radius: 5px;
        max-height: calc(100vh - 60px);
        margin: 0 auto;
    }

    .wpsm-notification-list { max-height: calc(100vh - 160px); }

    .wpsm-modal { padding: 0; }
    .wpsm-modal-content {
        padding: 1px;
        width: 95%;
        height: fit-content;
        max-height: fit-content;
        border-radius: 5px;
        margin-top: 10px;
    }
    .wpsm-modal-body { padding: 25px; }

    .wpsm-sidebar.collapsed .pro-sidebar-logo h5 { display: block; }
}

@media (max-width: 450px) {
    .nome-site-a { display: none !important; }
}

@media (max-width: 380px) {
    .wpsm-sidebar.toggled.collapsed { width: 80% !important; }
    .wpsm-top-bar { padding: 0 7px; }
    .wpsm-top-bar-left,
    .wpsm-top-bar-right { gap: 5px; }
}

/* Collapsed desktop: oculta submenus inline */
.wpsm-sidebar.collapsed .sub-menu-list { display: none !important; }
