.header-mobile {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    z-index: 1000;
}

.mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.3s ease;
}

.hamburger-menu:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-logo-link {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.mobile-cart-link {
    position: relative;
    display: inline-block;
    padding: 8px;
}

.mobile-cart-link .icon {
    --icon-size: 24px;
    width: var(--icon-size);
    height: var(--icon-size);
    filter: invert(1);
}

.mobile-search-container {
    padding: 0 16px 12px 16px;
    background-color: var(--primary-color);
}

.mobile-search-form {
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

.mobile-search-bar {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
}

.mobile-search-bar::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-family);
}

.mobile-search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    margin: 0;
}

.mobile-search-button .icon {
    --icon-size: 20px;
    width: var(--icon-size);
    height: var(--icon-size);
    filter: invert(1);
}

.mobile-nav {
    max-height: 0;
    overflow: hidden;
    background-color: var(--primary-color);
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0;
}

.mobile-nav.open {
    max-height: 500px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-item {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-products-section {
    padding: 0;
}

.mobile-nav-label {
    display: block;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
}

.mobile-category-list {
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-category-item {
    display: block;
    padding: 10px 20px 10px 36px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

.mobile-category-item:hover,
.mobile-category-item:active {
    background-color: rgba(255, 255, 255, 0.08);
}

.mobile-category-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cart badge - reuse from desktop header */
.mobile-cart-link .cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    font-family: var(--font-family);
    min-width: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
