/* Labels de produto */
.pro-large-img .labels,
.product-thumb .labels {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    text-align: center;
    z-index: 1;
}

.pro-large-img .labels img,
.product-thumb .labels img {
    height: 40px;
    display: inline-block;
    border: none !important;
}

.box.box-right li.settings a {
    display: inline-block !important;
}

.box.box-right li.settings a strong {
    display: inline !important;
}

@media (max-width: 991px) {
    .mean-container a.meanmenu-reveal span {
        background: var(--menu-color-6) !important;
    }

    .mean-container a.meanmenu-reveal {
        color: var(--menu-color-6) !important;
    }

    .categories-menu-bar {
        display: none !important;
    }

    .header-middle {
        padding: 24px 0;
    }

    .header-middle-inner {
        margin-bottom: 0;
    }

    .mini-cart-option {
        margin-bottom: 0;
    }

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

    .mean-bar {
        display: none;
    }
}

/* Barra Mobile Sticky Top */
.mobile-top-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--header-mobtopbar-bg);
    border-bottom: 1px solid var(--header-mobtopbar-border);
    box-shadow: 0 2px 10px var(--header-mobtopbar-shadow);
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--header-mobtopbar-padding-h);
    height: var(--header-mobtopbar-height);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--header-mobtopbar-menu-icon);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--header-mobtopbar-menu-hover-bg);
}

.mobile-logo {
    flex: 1;
    text-align: center;
    padding: 0 15px;
}

.mobile-logo img {
    max-height: 40px;
    width: auto;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: var(--header-mobtopbar-icons-gap);
}

.mobile-action-btn {
    position: relative;
    color: var(--header-mobtopbar-action-icon);
    text-decoration: none;
    font-size: 18px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mobile-action-btn:hover {
    background-color: var(--header-mobtopbar-action-hover-bg);
    color: var(--header-mobtopbar-action-hover);
    text-decoration: none;
}

.mobile-action-btn .count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--header-mobtopbar-badge-bg);
    color: var(--header-mobtopbar-badge-text);
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Menu Sidebar Lateral */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--header-mobsidebar-overlay);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--header-mobsidebar-bg);
    z-index: 9999;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--header-mobsidebar-close);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.sidebar-close:hover {
    background-color: var(--header-mobsidebar-close-hover-bg);
    color: var(--header-mobsidebar-close-hover);
}

.sidebar-content {
    padding: 0 0 140px 0;
    overflow-y: auto;
}

.sidebar-menu-section {
    padding: 20px;
    border-bottom: 1px solid var(--header-mobsidebar-border);
}

.sidebar-menu-section:last-child {
    border-bottom: none;
    margin-bottom: 40px;
}

.sidebar-menu-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--header-mobsidebar-title);
    border-bottom: 2px solid var(--header-mobsidebar-title-border);
    padding-bottom: 8px;
}

.sidebar-menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-section li {
    margin-bottom: 5px;
}

.sidebar-menu-section a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: var(--header-mobsidebar-link);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-menu-section a:hover {
    color: var(--header-mobsidebar-link-hover);
    background-color: var(--header-mobsidebar-link-hover-bg);
    text-decoration: none;
    border-radius: 4px;
    padding-left: 8px;
}

.sidebar-menu-section i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
    color: var(--header-mobsidebar-icon);
    transition: color 0.2s ease;
}

.sidebar-menu-section a:hover i {
    color: var(--header-mobsidebar-icon-hover);
}

/* Submenus das categorias */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--header-mobsidebar-submenu-bg);
}

.sidebar-submenu.active {
    max-height: 500px;
}

.sidebar-submenu li {
    margin-bottom: 0;
}

.sidebar-submenu a {
    padding: 8px 0 8px 20px;
    font-size: 13px;
    color: var(--header-mobsidebar-submenu-color);
    border-left: 3px solid var(--header-mobsidebar-submenu-border);
}

.sidebar-submenu .sidebar-submenu a {
    padding-left: 40px;
    font-size: 12px;
    color: var(--header-mobsidebar-submenu-color);
    border-left: 3px solid var(--header-mobsidebar-submenu-border);
}

.category-toggle {
    float: right;
    transition: transform 0.3s ease;
    font-size: 12px;
    margin-top: 2px;
}

.category-toggle.rotated {
    transform: rotate(180deg);
}

.view-all {
    font-weight: bold;
    color: #007bff !important;
}

/* Compensar altura da barra fixa */
body.mobile-bar-active {
    padding-top: var(--header-mobtopbar-height);
}

@media (max-width: 991px) {
    .mobile-top-bar {
        display: block;
    }

    body {
        padding-top: var(--header-mobtopbar-height);
    }
}

@media (max-width: 576px) {
    .menu-section {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-logo img {
        max-height: 35px;
    }

    .mobile-actions {
        gap: 10px;
    }
}

/* Seletor de Loja Mobile */
.mobile-store-selector {
    display: none;
}

@media (max-width: 991px) {
    .mobile-store-selector {
        display: block !important;
        padding: 10px 15px;
        margin: 0;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
    }

    .store-info-mobile {
        display: flex;
        align-items: center;
        background: var(--header-mobstore-bg);
        border: 1px solid var(--header-mobstore-border);
        border-radius: 8px;
        padding: 12px 15px;
        gap: 12px;
    }

    .store-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--header-mobstore-icon-bg);
        border-radius: 8px;
        color: var(--header-mobstore-icon);
        font-size: 20px;
        flex-shrink: 0;
    }

    .store-details {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .store-label {
        font-size: 11px;
        color: var(--header-mobstore-label);
        margin-bottom: 2px;
    }

    .store-name {
        font-size: 14px;
        font-weight: bold;
        color: var(--header-mobstore-name);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-change-store {
        background: var(--header-mobstore-btn-bg);
        color: var(--header-mobstore-btn);
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .btn-change-store:hover {
        background: var(--header-mobstore-btn-hover-bg);
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }
}
