/**
 * Sticky Tabs Menu Layout Styles
 * Reconstructed to respect CSS variables and container boundaries
 */

/* Main container */
.woofood-menu-container.woofood-sticky-tabs {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Ensure sticky elements are not clipped */
    overflow: visible;
    position: relative;
}

/* Tab navigation wrapper - sticky behavior */
.woofood-tabs-nav-wrapper {
    background: #fff;
    position: sticky;
    top: var(--woofood-header-height, 0);
    z-index: 1002;
    transition: box-shadow 0.3s ease, border-bottom 0.3s ease;
    /* CRITICAL: Constrain width to prevent expansion before sticky */
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Allow container to shrink if needed */
    overflow: hidden; /* Prevent content from expanding container */
    /* Ensure sticky behavior works */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    /* CRITICAL: Force container to respect parent boundaries */
    display: block; /* Use block layout to prevent flex expansion */
}

/* Enhanced sticky behavior when active - Desktop */
.woofood-tabs-nav-wrapper.sticky-active {
    position: fixed !important;
    top: var(--woofood-header-height, 0) !important;
    z-index: 1005 !important;
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border-bottom: 1px solid #e1e5e9 !important;
    /* Desktop: Force full container width - use viewport width with container offset */
    width: 100vw !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Ensure it doesn't exceed container bounds */
    max-width: 100% !important;
}

/* CRITICAL: Fixed width for nav-inner when sticky to prevent flex expansion */
.woofood-tabs-nav-wrapper.sticky-active .woofood-tabs-nav-inner {
    /* Fixed width to prevent flex container from expanding */
    width: 1200px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    /* Maintain flex behavior for horizontal scrolling */
    display: flex !important;
    overflow-x: auto !important;
    /* Keep original padding */
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Tab navigation container */
.woofood-tabs-nav {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Allow container to shrink */
    overflow: hidden; /* Prevent content from expanding container */
    margin: 0;
    padding: 0;
    /* CRITICAL: Force container to respect parent boundaries */
    display: block; /* Use block instead of flex to prevent expansion */
}


/* Tab navigation inner - scrollable container */
.woofood-tabs-nav-inner {
    display: inline-flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px;
    gap: 8px;
    /* CRITICAL: Force container to respect parent width */
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Allow container to shrink */
    flex-shrink: 0; /* Prevent container from shrinking */
    flex-grow: 0; /* Prevent container from growing */
    box-sizing: border-box;
    /* Force container to stay within parent bounds */
    position: relative;
    /* CRITICAL: Prevent flex container from expanding beyond parent */
    contain: layout size; /* CSS containment to prevent expansion */
    height: 100px;
    justify-content: center;
}


.woofood-tabs-nav-inner::-webkit-scrollbar {
    display: none;
}

/* Individual tab buttons - Default Pills Style */
.woofood-tab-button {
    background: transparent;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* CRITICAL: Prevent flex items from expanding container */
    min-width: auto;
    flex-shrink: 0; /* Prevent buttons from shrinking */
    flex-grow: 0; /* Prevent buttons from growing */
    flex-basis: auto; /* Use content size */
    position: relative;
    overflow: hidden;
    /* Ensure buttons don't cause container expansion */
    max-width: none; /* Allow buttons to be as wide as needed */
}

.woofood-tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.woofood-tab-button:hover::before {
    left: 100%;
}

.woofood-tab-button:hover {
    border-color: var(--woofood-primary-color, #ff6b35);
    color: var(--woofood-primary-color, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15);
}

.woofood-tab-button.active {
    background: var(--woofood-primary-color, #ff6b35);
    border-color: var(--woofood-primary-color, #ff6b35);
    color: var(--woofood-header-text-color, white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
}

.woofood-tab-button.active:hover {
    background: var(--woofood-accent-color, #e74c3c);
    border-color: var(--woofood-accent-color, #e74c3c);
}

/* Flat/Underline Tab Style */
.woofood-sticky-tabs.tab-style-underline .woofood-tab-button {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 16px 20px;
    color: #666;
    text-transform: none;
    letter-spacing: 0;
    transform: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.woofood-sticky-tabs.tab-style-underline .woofood-tab-button::before {
    display: none;
}

.woofood-sticky-tabs.tab-style-underline .woofood-tab-button:hover {
    background: transparent;
    border-bottom-color: var(--woofood-primary-color, #ff6b35);
    color: var(--woofood-primary-color, #ff6b35);
    transform: none;
    box-shadow: none;
}

.woofood-sticky-tabs.tab-style-underline .woofood-tab-button.active {
    background: transparent;
    border-bottom-color: var(--woofood-primary-color, #ff6b35);
    color: var(--woofood-primary-color, #ff6b35);
    font-weight: 700;
    transform: none;
    box-shadow: none;
}

.woofood-sticky-tabs.tab-style-underline .woofood-tab-button.active:hover {
    background: transparent;
    border-bottom-color: var(--woofood-accent-color, #e74c3c);
    color: var(--woofood-accent-color, #e74c3c);
}

/* Minimal Tab Style */
.woofood-sticky-tabs.tab-style-minimal .woofood-tab-button {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 20px;
    color: #666;
    text-transform: none;
    letter-spacing: 0;
    transform: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.woofood-sticky-tabs.tab-style-minimal .woofood-tab-button::before {
    display: none;
}

.woofood-sticky-tabs.tab-style-minimal .woofood-tab-button:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--woofood-primary-color, #ff6b35);
    transform: none;
    box-shadow: none;
    border-radius: 6px;
}

.woofood-sticky-tabs.tab-style-minimal .woofood-tab-button.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--woofood-primary-color, #ff6b35);
    font-weight: 700;
    transform: none;
    box-shadow: none;
    border-radius: 6px;
}

.woofood-sticky-tabs.tab-style-minimal .woofood-tab-button.active:hover {
    background: rgba(231, 76, 60, 0.15);
    color: var(--woofood-accent-color, #e74c3c);
}

/* Tab text and count */
.woofood-tab-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.woofood-tab-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.woofood-tab-button:not(.active) .woofood-tab-count {
    background: #e9ecef;
    color: #6c757d;
}

/* Scroll indicators */
.woofood-tabs-scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.woofood-tabs-scroll-indicator.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.woofood-tabs-scroll-indicator:hover {
    background: var(--woofood-primary-color, #ff6b35);
    border-color: var(--woofood-primary-color, #ff6b35);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.woofood-tabs-scroll-left {
    left: 5px;
}

.woofood-tabs-scroll-right {
    right: 5px;
}

/* Tab content area */
.woofood-tabs-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
    width: 100%;
    box-sizing: border-box;
}

/* Individual tab panels */
.woofood-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.woofood-tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Tab panel header */
.woofood-tab-panel-header {
    margin-bottom: 32px;
    text-align: center;
}

.woofood-category-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--woofood-text-color, #1a1a1a);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woofood-category-description {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Tab panel content */
.woofood-tab-panel-content {
    position: relative;
}

/* Loading placeholder */
.woofood-loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #6c757d;
}

.woofood-loading-spinner {
    margin-bottom: 20px;
}

.woofood-spinner {
    animation: spin 1s linear infinite;
    color: var(--woofood-primary-color, #ff6b35);
}

.woofood-loading-text {
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error placeholder */
.woofood-error-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: #dc3545;
}

.woofood-error-text {
    font-size: 16px;
    margin-bottom: 20px;
}

.woofood-retry-button {
    background: var(--woofood-primary-color, #ff6b35);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woofood-retry-button:hover {
    background: var(--woofood-accent-color, #e74c3c);
    transform: translateY(-2px);
}

/* No products message */
.woofood-no-products {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.woofood-no-products p {
    font-size: 18px;
    margin: 0;
}

/* No categories message */
.woofood-no-categories {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.woofood-no-categories p {
    font-size: 18px;
    margin: 0;
}

/* Back to top button */
.woofood-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--woofood-primary-color, #ff6b35);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.woofood-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.woofood-back-to-top:hover {
    background: var(--woofood-accent-color, #e74c3c);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.4);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .woofood-tabs-nav-wrapper {
        position: sticky;
        top: var(--woofood-header-height, 0);
        z-index: 1003;
        /* Ensure visibility on mobile */
        background: #fff;
        width: 100%;
        max-width: 100%;
        /* Add mobile-specific sticky behavior */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid #e1e5e9;
        /* Force sticky behavior on mobile */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
    
    .woofood-tabs-nav-inner {
        padding: 16px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        /* CRITICAL: Mobile constraints to prevent expansion */
        width: 100%;
        max-width: 100%;
        min-width: 0; /* Allow container to shrink */
        flex-shrink: 0; /* Prevent container from shrinking */
        flex-grow: 0; /* Prevent container from growing */
        box-sizing: border-box;
        position: relative;
        /* CRITICAL: Prevent flex container from expanding beyond parent */
        contain: layout size; /* CSS containment to prevent expansion */
        display: inline-flex;
    }
    
    /* Mobile full-width when sticky - only apply when actually sticky */
    .woofood-tabs-nav-wrapper.sticky-active {
        /* Mobile: full viewport width with aggressive positioning */
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        /* Ensure visibility when sticky */
        position: fixed !important;
        top: var(--woofood-header-height, 0) !important;
        z-index: 1006 !important;
        background: #fff !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
        border-bottom: 1px solid #e1e5e9 !important;
        /* Force full width on mobile */
        max-width: none !important;
    }
    
    /* CRITICAL: Fixed width for nav-inner on mobile when sticky */
    .woofood-tabs-nav-wrapper.sticky-active .woofood-tabs-nav-inner {
        /* Mobile: Fixed width to prevent flex expansion */
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        /* Maintain flex behavior for horizontal scrolling */
        display: flex !important;
        overflow-x: auto !important;
        /* Mobile-optimized padding */
        padding: 16px !important;
        box-sizing: border-box !important;
        /* Ensure smooth scrolling on mobile */
        -webkit-overflow-scrolling: touch !important;
    }
    
    .woofood-tab-button {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 25px;
        /* CRITICAL: Mobile flex constraints */
        flex-shrink: 0;
        flex-grow: 0; /* Prevent items from growing */
        flex-basis: auto; /* Use content size */
        min-width: auto;
    }
    
    .woofood-tabs-content {
        padding: 24px 16px;
    }
    
    .woofood-category-title {
        font-size: 24px;
    }
    
    .woofood-tab-panel-header {
        margin-bottom: 24px;
    }
    
    .woofood-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .woofood-tabs-scroll-indicator {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .woofood-tabs-nav-wrapper {
        /* Ensure visibility on very small screens */
        background: #fff;
        z-index: 1004;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        /* Enhanced mobile sticky behavior */
        position: sticky;
        top: var(--woofood-header-height, 0);
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
    
    .woofood-tabs-nav-inner {
        padding: 12px;
        gap: 4px;
        /* CRITICAL: Very small screen constraints */
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex-shrink: 0;
        flex-grow: 0; /* Prevent container from growing */
        box-sizing: border-box;
        position: relative;
        /* CRITICAL: Prevent flex container from expanding beyond parent */
        contain: layout size; /* CSS containment to prevent expansion */
        display: inline-flex;
    }
    
    .woofood-tab-button {
        padding: 10px 12px;
        font-size: 12px;
        /* CRITICAL: Very small screen flex constraints */
        flex-shrink: 0;
        flex-grow: 0;
        flex-basis: auto;
        min-width: auto;
    }
    
    .woofood-tabs-content {
        padding: 20px 12px;
    }
    
    .woofood-category-title {
        font-size: 20px;
    }
    
    .woofood-tab-panel-header {
        margin-bottom: 20px;
    }
    
    .woofood-tabs-scroll-indicator {
        width: 30px;
        height: 30px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .woofood-tabs-nav-inner {
        padding: 24px;
        gap: 12px;
        justify-content: center;
    }
    
    .woofood-tab-button {
        padding: 18px 28px;
        font-size: 15px;
    }
    
    .woofood-tabs-content {
        padding: 48px 24px;
    }
    
    .woofood-category-title {
        font-size: 36px;
    }
    
    .woofood-tab-panel-header {
        margin-bottom: 40px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.woofood-tab-button:focus {
    outline: 2px solid var(--woofood-primary-color, #ff6b35);
    outline-offset: 2px;
}

.woofood-back-to-top:focus {
    outline: 2px solid var(--woofood-primary-color, #ff6b35);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Theme Integration Overrides */
/* Override theme z-index conflicts */
.woofood-tabs-nav-wrapper {
    z-index: 1002 !important;
}

.woofood-tabs-nav-wrapper.sticky-active {
    z-index: 1005 !important;
}

/* Override theme container constraints */
.woofood-menu-container.woofood-sticky-tabs {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Ensure proper positioning within theme containers */
.modern-container .woofood-menu-container.woofood-sticky-tabs,
.modern-container-fluid .woofood-menu-container.woofood-sticky-tabs {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* AGGRESSIVE FULL-WIDTH OVERRIDES */
/* Force full width on desktop sticky - override ALL possible constraints */
.woofood-tabs-nav-wrapper.sticky-active {
    /* Override any theme width constraints */
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    
    /* Force positioning */
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    
    /* Override any theme margins/padding */
    margin: 0 !important;
    padding: 0 !important;
    
    /* Ensure it stays within container bounds */
    box-sizing: border-box !important;
    
    /* Force break out of any container */
    position: fixed !important;
    z-index: 1005 !important;
}

/* ULTRA-AGGRESSIVE: Override ANY parent container constraints */
* .woofood-tabs-nav-wrapper.sticky-active {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    z-index: 1005 !important;
    box-sizing: border-box !important;
}

/* ULTRA-AGGRESSIVE: Fixed width nav-inner for ANY parent container */
* .woofood-tabs-nav-wrapper.sticky-active .woofood-tabs-nav-inner {
    width: 1200px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    overflow-x: auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Force full width on mobile sticky */
@media (max-width: 768px) {
    .woofood-tabs-nav-wrapper.sticky-active {
        z-index: 1006 !important; /* Above theme mobile menu */
        
        /* Mobile: Force full viewport width */
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: none !important;
        
        /* Force positioning */
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        
        /* Override any theme margins/padding */
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* ULTRA-AGGRESSIVE: Mobile override for ANY parent container */
    * .woofood-tabs-nav-wrapper.sticky-active {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: none !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        position: fixed !important;
        z-index: 1006 !important;
        box-sizing: border-box !important;
    }
    
    /* ULTRA-AGGRESSIVE: Mobile fixed width nav-inner for ANY parent container */
    * .woofood-tabs-nav-wrapper.sticky-active .woofood-tabs-nav-inner {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        display: flex !important;
        overflow-x: auto !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Override ANY theme container that might constrain width */
.modern-container .woofood-tabs-nav-wrapper.sticky-active,
.modern-container-fluid .woofood-tabs-nav-wrapper.sticky-active,
.container .woofood-tabs-nav-wrapper.sticky-active,
.wp-container .woofood-tabs-nav-wrapper.sticky-active {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* CRITICAL: Override modern-page-content container constraints */
.modern-page-content .woofood-tabs-nav-wrapper.sticky-active,
.modern-page-content .woofood-menu-container.woofood-sticky-tabs .woofood-tabs-nav-wrapper.sticky-active {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Force break out of container */
    position: fixed !important;
    z-index: 1005 !important;
}

/* CRITICAL: Fixed width nav-inner within modern-page-content */
.modern-page-content .woofood-tabs-nav-wrapper.sticky-active .woofood-tabs-nav-inner,
.modern-page-content .woofood-menu-container.woofood-sticky-tabs .woofood-tabs-nav-wrapper.sticky-active .woofood-tabs-nav-inner {
    width: 1200px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    overflow-x: auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Mobile overrides for theme containers */
@media (max-width: 768px) {
    .modern-container .woofood-tabs-nav-wrapper.sticky-active,
    .modern-container-fluid .woofood-tabs-nav-wrapper.sticky-active,
    .container .woofood-tabs-nav-wrapper.sticky-active,
    .wp-container .woofood-tabs-nav-wrapper.sticky-active {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: none !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* CRITICAL: Mobile override for modern-page-content */
    .modern-page-content .woofood-tabs-nav-wrapper.sticky-active,
    .modern-page-content .woofood-menu-container.woofood-sticky-tabs .woofood-tabs-nav-wrapper.sticky-active {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: none !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        position: fixed !important;
        z-index: 1006 !important;
    }
    
    /* CRITICAL: Mobile fixed width nav-inner for modern-page-content */
    .modern-page-content .woofood-tabs-nav-wrapper.sticky-active .woofood-tabs-nav-inner,
    .modern-page-content .woofood-menu-container.woofood-sticky-tabs .woofood-tabs-nav-wrapper.sticky-active .woofood-tabs-nav-inner {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        display: flex !important;
        overflow-x: auto !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .woofood-menu-container.woofood-sticky-tabs {
        background: #1a1a1a;
    }
    
    .woofood-tabs-nav-wrapper {
        background: #2d2d2d;
    }
    
    .woofood-tab-button {
        border-color: #404040;
        color: #b0b0b0;
    }
    
    .woofood-tab-button:not(.active) .woofood-tab-count {
        background: #404040;
        color: #b0b0b0;
    }
    
    .woofood-category-title {
        color: #ffffff;
    }
    
    .woofood-tabs-scroll-indicator {
        background: #2d2d2d;
        border-color: #404040;
    }
}