/* =========================================
   Eurodac Mobile Menu v2.15 - Clean Modern Design
   No shrink on scroll, smooth slide up, clean glassmorphism
   ========================================= */

:root {
    --emm-primary: #162755;
    --emm-primary-light: #1e3a6e;
    --emm-primary-dark: #0d1a3a;
    --emm-accent: #3b82f6;
    --emm-red: #db0001;
    --emm-red-glow: rgba(219, 0, 1, 0.35);
    --emm-green: #10b981;
    --emm-white: #ffffff;
    --emm-header-height: 56px;
    --emm-header-margin: 14px;
    --emm-header-radius: 16px;
    --emm-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --emm-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --emm-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --emm-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================================
   RESET & BASE
   ========================================= */
.emm,
.emm *,
.emm *::before,
.emm *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.emm {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide on desktop */
@media (min-width: 1024px) {
    .emm { display: none !important; }
}

/* Hide theme headers on mobile */
@media (max-width: 1023px) {
    .site-header,
    .ast-header-wrap,
    .ast-mobile-header-wrap,
    header.elementor-location-header,
    [data-elementor-type="header"],
    .edh2-shell {
        display: none !important;
    }
}

/* =========================================
   STICKY HEADER - CLEAN FLOATING PILL
   ========================================= */
.emm-header {
    position: fixed;
    top: var(--emm-header-margin);
    left: var(--emm-header-margin);
    right: var(--emm-header-margin);
    z-index: 99990;
    height: var(--emm-header-height);
    /* Clean white glassmorphism - no gradient */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 18px;
    border-radius: var(--emm-header-radius);
    /* Clean subtle border */
    border: 1px solid rgba(22, 39, 85, 0.06);
    /* Modern soft shadow */
    box-shadow: 0 4px 20px rgba(22, 39, 85, 0.08);
}

/* Account for WP admin bar */
.admin-bar .emm-header {
    top: calc(32px + var(--emm-header-margin));
}
@media screen and (max-width: 782px) {
    .admin-bar .emm-header {
        top: calc(46px + var(--emm-header-margin));
    }
}

/* Scrolled state - premium frosted glass effect */
.emm[data-scrolled="true"] .emm-header {
    top: 8px;
    /* More transparent with stronger blur */
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    /* Subtle white glow border */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(22, 39, 85, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.admin-bar .emm[data-scrolled="true"] .emm-header {
    top: calc(32px + 8px);
}
@media screen and (max-width: 782px) {
    .admin-bar .emm[data-scrolled="true"] .emm-header {
        top: calc(46px + 8px);
    }
}

/* Smooth transition for all header properties */
.emm-header {
    transition:
        top 0.4s var(--emm-smooth),
        background 0.4s var(--emm-ease),
        backdrop-filter 0.4s var(--emm-ease),
        border 0.4s var(--emm-ease),
        box-shadow 0.4s var(--emm-ease);
}

/* Logo - Big and consistent */
.emm-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 130px;
}

.emm-logo img {
    height: 32px;
    width: auto;
    max-width: 100%;
}

/* Header Actions - Better spacing */
.emm-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Extra gap before menu toggle */
.emm-header-actions .emm-toggle {
    margin-left: 8px !important;
}

/* Search Button in Header - FORCED STYLES */
.emm .emm-header .emm-header-actions .emm-search-btn,
.emm-search-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border: none !important;
    background: transparent !important;
    color: var(--emm-primary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    transition: all 0.25s var(--emm-ease) !important;
    -webkit-tap-highlight-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.emm .emm-search-btn svg,
.emm-search-btn svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    stroke: var(--emm-primary) !important;
    fill: none !important;
    display: block !important;
}

.emm-search-btn:active {
    transform: scale(0.92) !important;
    background: rgba(22, 39, 85, 0.08) !important;
}

/* List Button - Cerere Oferta - ULTRA FORCED STYLES */
.emm .emm-header .emm-header-actions .emm-list-btn,
.emm .emm-list-btn,
.emm-list-btn,
a.emm-list-btn,
.emm-header-actions > .emm-list-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(22, 39, 85, 0.06) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    position: relative !important;
    transition: all 0.3s var(--emm-ease) !important;
    -webkit-tap-highlight-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

.emm-list-btn:active,
.emm .emm-list-btn:active {
    transform: scale(0.92) !important;
    background: rgba(22, 39, 85, 0.15) !important;
}

.emm .emm-list-btn svg,
.emm-list-btn svg,
a.emm-list-btn svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    color: var(--emm-primary) !important;
    stroke: var(--emm-primary) !important;
    fill: none !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Badge counter - ULTRA VISIBLE */
.emm-list-badge,
.emm .emm-list-badge,
#emm-list-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: var(--emm-red) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 10px !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 6px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(219, 0, 1, 0.5) !important;
    z-index: 100 !important;
    border: 2px solid #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

.emm-list-badge.has-items,
.emm .emm-list-badge.has-items,
#emm-list-count.has-items {
    display: flex !important;
}

/* Animation when product added - SUPER VISIBLE PULSE */
@keyframes emmListPulse {
    0% {
        transform: scale(1) !important;
        background: rgba(22, 39, 85, 0.06) !important;
        box-shadow: 0 0 0 0 rgba(0, 200, 100, 0.6) !important;
    }
    20% {
        transform: scale(1.25) !important;
        background: rgba(0, 200, 100, 0.5) !important;
        box-shadow: 0 0 0 10px rgba(0, 200, 100, 0.3) !important;
    }
    40% {
        transform: scale(1.15) !important;
        background: rgba(0, 200, 100, 0.4) !important;
        box-shadow: 0 0 0 16px rgba(0, 200, 100, 0.1) !important;
    }
    60% {
        transform: scale(1.1) !important;
        background: rgba(0, 200, 100, 0.25) !important;
        box-shadow: 0 0 0 8px rgba(0, 200, 100, 0) !important;
    }
    80% {
        transform: scale(1.05) !important;
        background: rgba(0, 200, 100, 0.12) !important;
    }
    100% {
        transform: scale(1) !important;
        background: rgba(22, 39, 85, 0.06) !important;
        box-shadow: 0 0 0 0 rgba(0, 200, 100, 0) !important;
    }
}

/* Badge bounce animation */
@keyframes emmBadgeBounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.4);
    }
    50% {
        transform: scale(0.9);
    }
    70% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* ULTRA FORCED pulse animation - all selectors */
.emm-list-btn.pulse-animation,
.emm .emm-list-btn.pulse-animation,
a.emm-list-btn.pulse-animation,
.emm-header-actions .emm-list-btn.pulse-animation,
.emm .emm-header .emm-header-actions .emm-list-btn.pulse-animation,
.emm .emm-header .emm-header-actions a.emm-list-btn.pulse-animation {
    animation: emmListPulse 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    animation-fill-mode: both !important;
    z-index: 9999 !important;
}

/* Badge animation when item added */
.emm-list-btn.pulse-animation .emm-list-badge,
.emm .emm-list-btn.pulse-animation .emm-list-badge,
.emm .emm-list-btn.pulse-animation #emm-list-count {
    animation: emmBadgeBounce 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s !important;
    animation-fill-mode: both !important;
}

/* Hover/touch feedback */
@media (hover: hover) {
    .emm-list-btn:hover {
        background: rgba(22, 39, 85, 0.08) !important;
        transform: scale(1.05) !important;
    }
    .emm-search-btn:hover {
        background: rgba(22, 39, 85, 0.08) !important;
        transform: scale(1.05) !important;
    }
}

/* Hamburger Toggle - Clean solid color */
.emm .emm-header .emm-header-actions .emm-toggle,
.emm-toggle {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border: none !important;
    /* Clean solid color - no gradient */
    background: var(--emm-primary) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    /* Soft modern shadow */
    box-shadow: 0 4px 14px rgba(22, 39, 85, 0.2) !important;
    transition: all 0.25s var(--emm-ease) !important;
    -webkit-tap-highlight-color: transparent !important;
    padding: 0 !important;
    outline: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.emm-toggle:active {
    transform: scale(0.94) !important;
    background: var(--emm-primary-dark) !important;
}

/* Hover state for desktop */
@media (hover: hover) {
    .emm-toggle:hover {
        transform: scale(1.03) !important;
        box-shadow: 0 6px 20px rgba(22, 39, 85, 0.25) !important;
    }
}

/* Modern hamburger bars - clear and visible */
.emm .emm-toggle .emm-toggle-bar,
.emm-toggle-bar {
    display: block !important;
    width: 20px !important;
    height: 2.5px !important;
    background: #ffffff !important;
    border-radius: 3px !important;
    transition: all 0.35s var(--emm-smooth) !important;
    transform-origin: center !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* All bars same width - cleaner look */

/* Hamburger to X animation */
.emm[data-state="open"] .emm-toggle-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg) !important;
    width: 20px !important;
}
.emm[data-state="open"] .emm-toggle-bar:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
}
.emm[data-state="open"] .emm-toggle-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg) !important;
    width: 20px !important;
}

/* =========================================
   CIRCLE EXPANSION - Clean solid color
   ========================================= */
.emm-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99991;
    pointer-events: none;
    /* Clean solid color - no gradient */
    background: var(--emm-primary);
    /* Start from the hamburger position in floating pill */
    clip-path: circle(0px at calc(100% - 37px) 44px);
    transition: clip-path 0.55s var(--emm-smooth);
    will-change: clip-path;
}

.admin-bar .emm-circle {
    clip-path: circle(0px at calc(100% - 37px) 90px);
}

.emm[data-state="open"] .emm-circle {
    clip-path: circle(150% at calc(100% - 37px) 44px);
}

.admin-bar .emm[data-state="open"] .emm-circle {
    clip-path: circle(150% at calc(100% - 37px) 90px);
}

/* =========================================
   FULL-SCREEN MENU - NEXT LEVEL
   ========================================= */
.emm-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99992;
    background: var(--emm-primary);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--emm-ease) 0.15s,
                visibility 0s linear 0.6s;
    overflow: hidden;
}

.emm[data-state="open"] .emm-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s var(--emm-ease) 0.25s,
                visibility 0s linear 0s;
}

/* Clean subtle background - minimal radial accents */
.emm-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(30, 58, 110, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(13, 26, 58, 0.5) 0%, transparent 50%);
    z-index: 0;
}

.emm-menu-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    padding-bottom: env(safe-area-inset-bottom, 24px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Account for WP admin bar */
.admin-bar .emm-menu-inner {
    padding-top: 62px;
}
@media screen and (max-width: 782px) {
    .admin-bar .emm-menu-inner {
        padding-top: 62px;
    }
}

/* =========================================
   MENU HEADER
   ========================================= */
.emm-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 14px;
    flex-shrink: 0;
}

.emm-menu-logo {
    display: flex;
    align-items: center;
}

.emm-menu-logo img {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.emm-menu-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Search button in menu - Clean */
.emm .emm-menu .emm-menu-search,
.emm-menu-search {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    transition: all 0.2s var(--emm-ease) !important;
    -webkit-tap-highlight-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

.emm .emm-menu .emm-menu-search svg,
.emm-menu-search svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    stroke: #ffffff !important;
    fill: none !important;
    display: block !important;
}

.emm-menu-search:active {
    transform: scale(0.94) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Close X Button in Menu - Clean */
.emm .emm-menu .emm-close,
.emm-close {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    transition: all 0.2s var(--emm-ease) !important;
    -webkit-tap-highlight-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

.emm-close:active {
    transform: scale(0.94) !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

/* X icon using pseudo elements */
.emm-close span {
    position: absolute;
    width: 20px !important;
    height: 2.5px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    display: block !important;
    position: absolute !important;
}

.emm .emm-close span:first-child,
.emm-close span:first-child {
    transform: rotate(45deg) !important;
}

.emm .emm-close span:last-child,
.emm-close span:last-child {
    transform: rotate(-45deg) !important;
}

/* =========================================
   SEARCH PANEL - Full Screen Overlay
   ========================================= */
.emm-search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 39, 85, 0.97);
    z-index: 100001;
    display: flex;
    flex-direction: column;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.35s var(--emm-smooth);
}

.emm-search-panel[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Search Header */
.emm-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-bar .emm-search-header {
    padding-top: calc(16px + 46px);
}

@media screen and (min-width: 783px) {
    .admin-bar .emm-search-header {
        padding-top: calc(16px + 32px);
    }
}

.emm-search-wrapper {
    flex: 1;
    position: relative;
}

/* Search Input Styling */
.emm-search-wrapper .asl_w,
.emm-search-wrapper .asl_w_container {
    width: 100% !important;
    max-width: 100% !important;
}

.emm-search-wrapper input[type="search"],
.emm-search-wrapper input[type="text"] {
    width: 100% !important;
    padding: 14px 18px !important;
    padding-left: 48px !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    transition: all 0.25s var(--emm-ease) !important;
}

.emm-search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.emm-search-wrapper input:focus {
    outline: none !important;
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

/* Search Icon inside input */
.emm-search-wrapper::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-size: contain;
    z-index: 10;
    pointer-events: none;
}

/* Close Button - X icon */
.emm-search-close {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: all 0.2s var(--emm-ease) !important;
    flex-shrink: 0 !important;
}

.emm-search-close span {
    position: absolute !important;
    width: 18px !important;
    height: 2px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    display: block !important;
}

.emm-search-close span:first-child {
    transform: rotate(45deg) !important;
}

.emm-search-close span:last-child {
    transform: rotate(-45deg) !important;
}

.emm-search-close:active {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(0.94) !important;
}

/* Search Results Area */
.emm-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Style search results from Ajax Search Lite */
.emm-search-panel .asl_r,
.emm-search-panel .asl_results {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.emm-search-panel .asl_r .item,
.emm-search-panel .results .item {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.emm-search-panel .asl_r .item:hover,
.emm-search-panel .results .item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

.emm-search-panel .asl_r .item a,
.emm-search-panel .results .item a {
    color: #fff !important;
}

.emm-search-panel .asl_r .item .asl_title,
.emm-search-panel .results .item .title {
    color: #fff !important;
    font-weight: 600 !important;
}

.emm-search-panel .asl_r .item .asl_content,
.emm-search-panel .results .item .desc {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* =========================================
   CATEGORIES GRID - APP-STYLE BUTTONS
   ========================================= */
.emm-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 0 12px;
    flex-shrink: 0;
}

.emm-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    /* Clean white background */
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 8px 12px;
    position: relative;
    transition: all 0.2s var(--emm-ease);
    -webkit-tap-highlight-color: transparent;
    /* Clean subtle border and shadow */
    border: 1px solid rgba(22, 39, 85, 0.08);
    box-shadow: 0 2px 8px rgba(22, 39, 85, 0.06);
}

/* Pressed state */
.emm-cat:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(22, 39, 85, 0.08);
    background: #fafbfc;
}

/* Badge NEW - Clean solid */
.emm-cat-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--emm-red);
    color: var(--emm-white);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 3;
}

/* Category Image Container - More compact */
.emm-cat-img {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.emm-cat-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s var(--emm-ease);
}

.emm-cat:active .emm-cat-img img {
    transform: scale(1.05);
}

/* Placeholder when no image */
.emm-cat-placeholder {
    width: 44px;
    height: 44px;
    background: #f5f7fa;
    border-radius: 10px;
    position: relative;
    border: 1.5px dashed rgba(22, 39, 85, 0.12);
}

.emm-cat-placeholder::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    color: rgba(22, 39, 85, 0.25);
    font-weight: 300;
}

/* Category Name - Premium typography */
.emm-cat-name {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--emm-primary);
    text-align: center;
    line-height: 1.35;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* =========================================
   ACTIVE STATE - Current Page Indicator
   ========================================= */

/* Active Category Card - Premium highlight */
.emm-cat.is-active {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 2px solid var(--emm-accent);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.12),
        0 4px 12px rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
}

/* Active indicator dot */
.emm-cat.is-active::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    background: var(--emm-accent);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
    animation: emmActivePulse 2s ease-in-out infinite;
}

@keyframes emmActivePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.emm-cat.is-active .emm-cat-name {
    color: var(--emm-accent);
}

.emm-cat.is-active:active {
    transform: scale(0.99);
}

/* =========================================
   INTERACTIVE RIPPLE EFFECT ON TAP
   ========================================= */

/* Ripple container */
.emm-cat {
    overflow: hidden;
}

/* Ripple effect using ::after pseudo-element */
.emm-cat::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.5s ease-out, height 0.5s ease-out, opacity 0.5s ease-out;
    pointer-events: none;
    z-index: 1;
}

.emm-cat:active::after {
    width: 200%;
    height: 200%;
    opacity: 1;
    transition: width 0s, height 0s, opacity 0s;
}

/* Enhanced tap feedback */
.emm-cat:active {
    transform: scale(0.95);
    box-shadow:
        0 1px 4px rgba(22, 39, 85, 0.08),
        inset 0 2px 8px rgba(59, 130, 246, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.emm-cat.is-active:active {
    transform: scale(0.97);
}

/* Image lift on tap */
.emm-cat:active .emm-cat-img img {
    transform: scale(1.08);
}

/* =========================================
   DIVIDER - Clean simple line
   ========================================= */
/* divider removed */

/* =========================================
   SECONDARY NAV - GRID 2 COLUMNS WITH ICONS
   ========================================= */
.emm-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 0 16px;
    flex-shrink: 0;
}

.emm-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.2s var(--emm-ease);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.emm-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s var(--emm-ease);
}

.emm-nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.emm-nav-text {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--emm-white);
    line-height: 1.3;
    letter-spacing: -0.1px;
}

.emm-nav-arrow {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.3);
    fill: none;
    flex-shrink: 0;
    transition: all 0.2s var(--emm-ease);
}

.emm-nav-link:active {
    transform: scale(0.97);
    background: rgba(219, 0, 1, 0.6);
    border-color: rgba(219, 0, 1, 0.8);
}

.emm-nav-link:active .emm-nav-icon {
    background: rgba(255, 255, 255, 0.2);
}

.emm-nav-link:active .emm-nav-arrow {
    stroke: rgba(255, 255, 255, 0.7);
    transform: translateX(2px);
}

.emm-nav-link.is-active {
    background: var(--emm-white);
    border-color: var(--emm-white);
}

.emm-nav-link.is-active .emm-nav-icon {
    background: var(--emm-primary);
    color: var(--emm-white);
}

.emm-nav-link.is-active .emm-nav-text {
    color: var(--emm-primary);
    font-weight: 700;
}

.emm-nav-link.is-active .emm-nav-arrow {
    stroke: var(--emm-primary);
}

.emm-nav-link.is-active::before {
    content: none;
}

.emm-nav-link.is-active:active {
    transform: scale(0.98);
    background: #f0f2f5;
}

/* =========================================
   BODY LOCK
   ========================================= */
body.emm-body-lock {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

body.emm-search-open {
    overflow: hidden !important;
}

/* =========================================
   STAGGERED ANIMATIONS
   ========================================= */
.emm[data-state="open"] .emm-menu-header {
    animation: emmFadeIn 0.4s var(--emm-ease) 0.2s forwards;
    opacity: 0;
}

.emm[data-state="open"] .emm-cat {
    animation: emmCatIn 0.45s var(--emm-bounce) forwards;
    opacity: 0;
}

.emm[data-state="open"] .emm-cat:nth-child(1) { animation-delay: 0.25s; }
.emm[data-state="open"] .emm-cat:nth-child(2) { animation-delay: 0.28s; }
.emm[data-state="open"] .emm-cat:nth-child(3) { animation-delay: 0.31s; }
.emm[data-state="open"] .emm-cat:nth-child(4) { animation-delay: 0.34s; }
.emm[data-state="open"] .emm-cat:nth-child(5) { animation-delay: 0.37s; }
.emm[data-state="open"] .emm-cat:nth-child(6) { animation-delay: 0.40s; }
.emm[data-state="open"] .emm-cat:nth-child(7) { animation-delay: 0.43s; }
.emm[data-state="open"] .emm-cat:nth-child(8) { animation-delay: 0.46s; }
.emm[data-state="open"] .emm-cat:nth-child(9) { animation-delay: 0.49s; }
.emm[data-state="open"] .emm-cat:nth-child(10) { animation-delay: 0.52s; }
.emm[data-state="open"] .emm-cat:nth-child(11) { animation-delay: 0.55s; }

@keyframes emmFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes emmCatIn {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(20px) rotate(-2deg);
    }
    60% {
        transform: scale(1.04) translateY(-4px) rotate(0.5deg);
    }
    80% {
        transform: scale(0.98) translateY(1px) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

/* Active card has special entrance */
.emm[data-state="open"] .emm-cat.is-active {
    animation: emmCatInActive 0.55s var(--emm-spring) forwards;
}

@keyframes emmCatInActive {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
    50% {
        transform: scale(1.08) translateY(-6px);
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.2);
    }
    75% {
        transform: scale(0.97) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1.02) translateY(0);
        box-shadow:
            0 0 0 4px rgba(59, 130, 246, 0.12),
            0 4px 12px rgba(59, 130, 246, 0.15);
    }
}

.emm[data-state="open"] .emm-nav-link {
    animation: emmNavIn 0.35s var(--emm-ease) forwards;
    opacity: 0;
}

.emm[data-state="open"] .emm-nav-link:nth-child(1) { animation-delay: 0.52s; }
.emm[data-state="open"] .emm-nav-link:nth-child(2) { animation-delay: 0.56s; }
.emm[data-state="open"] .emm-nav-link:nth-child(3) { animation-delay: 0.60s; }
.emm[data-state="open"] .emm-nav-link:nth-child(4) { animation-delay: 0.64s; }
.emm[data-state="open"] .emm-nav-link:nth-child(5) { animation-delay: 0.68s; }
.emm[data-state="open"] .emm-nav-link:nth-child(6) { animation-delay: 0.72s; }

@keyframes emmNavIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Active nav link special entrance */
.emm[data-state="open"] .emm-nav-link.is-active {
    animation: emmNavInActive 0.45s var(--emm-spring) forwards;
}

@keyframes emmNavInActive {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.8);
    }
    60% {
        transform: translateY(-3px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
   INTERACTIVE TOUCH SHINE EFFECT
   ========================================= */

/* Shine sweep on touch - categories */
.emm-cat {
    position: relative;
}

/* Shine overlay */
.emm-cat .emm-cat-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 0s;
    pointer-events: none;
    z-index: 2;
}

.emm-cat:active .emm-cat-img::before {
    left: 150%;
    transition: left 0.6s ease-out;
}

/* Nav link shine effect */
.emm-nav-link {
    position: relative;
    overflow: hidden;
}

.emm-nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 0s;
    pointer-events: none;
}

.emm-nav-link:active::after {
    left: 150%;
    transition: left 0.5s ease-out;
}

/* =========================================
   TOUCH FEEDBACK ENHANCEMENTS
   ========================================= */

/* Subtle glow on touch for categories */
@keyframes emmTouchGlow {
    0% {
        box-shadow: 0 2px 8px rgba(22, 39, 85, 0.06);
    }
    50% {
        box-shadow:
            0 4px 16px rgba(59, 130, 246, 0.2),
            0 0 30px rgba(59, 130, 246, 0.1);
    }
    100% {
        box-shadow: 0 2px 8px rgba(22, 39, 85, 0.06);
    }
}

/* Button press feedback for nav links */
@keyframes emmNavPress {
    0% {
        background: rgba(255, 255, 255, 0.1);
    }
    50% {
        background: rgba(219, 0, 1, 0.8);
    }
    100% {
        background: var(--emm-red);
    }
}

/* =========================================
   PRESSED STATE (JavaScript adds this)
   ========================================= */

/* Category pressed state */
.emm-cat.is-pressed {
    transform: scale(0.94) !important;
    box-shadow:
        0 1px 4px rgba(22, 39, 85, 0.06),
        inset 0 2px 12px rgba(59, 130, 246, 0.08) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%) !important;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s ease-out !important;
}

.emm-cat.is-pressed .emm-cat-img img {
    transform: scale(1.1) !important;
    transition: transform 0.15s ease-out !important;
}

.emm-cat.is-active.is-pressed {
    transform: scale(0.98) !important;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.2),
        0 2px 8px rgba(59, 130, 246, 0.2),
        inset 0 2px 8px rgba(59, 130, 246, 0.1) !important;
}

/* Nav link pressed state */
.emm-nav-link.is-pressed {
    transform: scale(0.92) !important;
    background: var(--emm-red) !important;
    border-color: var(--emm-red) !important;
    box-shadow: 0 0 16px rgba(219, 0, 1, 0.35) !important;
    transition: all 0.08s ease-out !important;
}

.emm-nav-link.is-active.is-pressed {
    transform: scale(0.94) !important;
    background: #e8e8e8 !important;
}

/* =========================================
   MICRO-INTERACTIONS
   ========================================= */

/* Subtle bounce when menu items finish animating */
.emm-cat {
    will-change: transform, opacity;
}

.emm-nav-link {
    will-change: transform, opacity, background;
}

/* Image container needs relative for ripple */
.emm-cat-img {
    position: relative;
    overflow: hidden;
}

/* Smooth spring back after press */
.emm-cat:not(.is-pressed) {
    transition:
        transform 0.35s var(--emm-spring),
        box-shadow 0.3s var(--emm-ease),
        background 0.3s var(--emm-ease);
}

.emm-nav-link:not(.is-pressed) {
    transition:
        transform 0.3s var(--emm-spring),
        background 0.25s var(--emm-ease),
        border-color 0.25s var(--emm-ease),
        box-shadow 0.25s var(--emm-ease);
}

/* =========================================
   SAFE AREA (iPhone notch) - Floating pill
   ========================================= */
@supports (padding-top: env(safe-area-inset-top)) {
    .emm-header {
        top: calc(var(--emm-header-margin) + env(safe-area-inset-top));
    }
    .emm[data-scrolled="true"] .emm-header {
        top: calc(8px + env(safe-area-inset-top));
    }
}

/* =========================================
   REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    .emm-circle,
    .emm-cat,
    .emm-nav-link,
    .emm-menu-header {
        animation: none !important;
        opacity: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
