/* Mobile Menu Styles */

/* Hamburger Icon */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-icon:hover span {
    background-color: #666;
}

/* Active hamburger animation */
.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: #FFF;
    box-shadow: 0 0 32px 0 rgba(51, 51, 51, 0.20);
    z-index: 999999;
    transition: right 0.3s ease; 
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding:0 15px;
}

.mobile-menu-panel.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.mobile-menu-header .site-branding img {
    max-height: 40px;
    width: auto;
}

.mobile-menu-header .site-branding .site-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.mobile-menu-close {
    border-radius: 8px;
    background: rgba(var(--primary-color-rgb), 0.10);
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    transition: background-color 0.3s 
ease;
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    line-height: 1;
}

.mobile-menu-close:hover {
    background-color:var(--primary-color);
    color: #fff;
}

/* Mobile Menu Search */
.mobile-menu-search {
    margin-bottom:20px;
}
.mobile-nav-tabs{
     margin-bottom:10px;
}
.mobile-menu-search .woocommerce-product-search {
    display: flex;
}

.mobile-menu-search .search-field {
    width:100%;
    padding: 10px 0;
    outline: none;
    color: rgba(var(--primary-color-rgb), 0.50);
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: normal;
}
.mobile-menu-search .search-submit{
    background:transparent;
    line-height:1;
}
.mobile-menu-search .search-submit i{
    color:rgba(36, 43, 61, 0.5);
}
/* Mobile Nav Tabs */
.mobile-nav-tabs .menu-toggle-buttons {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    gap:10px
}

.mobile-nav-tabs .mobile-tab-title {
    flex: 1;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    background: rgba(var(--text-color-rgb), 0.10);
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    color:var(--text-color);
}

.mobile-nav-tabs .mobile-tab-title.active {
    border-radius: 8px;
    background: rgba(var(--primary-color-rgb),0.1);
    color: var(--primary-color);
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex-shrink: 0;
    overflow-y: auto;
}

/* Menu Sections (now tab contents) */
.menu-section {
    display: none; /* Hide all sections by default */
    animation: fadeIn 0.3s ease-in-out;
}

.menu-section.active {
    display: block; /* Show active section */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    margin: 0;
    padding: 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list .menu-item {
    border-bottom: 1px solid rgba(var(--text-color-rgb),0.1);
        display: flex
;
    align-items: center;
    justify-content: space-between;
    flex-wrap:wrap;
}

.mobile-menu-list .menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-list .menu-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    text-align: right;
}


/* Submenu Styles */
.mobile-submenu {
    width:100%;
    list-style: none;
    margin: 0;
    padding: 10px;
    border-radius: 16px;
    background: rgba(var(--primary-color-rgb), 0.05);
}

.mobile-submenu .menu-item a {
    padding-left: 40px;
    padding-right: 15px;
    font-size: 13px;
    color: var(--text-color);
    position:relative;
}

.mobile-submenu .menu-item a:hover {
    color: #007cba;
    background-color: #e9ecef;
}
.mobile-menu-list .mobile-submenu .menu-item a:before{
    content:"";
    position:absolute;
    right:-5px;
    top:50%;
    transform:translateY(-50%);
    width:12px;
    height:6px;
    border-radius: 8px;
background: rgba(var(--primary-color-rgb), 0.10);
}
.mobile-menu-list ul li.submenu-open > a:before{
    background:var(--primary-color) !important;
}
.mobile-menu-list  li.submenu-open > .submenu-indicator , .mobile-menu-list  li.submenu-open > a{
    color:#C83B3B !important;
}
.mobile-menu-list ul li ul li{
    border-bottom:none !important;
}
.mobile-menu-list ul li ul a:before{
    border-radius: 2px !important;
    width:8px !important;
    height:8px !important;
}
.mobile-menu-list ul ul {
    border-radius: 16px 16px 0 0;
background: #FFF;
}
.mobile-submenu{
    display:none;
}
/* Submenu Indicator */
.submenu-indicator {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.menu-item-has-children > a .submenu-indicator {
    transform: rotate(0deg);
}

.menu-item-has-children.submenu-open > a .submenu-indicator {
    transform: rotate(90deg);
}

/* No Menu Message */
.no-menu-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    margin: 0;
}

.mobile-menu-content {
    overflow-y: auto;
    padding: 15px 0;
        max-height: 50vh;
    height: 100%;
}

.mobile-menu-footer {
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    background: #FFF;
    border-top: 1px solid #f0f0f0;
    z-index: 10;
}

.login-register-button {
    display: flex;
    width: 100%;
    padding: 15px 20px;
    background-color:var(--primary-color);
    color: #ffffff;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap:8px
}

.login-register-button:hover {
    background-color: var(--primary-color-dark);
    color: #ffffff;
    text-decoration: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-panel {
      width: calc(100% - 40px);
        right: -140%;
    }
    
    .mobile-menu-panel.active {
        right: 0;
    }

}

@media (max-width: 480px) {

    .mobile-nav-tabs .mobile-tab-title {
        font-size: 14px;
    }
    
    .login-register-button {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Animation for menu items */
.mobile-menu-list .menu-item {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.3s ease forwards;
}

.mobile-menu-list .menu-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-list .menu-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-list .menu-item:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu-list .menu-item:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu-list .menu-item:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu-list .menu-item:nth-child(6) { animation-delay: 0.6s; }
.mobile-menu-list .menu-item:nth-child(7) { animation-delay: 0.7s; }
.mobile-menu-list .menu-item:nth-child(8) { animation-delay: 0.8s; }
.mobile-menu-list .menu-item:nth-child(9) { animation-delay: 0.9s; }
.mobile-menu-list .menu-item:nth-child(10) { animation-delay: 0.10s; }
.mobile-menu-list .menu-item:nth-child(11) { animation-delay: 0.11s; }
.mobile-menu-list .menu-item:nth-child(12) { animation-delay: 0.12s; }
.mobile-menu-list .menu-item:nth-child(13) { animation-delay: 0.13s; }
.mobile-menu-list .menu-item:nth-child(14) { animation-delay: 0.14s; }
.mobile-menu-list .menu-item:nth-child(15) { animation-delay: 0.15s; }
.mobile-menu-list .menu-item:nth-child(16) { animation-delay: 0.16s; }
.mobile-menu-list .menu-item:nth-child(17) { animation-delay: 0.17s; }
.mobile-menu-list .menu-item:nth-child(18) { animation-delay: 0.18s; }
.mobile-menu-list .menu-item:nth-child(19) { animation-delay: 0.19s; }
.mobile-menu-list .menu-item:nth-child(20) { animation-delay: 0.20s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading state */
.mobile-menu-panel.loading {
    pointer-events: none;
    position: relative;
}

.mobile-menu-panel.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
}

.mobile-menu-panel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

.mobile-menu-panel  .widget form {
    padding: 4px;
    color: var(--text-color);
    border-radius: 4px;
border: 1px solid rgba(36, 43, 61, 0.2);
background: #FFF;
    display: flex;
    flex-direction: row-reverse;
  }
.mobile-menu-panel  .widget form .search-field::placeholder {
    font-size: 13px;
    color: rgba(36, 43, 61, 0.5);
  }
.mobile-menu-panel  .widget form input[type=submit], .elementor-widget-lebasino-search .widget form button[type=submit] {
  color: rgba(36, 43, 61, 0.5);
    border-radius: 25px;
    background-color: transparent;
    order: 1;
  }



.mobile-menu-panel  .woocommerce-product-search{
    position: relative;
  }