/* Mobile Menu Trigger Button */
.mobile-menu-trigger {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: inherit;
    z-index: 10001;
    position: relative;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: -120%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(248, 248, 248, 0.98);
    backdrop-filter: blur(10px);
    transition: top 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 10000;

    overflow-y: auto;
}

.mobile-menu-overlay.active {
    top: 0;
}

/* Mobile Menu Container */
.mobile-menu-container {
    padding-top: 100px; /* Space for header */
    min-height: 100vh;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

/* Mobile Menu Tabs */
.mobile-menu-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;           /* NEW: Horizontal scrolling */
    overflow-y: hidden;         /* NEW: Prevent vertical scroll */
    -webkit-overflow-scrolling: touch;  /* NEW: Smooth touch scrolling */
    scrollbar-width: none;      /* NEW: Hide scrollbar Firefox */
    -ms-overflow-style: none;   /* NEW: Hide scrollbar IE/Edge */
    white-space: nowrap;        /* NEW: Keep tabs on one line */
}

.mobile-menu-tabs::-webkit-scrollbar {
    display: none;              /* NEW: Hide scrollbar Chrome/Safari */
}

.mobile-tab-link {
    background: none;
    border: none;
    font-size: 14px;
        font-family: 'Playfair Display SC';
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 12px 16px;
    color: #999;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
	   white-space: nowrap;        /* NEW: Prevent text wrapping */
    flex-shrink: 0;            /* NEW: Prevent shrinking */
    min-width: fit-content;    /* NEW: Size to content */
}

.mobile-tab-link.active {
    color: #000;
    background-color: transparent;
    border-bottom: 1px solid black;
    border-radius: 0px;
}

/* Close Button */
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #000;
    padding: 5px;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tab Content */
.mobile-tab-content {
    display: none;
    padding: 0 20px;
}

.mobile-tab-content.active {
    display: block;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

/* Menu Item Wrapper */
.mobile-menu-item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    position: relative;
}

.mobile-nav-menu a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'Playfair Display SC';
    flex: 1;
    text-transform: uppercase;
    transition: color 0.3s 
ease;
}

.mobile-nav-menu a:hover {
    color: #666;
}

/* Submenu Toggle */
.mobile-submenu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: #666;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.mobile-submenu-toggle.active {
    transform: rotate(90deg);
    background-color: #334155;
}
.mobile-submenu-toggle:hover {
    
    background: #334155;
}


/* Submenu */
.mobile-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #fafafa;
/*     margin-top: 10px; */
    border-radius: 8px;
}

.mobile-sub-menu.active {
    max-height: 500px;
/*     padding: 15px 0; */
}

.mobile-sub-menu li {
    border-bottom: 1px solid #f0f0f0;
    margin: 0 15px;
}

.mobile-sub-menu li:last-child {
    border-bottom: none;
}

.mobile-sub-menu .mobile-menu-item-wrapper {
    padding: 12px 0;
}

.mobile-sub-menu a {
    font-size: 12px;
    font-family: 'Muli';
    color: #666;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.mobile-sub-menu a:hover {
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-menu-container {
        padding-top: 80px;
    }
    
      .mobile-tab-link {
        font-size: 14px;
        font-family: 'Playfair Display SC';
        padding: 10px 12px;
    }
    
    .mobile-menu-header {
        padding: 0 15px 15px 15px;
    }
    
    .mobile-tab-content {
        padding: 0 15px;
    }
}

/* Animation improvements */
.mobile-menu-overlay * {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Smooth scroll for mobile menu */
.mobile-menu-overlay {
    -webkit-overflow-scrolling: touch;
}

/* Focus states for accessibility */
.mobile-menu-trigger:focus,
.mobile-menu-close:focus {
  background: #334155;
}