.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-nav {
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 100px;
    justify-content: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.header-store-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--foreground);
}

.header-powered-by {
    display: none;
    font-size: 10px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 4px;
}

.header-links {
    display: none;
    align-items: center;
    gap: 4px;
}

.header-nav-btn {
    padding: 6px 12px;
    font-size: 0.875rem;
    color: var(--muted);
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.header-nav-btn:hover {
    color: var(--foreground);
    background: var(--muted-bg);
}

.header-nav-btn.active {
    color: var(--foreground);
    background: var(--muted-bg);
    font-weight: 500;
}

.header-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.header-menu-btn:hover {
    background: var(--muted-bg);
    color: var(--foreground);
}

.header-mobile-links {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 24px;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.header-mobile-links.open {
    display: flex;
}

@media (min-width: 640px) {
    .header-powered-by {
        display: inline;
    }
}

@media (min-width: 768px) {
    .header-links {
        display: flex;
    }

    .header-menu-btn {
        display: none;
    }

    .header-mobile-links {
        display: none !important;
    }
}

@media (min-width: 640px) {
    .header-powered-by {
        display: inline;
    }
}

@media (min-width: 768px) {
    .header-links {
        display: flex;
    }

    .header-menu-btn {
        display: none;
    }
}

@media (max-width: 768px) {

    .site-header {
        position: sticky;
        top: 0;
        z-index: 40;
        border-bottom: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .header-nav {
        max-width: 1152px;
        margin: 0 auto;
        padding: 0 24px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Brand */
    .header-brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header-logo {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    .header-store-name {
        font-weight: 700;
        font-size: 1rem;
        color: var(--foreground);
    }

    .header-powered-by {
        display: none;
        font-size: 10px;
        color: var(--muted);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 2px 6px;
        margin-left: 4px;
    }

    /* Desktop nav links */
    .header-links {
        display: none;
        align-items: center;
        gap: 4px;
    }



    .header-nav-btn {
        padding: 6px 12px;
        font-size: 0.875rem;
        color: var(--muted);
        background: none;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: color 0.2s, background 0.2s;
    }

    .header-nav-btn:hover {
        color: var(--foreground);
        background: var(--muted-bg);
    }

    .header-nav-btn.active {
        color: var(--foreground);
        background: var(--muted-bg);
        font-weight: 500;
    }

    /* Actions */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header-icon-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: none;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .cart-count {
        position: absolute;
        top: -2px;
        right: -2px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hamburger — only visible on mobile */
    .header-menu-btn {
        display: flex;
    }



    /* Mobile links panel */
    .header-mobile-links {
        display: none;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 24px;
        border-top: 1px solid var(--border);
        background: var(--background);
    }

    .header-mobile-links.open {
        display: flex;
    }

    @media (min-width: 768px) {
        .header-mobile-links {
            display: none !important;
        }
    }
}